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_id → long
├── recipients → BusinessBotRecipients
│ └── BusinessBotRecipients
│ ├── existing_chats → true (optional)
│ ├── new_chats → true (optional)
│ ├── contacts → true (optional)
│ ├── non_contacts → true (optional)
│ ├── exclude_selected → true (optional)
│ ├── users → Vector < long > (optional)
│ └── exclude_users → Vector < long > (optional)
├── rights → BusinessBotRights
│ └── 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)
├── device → string (optional)
├── date → int (optional)
└── location → string (optional)

Example

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