Layer 231
UpdateEphemeralBotCallbackQuery
A callback button on an ephemeral message was pressed.
constructor
updateEphemeralBotCallbackQuery#7c1079d6 flags:# query_id:long user_id:long peer:flags.0?Peer msg_id:int data:bytes chat_instance:flags.1?long message:EphemeralMessage = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| QueryId | long | Query ID, to pass to messages. set Bot Callback Answer |
| UserId | long | ID of the user who pressed the button |
| Peer | flags.0?Peer | Chat where the message is located |
| MsgId | int | ID of the ephemeral message |
| Data | bytes | Callback data of the button |
| ChatInstance | flags.1?long | Global identifier of the chat |
| Message | EphemeralMessage | The ephemeral message |
Returns
UpdateGogram Example
// Creating UpdateEphemeralBotCallbackQuery constructor obj := &tg.UpdateEphemeralBotCallbackQuery{ QueryId: int64(1234567890), UserId: int64(1234567890), MsgId: 42, Data: []byte{0x01, 0x02, 0x03}, Message: &tg.EphemeralMessageObj{}, // Optional fields: // Peer: &tg.PeerChannel{}, // ChatInstance: int64(1234567890), }