Contains info about a bot business connection.
Constructor schema is available as of layer 201. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
disabled | flags.1?true | Whether this business connection is currently disabled |
connection_id | string | Business connection ID, used to identify messages coming from the connection and to reply to them as specified here ». |
user_id | long | ID of the user that the bot is connected to via this connection. |
dc_id | int | ID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ». |
date | int | When was the connection created. |
rights | flags.2?BusinessBotRights | Business bot rights. |
Business users can connect Telegram bots that will process and answer messages on their behalf. This allows businesses to seamlessly integrate any existing tools and workflows, or add AI assistants that manage their chats.
Invoke a method using a Telegram Business Bot connection, see here » for more info, including a list of the methods that can be wrapped in this constructor.
Make sure to always send queries wrapped in a invokeWithBusinessConnection
to the datacenter ID, specified in the dc_id
field of the botBusinessConnection that is being used.