1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 10:16:55 +01:00
MadelineProto/docs/TD_docs/constructors/callbackQueryAnswer.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.1 KiB

title description
callbackQueryAnswer Contains answer of the bot to the callback query

Constructor: callbackQueryAnswer

Back to constructors index

Contains answer of the bot to the callback query

Attributes:

Name Type Required Description
text string Yes Text of the answer
show_alert Bool Yes If true, an alert should be shown to the user instead of a toast
url string Yes URL to be open

Type: CallbackQueryAnswer

Example:

$callbackQueryAnswer = ['_' => 'callbackQueryAnswer', 'text' => 'string', 'show_alert' => Bool, 'url' => 'string'];

PWRTelegram json-encoded version:

{"_": "callbackQueryAnswer", "text": "string", "show_alert": Bool, "url": "string"}

Or, if you're into Lua:

callbackQueryAnswer={_='callbackQueryAnswer', text='string', show_alert=Bool, url='string'}