Update docs

This commit is contained in:
Daniil Gentili 2020-04-03 14:11:09 +02:00
parent eda40443bf
commit f49ae1bcb6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
50 changed files with 1139 additions and 225 deletions

View File

@ -1,40 +0,0 @@
---
title: accessPointRule
description: Access point rule
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: accessPointRule
[Back to constructors index](index.md)
Access point rule
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_prefix\_rules|[string](../types/string.md) | Yes|Phone prefix rules|
|dc\_id|[int](../types/int.md) | Yes|DC ID|
|ips|Array of [IpPort](../types/IpPort.md) | Yes|Ips|
### Type: [AccessPointRule](../types/AccessPointRule.md)
### Example:
```php
$accessPointRule = ['_' => 'accessPointRule', 'phone_prefix_rules' => 'string', 'dc_id' => int, 'ips' => [IpPort, IpPort]];
```
Or, if you're into Lua:
```lua
accessPointRule={_='accessPointRule', phone_prefix_rules='string', dc_id=int, ips={IpPort}}
```

View File

@ -45,6 +45,7 @@ Full info about a [channel/supergroup](https://core.telegram.org/api/channel)
|location|[ChannelLocation](../types/ChannelLocation.md) | Optional|Location of the geogroup|
|slowmode\_seconds|[int](../types/int.md) | Optional|If specified, users in supergroups will only be able to send one message every `slowmode_seconds` seconds|
|slowmode\_next\_send\_date|[int](../types/int.md) | Optional|Indicates when the user will be allowed to send another message in the supergroup (unixdate)|
|stats\_dc|[int](../types/int.md) | Optional||
|pts|[int](../types/int.md) | Yes|Latest [PTS](https://core.telegram.org/api/updates) for this channel|
@ -55,14 +56,14 @@ Full info about a [channel/supergroup](https://core.telegram.org/api/channel)
### Example:
```php
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_view_stats' => Bool, 'can_set_location' => Bool, 'has_scheduled' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int, 'folder_id' => int, 'linked_chat_id' => int, 'location' => ChannelLocation, 'slowmode_seconds' => int, 'slowmode_next_send_date' => int, 'pts' => int];
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_view_stats' => Bool, 'can_set_location' => Bool, 'has_scheduled' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'online_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet, 'available_min_id' => int, 'folder_id' => int, 'linked_chat_id' => int, 'location' => ChannelLocation, 'slowmode_seconds' => int, 'slowmode_next_send_date' => int, 'stats_dc' => int, 'pts' => int];
```
Or, if you're into Lua:
```lua
channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, can_set_stickers=Bool, hidden_prehistory=Bool, can_view_stats=Bool, can_set_location=Bool, has_scheduled=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, online_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int, stickerset=StickerSet, available_min_id=int, folder_id=int, linked_chat_id=int, location=ChannelLocation, slowmode_seconds=int, slowmode_next_send_date=int, pts=int}
channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, can_set_stickers=Bool, hidden_prehistory=Bool, can_view_stats=Bool, can_set_location=Bool, has_scheduled=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, online_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int, stickerset=StickerSet, available_min_id=int, folder_id=int, linked_chat_id=int, location=ChannelLocation, slowmode_seconds=int, slowmode_next_send_date=int, stats_dc=int, pts=int}
```

View File

@ -0,0 +1,49 @@
---
title: dialogFilter
description: dialogFilter attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: dialogFilter
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|contacts|[Bool](../types/Bool.md) | Optional|
|non\_contacts|[Bool](../types/Bool.md) | Optional|
|groups|[Bool](../types/Bool.md) | Optional|
|broadcasts|[Bool](../types/Bool.md) | Optional|
|bots|[Bool](../types/Bool.md) | Optional|
|exclude\_muted|[Bool](../types/Bool.md) | Optional|
|exclude\_read|[Bool](../types/Bool.md) | Optional|
|exclude\_archived|[Bool](../types/Bool.md) | Optional|
|id|[int](../types/int.md) | Yes|
|title|[string](../types/string.md) | Yes|
|emoticon|[string](../types/string.md) | Optional|
|pinned\_peers|Array of [InputPeer](../types/InputPeer.md) | Yes|
|include\_peers|Array of [InputPeer](../types/InputPeer.md) | Yes|
|exclude\_peers|Array of [InputPeer](../types/InputPeer.md) | Yes|
### Type: [DialogFilter](../types/DialogFilter.md)
### Example:
```php
$dialogFilter = ['_' => 'dialogFilter', 'contacts' => Bool, 'non_contacts' => Bool, 'groups' => Bool, 'broadcasts' => Bool, 'bots' => Bool, 'exclude_muted' => Bool, 'exclude_read' => Bool, 'exclude_archived' => Bool, 'id' => int, 'title' => 'string', 'emoticon' => 'string', 'pinned_peers' => [InputPeer, InputPeer], 'include_peers' => [InputPeer, InputPeer], 'exclude_peers' => [InputPeer, InputPeer]];
```
Or, if you're into Lua:
```lua
dialogFilter={_='dialogFilter', contacts=Bool, non_contacts=Bool, groups=Bool, broadcasts=Bool, bots=Bool, exclude_muted=Bool, exclude_read=Bool, exclude_archived=Bool, id=int, title='string', emoticon='string', pinned_peers={InputPeer}, include_peers={InputPeer}, exclude_peers={InputPeer}}
```

View File

@ -0,0 +1,37 @@
---
title: dialogFilterSuggested
description: dialogFilterSuggested attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: dialogFilterSuggested
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|filter|[DialogFilter](../types/DialogFilter.md) | Yes|
|description|[string](../types/string.md) | Yes|
### Type: [DialogFilterSuggested](../types/DialogFilterSuggested.md)
### Example:
```php
$dialogFilterSuggested = ['_' => 'dialogFilterSuggested', 'filter' => DialogFilter, 'description' => 'string'];
```
Or, if you're into Lua:
```lua
dialogFilterSuggested={_='dialogFilterSuggested', filter=DialogFilter, description='string'}
```

View File

@ -1,41 +0,0 @@
---
title: help.configSimple
description: Config simple
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/help_configSimple.html
---
# Constructor: help.configSimple
[Back to constructors index](index.md)
Config simple
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|date|[int](../types/int.md) | Yes|Date|
|expires|[int](../types/int.md) | Yes|Expires|
|rules|Array of [AccessPointRule](../types/AccessPointRule.md) | Yes|Rules|
### Type: [help.ConfigSimple](../types/help.ConfigSimple.md)
### Example:
```php
$help.configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'rules' => [AccessPointRule, AccessPointRule]];
```
Or, if you're into Lua:
```lua
help.configSimple={_='help.configSimple', date=int, expires=int, rules={AccessPointRule}}
```

View File

@ -6,9 +6,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accessPointRule](../constructors/accessPointRule.md) = \['phone_prefix_rules' => [string](../types/string.md), 'dc_id' => [int](../types/int.md), 'ips' => \[[IpPort](../types/IpPort.md)\], \];<a name="accessPointRule"></a>
***
<br><br>[$account.authorizationForm](../constructors/account.authorizationForm.md) = \['required_types' => \[[SecureRequiredType](../types/SecureRequiredType.md)\], 'values' => \[[SecureValue](../types/SecureValue.md)\], 'errors' => \[[SecureValueError](../types/SecureValueError.md)\], 'users' => \[[User](../types/User.md)\], 'privacy_policy_url' => [string](../types/string.md), \];<a name="account.authorizationForm"></a>
@ -244,7 +241,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \];<a name="channelForbidden"></a>
***
<br><br>[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_stickers' => [Bool](../types/Bool.md), 'hidden_prehistory' => [Bool](../types/Bool.md), 'can_view_stats' => [Bool](../types/Bool.md), 'can_set_location' => [Bool](../types/Bool.md), 'has_scheduled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants_count' => [int](../types/int.md), 'admins_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'banned_count' => [int](../types/int.md), 'online_count' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'migrated_from_chat_id' => [int](../types/int.md), 'migrated_from_max_id' => [int](../types/int.md), 'pinned_msg_id' => [int](../types/int.md), 'stickerset' => [StickerSet](../types/StickerSet.md), 'available_min_id' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), 'linked_chat_id' => [int](../types/int.md), 'location' => [ChannelLocation](../types/ChannelLocation.md), 'slowmode_seconds' => [int](../types/int.md), 'slowmode_next_send_date' => [int](../types/int.md), 'pts' => [int](../types/int.md), \];<a name="channelFull"></a>
<br><br>[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_stickers' => [Bool](../types/Bool.md), 'hidden_prehistory' => [Bool](../types/Bool.md), 'can_view_stats' => [Bool](../types/Bool.md), 'can_set_location' => [Bool](../types/Bool.md), 'has_scheduled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants_count' => [int](../types/int.md), 'admins_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'banned_count' => [int](../types/int.md), 'online_count' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'migrated_from_chat_id' => [int](../types/int.md), 'migrated_from_max_id' => [int](../types/int.md), 'pinned_msg_id' => [int](../types/int.md), 'stickerset' => [StickerSet](../types/StickerSet.md), 'available_min_id' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), 'linked_chat_id' => [int](../types/int.md), 'location' => [ChannelLocation](../types/ChannelLocation.md), 'slowmode_seconds' => [int](../types/int.md), 'slowmode_next_send_date' => [int](../types/int.md), 'stats_dc' => [int](../types/int.md), 'pts' => [int](../types/int.md), \];<a name="channelFull"></a>
***
<br><br>[$channelLocation](../constructors/channelLocation.md) = \['geo_point' => [GeoPoint](../types/GeoPoint.md), 'address' => [string](../types/string.md), \];<a name="channelLocation"></a>
@ -495,6 +492,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$dialog](../constructors/dialog.md) = \['pinned' => [Bool](../types/Bool.md), 'unread_mark' => [Bool](../types/Bool.md), 'peer' => [Peer](../types/Peer.md), 'top_message' => [int](../types/int.md), 'read_inbox_max_id' => [int](../types/int.md), 'read_outbox_max_id' => [int](../types/int.md), 'unread_count' => [int](../types/int.md), 'unread_mentions_count' => [int](../types/int.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'pts' => [int](../types/int.md), 'draft' => [DraftMessage](../types/DraftMessage.md), 'folder_id' => [int](../types/int.md), \];<a name="dialog"></a>
***
<br><br>[$dialogFilter](../constructors/dialogFilter.md) = \['contacts' => [Bool](../types/Bool.md), 'non_contacts' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'broadcasts' => [Bool](../types/Bool.md), 'bots' => [Bool](../types/Bool.md), 'exclude_muted' => [Bool](../types/Bool.md), 'exclude_read' => [Bool](../types/Bool.md), 'exclude_archived' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'emoticon' => [string](../types/string.md), 'pinned_peers' => \[[InputPeer](../types/InputPeer.md)\], 'include_peers' => \[[InputPeer](../types/InputPeer.md)\], 'exclude_peers' => \[[InputPeer](../types/InputPeer.md)\], \];<a name="dialogFilter"></a>
***
<br><br>[$dialogFilterSuggested](../constructors/dialogFilterSuggested.md) = \['filter' => [DialogFilter](../types/DialogFilter.md), 'description' => [string](../types/string.md), \];<a name="dialogFilterSuggested"></a>
***
<br><br>[$dialogFolder](../constructors/dialogFolder.md) = \['pinned' => [Bool](../types/Bool.md), 'folder' => [Folder](../types/Folder.md), 'peer' => [Peer](../types/Peer.md), 'top_message' => [int](../types/int.md), 'unread_muted_peers_count' => [int](../types/int.md), 'unread_unmuted_peers_count' => [int](../types/int.md), 'unread_muted_messages_count' => [int](../types/int.md), 'unread_unmuted_messages_count' => [int](../types/int.md), \];<a name="dialogFolder"></a>
@ -621,9 +624,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$help.appUpdate](../constructors/help.appUpdate.md) = \['can_not_skip' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'version' => [string](../types/string.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'document' => [Document](../types/Document.md), 'url' => [string](../types/string.md), \];<a name="help.appUpdate"></a>
***
<br><br>[$help.configSimple](../constructors/help.configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'rules' => \[[AccessPointRule](../types/AccessPointRule.md)\], \];<a name="help.configSimple"></a>
***
<br><br>[$help.deepLinkInfo](../constructors/help.deepLinkInfo.md) = \['update_app' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \];<a name="help.deepLinkInfo"></a>
@ -807,6 +807,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputMediaContact](../constructors/inputMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), \];<a name="inputMediaContact"></a>
***
<br><br>[$inputMediaDice](../constructors/inputMediaDice.md) = \[\];<a name="inputMediaDice"></a>
***
<br><br>[$inputMediaDocument](../constructors/inputMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaDocument"></a>
@ -1065,6 +1068,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputStickerSetAnimatedEmoji](../constructors/inputStickerSetAnimatedEmoji.md) = \[\];<a name="inputStickerSetAnimatedEmoji"></a>
***
<br><br>[$inputStickerSetDice](../constructors/inputStickerSetDice.md) = \[\];<a name="inputStickerSetDice"></a>
***
<br><br>[$inputStickerSetEmpty](../constructors/inputStickerSetEmpty.md) = \[\];<a name="inputStickerSetEmpty"></a>
@ -1131,12 +1137,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$invoice](../constructors/invoice.md) = \['test' => [Bool](../types/Bool.md), 'name_requested' => [Bool](../types/Bool.md), 'phone_requested' => [Bool](../types/Bool.md), 'email_requested' => [Bool](../types/Bool.md), 'shipping_address_requested' => [Bool](../types/Bool.md), 'flexible' => [Bool](../types/Bool.md), 'phone_to_provider' => [Bool](../types/Bool.md), 'email_to_provider' => [Bool](../types/Bool.md), 'currency' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \];<a name="invoice"></a>
***
<br><br>[$ipPort](../constructors/ipPort.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), \];<a name="ipPort"></a>
***
<br><br>[$ipPortSecret](../constructors/ipPortSecret.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), 'secret' => [bytes](../types/bytes.md), \];<a name="ipPortSecret"></a>
***
<br><br>[$jsonArray](../constructors/jsonArray.md) = \['value' => \[[JSONValue](../types/JSONValue.md)\], \];<a name="jsonArray"></a>
@ -1344,9 +1344,15 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$messageFwdHeader](../constructors/messageFwdHeader.md) = \['from_id' => [int](../types/int.md), 'from_name' => [string](../types/string.md), 'date' => [int](../types/int.md), 'channel_id' => [int](../types/int.md), 'channel_post' => [int](../types/int.md), 'post_author' => [string](../types/string.md), 'saved_from_peer' => [Peer](../types/Peer.md), 'saved_from_msg_id' => [int](../types/int.md), \];<a name="messageFwdHeader"></a>
***
<br><br>[$messageInteractionCounters](../constructors/messageInteractionCounters.md) = \['msg_id' => [int](../types/int.md), 'views' => [int](../types/int.md), 'forwards' => [int](../types/int.md), \];<a name="messageInteractionCounters"></a>
***
<br><br>[$messageMediaContact](../constructors/messageMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'vcard' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \];<a name="messageMediaContact"></a>
***
<br><br>[$messageMediaDice](../constructors/messageMediaDice.md) = \['value' => [int](../types/int.md), \];<a name="messageMediaDice"></a>
***
<br><br>[$messageMediaDocument](../constructors/messageMediaDocument.md) = \['document' => [Document](../types/Document.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="messageMediaDocument"></a>
@ -1540,7 +1546,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$notifyUsers](../constructors/notifyUsers.md) = \[\];<a name="notifyUsers"></a>
***
<br><br>[$page](../constructors/page.md) = \['part' => [Bool](../types/Bool.md), 'rtl' => [Bool](../types/Bool.md), 'v2' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'photos' => \[[Photo](../types/Photo.md)\], 'documents' => \[[Document](../types/Document.md)\], \];<a name="page"></a>
<br><br>[$null](../constructors/null.md) = \[\];<a name="null"></a>
***
<br><br>[$page](../constructors/page.md) = \['part' => [Bool](../types/Bool.md), 'rtl' => [Bool](../types/Bool.md), 'v2' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'blocks' => \[[PageBlock](../types/PageBlock.md)\], 'photos' => \[[Photo](../types/Photo.md)\], 'documents' => \[[Document](../types/Document.md)\], 'views' => [int](../types/int.md), \];<a name="page"></a>
***
<br><br>[$pageBlockAnchor](../constructors/pageBlockAnchor.md) = \['name' => [string](../types/string.md), \];<a name="pageBlockAnchor"></a>
@ -1738,7 +1747,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$phoneCallEmpty](../constructors/phoneCallEmpty.md) = \['id' => [long](../types/long.md), \];<a name="phoneCallEmpty"></a>
***
<br><br>[$phoneCallProtocol](../constructors/phoneCallProtocol.md) = \['udp_p2p' => [Bool](../types/Bool.md), 'udp_reflector' => [Bool](../types/Bool.md), 'min_layer' => [int](../types/int.md), 'max_layer' => [int](../types/int.md), \];<a name="phoneCallProtocol"></a>
<br><br>[$phoneCallProtocol](../constructors/phoneCallProtocol.md) = \['udp_p2p' => [Bool](../types/Bool.md), 'udp_reflector' => [Bool](../types/Bool.md), 'min_layer' => [int](../types/int.md), 'max_layer' => [int](../types/int.md), 'library_versions' => \[[string](../types/string.md)\], \];<a name="phoneCallProtocol"></a>
***
<br><br>[$phoneCallRequested](../constructors/phoneCallRequested.md) = \['video' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \];<a name="phoneCallRequested"></a>
@ -2031,6 +2040,27 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$simpleDataBlock](../constructors/simpleDataBlock.md) = \['raw_data' => [string](../types/string.md), \];<a name="simpleDataBlock"></a>
***
<br><br>[$stats.broadcastStats](../constructors/stats.broadcastStats.md) = \['period' => [StatsDateRangeDays](../types/StatsDateRangeDays.md), 'followers' => [StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md), 'views_per_post' => [StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md), 'shares_per_post' => [StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md), 'enabled_notifications' => [StatsPercentValue](../types/StatsPercentValue.md), 'growth_graph' => [StatsGraph](../types/StatsGraph.md), 'followers_graph' => [StatsGraph](../types/StatsGraph.md), 'mute_graph' => [StatsGraph](../types/StatsGraph.md), 'top_hours_graph' => [StatsGraph](../types/StatsGraph.md), 'interactions_graph' => [StatsGraph](../types/StatsGraph.md), 'iv_interactions_graph' => [StatsGraph](../types/StatsGraph.md), 'views_by_source_graph' => [StatsGraph](../types/StatsGraph.md), 'new_followers_by_source_graph' => [StatsGraph](../types/StatsGraph.md), 'languages_graph' => [StatsGraph](../types/StatsGraph.md), 'recent_message_interactions' => \[[MessageInteractionCounters](../types/MessageInteractionCounters.md)\], \];<a name="stats.broadcastStats"></a>
***
<br><br>[$statsAbsValueAndPrev](../constructors/statsAbsValueAndPrev.md) = \['current' => [double](../types/double.md), 'previous' => [double](../types/double.md), \];<a name="statsAbsValueAndPrev"></a>
***
<br><br>[$statsDateRangeDays](../constructors/statsDateRangeDays.md) = \['min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), \];<a name="statsDateRangeDays"></a>
***
<br><br>[$statsGraph](../constructors/statsGraph.md) = \['json' => [DataJSON](../types/DataJSON.md), 'zoom_token' => [string](../types/string.md), \];<a name="statsGraph"></a>
***
<br><br>[$statsGraphAsync](../constructors/statsGraphAsync.md) = \['token' => [string](../types/string.md), \];<a name="statsGraphAsync"></a>
***
<br><br>[$statsGraphError](../constructors/statsGraphError.md) = \['error' => [string](../types/string.md), \];<a name="statsGraphError"></a>
***
<br><br>[$statsPercentValue](../constructors/statsPercentValue.md) = \['part' => [double](../types/double.md), 'total' => [double](../types/double.md), \];<a name="statsPercentValue"></a>
***
<br><br>[$statsURL](../constructors/statsURL.md) = \['url' => [string](../types/string.md), \];<a name="statsURL"></a>
@ -2244,6 +2274,15 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$updateDeleteScheduledMessages](../constructors/updateDeleteScheduledMessages.md) = \['peer' => [Peer](../types/Peer.md), 'messages' => \[[int](../types/int.md)\], \];<a name="updateDeleteScheduledMessages"></a>
***
<br><br>[$updateDialogFilter](../constructors/updateDialogFilter.md) = \['id' => [int](../types/int.md), 'filter' => [DialogFilter](../types/DialogFilter.md), \];<a name="updateDialogFilter"></a>
***
<br><br>[$updateDialogFilterOrder](../constructors/updateDialogFilterOrder.md) = \['order' => \[[int](../types/int.md)\], \];<a name="updateDialogFilterOrder"></a>
***
<br><br>[$updateDialogFilters](../constructors/updateDialogFilters.md) = \[\];<a name="updateDialogFilters"></a>
***
<br><br>[$updateDialogPinned](../constructors/updateDialogPinned.md) = \['pinned' => [Bool](../types/Bool.md), 'folder_id' => [int](../types/int.md), 'peer' => [DialogPeer](../types/DialogPeer.md), \];<a name="updateDialogPinned"></a>
@ -2524,7 +2563,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \];<a name="webPageEmpty"></a>
***
<br><br>[$webPageNotModified](../constructors/webPageNotModified.md) = \[\];<a name="webPageNotModified"></a>
<br><br>[$webPageNotModified](../constructors/webPageNotModified.md) = \['cached_page_views' => [int](../types/int.md), \];<a name="webPageNotModified"></a>
***
<br><br>[$webPagePending](../constructors/webPagePending.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), \];<a name="webPagePending"></a>

