botBusinessConnection #

Contains info about a bot business connection.

Layer 223

botBusinessConnection#8f34b2f5 flags:# disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int rights:flags.2?BusinessBotRights = BotBusinessConnection;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
disabledflags.1?trueWhether this business connection is currently disabled
connection_idstringBusiness connection ID, used to identify messages coming from the connection and to reply to them as specified here ».
user_idlongID of the user that the bot is connected to via this connection.
dc_idintID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ».
dateintWhen was the connection created.
rightsflags.2?BusinessBotRightsBusiness bot rights.

Type #

BotBusinessConnection

Connected business bots #

Users can connect Telegram bots that will process and answer messages on their behalf. This allows them to seamlessly integrate any existing tools and workflows, or add AI assistants that manage their chats.

invokeWithBusinessConnection #

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.