46 lines
1.4 KiB
Markdown
46 lines
1.4 KiB
Markdown
|
---
|
||
|
title: help.appUpdate
|
||
|
description: An update is available for the application.
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
redirect_from: /API_docs/constructors/help_appUpdate.html
|
||
|
---
|
||
|
# Constructor: help.appUpdate
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
An update is available for the application.
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|popup|[Bool](../types/Bool.md) | Optional|
|
||
|
|id|[int](../types/int.md) | Yes|Update ID|
|
||
|
|version|[string](../types/string.md) | Yes|New version name|
|
||
|
|text|[string](../types/string.md) | Yes|Text description of the update|
|
||
|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Yes|[Message entities for styled text](https://core.telegram.org/api/entities)|
|
||
|
|document|[Document](../types/Document.md) | Optional|Application binary|
|
||
|
|url|[string](../types/string.md) | Optional|Application download URL|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [help.AppUpdate](../types/help.AppUpdate.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```php
|
||
|
$help.appUpdate = ['_' => 'help.appUpdate', 'popup' => Bool, 'id' => int, 'version' => 'string', 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'document' => Document, 'url' => 'string'];
|
||
|
```
|
||
|
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
```lua
|
||
|
help.appUpdate={_='help.appUpdate', popup=Bool, id=int, version='string', text='string', entities={MessageEntity}, document=Document, url='string'}
|
||
|
|
||
|
```
|
||
|
|
||
|
|