Link Search Menu Expand Document

Constructor: botBusinessConnection

Back to constructors index

Contains info about a bot business connection.

Attributes:

NameTypeRequiredDescription
can_replyBoolOptionalWhether the bot can reply on behalf of the user to messages it receives through the business connection
disabledBoolOptionalWhether this business connection is currently disabled
connection_idstringYesBusiness connection ID, used to identify messages coming from the connection and to reply to them as specified here ».
user_idlongYesID of the user that the bot is connected to via this connection.
dc_idintYesID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ».
dateintYesWhen was the connection created.

Type: BotBusinessConnection

Example:

$botBusinessConnection = ['_' => 'botBusinessConnection', 'can_reply' => Bool, 'disabled' => Bool, 'connection_id' => 'string', 'user_id' => long, 'dc_id' => int, 'date' => int];