Skip to content

Commit

Permalink
Fix issues with bot info methods
Browse files Browse the repository at this point in the history
  • Loading branch information
roj1512 committed May 26, 2024
1 parent a2c0881 commit 1bfcfa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/2_bot_info_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class BotInfoManager {
}

async #setMyInfo(info: Omit<Api.bots_setBotInfo, "_" | "bot">) {
await this.#c.invoke({ _: "bots.setBotInfo", bot: { _: "inputUserSelf" }, ...info });
await this.#c.invoke({ _: "bots.setBotInfo", ...info });
}

async setMyDescription(params?: { description?: string; languageCode?: string }) {
Expand All @@ -50,7 +50,7 @@ export class BotInfoManager {
}

#getMyInfo(languageCode?: string | undefined) {
return this.#c.invoke({ _: "bots.getBotInfo", bot: { _: "inputUserSelf" }, lang_code: languageCode ?? "" });
return this.#c.invoke({ _: "bots.getBotInfo", lang_code: languageCode ?? "" });
}

async getMyDescription(params?: { languageCode?: string }): Promise<string> {
Expand Down

0 comments on commit 1bfcfa9

Please sign in to comment.