ConnectedBot

class pyrogram.raw.types.ConnectedBot

Contains info about a connected business bot ».

Constructor of ConnectedBot.

Details:
  • Layer: 223

  • ID: CD64636C

Parameters:
  • bot_id (int 64-bit) – ID of the connected bot

  • recipients (BusinessBotRecipients) – Specifies the private chats that a connected business bot » may receive messages and interact with.

  • rights (BusinessBotRights) – Business bot rights.

TL Schema

connectedBot#cd64636c
flags:#
bot_id:long
recipients:BusinessBotRecipients
rights:BusinessBotRights

= ConnectedBot

Parameter Tree

ConnectedBot
├── bot_idlong
├── recipientsBusinessBotRecipients
│ └── BusinessBotRecipients
│ ├── existing_chatstrue (optional)
│ ├── new_chatstrue (optional)
│ ├── contactstrue (optional)
│ ├── non_contactstrue (optional)
│ ├── exclude_selectedtrue (optional)
│ ├── usersVector < long > (optional)
│ └── exclude_usersVector < long > (optional)
└── rightsBusinessBotRights
├── 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

ConnectedBot(
    bot_id=0,
    recipients=BusinessBotRecipients(),
    rights=BusinessBotRights(),
)