View File

@ -0,0 +1,31 @@
---
title: inputMediaDice
description: inputMediaDice attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputMediaDice
[Back to constructors index](index.md)
### Type: [InputMedia](../types/InputMedia.md)
### Example:
```php
$inputMediaDice = ['_' => 'inputMediaDice'];
```
Or, if you're into Lua:
```lua
inputMediaDice={_='inputMediaDice'}
```

View File

@ -0,0 +1,31 @@
---
title: inputStickerSetDice
description: inputStickerSetDice attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputStickerSetDice
[Back to constructors index](index.md)
### Type: [InputStickerSet](../types/InputStickerSet.md)
### Example:
```php
$inputStickerSetDice = ['_' => 'inputStickerSetDice'];
```
Or, if you're into Lua:
```lua
inputStickerSetDice={_='inputStickerSetDice'}
```

View File

@ -1,39 +0,0 @@
---
title: ipPort
description: Ip port
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: ipPort
[Back to constructors index](index.md)
Ip port
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|ipv4|[int](../types/int.md) | Yes|Ipv4|
|port|[int](../types/int.md) | Yes|Port|
### Type: [IpPort](../types/IpPort.md)
### Example:
```php
$ipPort = ['_' => 'ipPort', 'ipv4' => int, 'port' => int];
```
Or, if you're into Lua:
```lua
ipPort={_='ipPort', ipv4=int, port=int}
```

