ConnectedBot
- class pyrogram.raw.types.ConnectedBot
Contains info about a connected business bot ».
Constructor of
ConnectedBot.- Details:
Layer:
223ID:
CD64636C
- Parameters:
bot_id (
int64-bit) – ID of the connected botrecipients (
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_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├── 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)Example
ConnectedBot(
bot_id=0,
recipients=BusinessBotRecipients(),
rights=BusinessBotRights(),
)