Skip to main content

botBusinessConnection

Contains info about a bot business connection.

type tg.BotBusinessConnection struct { /* ... */ }

Fields

NameTypeRequiredDescription
DisabledboolWhether this business connection is currently disabled
ConnectionIDstringyesBusiness connection ID, used to identify messages coming from the connection and to reply to them as specified here ».
UserIDint64yesID of the user that the bot is connected to via this connection.
DCIDintyesID of the datacenter where to send queries wrapped in a invokeWithBusinessConnection as specified here ».
DateintyesWhen was the connection created.
RightsBusinessBotRightsBusiness bot rights.

References