Layer 224
ConnectedBotObj
Contains info about a connected business bot.
constructor
connectedBot#cd64636c flags:# bot_id:long recipients:BusinessBotRecipients rights:BusinessBotRights = ConnectedBot;
Parameters
| Name | Type | Description |
|---|---|---|
| BotId | long | ID of the connected bot |
| Recipients | BusinessBotRecipients | Specifies the private chats that a connected business bot may receive messages and interact with. |
| Rights | BusinessBotRights | Business bot rights. |
Returns
ConnectedBotGogram Example
// Creating ConnectedBotObj constructor obj := &tg.ConnectedBotObj{ BotId: int64(1234567890), Recipients: &tg.BusinessBotRecipients{}, Rights: &tg.BusinessBotRights{}, }