View File

@ -1,40 +0,0 @@
---
title: ipPortSecret
description: Ip port secret
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: ipPortSecret
[Back to constructors index](index.md)
Ip port secret
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|ipv4|[int](../types/int.md) | Yes|Ipv4|
|port|[int](../types/int.md) | Yes|Port|
|secret|[bytes](../types/bytes.md) | Yes|Secret|
### Type: [IpPort](../types/IpPort.md)
### Example:
```php
$ipPortSecret = ['_' => 'ipPortSecret', 'ipv4' => int, 'port' => int, 'secret' => 'bytes'];
```
Or, if you're into Lua:
```lua
ipPortSecret={_='ipPortSecret', ipv4=int, port=int, secret='bytes'}
```

View File

@ -0,0 +1,38 @@
---
title: messageInteractionCounters
description: messageInteractionCounters attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageInteractionCounters
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|msg\_id|[int](../types/int.md) | Yes|
|views|[int](../types/int.md) | Yes|
|forwards|[int](../types/int.md) | Yes|
### Type: [MessageInteractionCounters](../types/MessageInteractionCounters.md)
### Example:
```php
$messageInteractionCounters = ['_' => 'messageInteractionCounters', 'msg_id' => int, 'views' => int, 'forwards' => int];
```
Or, if you're into Lua:
```lua
messageInteractionCounters={_='messageInteractionCounters', msg_id=int, views=int, forwards=int}
```

