Layer 227
method Users Bots
bots.getBotInfo#dcd914fd flags:# bot:flags.0?InputUser lang_code:string = bots.BotInfo;

Parameters

Name Type Description
Bot flags .0? InputUser If called by a user, must contain the peer of a bot we own.
LangCode string Language code, if left empty this method will return the fallback about text and description.

Returns

bots.BotInfo

Gogram Example

// BotsGetBotInfo - positional arguments
result, err := client.BotsGetBotInfo(nil, "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.BotsBotInfo

Possible Errors

Code Type Description
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.