diff --git a/adapters/line/src/bot.ts b/adapters/line/src/bot.ts index fbe55bbf..a712d424 100644 --- a/adapters/line/src/bot.ts +++ b/adapters/line/src/bot.ts @@ -33,8 +33,10 @@ export class LineBot extends Bot { } async initialize(callback: (bot: this) => Promise) { - const { userId } = await this.internal.getBotInfo() + const { userId, pictureUrl, displayName } = await this.internal.getBotInfo() this.selfId = userId + this.username = displayName + if (pictureUrl) this.avatar = pictureUrl await callback(this) this.online() }