Layer 227
UpdateNewBotConnection
Fired when a new bot connection is established, optionally with device and location metadata.
constructor
updateNewBotConnection#b22083a6 flags:# confirmed:flags.0?true bot_id:long date:flags.1?int device:flags.1?string location:flags.1?string = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| Confirmed | flags.0?true | |
| BotId | long | |
| Date | flags.1?int | |
| Device | flags.1?string | |
| Location | flags.1?string |
Returns
UpdateGogram Example
// Creating UpdateNewBotConnection constructor obj := &tg.UpdateNewBotConnection{ BotId: int64(1234567890), // Optional fields: // Confirmed: true, // Date: 42, // Device: "Hello, World!", // Location: "Hello, World!", }