View File

@ -0,0 +1,36 @@
---
title: messageMediaDice
description: messageMediaDice attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageMediaDice
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|value|[int](../types/int.md) | Yes|
### Type: [MessageMedia](../types/MessageMedia.md)
### Example:
```php
$messageMediaDice = ['_' => 'messageMediaDice', 'value' => int];
```
Or, if you're into Lua:
```lua
messageMediaDice={_='messageMediaDice', value=int}
```

View File

@ -21,6 +21,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|Blocks|
|photos|Array of [Photo](../types/Photo.md) | Yes|Photos|
|documents|Array of [Document](../types/Document.md) | Yes|Documents|
|views|[int](../types/int.md) | Optional||
@ -30,14 +31,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
### Example:
```php
$page = ['_' => 'page', 'part' => Bool, 'rtl' => Bool, 'v2' => Bool, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document]];
$page = ['_' => 'page', 'part' => Bool, 'rtl' => Bool, 'v2' => Bool, 'url' => 'string', 'blocks' => [PageBlock, PageBlock], 'photos' => [Photo, Photo], 'documents' => [Document, Document], 'views' => int];
```
Or, if you're into Lua:
```lua
page={_='page', part=Bool, rtl=Bool, v2=Bool, url='string', blocks={PageBlock}, photos={Photo}, documents={Document}}
page={_='page', part=Bool, rtl=Bool, v2=Bool, url='string', blocks={PageBlock}, photos={Photo}, documents={Document}, views=int}
```

