ConnectedBot

class pyrogram.raw.types.ConnectedBot

Contains info about a connected business bot ».

Constructor of ConnectedBot.

Details:
  • Layer: 227

  • ID: 33ED001

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.

  • device (str, optional) – N/A

  • date (int 32-bit, optional) – N/A

  • location (str, optional) – N/A

TL Schema

connectedBot#33ed001
flags:#
bot_id:long
recipients:BusinessBotRecipients
rights:BusinessBotRights
device:flags.0?string
date:flags.1?int
location:flags.2?string

= 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
│ └── 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)
├── devicestring (optional)
├── dateint (optional)
└── locationstring (optional)

Example

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