Layer 220
constructor Business
botBusinessConnection#8f34b2f5 flags:# disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int rights:flags.2?BusinessBotRights = BotBusinessConnection;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Disabled flags.1?true Whether this business connection is currently disabled
ConnectionId string Business connection ID, used to identify messages coming from the connection and to reply to them as specified here.
UserId long ID of the user that the bot is connected to via this connection.
DcId int ID of the datacenter where to send queries wrapped in a invoke With Business Connection as specified here.
Date int When was the connection created.
Rights flags.2?BusinessBotRights Business bot rights.

Gogram Example

// Creating BotBusinessConnection constructor
obj := &tg.BotBusinessConnection{
    ConnectionId: "...",
    UserId: int64(0),
    DcId: 0,
    Date: 0,

    // Optional fields:
    // Disabled: true,
    // Rights: &tg.BusinessBotRights{},
}