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

  • ID: 10CF3123

Parameters:
  • lang_code (str) – Language code, if left empty update the fallback about text and description

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

  • name (str, optional) – New bot name

  • about (str, optional) – New about text

  • description (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
├── botInputUser (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── lang_codestring
├── namestring (optional)
├── aboutstring (optional)
└── descriptionstring (optional)

Example

await app.invoke(
    SetBotInfo(
        bot=await app.resolve_user(chat_id),
        lang_code="text",
        name="text",
        about="text",
        description="text",
    )
)