bots.getBotInfo
Get localized name, about text and description of a bot (or of the current account, if called by a bot).
| Name | Type | Required | Description |
|---|---|---|---|
bot | InputUser | No | If called by a user, **must** contain the peer of a bot we own. |
lang_code | string | Yes | Language code, if left empty this method will return the fallback about text and description. |
Replies
bots.BotInfo
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.
- 400 · LANG_CODE_INVALID — The specified language code is invalid.
- 400 · USER_BOT_INVALID — User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.