MadelineProtoDocs/old_docs/API_docs_v41/constructors/messages.botCallbackAnswer.md
2020-06-16 17:50:25 +02:00

1.5 KiB

title description image redirect_from
messages.botCallbackAnswer Callback answer sent by the bot in response to a button press https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/messages_botCallbackAnswer.html

Constructor: messages.botCallbackAnswer

Back to constructors index

Callback answer sent by the bot in response to a button press

Attributes:

Name Type Required Description
alert Bool Optional Whether an alert should be shown to the user instead of a toast notification
has_url Bool Optional Whether an URL is present
native_ui Bool Optional Whether to show games in WebView or in native UI.
message string Optional Alert to show
url string Optional URL to open
cache_time int Yes For how long should this answer be cached

Type: messages.BotCallbackAnswer

Example:

$messages.botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => Bool, 'has_url' => Bool, 'native_ui' => Bool, 'message' => 'string', 'url' => 'string', 'cache_time' => int];

Or, if you're into Lua:

messages.botCallbackAnswer={_='messages.botCallbackAnswer', alert=Bool, has_url=Bool, native_ui=Bool, message='string', url='string', cache_time=int}