Layer 220
constructor
connectedBot#cd64636c flags:# bot_id:long recipients:BusinessBotRecipients rights:BusinessBotRights = ConnectedBot;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
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 ConnectedBot constructor
obj := &tg.ConnectedBot{
    BotId: int64(0),
    Recipients: &tg.BusinessBotRecipients{},
    Rights: &tg.BusinessBotRights{},
}