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: 227

  • 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
├── bot → InputUser (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── lang_code → string

Example

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