UpdateBotBusinessConnect

class pyrogram.raw.types.UpdateBotBusinessConnect

Connecting or disconnecting a business bot or changing the connection settings will emit an updateBotBusinessConnect update to the bot, with the new settings and a connection_id that will be used by the bot to handle updates from and send messages as the user.

Constructor of Update.

Details:
  • Layer: 223

  • ID: 8AE5C97A

Parameters:
  • connection (BotBusinessConnection) – Business connection settings

  • qts (int 32-bit) – New qts value, see updates » for more info.

TL Schema

updateBotBusinessConnect#8ae5c97a
connection:BotBusinessConnection
qts:int

= Update

Parameter Tree

UpdateBotBusinessConnect
├── connectionBotBusinessConnection
│ └── BotBusinessConnection
│ ├── disabledtrue (optional)
│ ├── connection_idstring
│ ├── user_idlong
│ ├── dc_idint
│ ├── dateint
│ └── rightsBusinessBotRights (optional)
│ └── BusinessBotRights
│ ├── replytrue (optional)
│ ├── read_messagestrue (optional)
│ ├── delete_sent_messagestrue (optional)
│ ├── delete_received_messagestrue (optional)
│ ├── edit_nametrue (optional)
│ ├── edit_biotrue (optional)
│ ├── edit_profile_phototrue (optional)
│ ├── edit_usernametrue (optional)
│ ├── view_giftstrue (optional)
│ ├── sell_giftstrue (optional)
│ ├── change_gift_settingstrue (optional)
│ ├── transfer_and_upgrade_giftstrue (optional)
│ ├── transfer_starstrue (optional)
│ └── manage_storiestrue (optional)
└── qtsint

Example

UpdateBotBusinessConnect(
    connection=BotBusinessConnection(
        connection_id="text",
        user_id=0,
        dc_id=0,
        date=0
    ),
    qts=0,
)