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.

Layer 223

---functions---
invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X;

Parameters #

NameTypeDescription
connection_idstringBusiness connection ID.
query!XThe actual query.

Result #

Returns the type returned by the invoked method.

Both users and bots can use this method #

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.

botBusinessConnection #

Contains info about a bot business connection.