Layer 224
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

ConnectedBot

Gogram Example

// Creating ConnectedBotObj constructor
obj := &tg.ConnectedBotObj{
    BotId: int64(1234567890),
    Recipients: &tg.BusinessBotRecipients{},
    Rights: &tg.BusinessBotRights{},
}