BotBusinessConnection
- class pyrogram.raw.types.BotBusinessConnection
Contains info about a bot business connection.
Constructor of
BotBusinessConnection.- Details:
Layer:
223ID:
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 (
int64-bit) – ID of the user that the bot is connected to via this connection.dc_id (
int32-bit) – ID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ».date (
int32-bit) – When was the connection created.disabled (
bool, optional) – Whether this business connection is currently disabledrights (
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
├── disabled →
true (optional)├── connection_id →
string├── user_id →
long├── dc_id →
int├── date →
int└── rights →
BusinessBotRights (optional)├── 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
BotBusinessConnection(
connection_id="text",
user_id=0,
dc_id=0,
date=0,
)