Layer 227
UpdateBotCallbackQuery
A callback button was pressed, and the button data was sent to the bot that created the button
constructor
updateBotCallbackQuery#b9cfc48d flags:# query_id:long user_id:long peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| QueryId | long | Query ID |
| UserId | long | ID of the user that pressed the button |
| Peer | Peer | Chat where the inline keyboard was sent |
| MsgId | int | Message ID |
| 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 |
| GameShortName | flags .1? string | Short name of a Game to be returned, serves as the unique identifier for the game |
Returns
UpdateGogram Example
// Creating UpdateBotCallbackQuery constructor obj := &tg.UpdateBotCallbackQuery{ QueryId: int64(1234567890), UserId: int64(1234567890), Peer: &tg.Peer{}, MsgId: 42, ChatInstance: int64(1234567890), Data: nil, // ... more required fields }