MadelineProtoDocs/docs/API_docs/constructors/messages_botCallbackAnswer.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

50 lines
1.4 KiB
Markdown

---
title: messages.botCallbackAnswer
description: Bot callback answer
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messages.botCallbackAnswer
[Back to constructors index](index.md)
Bot callback answer
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|alert|[Bool](../types/Bool.md) | Optional|Alert?|
|has\_url|[Bool](../types/Bool.md) | Optional|Has URL?|
|native\_ui|[Bool](../types/Bool.md) | Optional|Native ui?|
|message|[string](../types/string.md) | Optional|Message|
|url|[string](../types/string.md) | Optional|URL|
|cache\_time|[int](../types/int.md) | Yes|Cache time|
### Type: [messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md)
### Example:
```php
$messages_botCallbackAnswer = ['_' => 'messages.botCallbackAnswer', 'alert' => Bool, 'has_url' => Bool, 'native_ui' => Bool, 'message' => 'string', 'url' => 'string', 'cache_time' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.botCallbackAnswer", "alert": Bool, "has_url": Bool, "native_ui": Bool, "message": "string", "url": "string", "cache_time": int}
```
Or, if you're into Lua:
```lua
messages_botCallbackAnswer={_='messages.botCallbackAnswer', alert=Bool, has_url=Bool, native_ui=Bool, message='string', url='string', cache_time=int}
```