View File

@ -18,6 +18,7 @@ Protocol info for libtgvoip
|udp\_reflector|[Bool](../types/Bool.md) | Optional|Whether to allow connection to the other participants through the reflector servers|
|min\_layer|[int](../types/int.md) | Yes|Minimum layer for remote libtgvoip|
|max\_layer|[int](../types/int.md) | Yes|Maximum layer for remote libtgvoip|
|library\_versions|Array of [string](../types/string.md) | Yes||
@ -27,14 +28,14 @@ Protocol info for libtgvoip
### Example:
```php
$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int];
$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int, 'library_versions' => ['string', 'string']];
```
Or, if you're into Lua:
```lua
phoneCallProtocol={_='phoneCallProtocol', udp_p2p=Bool, udp_reflector=Bool, min_layer=int, max_layer=int}
phoneCallProtocol={_='phoneCallProtocol', udp_p2p=Bool, udp_reflector=Bool, min_layer=int, max_layer=int, library_versions={'string'}}
```

View File

@ -0,0 +1,51 @@
---
title: stats.broadcastStats
description: stats.broadcastStats attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/stats_broadcastStats.html
---
# Constructor: stats.broadcastStats
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|period|[StatsDateRangeDays](../types/StatsDateRangeDays.md) | Yes|
|followers|[StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md) | Yes|
|views\_per\_post|[StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md) | Yes|
|shares\_per\_post|[StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md) | Yes|
|enabled\_notifications|[StatsPercentValue](../types/StatsPercentValue.md) | Yes|
|growth\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|followers\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|mute\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|top\_hours\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|interactions\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|iv\_interactions\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|views\_by\_source\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|new\_followers\_by\_source\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|languages\_graph|[StatsGraph](../types/StatsGraph.md) | Yes|
|recent\_message\_interactions|Array of [MessageInteractionCounters](../types/MessageInteractionCounters.md) | Yes|
### Type: [stats.BroadcastStats](../types/stats.BroadcastStats.md)
### Example:
```php
$stats.broadcastStats = ['_' => 'stats.broadcastStats', 'period' => StatsDateRangeDays, 'followers' => StatsAbsValueAndPrev, 'views_per_post' => StatsAbsValueAndPrev, 'shares_per_post' => StatsAbsValueAndPrev, 'enabled_notifications' => StatsPercentValue, 'growth_graph' => StatsGraph, 'followers_graph' => StatsGraph, 'mute_graph' => StatsGraph, 'top_hours_graph' => StatsGraph, 'interactions_graph' => StatsGraph, 'iv_interactions_graph' => StatsGraph, 'views_by_source_graph' => StatsGraph, 'new_followers_by_source_graph' => StatsGraph, 'languages_graph' => StatsGraph, 'recent_message_interactions' => [MessageInteractionCounters, MessageInteractionCounters]];
```
Or, if you're into Lua:
```lua
stats.broadcastStats={_='stats.broadcastStats', period=StatsDateRangeDays, followers=StatsAbsValueAndPrev, views_per_post=StatsAbsValueAndPrev, shares_per_post=StatsAbsValueAndPrev, enabled_notifications=StatsPercentValue, growth_graph=StatsGraph, followers_graph=StatsGraph, mute_graph=StatsGraph, top_hours_graph=StatsGraph, interactions_graph=StatsGraph, iv_interactions_graph=StatsGraph, views_by_source_graph=StatsGraph, new_followers_by_source_graph=StatsGraph, languages_graph=StatsGraph, recent_message_interactions={MessageInteractionCounters}}
```

View File

@ -0,0 +1,37 @@
---
title: statsAbsValueAndPrev
description: statsAbsValueAndPrev attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsAbsValueAndPrev
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|current|[double](../types/double.md) | Yes|
|previous|[double](../types/double.md) | Yes|
### Type: [StatsAbsValueAndPrev](../types/StatsAbsValueAndPrev.md)
### Example:
```php
$statsAbsValueAndPrev = ['_' => 'statsAbsValueAndPrev', 'current' => double, 'previous' => double];
```
Or, if you're into Lua:
```lua
statsAbsValueAndPrev={_='statsAbsValueAndPrev', current=double, previous=double}
```

View File

@ -0,0 +1,37 @@
---
title: statsDateRangeDays
description: statsDateRangeDays attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsDateRangeDays
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|min\_date|[int](../types/int.md) | Yes|
|max\_date|[int](../types/int.md) | Yes|
### Type: [StatsDateRangeDays](../types/StatsDateRangeDays.md)
### Example:
```php
$statsDateRangeDays = ['_' => 'statsDateRangeDays', 'min_date' => int, 'max_date' => int];
```
Or, if you're into Lua:
```lua
statsDateRangeDays={_='statsDateRangeDays', min_date=int, max_date=int}
```

View File

@ -0,0 +1,37 @@
---
title: statsGraph
description: statsGraph attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsGraph
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|json|[DataJSON](../types/DataJSON.md) | Yes|
|zoom\_token|[string](../types/string.md) | Optional|
### Type: [StatsGraph](../types/StatsGraph.md)
### Example:
```php
$statsGraph = ['_' => 'statsGraph', 'json' => DataJSON, 'zoom_token' => 'string'];
```
Or, if you're into Lua:
```lua
statsGraph={_='statsGraph', json=DataJSON, zoom_token='string'}
```

View File

