MadelineProtoDocs/old_docs/API_docs_v53/constructors/messages.botCallbackAnswer.md
2019-12-27 18:46:25 +01:00

41 lines
1.0 KiB
Markdown

---
title: messages.botCallbackAnswer
description: Callback answer sent by the bot in response to a button press
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_botCallbackAnswer.html
---
# Constructor: messages.botCallbackAnswer
[Back to constructors index](index.md)
Callback answer sent by the bot in response to a button press
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|alert|[Bool](../types/Bool.md) | Optional|Whether an alert should be shown to the user instead of a toast notification|
|message|[string](../types/string.md) | Optional|Alert to show|
### Type: [messages.BotCallbackAnswer](../types/messages.BotCallbackAnswer.md)
### Example:
```php
$messages.botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => Bool, 'message' => 'string'];
```
Or, if you're into Lua:
```lua
messages.botCallbackAnswer={_='messages.botCallbackAnswer', alert=Bool, message='string'}
```