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.

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

Parameters

Name Type Description
connection_id string Business connection ID.
query !X The actual query.

Result

The type returned by the invoked method.

Bots can use this method

Related pages

Business

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.

botBusinessConnection

Contains info about a bot business connection.