@ -0,0 +1,36 @@
---
title: statsGraphAsync
description: statsGraphAsync attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsGraphAsync
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|token|[string](../types/string.md) | Yes|
### Type: [StatsGraph](../types/StatsGraph.md)
### Example:
```php
$statsGraphAsync = ['_' => 'statsGraphAsync', 'token' => 'string'];
```
Or, if you're into Lua:
```lua
statsGraphAsync={_='statsGraphAsync', token='string'}
```

View File

@ -0,0 +1,36 @@
---
title: statsGraphError
description: statsGraphError attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsGraphError
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|error|[string](../types/string.md) | Yes|
### Type: [StatsGraph](../types/StatsGraph.md)
### Example:
```php
$statsGraphError = ['_' => 'statsGraphError', 'error' => 'string'];
```
Or, if you're into Lua:
```lua
statsGraphError={_='statsGraphError', error='string'}
```

View File

@ -0,0 +1,37 @@
---
title: statsPercentValue
description: statsPercentValue attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsPercentValue
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|part|[double](../types/double.md) | Yes|
|total|[double](../types/double.md) | Yes|
### Type: [StatsPercentValue](../types/StatsPercentValue.md)
### Example:
```php
$statsPercentValue = ['_' => 'statsPercentValue', 'part' => double, 'total' => double];
```
Or, if you're into Lua:
```lua
statsPercentValue={_='statsPercentValue', part=double, total=double}
```

View File

@ -0,0 +1,37 @@
---
title: updateDialogFilter
description: updateDialogFilter attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDialogFilter
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|id|[int](../types/int.md) | Yes|
|filter|[DialogFilter](../types/DialogFilter.md) | Optional|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateDialogFilter = ['_' => 'updateDialogFilter', 'id' => int, 'filter' => DialogFilter];
```
Or, if you're into Lua:
```lua
updateDialogFilter={_='updateDialogFilter', id=int, filter=DialogFilter}
```

View File

@ -0,0 +1,36 @@
---
title: updateDialogFilterOrder
description: updateDialogFilterOrder attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDialogFilterOrder
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|order|Array of [int](../types/int.md) | Yes|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateDialogFilterOrder = ['_' => 'updateDialogFilterOrder', 'order' => [int, int]];
```
Or, if you're into Lua:
```lua
updateDialogFilterOrder={_='updateDialogFilterOrder', order={int}}
```

View File

@ -0,0 +1,31 @@
---
title: updateDialogFilters
description: updateDialogFilters attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDialogFilters
[Back to constructors index](index.md)
### Type: [Update](../types/Update.md)
### Example:
```php
$updateDialogFilters = ['_' => 'updateDialogFilters'];
```
Or, if you're into Lua:
```lua
updateDialogFilters={_='updateDialogFilters'}
```

View File

@ -10,6 +10,11 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
The preview of the webpage hasn't changed
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|cached\_page\_views|[int](../types/int.md) | Optional||
@ -19,14 +24,14 @@ The preview of the webpage hasn't changed
### Example:
```php
$webPageNotModified = ['_' => 'webPageNotModified'];
$webPageNotModified = ['_' => 'webPageNotModified', 'cached_page_views' => int];
```
Or, if you're into Lua:
```lua
webPageNotModified={_='webPageNotModified'}
webPageNotModified={_='webPageNotModified', cached_page_views=int}
```

View File

@ -1,9 +1,9 @@
---
title: MadelineProto API documentation (layer 110)
description: MadelineProto API documentation (layer 110)
title: MadelineProto API documentation (layer 111)
description: MadelineProto API documentation (layer 111)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# MadelineProto API documentation (layer 110)
# MadelineProto API documentation (layer 111)
[Back to main documentation](..)

View File

