1.1 KiB
1.1 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
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 |
message | string | Optional | Alert to show |
url | string | Optional | URL to open |
Type: messages.BotCallbackAnswer
Example:
$messages.botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => Bool, 'message' => 'string', 'url' => 'string'];
Or, if you're into Lua:
messages.botCallbackAnswer={_='messages.botCallbackAnswer', alert=Bool, message='string', url='string'}