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:
223ID:
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:
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 →
stringExample
await app.invoke(
GetBotInfo(
bot=await app.resolve_user(chat_id),
lang_code="text",
)
)