@ -846,6 +846,10 @@ $MadelineProto->[messages->getCommonChats](messages.getCommonChats.md)(\['user_i
<br><br>
$MadelineProto->[messages->getDhConfig](messages.getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages.DhConfig](../types/messages.DhConfig.md)<a name="messages.getDhConfig"></a>
***
<br><br>
$MadelineProto->[messages->getDialogFilters](messages.getDialogFilters.md)(\[\]) === [$Vector\_of\_DialogFilter](../types/DialogFilter.md)<a name="messages.getDialogFilters"></a>
***
<br><br>
$MadelineProto->[messages->getDialogUnreadMarks](messages.getDialogUnreadMarks.md)(\[\]) === [$Vector\_of\_DialogPeer](../types/DialogPeer.md)<a name="messages.getDialogUnreadMarks"></a>
@ -982,6 +986,10 @@ $MadelineProto->[messages->getStickerSet](messages.getStickerSet.md)(\['stickers
<br><br>
$MadelineProto->[messages->getStickers](messages.getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$messages.Stickers](../types/messages.Stickers.md)<a name="messages.getStickers"></a>
***
<br><br>
$MadelineProto->[messages->getSuggestedDialogFilters](messages.getSuggestedDialogFilters.md)(\[\]) === [$Vector\_of\_DialogFilterSuggested](../types/DialogFilterSuggested.md)<a name="messages.getSuggestedDialogFilters"></a>
***
<br><br>
$MadelineProto->[messages->getUnreadMentions](messages.getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages.Messages](../types/messages.Messages.md)<a name="messages.getUnreadMentions"></a>
@ -1186,6 +1194,14 @@ $MadelineProto->[messages->toggleStickerSets](messages.toggleStickerSets.md)(\['
<br><br>
$MadelineProto->[messages->uninstallStickerSet](messages.uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages.uninstallStickerSet"></a>
***
<br><br>
$MadelineProto->[messages->updateDialogFilter](messages.updateDialogFilter.md)(\['id' => [int](../types/int.md), 'filter' => [DialogFilter](../types/DialogFilter.md), \]) === [$Bool](../types/Bool.md)<a name="messages.updateDialogFilter"></a>
***
<br><br>
$MadelineProto->[messages->updateDialogFiltersOrder](messages.updateDialogFiltersOrder.md)(\['order' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="messages.updateDialogFiltersOrder"></a>
***
<br><br>
$MadelineProto->[messages->updatePinnedMessage](messages.updatePinnedMessage.md)(\['silent' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages.updatePinnedMessage"></a>
@ -1274,6 +1290,14 @@ $MadelineProto->[photos->updateProfilePhoto](photos.updateProfilePhoto.md)(\['id
<br><br>
$MadelineProto->[photos->uploadProfilePhoto](photos.uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos.Photo](../types/photos.Photo.md)<a name="photos.uploadProfilePhoto"></a>
***
<br><br>
$MadelineProto->[stats->getBroadcastStats](stats.getBroadcastStats.md)(\['dark' => [Bool](../types/Bool.md), 'channel' => [InputChannel](../types/InputChannel.md), \]) === [$stats.BroadcastStats](../types/stats.BroadcastStats.md)<a name="stats.getBroadcastStats"></a>
***
<br><br>
$MadelineProto->[stats->loadAsyncGraph](stats.loadAsyncGraph.md)(\['token' => [string](../types/string.md), 'x' => [long](../types/long.md), \]) === [$StatsGraph](../types/StatsGraph.md)<a name="stats.loadAsyncGraph"></a>
***
<br><br>
$MadelineProto->[stickers->addStickerToSet](stickers.addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages.StickerSet](../types/messages.StickerSet.md)<a name="stickers.addStickerToSet"></a>

View File

@ -0,0 +1,38 @@
---
title: messages.getDialogFilters
description: messages.getDialogFilters parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_getDialogFilters.html
---
# Method: messages.getDialogFilters
[Back to methods index](index.md)
### Return type: [Vector\_of\_DialogFilter](../types/DialogFilter.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_DialogFilter = $MadelineProto->messages->getDialogFilters();
```
Or, if you're into Lua:
```lua
Vector_of_DialogFilter = messages.getDialogFilters({})
```

View File

@ -0,0 +1,38 @@
---
title: messages.getSuggestedDialogFilters
description: messages.getSuggestedDialogFilters parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_getSuggestedDialogFilters.html
---
# Method: messages.getSuggestedDialogFilters
[Back to methods index](index.md)
### Return type: [Vector\_of\_DialogFilterSuggested](../types/DialogFilterSuggested.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_DialogFilterSuggested = $MadelineProto->messages->getSuggestedDialogFilters();
```
Or, if you're into Lua:
```lua
Vector_of_DialogFilterSuggested = messages.getSuggestedDialogFilters({})
```

View File

@ -0,0 +1,44 @@
---
title: messages.updateDialogFilter
description: messages.updateDialogFilter parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_updateDialogFilter.html
---
# Method: messages.updateDialogFilter
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|id|[int](../types/int.md) | Yes|
|filter|[DialogFilter](../types/DialogFilter.md) | Optional|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->messages->updateDialogFilter(['id' => int, 'filter' => DialogFilter, ]);
```
Or, if you're into Lua:
```lua
Bool = messages.updateDialogFilter({id=int, filter=DialogFilter, })
```

View File

@ -0,0 +1,43 @@
---
title: messages.updateDialogFiltersOrder
description: messages.updateDialogFiltersOrder parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_updateDialogFiltersOrder.html
---
# Method: messages.updateDialogFiltersOrder
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|order|Array of [int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->messages->updateDialogFiltersOrder(['order' => [int, int], ]);
```
Or, if you're into Lua:
```lua
Bool = messages.updateDialogFiltersOrder({order={int}, })
```

View File

@ -0,0 +1,44 @@
---
title: stats.getBroadcastStats
description: stats.getBroadcastStats parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/stats_getBroadcastStats.html
---
# Method: stats.getBroadcastStats
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|dark|[Bool](../types/Bool.md) | Optional|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|
### Return type: [stats.BroadcastStats](../types/stats.BroadcastStats.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$stats.BroadcastStats = $MadelineProto->stats->getBroadcastStats(['dark' => Bool, 'channel' => InputChannel, ]);
```
Or, if you're into Lua:
```lua
stats.BroadcastStats = stats.getBroadcastStats({dark=Bool, channel=InputChannel, })
```

View File

@ -0,0 +1,44 @@
---
title: stats.loadAsyncGraph
description: stats.loadAsyncGraph parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/stats_loadAsyncGraph.html
---
# Method: stats.loadAsyncGraph
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|token|[string](../types/string.md) | Yes|
|x|[long](../types/long.md) | Optional|
### Return type: [StatsGraph](../types/StatsGraph.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$StatsGraph = $MadelineProto->stats->loadAsyncGraph(['token' => 'string', 'x' => long, ]);
```
Or, if you're into Lua:
```lua
StatsGraph = stats.loadAsyncGraph({token='string', x=long, })
```

View File

@ -0,0 +1,22 @@
---
title: DialogFilter
description: constructors and methods of type DialogFilter
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: DialogFilter
[Back to types index](index.md)
### Possible values (constructors):
[dialogFilter](../constructors/dialogFilter.md)
### Methods that return an object of this type (methods):
[$MadelineProto->messages->getDialogFilters](../methods/messages.getDialogFilters.md)

View File

@ -0,0 +1,22 @@
---
title: DialogFilterSuggested
description: constructors and methods of type DialogFilterSuggested
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: DialogFilterSuggested
[Back to types index](index.md)
### Possible values (constructors):
[dialogFilterSuggested](../constructors/dialogFilterSuggested.md)
### Methods that return an object of this type (methods):
[$MadelineProto->messages->getSuggestedDialogFilters](../methods/messages.getSuggestedDialogFilters.md)

View File

@ -42,6 +42,8 @@ You can also provide a [MessageMedia](MessageMedia.md), [Message](Message.md), [
[inputMediaPoll](../constructors/inputMediaPoll.md)
[inputMediaDice](../constructors/inputMediaDice.md)
### Methods that return an object of this type (methods):

View File

@ -18,6 +18,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[inputStickerSetAnimatedEmoji](../constructors/inputStickerSetAnimatedEmoji.md)
[inputStickerSetDice](../constructors/inputStickerSetDice.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,20 @@
---
title: MessageInteractionCounters
description: constructors and methods of type MessageInteractionCounters
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: MessageInteractionCounters
[Back to types index](index.md)
### Possible values (constructors):
[messageInteractionCounters](../constructors/messageInteractionCounters.md)
### Methods that return an object of this type (methods):

View File

@ -34,6 +34,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[messageMediaPoll](../constructors/messageMediaPoll.md)
[messageMediaDice](../constructors/messageMediaDice.md)
### Methods that return an object of this type (methods):

View File

@ -1,16 +1,16 @@
---
title: AccessPointRule
description: constructors and methods of type AccessPointRule
title: Null
description: constructors and methods of type Null
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: AccessPointRule
# Type: Null
[Back to types index](index.md)
### Possible values (constructors):
[accessPointRule](../constructors/accessPointRule.md)
[null](../constructors/null.md)

View File

@ -0,0 +1,20 @@
---
title: StatsAbsValueAndPrev
description: constructors and methods of type StatsAbsValueAndPrev
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: StatsAbsValueAndPrev
[Back to types index](index.md)
### Possible values (constructors):
[statsAbsValueAndPrev](../constructors/statsAbsValueAndPrev.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,20 @@
---
title: StatsDateRangeDays
description: constructors and methods of type StatsDateRangeDays
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: StatsDateRangeDays
[Back to types index](index.md)
### Possible values (constructors):
[statsDateRangeDays](../constructors/statsDateRangeDays.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,26 @@
---
title: StatsGraph
description: constructors and methods of type StatsGraph
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: StatsGraph
[Back to types index](index.md)
### Possible values (constructors):
[statsGraphAsync](../constructors/statsGraphAsync.md)
[statsGraphError](../constructors/statsGraphError.md)
[statsGraph](../constructors/statsGraph.md)
### Methods that return an object of this type (methods):
[$MadelineProto->stats->loadAsyncGraph](../methods/stats.loadAsyncGraph.md)

View File

@ -1,18 +1,16 @@
---
title: IpPort
description: constructors and methods of type IpPort
title: StatsPercentValue
description: constructors and methods of type StatsPercentValue
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: IpPort
# Type: StatsPercentValue
[Back to types index](index.md)
### Possible values (constructors):
[ipPort](../constructors/ipPort.md)
[ipPortSecret](../constructors/ipPortSecret.md)
[statsPercentValue](../constructors/statsPercentValue.md)

View File

@ -164,6 +164,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[updateMessagePollVote](../constructors/updateMessagePollVote.md)
[updateDialogFilter](../constructors/updateDialogFilter.md)
[updateDialogFilterOrder](../constructors/updateDialogFilterOrder.md)
[updateDialogFilters](../constructors/updateDialogFilters.md)
### Methods that return an object of this type (methods):

View File

@ -1,21 +0,0 @@
---
title: help.ConfigSimple
description: constructors and methods of type help.ConfigSimple
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/help_ConfigSimple.html
---
# Type: help.ConfigSimple
[Back to types index](index.md)
### Possible values (constructors):
[help.configSimple](../constructors/help.configSimple.md)
### Methods that return an object of this type (methods):

View File

@ -7,8 +7,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Back to API documentation index](..)
[AccessPointRule](AccessPointRule.md)<a name="AccessPointRule"></a>
[AccountDaysTTL](AccountDaysTTL.md)<a name="AccountDaysTTL"></a>
[Authorization](Authorization.md)<a name="Authorization"></a>
@ -91,6 +89,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Dialog](Dialog.md)<a name="Dialog"></a>
[DialogFilter](DialogFilter.md)<a name="DialogFilter"></a>
[DialogFilterSuggested](DialogFilterSuggested.md)<a name="DialogFilterSuggested"></a>
[DialogPeer](DialogPeer.md)<a name="DialogPeer"></a>
[Document](Document.md)<a name="Document"></a>
@ -221,8 +223,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Invoice](Invoice.md)<a name="Invoice"></a>
[IpPort](IpPort.md)<a name="IpPort"></a>
[JSONObjectValue](JSONObjectValue.md)<a name="JSONObjectValue"></a>
[JSONValue](JSONValue.md)<a name="JSONValue"></a>
@ -249,6 +249,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[MessageFwdHeader](MessageFwdHeader.md)<a name="MessageFwdHeader"></a>
[MessageInteractionCounters](MessageInteractionCounters.md)<a name="MessageInteractionCounters"></a>
[MessageMedia](MessageMedia.md)<a name="MessageMedia"></a>
[MessageRange](MessageRange.md)<a name="MessageRange"></a>
@ -261,6 +263,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[NotifyPeer](NotifyPeer.md)<a name="NotifyPeer"></a>
[Null](Null.md)<a name="Null"></a>
[Page](Page.md)<a name="Page"></a>
[PageBlock](PageBlock.md)<a name="PageBlock"></a>
@ -361,6 +365,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[ShippingOption](ShippingOption.md)<a name="ShippingOption"></a>
[StatsAbsValueAndPrev](StatsAbsValueAndPrev.md)<a name="StatsAbsValueAndPrev"></a>
[StatsDateRangeDays](StatsDateRangeDays.md)<a name="StatsDateRangeDays"></a>
[StatsGraph](StatsGraph.md)<a name="StatsGraph"></a>
[StatsPercentValue](StatsPercentValue.md)<a name="StatsPercentValue"></a>
[StatsURL](StatsURL.md)<a name="StatsURL"></a>
[StickerPack](StickerPack.md)<a name="StickerPack"></a>
@ -471,8 +483,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[help.AppUpdate](help.AppUpdate.md)<a name="help.AppUpdate"></a>
[help.ConfigSimple](help.ConfigSimple.md)<a name="help.ConfigSimple"></a>
[help.DeepLinkInfo](help.DeepLinkInfo.md)<a name="help.DeepLinkInfo"></a>
[help.InviteText](help.InviteText.md)<a name="help.InviteText"></a>
@ -569,6 +579,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[photos.Photos](photos.Photos.md)<a name="photos.Photos"></a>
[stats.BroadcastStats](stats.BroadcastStats.md)<a name="stats.BroadcastStats"></a>
[storage.FileType](storage.FileType.md)<a name="storage.FileType"></a>
[updates.ChannelDifference](updates.ChannelDifference.md)<a name="updates.ChannelDifference"></a>

View File

@ -0,0 +1,23 @@
---
title: stats.BroadcastStats
description: constructors and methods of type stats.BroadcastStats
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/stats_BroadcastStats.html
---
# Type: stats.BroadcastStats
[Back to types index](index.md)
### Possible values (constructors):
[stats.broadcastStats](../constructors/stats.broadcastStats.md)
### Methods that return an object of this type (methods):
[$MadelineProto->stats->getBroadcastStats](../methods/stats.getBroadcastStats.md)

View File

@ -7,7 +7,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
There are simplifications for many, if not all of, these methods.
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 110)](https://docs.madelineproto.xyz/API_docs/).
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 111)](https://docs.madelineproto.xyz/API_docs/).
[Now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)

View File

@ -43,3 +43,4 @@ description: Documentation of old mtproto layers
[Layer v36](API_docs_v36/)
[Layer v37](API_docs_v37/)
[Layer v38](API_docs_v38/)
[Layer v39](API_docs_v39/)