BotBusinessConnection

class pyrogram.raw.types.BotBusinessConnection

Contains info about a bot business connection.

Constructor of BotBusinessConnection.

Details:
  • Layer: 223

  • ID: 8F34B2F5

Parameters:
  • connection_id (str) – Business connection ID, used to identify messages coming from the connection and to reply to them as specified here ».

  • user_id (int 64-bit) – ID of the user that the bot is connected to via this connection.

  • dc_id (int 32-bit) – ID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ».

  • date (int 32-bit) – When was the connection created.

  • disabled (bool, optional) – Whether this business connection is currently disabled

  • rights (BusinessBotRights, optional) – Business bot rights.

TL Schema

botBusinessConnection#8f34b2f5
flags:#
disabled:flags.1?true
connection_id:string
user_id:long
dc_id:int
date:int
rights:flags.2?BusinessBotRights

= BotBusinessConnection

Parameter Tree

BotBusinessConnection
├── disabledtrue (optional)
├── connection_idstring
├── user_idlong
├── dc_idint
├── dateint
└── rightsBusinessBotRights (optional)
├── 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)

Example

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