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

  • 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
├── connection → BotBusinessConnection
│ └── BotBusinessConnection
│ ├── disabled → true (optional)
│ ├── connection_id → string
│ ├── user_id → long
│ ├── dc_id → int
│ ├── date → int
│ └── rights → BusinessBotRights (optional)
│ └── BusinessBotRights
│ ├── reply → true (optional)
│ ├── read_messages → true (optional)
│ ├── delete_sent_messages → true (optional)
│ ├── delete_received_messages → true (optional)
│ ├── edit_name → true (optional)
│ ├── edit_bio → true (optional)
│ ├── edit_profile_photo → true (optional)
│ ├── edit_username → true (optional)
│ ├── view_gifts → true (optional)
│ ├── sell_gifts → true (optional)
│ ├── change_gift_settings → true (optional)
│ ├── transfer_and_upgrade_gifts → true (optional)
│ ├── transfer_stars → true (optional)
│ └── manage_stories → true (optional)
└── qts → int

Example

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