Layer 220
UpdateBusinessBotCallbackQuery
A callback button sent via a business connection was pressed, and the button data was sent to the bot that created the button.
constructor
Business
updateBusinessBotCallbackQuery#1ea2fda7 flags:# query_id:long user_id:long connection_id:string message:Message reply_to_message:flags.2?Message chat_instance:long data:flags.0?bytes = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| QueryId | long | Query ID |
| UserId | long | ID of the user that pressed the button |
| ConnectionId | string | Business connection ID |
| Message | Message | Message that contains the keyboard (also contains info about the chat where the message was sent). |
| ReplyToMessage | flags.2?Message | The message that message is replying to. |
| ChatInstance | long | Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. |
| Data | flags.0?bytes | Callback data |
Returns
UpdateGogram Example
// Creating UpdateBusinessBotCallbackQuery constructor obj := &tg.UpdateBusinessBotCallbackQuery{ QueryId: int64(0), UserId: int64(0), ConnectionId: "...", Message: &tg.Message{}, ChatInstance: int64(0), // Optional fields: // ReplyToMessage: &tg.Message{}, // Data: []byte{}, }