Link Search Menu Expand Document

Constructor: messages.botCallbackAnswer

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
alertBoolOptionalWhether an alert should be shown to the user instead of a toast notification
has_urlBoolOptionalWhether an URL is present
native_uiBoolOptionalWhether to show games in WebView or in native UI.
messagestringOptionalAlert to show
urlstringOptionalURL to open
cache_timeintYesFor 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];