Layer 220
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
Flags # Flags, see TL conditional fields
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

Update

Gogram Example

// Creating UpdateBotCallbackQuery constructor
obj := &tg.UpdateBotCallbackQuery{
    QueryId: int64(0),
    UserId: int64(0),
    Peer: &tg.Peer{},
    MsgId: 0,
    ChatInstance: int64(0),

    // Optional fields:
    // Data: []byte{},
    // GameShortName: "...",
}