bots.GetBotInfo

class pyrogram.raw.functions.bots.GetBotInfo

Get localized name, about text and description of a bot (or of the current account, if called by a bot).

Details:
  • Layer: 223

  • ID: DCD914FD

Parameters:
  • lang_code (str) – Language code, if left empty this method will return the fallback about text and description.

  • bot (InputUser, optional) – If called by a user, must contain the peer of a bot we own.

Returns:

bots.BotInfo

TL Schema

bots.getBotInfo#dcd914fd
flags:#
bot:flags.0?InputUser
lang_code:string

= bots.BotInfo

Parameter Tree

GetBotInfo
├── botInputUser (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── lang_codestring

Example

await app.invoke(
    GetBotInfo(
        bot=await app.resolve_user(chat_id),
        lang_code="text",
    )
)