Data that was contained in the callback button, if any
Note that this field is defined by the client, and a bad client can send arbitrary data in this field.
Data that was contained in the callback button, if any, parsed as a UTF8 string
Note that this field is defined by the client, and a bad client can send arbitrary data in this field.
In case this message was from InputInlineResultGame, or the button was BotKeyboard.game, short name of the game that should be returned.
Identifier of the message containing the button which was clicked.
Answer to this callback query
Optional
alert?: booleanWhether to show an alert in the middle of the screen instead of a notification at the top of the screen.
Optional
cacheTime?: numberMaximum amount of time in seconds for which this result can be cached by the client (not server!).
Optional
text?: stringText of the notification (0-200 chars).
If not set, nothing will be displayed
Optional
url?: stringURL that the client should open.
If this was a button containing a game,
you can provide arbitrary link to your game.
Otherwise, you can only use links in the format
t.me/your_bot?start=...
that open your bot
with a deep-link parameter.
Edit the message that contained the callback button that was clicked.
Shortcut for getting the message and editing it.
Context of a callback query update.
This is a subclass of CallbackQuery, so all its fields are also available.