bots.SetBotInfo
- class pyrogram.raw.functions.bots.SetBotInfo
Set localized name, about text and description of a bot (or of the current account, if called by a bot).
- Details:
Layer:
223ID:
10CF3123
- Parameters:
lang_code (
str) – Language code, if left empty update the fallback about text and descriptionbot (
InputUser, optional) – If called by a user, must contain the peer of a bot we own.name (
str, optional) – New bot nameabout (
str, optional) – New about textdescription (
str, optional) – New description
- Returns:
bool
TL Schema
bots.setBotInfo#10cf3123
flags:#
bot:flags.2?InputUser
lang_code:string
name:flags.3?string
about:flags.0?string
description:flags.1?string
= Bool
Parameter Tree
SetBotInfo
├── 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├── name →
string (optional)├── about →
string (optional)└── description →
string (optional)Example
await app.invoke(
SetBotInfo(
bot=await app.resolve_user(chat_id),
lang_code="text",
name="text",
about="text",
description="text",
)
)