Layer 105

This commit is contained in:
Daniil Gentili 2019-09-13 17:13:55 +02:00
parent fe34625873
commit 042cc04351
1892 changed files with 60487 additions and 83 deletions

View File

@ -0,0 +1,39 @@
---
title: account.themes
description: Themes
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.themes
[Back to constructors index](index.md)
Themes
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|hash|[int](../types/int.md) | Yes|Hash|
|themes|Array of [Theme](../types/Theme.md) | Yes|Themes|
### Type: [account\_Themes](../types/account_Themes.md)
### Example:
```php
$account_themes = ['_' => 'account.themes', 'hash' => int, 'themes' => [Theme, Theme]];
```
Or, if you're into Lua:
```lua
account_themes={_='account.themes', hash=int, themes={Theme}}
```

View File

@ -0,0 +1,33 @@
---
title: account.themesNotModified
description: Themes not modified
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.themesNotModified
[Back to constructors index](index.md)
Themes not modified
### Type: [account\_Themes](../types/account_Themes.md)
### Example:
```php
$account_themesNotModified = ['_' => 'account.themesNotModified'];
```
Or, if you're into Lua:
```lua
account_themesNotModified={_='account.themesNotModified'}
```

View File

@ -33,7 +33,7 @@ Channel
|photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo| |photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo|
|date|[int](../types/int.md) | Yes|Date| |date|[int](../types/int.md) | Yes|Date|
|version|[int](../types/int.md) | Yes|Version| |version|[int](../types/int.md) | Yes|Version|
|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| |restriction\_reason|Array of [RestrictionReason](../types/RestrictionReason.md) | Optional|Restriction reason|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|Admin rights of current user| |admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional|Admin rights of current user|
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Banned rights of current user| |banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Banned rights of current user|
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights| |default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights|
@ -47,14 +47,14 @@ Channel
### Example: ### Example:
```php ```php
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'scam' => Bool, 'has_link' => Bool, 'has_geo' => Bool, 'slowmode_enabled' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int]; $channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'scam' => Bool, 'has_link' => Bool, 'has_geo' => Bool, 'slowmode_enabled' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => [RestrictionReason, RestrictionReason], 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
channel={_='channel', creator=Bool, left=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, signatures=Bool, min=Bool, scam=Bool, has_link=Bool, has_geo=Bool, slowmode_enabled=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason='string', admin_rights=ChatAdminRights, banned_rights=ChatBannedRights, default_banned_rights=ChatBannedRights, participants_count=int} channel={_='channel', creator=Bool, left=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, signatures=Bool, min=Bool, scam=Bool, has_link=Bool, has_geo=Bool, slowmode_enabled=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason={RestrictionReason}, admin_rights=ChatAdminRights, banned_rights=ChatBannedRights, default_banned_rights=ChatBannedRights, participants_count=int}
``` ```

View File

@ -20,6 +20,7 @@ Full channel
|hidden\_prehistory|[Bool](../types/Bool.md) | Optional|Hidden prehistory?| |hidden\_prehistory|[Bool](../types/Bool.md) | Optional|Hidden prehistory?|
|can\_view\_stats|[Bool](../types/Bool.md) | Optional|Can view stats?| |can\_view\_stats|[Bool](../types/Bool.md) | Optional|Can view stats?|
|can\_set\_location|[Bool](../types/Bool.md) | Optional|Can set location?| |can\_set\_location|[Bool](../types/Bool.md) | Optional|Can set location?|
|has\_scheduled|[Bool](../types/Bool.md) | Optional|Has scheduled messages?|
|id|[int](../types/int.md) | Yes|ID| |id|[int](../types/int.md) | Yes|ID|
|about|[string](../types/string.md) | Yes|About| |about|[string](../types/string.md) | Yes|About|
|participants\_count|[int](../types/int.md) | Optional|Participants count| |participants\_count|[int](../types/int.md) | Optional|Participants count|
@ -54,14 +55,14 @@ Full channel
### Example: ### Example:
```php ```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, '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, 'pts' => int];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```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, 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, pts=int}
``` ```

View File

@ -15,6 +15,7 @@ Chat full
| Name | Type | Required | Description | | Name | Type | Required | Description |
|----------|---------------|----------|-------------| |----------|---------------|----------|-------------|
|can\_set\_username|[Bool](../types/Bool.md) | Optional|Can set username?| |can\_set\_username|[Bool](../types/Bool.md) | Optional|Can set username?|
|has\_scheduled|[Bool](../types/Bool.md) | Optional|Has scheduled messages?|
|id|[int](../types/int.md) | Yes|ID| |id|[int](../types/int.md) | Yes|ID|
|about|[string](../types/string.md) | Yes|Chat about| |about|[string](../types/string.md) | Yes|Chat about|
|participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants| |participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants|
@ -33,14 +34,14 @@ Chat full
### Example: ### Example:
```php ```php
$chatFull = ['_' => 'chatFull', 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int, 'folder_id' => int]; $chatFull = ['_' => 'chatFull', 'can_set_username' => Bool, 'has_scheduled' => Bool, 'id' => int, 'about' => 'string', 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int, 'folder_id' => int];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
chatFull={_='chatFull', can_set_username=Bool, id=int, about='string', participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int, folder_id=int} chatFull={_='chatFull', can_set_username=Bool, has_scheduled=Bool, id=int, about='string', participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int, folder_id=int}
``` ```

View File

@ -31,6 +31,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$account\_takeout](../constructors/account_takeout.md) = \['id' => [long](../types/long.md), \];<a name="account_takeout"></a> [$account\_takeout](../constructors/account_takeout.md) = \['id' => [long](../types/long.md), \];<a name="account_takeout"></a>
[$account\_themes](../constructors/account_themes.md) = \['hash' => [int](../types/int.md), 'themes' => \[[Theme](../types/Theme.md)\], \];<a name="account_themes"></a>
[$account\_themesNotModified](../constructors/account_themesNotModified.md) = \[\];<a name="account_themesNotModified"></a>
[$account\_tmpPassword](../constructors/account_tmpPassword.md) = \['tmp_password' => [bytes](../types/bytes.md), 'valid_until' => [int](../types/int.md), \];<a name="account_tmpPassword"></a> [$account\_tmpPassword](../constructors/account_tmpPassword.md) = \['tmp_password' => [bytes](../types/bytes.md), 'valid_until' => [int](../types/int.md), \];<a name="account_tmpPassword"></a>
[$account\_wallPapers](../constructors/account_wallPapers.md) = \['hash' => [int](../types/int.md), 'wallpapers' => \[[WallPaper](../types/WallPaper.md)\], \];<a name="account_wallPapers"></a> [$account\_wallPapers](../constructors/account_wallPapers.md) = \['hash' => [int](../types/int.md), 'wallpapers' => \[[WallPaper](../types/WallPaper.md)\], \];<a name="account_wallPapers"></a>
@ -110,7 +114,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$cdnPublicKey](../constructors/cdnPublicKey.md) = \['dc_id' => [int](../types/int.md), 'public_key' => [string](../types/string.md), \];<a name="cdnPublicKey"></a> <br><br>[$cdnPublicKey](../constructors/cdnPublicKey.md) = \['dc_id' => [int](../types/int.md), 'public_key' => [string](../types/string.md), \];<a name="cdnPublicKey"></a>
*** ***
<br><br>[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'scam' => [Bool](../types/Bool.md), 'has_link' => [Bool](../types/Bool.md), 'has_geo' => [Bool](../types/Bool.md), 'slowmode_enabled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'participants_count' => [int](../types/int.md), \];<a name="channel"></a> <br><br>[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'scam' => [Bool](../types/Bool.md), 'has_link' => [Bool](../types/Bool.md), 'has_geo' => [Bool](../types/Bool.md), 'slowmode_enabled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => \[[RestrictionReason](../types/RestrictionReason.md)\], 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'participants_count' => [int](../types/int.md), \];<a name="channel"></a>
*** ***
<br><br>[$channelAdminLogEvent](../constructors/channelAdminLogEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md), \];<a name="channelAdminLogEvent"></a> <br><br>[$channelAdminLogEvent](../constructors/channelAdminLogEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md), \];<a name="channelAdminLogEvent"></a>
@ -185,7 +189,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>[$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), '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), '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> <br><br>[$channelLocation](../constructors/channelLocation.md) = \['geo_point' => [GeoPoint](../types/GeoPoint.md), 'address' => [string](../types/string.md), \];<a name="channelLocation"></a>
@ -260,7 +264,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$chatForbidden](../constructors/chatForbidden.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), \];<a name="chatForbidden"></a> <br><br>[$chatForbidden](../constructors/chatForbidden.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), \];<a name="chatForbidden"></a>
*** ***
<br><br>[$chatFull](../constructors/chatFull.md) = \['can_set_username' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants' => [ChatParticipants](../types/ChatParticipants.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)\], 'pinned_msg_id' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), \];<a name="chatFull"></a> <br><br>[$chatFull](../constructors/chatFull.md) = \['can_set_username' => [Bool](../types/Bool.md), 'has_scheduled' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants' => [ChatParticipants](../types/ChatParticipants.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)\], 'pinned_msg_id' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), \];<a name="chatFull"></a>
*** ***
<br><br>[$chatInvite](../constructors/chatInvite.md) = \['channel' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'public' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'participants_count' => [int](../types/int.md), 'participants' => \[[User](../types/User.md)\], \];<a name="chatInvite"></a> <br><br>[$chatInvite](../constructors/chatInvite.md) = \['channel' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'public' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'participants_count' => [int](../types/int.md), 'participants' => \[[User](../types/User.md)\], \];<a name="chatInvite"></a>
@ -887,6 +891,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$inputPhotoFileLocation](../constructors/inputPhotoFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'thumb_size' => [string](../types/string.md), \];<a name="inputPhotoFileLocation"></a> <br><br>[$inputPhotoFileLocation](../constructors/inputPhotoFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'thumb_size' => [string](../types/string.md), \];<a name="inputPhotoFileLocation"></a>
***
<br><br>[$inputPrivacyKeyAddedByPhone](../constructors/inputPrivacyKeyAddedByPhone.md) = \[\];<a name="inputPrivacyKeyAddedByPhone"></a>
*** ***
<br><br>[$inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) = \[\];<a name="inputPrivacyKeyChatInvite"></a> <br><br>[$inputPrivacyKeyChatInvite](../constructors/inputPrivacyKeyChatInvite.md) = \[\];<a name="inputPrivacyKeyChatInvite"></a>
@ -995,6 +1002,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$inputTakeoutFileLocation](../constructors/inputTakeoutFileLocation.md) = \[\];<a name="inputTakeoutFileLocation"></a> <br><br>[$inputTakeoutFileLocation](../constructors/inputTakeoutFileLocation.md) = \[\];<a name="inputTakeoutFileLocation"></a>
***
<br><br>[$inputTheme](../constructors/inputTheme.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \];<a name="inputTheme"></a>
***
<br><br>[$inputThemeSlug](../constructors/inputThemeSlug.md) = \['slug' => [string](../types/string.md), \];<a name="inputThemeSlug"></a>
*** ***
<br><br>[$inputUser](../constructors/inputUser.md) = \['user_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \];<a name="inputUser"></a> <br><br>[$inputUser](../constructors/inputUser.md) = \['user_id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), \];<a name="inputUser"></a>
@ -1104,7 +1117,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$maskCoords](../constructors/maskCoords.md) = \['n' => [int](../types/int.md), 'x' => [double](../types/double.md), 'y' => [double](../types/double.md), 'zoom' => [double](../types/double.md), \];<a name="maskCoords"></a> <br><br>[$maskCoords](../constructors/maskCoords.md) = \['n' => [int](../types/int.md), 'x' => [double](../types/double.md), 'y' => [double](../types/double.md), 'zoom' => [double](../types/double.md), \];<a name="maskCoords"></a>
*** ***
<br><br>[$message](../constructors/message.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'legacy' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'views' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'post_author' => [string](../types/string.md), 'grouped_id' => [long](../types/long.md), \];<a name="message"></a> <br><br>[$message](../constructors/message.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'from_scheduled' => [Bool](../types/Bool.md), 'legacy' => [Bool](../types/Bool.md), 'edit_hide' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'views' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'post_author' => [string](../types/string.md), 'grouped_id' => [long](../types/long.md), 'restriction_reason' => \[[RestrictionReason](../types/RestrictionReason.md)\], \];<a name="message"></a>
*** ***
<br><br>[$messageActionBotAllowed](../constructors/messageActionBotAllowed.md) = \['domain' => [string](../types/string.md), \];<a name="messageActionBotAllowed"></a> <br><br>[$messageActionBotAllowed](../constructors/messageActionBotAllowed.md) = \['domain' => [string](../types/string.md), \];<a name="messageActionBotAllowed"></a>
@ -1617,6 +1630,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$postAddress](../constructors/postAddress.md) = \['street_line1' => [string](../types/string.md), 'street_line2' => [string](../types/string.md), 'city' => [string](../types/string.md), 'state' => [string](../types/string.md), 'country_iso2' => [string](../types/string.md), 'post_code' => [string](../types/string.md), \];<a name="postAddress"></a> <br><br>[$postAddress](../constructors/postAddress.md) = \['street_line1' => [string](../types/string.md), 'street_line2' => [string](../types/string.md), 'city' => [string](../types/string.md), 'state' => [string](../types/string.md), 'country_iso2' => [string](../types/string.md), 'post_code' => [string](../types/string.md), \];<a name="postAddress"></a>
***
<br><br>[$privacyKeyAddedByPhone](../constructors/privacyKeyAddedByPhone.md) = \[\];<a name="privacyKeyAddedByPhone"></a>
*** ***
<br><br>[$privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) = \[\];<a name="privacyKeyChatInvite"></a> <br><br>[$privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) = \[\];<a name="privacyKeyChatInvite"></a>
@ -1692,6 +1708,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$replyKeyboardMarkup](../constructors/replyKeyboardMarkup.md) = \['resize' => [Bool](../types/Bool.md), 'single_use' => [Bool](../types/Bool.md), 'selective' => [Bool](../types/Bool.md), 'rows' => \[[KeyboardButtonRow](../types/KeyboardButtonRow.md)\], \];<a name="replyKeyboardMarkup"></a> <br><br>[$replyKeyboardMarkup](../constructors/replyKeyboardMarkup.md) = \['resize' => [Bool](../types/Bool.md), 'single_use' => [Bool](../types/Bool.md), 'selective' => [Bool](../types/Bool.md), 'rows' => \[[KeyboardButtonRow](../types/KeyboardButtonRow.md)\], \];<a name="replyKeyboardMarkup"></a>
***
<br><br>[$restrictionReason](../constructors/restrictionReason.md) = \['platform' => [string](../types/string.md), 'reason' => [string](../types/string.md), 'text' => [string](../types/string.md), \];<a name="restrictionReason"></a>
*** ***
<br><br>[$savedPhoneContact](../constructors/savedPhoneContact.md) = \['phone' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'date' => [int](../types/int.md), \];<a name="savedPhoneContact"></a> <br><br>[$savedPhoneContact](../constructors/savedPhoneContact.md) = \['phone' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'date' => [int](../types/int.md), \];<a name="savedPhoneContact"></a>
@ -1932,6 +1951,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$textUrl](../constructors/textUrl.md) = \['text' => [RichText](../types/RichText.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \];<a name="textUrl"></a> <br><br>[$textUrl](../constructors/textUrl.md) = \['text' => [RichText](../types/RichText.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \];<a name="textUrl"></a>
***
<br><br>[$theme](../constructors/theme.md) = \['creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'installs_count' => [int](../types/int.md), \];<a name="theme"></a>
***
<br><br>[$themeDocumentNotModified](../constructors/themeDocumentNotModified.md) = \[\];<a name="themeDocumentNotModified"></a>
*** ***
<br><br>[$topPeer](../constructors/topPeer.md) = \['peer' => [Peer](../types/Peer.md), 'rating' => [double](../types/double.md), \];<a name="topPeer"></a> <br><br>[$topPeer](../constructors/topPeer.md) = \['peer' => [Peer](../types/Peer.md), 'rating' => [double](../types/double.md), \];<a name="topPeer"></a>
@ -2043,6 +2068,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateDeleteMessages"></a> <br><br>[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['messages' => \[[int](../types/int.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateDeleteMessages"></a>
***
<br><br>[$updateDeleteScheduledMessages](../constructors/updateDeleteScheduledMessages.md) = \['peer' => [Peer](../types/Peer.md), 'messages' => \[[int](../types/int.md)\], \];<a name="updateDeleteScheduledMessages"></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> <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>
@ -2097,6 +2125,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateNewMessage"></a> <br><br>[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateNewMessage"></a>
***
<br><br>[$updateNewScheduledMessage](../constructors/updateNewScheduledMessage.md) = \['message' => [Message](../types/Message.md), \];<a name="updateNewScheduledMessage"></a>
*** ***
<br><br>[$updateNewStickerSet](../constructors/updateNewStickerSet.md) = \['stickerset' => [messages\_StickerSet](../types/messages_StickerSet.md), \];<a name="updateNewStickerSet"></a> <br><br>[$updateNewStickerSet](../constructors/updateNewStickerSet.md) = \['stickerset' => [messages\_StickerSet](../types/messages_StickerSet.md), \];<a name="updateNewStickerSet"></a>
@ -2166,6 +2197,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
*** ***
<br><br>[$updateStickerSetsOrder](../constructors/updateStickerSetsOrder.md) = \['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \];<a name="updateStickerSetsOrder"></a> <br><br>[$updateStickerSetsOrder](../constructors/updateStickerSetsOrder.md) = \['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \];<a name="updateStickerSetsOrder"></a>
***
<br><br>[$updateTheme](../constructors/updateTheme.md) = \['theme' => [Theme](../types/Theme.md), \];<a name="updateTheme"></a>
*** ***
<br><br>[$updateUserBlocked](../constructors/updateUserBlocked.md) = \['user_id' => [int](../types/int.md), 'blocked' => [Bool](../types/Bool.md), \];<a name="updateUserBlocked"></a> <br><br>[$updateUserBlocked](../constructors/updateUserBlocked.md) = \['user_id' => [int](../types/int.md), 'blocked' => [Bool](../types/Bool.md), \];<a name="updateUserBlocked"></a>
@ -2237,13 +2271,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$urlAuthResultRequest](../constructors/urlAuthResultRequest.md) = \['request_write_access' => [Bool](../types/Bool.md), 'bot' => [User](../types/User.md), 'domain' => [string](../types/string.md), \];<a name="urlAuthResultRequest"></a> <br><br>[$urlAuthResultRequest](../constructors/urlAuthResultRequest.md) = \['request_write_access' => [Bool](../types/Bool.md), 'bot' => [User](../types/User.md), 'domain' => [string](../types/string.md), \];<a name="urlAuthResultRequest"></a>
*** ***
<br><br>[$user](../constructors/user.md) = \['self' => [Bool](../types/Bool.md), 'contact' => [Bool](../types/Bool.md), 'mutual_contact' => [Bool](../types/Bool.md), 'deleted' => [Bool](../types/Bool.md), 'bot' => [Bool](../types/Bool.md), 'bot_chat_history' => [Bool](../types/Bool.md), 'bot_nochats' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'bot_inline_geo' => [Bool](../types/Bool.md), 'support' => [Bool](../types/Bool.md), 'scam' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), 'phone' => [string](../types/string.md), 'photo' => [UserProfilePhoto](../types/UserProfilePhoto.md), 'status' => [UserStatus](../types/UserStatus.md), 'bot_info_version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'bot_inline_placeholder' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \];<a name="user"></a> <br><br>[$user](../constructors/user.md) = \['self' => [Bool](../types/Bool.md), 'contact' => [Bool](../types/Bool.md), 'mutual_contact' => [Bool](../types/Bool.md), 'deleted' => [Bool](../types/Bool.md), 'bot' => [Bool](../types/Bool.md), 'bot_chat_history' => [Bool](../types/Bool.md), 'bot_nochats' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'bot_inline_geo' => [Bool](../types/Bool.md), 'support' => [Bool](../types/Bool.md), 'scam' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), 'phone' => [string](../types/string.md), 'photo' => [UserProfilePhoto](../types/UserProfilePhoto.md), 'status' => [UserStatus](../types/UserStatus.md), 'bot_info_version' => [int](../types/int.md), 'restriction_reason' => \[[RestrictionReason](../types/RestrictionReason.md)\], 'bot_inline_placeholder' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \];<a name="user"></a>
*** ***
<br><br>[$userEmpty](../constructors/userEmpty.md) = \['id' => [int](../types/int.md), \];<a name="userEmpty"></a> <br><br>[$userEmpty](../constructors/userEmpty.md) = \['id' => [int](../types/int.md), \];<a name="userEmpty"></a>
*** ***
<br><br>[$userFull](../constructors/userFull.md) = \['blocked' => [Bool](../types/Bool.md), 'phone_calls_available' => [Bool](../types/Bool.md), 'phone_calls_private' => [Bool](../types/Bool.md), 'can_pin_message' => [Bool](../types/Bool.md), 'user' => [User](../types/User.md), 'about' => [string](../types/string.md), 'settings' => [PeerSettings](../types/PeerSettings.md), 'profile_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'bot_info' => [BotInfo](../types/BotInfo.md), 'pinned_msg_id' => [int](../types/int.md), 'common_chats_count' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), \];<a name="userFull"></a> <br><br>[$userFull](../constructors/userFull.md) = \['blocked' => [Bool](../types/Bool.md), 'phone_calls_available' => [Bool](../types/Bool.md), 'phone_calls_private' => [Bool](../types/Bool.md), 'can_pin_message' => [Bool](../types/Bool.md), 'has_scheduled' => [Bool](../types/Bool.md), 'user' => [User](../types/User.md), 'about' => [string](../types/string.md), 'settings' => [PeerSettings](../types/PeerSettings.md), 'profile_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'bot_info' => [BotInfo](../types/BotInfo.md), 'pinned_msg_id' => [int](../types/int.md), 'common_chats_count' => [int](../types/int.md), 'folder_id' => [int](../types/int.md), \];<a name="userFull"></a>
*** ***
<br><br>[$userProfilePhoto](../constructors/userProfilePhoto.md) = \['photo_id' => [long](../types/long.md), 'photo_small' => [FileLocation](../types/FileLocation.md), 'photo_big' => [FileLocation](../types/FileLocation.md), 'dc_id' => [int](../types/int.md), \];<a name="userProfilePhoto"></a> <br><br>[$userProfilePhoto](../constructors/userProfilePhoto.md) = \['photo_id' => [long](../types/long.md), 'photo_small' => [FileLocation](../types/FileLocation.md), 'photo_big' => [FileLocation](../types/FileLocation.md), 'dc_id' => [int](../types/int.md), \];<a name="userProfilePhoto"></a>
@ -2285,7 +2319,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$webDocumentNoProxy](../constructors/webDocumentNoProxy.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="webDocumentNoProxy"></a> <br><br>[$webDocumentNoProxy](../constructors/webDocumentNoProxy.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="webDocumentNoProxy"></a>
*** ***
<br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'cached_page' => [Page](../types/Page.md), \];<a name="webPage"></a> <br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'documents' => \[[Document](../types/Document.md)\], 'cached_page' => [Page](../types/Page.md), \];<a name="webPage"></a>
*** ***
<br><br>[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \];<a name="webPageEmpty"></a> <br><br>[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \];<a name="webPageEmpty"></a>

View File

@ -0,0 +1,33 @@
---
title: inputPrivacyKeyAddedByPhone
description: Input privacy key added by phone
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPrivacyKeyAddedByPhone
[Back to constructors index](index.md)
Input privacy key added by phone
### Type: [InputPrivacyKey](../types/InputPrivacyKey.md)
### Example:
```php
$inputPrivacyKeyAddedByPhone = ['_' => 'inputPrivacyKeyAddedByPhone'];
```
Or, if you're into Lua:
```lua
inputPrivacyKeyAddedByPhone={_='inputPrivacyKeyAddedByPhone'}
```

View File

@ -0,0 +1,39 @@
---
title: inputTheme
description: Input theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputTheme
[Back to constructors index](index.md)
Input theme
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID|
|access\_hash|[long](../types/long.md) | Yes|Access hash|
### Type: [InputTheme](../types/InputTheme.md)
### Example:
```php
$inputTheme = ['_' => 'inputTheme', 'id' => long, 'access_hash' => long];
```
Or, if you're into Lua:
```lua
inputTheme={_='inputTheme', id=long, access_hash=long}
```

View File

@ -0,0 +1,38 @@
---
title: inputThemeSlug
description: Input theme slug
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputThemeSlug
[Back to constructors index](index.md)
Input theme slug
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|slug|[string](../types/string.md) | Yes|Slug|
### Type: [InputTheme](../types/InputTheme.md)
### Example:
```php
$inputThemeSlug = ['_' => 'inputThemeSlug', 'slug' => 'string'];
```
Or, if you're into Lua:
```lua
inputThemeSlug={_='inputThemeSlug', slug='string'}
```

View File

@ -19,7 +19,9 @@ Message
|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?| |media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?|
|silent|[Bool](../types/Bool.md) | Optional|Silent?| |silent|[Bool](../types/Bool.md) | Optional|Silent?|
|post|[Bool](../types/Bool.md) | Optional|Post?| |post|[Bool](../types/Bool.md) | Optional|Post?|
|from\_scheduled|[Bool](../types/Bool.md) | Optional|From scheduled?|
|legacy|[Bool](../types/Bool.md) | Optional|Legacy message| |legacy|[Bool](../types/Bool.md) | Optional|Legacy message|
|edit\_hide|[Bool](../types/Bool.md) | Optional|Whether to hide that the message was edited?|
|id|[int](../types/int.md) | Yes|ID| |id|[int](../types/int.md) | Yes|ID|
|from\_id|[int](../types/int.md) | Optional|From ID| |from\_id|[int](../types/int.md) | Optional|From ID|
|to\_id|[Peer](../types/Peer.md) | Yes|To ID| |to\_id|[Peer](../types/Peer.md) | Yes|To ID|
@ -35,6 +37,7 @@ Message
|edit\_date|[int](../types/int.md) | Optional|Edit date| |edit\_date|[int](../types/int.md) | Optional|Edit date|
|post\_author|[string](../types/string.md) | Optional|Post author| |post\_author|[string](../types/string.md) | Optional|Post author|
|grouped\_id|[long](../types/long.md) | Optional|Grouped ID| |grouped\_id|[long](../types/long.md) | Optional|Grouped ID|
|restriction\_reason|Array of [RestrictionReason](../types/RestrictionReason.md) | Optional|Restriction reason|
@ -44,14 +47,14 @@ Message
### Example: ### Example:
```php ```php
$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'legacy' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int, 'edit_date' => int, 'post_author' => 'string', 'grouped_id' => long]; $message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'from_scheduled' => Bool, 'legacy' => Bool, 'edit_hide' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'views' => int, 'edit_date' => int, 'post_author' => 'string', 'grouped_id' => long, 'restriction_reason' => [RestrictionReason, RestrictionReason]];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, legacy=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int, post_author='string', grouped_id=long} message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, from_scheduled=Bool, legacy=Bool, edit_hide=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int, post_author='string', grouped_id=long, restriction_reason={RestrictionReason}}
``` ```

View File

@ -0,0 +1,33 @@
---
title: privacyKeyAddedByPhone
description: Privacy key added by phone
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: privacyKeyAddedByPhone
[Back to constructors index](index.md)
Privacy key added by phone
### Type: [PrivacyKey](../types/PrivacyKey.md)
### Example:
```php
$privacyKeyAddedByPhone = ['_' => 'privacyKeyAddedByPhone'];
```
Or, if you're into Lua:
```lua
privacyKeyAddedByPhone={_='privacyKeyAddedByPhone'}
```

View File

@ -0,0 +1,40 @@
---
title: restrictionReason
description: Restriction reason
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: restrictionReason
[Back to constructors index](index.md)
Restriction reason
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|platform|[string](../types/string.md) | Yes|Platform|
|reason|[string](../types/string.md) | Yes|Reason|
|text|[string](../types/string.md) | Yes|Text|
### Type: [RestrictionReason](../types/RestrictionReason.md)
### Example:
```php
$restrictionReason = ['_' => 'restrictionReason', 'platform' => 'string', 'reason' => 'string', 'text' => 'string'];
```
Or, if you're into Lua:
```lua
restrictionReason={_='restrictionReason', platform='string', reason='string', text='string'}
```

View File

@ -0,0 +1,45 @@
---
title: theme
description: Theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: theme
[Back to constructors index](index.md)
Theme
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|creator|[Bool](../types/Bool.md) | Optional|Creator?|
|default|[Bool](../types/Bool.md) | Optional|Default?|
|id|[long](../types/long.md) | Yes|ID|
|access\_hash|[long](../types/long.md) | Yes|Access hash|
|slug|[string](../types/string.md) | Yes|Slug|
|title|[string](../types/string.md) | Yes|Title|
|document|[Document](../types/Document.md) | Optional|Document|
|installs\_count|[int](../types/int.md) | Yes|Installs count|
### Type: [Theme](../types/Theme.md)
### Example:
```php
$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'installs_count' => int];
```
Or, if you're into Lua:
```lua
theme={_='theme', creator=Bool, default=Bool, id=long, access_hash=long, slug='string', title='string', document=Document, installs_count=int}
```

View File

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

View File

@ -0,0 +1,39 @@
---
title: updateDeleteScheduledMessages
description: Update delete scheduled messages
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateDeleteScheduledMessages
[Back to constructors index](index.md)
Update delete scheduled messages
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Peer](../types/Peer.md) | Yes|Peer|
|messages|Array of [int](../types/int.md) | Yes|Messages|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateDeleteScheduledMessages = ['_' => 'updateDeleteScheduledMessages', 'peer' => Peer, 'messages' => [int, int]];
```
Or, if you're into Lua:
```lua
updateDeleteScheduledMessages={_='updateDeleteScheduledMessages', peer=Peer, messages={int}}
```

View File

@ -0,0 +1,38 @@
---
title: updateNewScheduledMessage
description: Update new scheduled message
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateNewScheduledMessage
[Back to constructors index](index.md)
Update new scheduled message
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|message|[Message](../types/Message.md) | Optional|Message|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateNewScheduledMessage = ['_' => 'updateNewScheduledMessage', 'message' => Message];
```
Or, if you're into Lua:
```lua
updateNewScheduledMessage={_='updateNewScheduledMessage', message=Message}
```

View File

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

View File

@ -36,7 +36,7 @@ User
|photo|[UserProfilePhoto](../types/UserProfilePhoto.md) | Optional|Photo| |photo|[UserProfilePhoto](../types/UserProfilePhoto.md) | Optional|Photo|
|status|[UserStatus](../types/UserStatus.md) | Optional|Status| |status|[UserStatus](../types/UserStatus.md) | Optional|Status|
|bot\_info\_version|[int](../types/int.md) | Optional|Bot info version| |bot\_info\_version|[int](../types/int.md) | Optional|Bot info version|
|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason| |restriction\_reason|Array of [RestrictionReason](../types/RestrictionReason.md) | Optional|Restriction reason|
|bot\_inline\_placeholder|[string](../types/string.md) | Optional|Bot inline placeholder| |bot\_inline\_placeholder|[string](../types/string.md) | Optional|Bot inline placeholder|
|lang\_code|[string](../types/string.md) | Optional|Lang code| |lang\_code|[string](../types/string.md) | Optional|Lang code|
@ -48,14 +48,14 @@ User
### Example: ### Example:
```php ```php
$user = ['_' => 'user', 'self' => Bool, 'contact' => Bool, 'mutual_contact' => Bool, 'deleted' => Bool, 'bot' => Bool, 'bot_chat_history' => Bool, 'bot_nochats' => Bool, 'verified' => Bool, 'restricted' => Bool, 'min' => Bool, 'bot_inline_geo' => Bool, 'support' => Bool, 'scam' => Bool, 'id' => int, 'access_hash' => long, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string', 'phone' => 'string', 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => 'string', 'bot_inline_placeholder' => 'string', 'lang_code' => 'string']; $user = ['_' => 'user', 'self' => Bool, 'contact' => Bool, 'mutual_contact' => Bool, 'deleted' => Bool, 'bot' => Bool, 'bot_chat_history' => Bool, 'bot_nochats' => Bool, 'verified' => Bool, 'restricted' => Bool, 'min' => Bool, 'bot_inline_geo' => Bool, 'support' => Bool, 'scam' => Bool, 'id' => int, 'access_hash' => long, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string', 'phone' => 'string', 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, 'restriction_reason' => [RestrictionReason, RestrictionReason], 'bot_inline_placeholder' => 'string', 'lang_code' => 'string'];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
user={_='user', self=Bool, contact=Bool, mutual_contact=Bool, deleted=Bool, bot=Bool, bot_chat_history=Bool, bot_nochats=Bool, verified=Bool, restricted=Bool, min=Bool, bot_inline_geo=Bool, support=Bool, scam=Bool, id=int, access_hash=long, first_name='string', last_name='string', username='string', phone='string', photo=UserProfilePhoto, status=UserStatus, bot_info_version=int, restriction_reason='string', bot_inline_placeholder='string', lang_code='string'} user={_='user', self=Bool, contact=Bool, mutual_contact=Bool, deleted=Bool, bot=Bool, bot_chat_history=Bool, bot_nochats=Bool, verified=Bool, restricted=Bool, min=Bool, bot_inline_geo=Bool, support=Bool, scam=Bool, id=int, access_hash=long, first_name='string', last_name='string', username='string', phone='string', photo=UserProfilePhoto, status=UserStatus, bot_info_version=int, restriction_reason={RestrictionReason}, bot_inline_placeholder='string', lang_code='string'}
``` ```

View File

@ -18,6 +18,7 @@ User full
|phone\_calls\_available|[Bool](../types/Bool.md) | Optional|Phone calls available?| |phone\_calls\_available|[Bool](../types/Bool.md) | Optional|Phone calls available?|
|phone\_calls\_private|[Bool](../types/Bool.md) | Optional|Phone calls private?| |phone\_calls\_private|[Bool](../types/Bool.md) | Optional|Phone calls private?|
|can\_pin\_message|[Bool](../types/Bool.md) | Optional|Can pin message?| |can\_pin\_message|[Bool](../types/Bool.md) | Optional|Can pin message?|
|has\_scheduled|[Bool](../types/Bool.md) | Optional|Has scheduled messages?|
|user|[User](../types/User.md) | Optional|User| |user|[User](../types/User.md) | Optional|User|
|about|[string](../types/string.md) | Optional|About| |about|[string](../types/string.md) | Optional|About|
|settings|[PeerSettings](../types/PeerSettings.md) | Yes|Peer settings| |settings|[PeerSettings](../types/PeerSettings.md) | Yes|Peer settings|
@ -36,14 +37,14 @@ User full
### Example: ### Example:
```php ```php
$userFull = ['_' => 'userFull', 'blocked' => Bool, 'phone_calls_available' => Bool, 'phone_calls_private' => Bool, 'can_pin_message' => Bool, 'user' => User, 'about' => 'string', 'settings' => PeerSettings, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, 'pinned_msg_id' => int, 'common_chats_count' => int, 'folder_id' => int]; $userFull = ['_' => 'userFull', 'blocked' => Bool, 'phone_calls_available' => Bool, 'phone_calls_private' => Bool, 'can_pin_message' => Bool, 'has_scheduled' => Bool, 'user' => User, 'about' => 'string', 'settings' => PeerSettings, 'profile_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'bot_info' => BotInfo, 'pinned_msg_id' => int, 'common_chats_count' => int, 'folder_id' => int];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
userFull={_='userFull', blocked=Bool, phone_calls_available=Bool, phone_calls_private=Bool, can_pin_message=Bool, user=User, about='string', settings=PeerSettings, profile_photo=Photo, notify_settings=PeerNotifySettings, bot_info=BotInfo, pinned_msg_id=int, common_chats_count=int, folder_id=int} userFull={_='userFull', blocked=Bool, phone_calls_available=Bool, phone_calls_private=Bool, can_pin_message=Bool, has_scheduled=Bool, user=User, about='string', settings=PeerSettings, profile_photo=Photo, notify_settings=PeerNotifySettings, bot_info=BotInfo, pinned_msg_id=int, common_chats_count=int, folder_id=int}
``` ```

View File

@ -30,6 +30,7 @@ Web page
|duration|[int](../types/int.md) | Optional|Duration| |duration|[int](../types/int.md) | Optional|Duration|
|author|[string](../types/string.md) | Optional|Author| |author|[string](../types/string.md) | Optional|Author|
|document|[Document](../types/Document.md) | Optional|Document| |document|[Document](../types/Document.md) | Optional|Document|
|documents|Array of [Document](../types/Document.md) | Optional|Documents|
|cached\_page|[Page](../types/Page.md) | Optional|Cached page| |cached\_page|[Page](../types/Page.md) | Optional|Cached page|
@ -40,14 +41,14 @@ Web page
### Example: ### Example:
```php ```php
$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'cached_page' => Page]; $webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'documents' => [Document, Document], 'cached_page' => Page];
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
webPage={_='webPage', id=long, url='string', display_url='string', hash=int, type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document, cached_page=Page} webPage={_='webPage', id=long, url='string', display_url='string', hash=int, type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document, documents={Document}, cached_page=Page}
``` ```

View File

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

View File

@ -0,0 +1,46 @@
---
title: account.createTheme
description: Create a theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.createTheme
[Back to methods index](index.md)
Create a theme
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|slug|[string](../types/string.md) | Unique theme ID | Yes|
|title|[string](../types/string.md) | Theme name | Yes|
|document|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Theme file | Optional|
### Return type: [Theme](../types/Theme.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();
$Theme = $MadelineProto->account->createTheme(['slug' => 'string', 'title' => 'string', 'document' => InputDocument, ]);
```
Or, if you're into Lua:
```lua
Theme = account.createTheme({slug='string', title='string', document=InputDocument, })
```

View File

@ -0,0 +1,46 @@
---
title: account.getTheme
description: Get theme information
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.getTheme
[Back to methods index](index.md)
Get theme information
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|format|[string](../types/string.md) | Theme format, a string that identifies the theming engines supported by the client | Yes|
|theme|[InputTheme](../types/InputTheme.md) | Theme | Yes|
|document\_id|[long](../types/long.md) | Document ID | Yes|
### Return type: [Theme](../types/Theme.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();
$Theme = $MadelineProto->account->getTheme(['format' => 'string', 'theme' => InputTheme, 'document_id' => long, ]);
```
Or, if you're into Lua:
```lua
Theme = account.getTheme({format='string', theme=InputTheme, document_id=long, })
```

View File

@ -0,0 +1,45 @@
---
title: account.getThemes
description: Get installed themes
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.getThemes
[Back to methods index](index.md)
Get installed themes
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|format|[string](../types/string.md) | Theme format, a string that identifies the theming engines supported by the client | Yes|
|hash|Array of [int](../types/int.md) | Hash for pagination | Optional|
### Return type: [account\_Themes](../types/account_Themes.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();
$account_Themes = $MadelineProto->account->getThemes(['format' => 'string', 'hash' => [int, int], ]);
```
Or, if you're into Lua:
```lua
account_Themes = account.getThemes({format='string', hash={int}, })
```

View File

@ -0,0 +1,46 @@
---
title: account.installTheme
description: Install theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.installTheme
[Back to methods index](index.md)
Install theme
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|dark|[Bool](../types/Bool.md) | Whether to install the dark version | Optional|
|format|[string](../types/string.md) | Format | Optional|
|theme|[InputTheme](../types/InputTheme.md) | Theme to install | 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->account->installTheme(['dark' => Bool, 'format' => 'string', 'theme' => InputTheme, ]);
```
Or, if you're into Lua:
```lua
Bool = account.installTheme({dark=Bool, format='string', theme=InputTheme, })
```

View File

@ -0,0 +1,43 @@
---
title: account.saveTheme
description: account.saveTheme parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.saveTheme
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|theme|[InputTheme](../types/InputTheme.md) | Yes|
|unsave|[Bool](../types/Bool.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->account->saveTheme(['theme' => InputTheme, 'unsave' => Bool, ]);
```
Or, if you're into Lua:
```lua
Bool = account.saveTheme({theme=InputTheme, unsave=Bool, })
```

View File

@ -0,0 +1,48 @@
---
title: account.updateTheme
description: Update theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.updateTheme
[Back to methods index](index.md)
Update theme
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|format|[string](../types/string.md) | Theme format, a string that identifies the theming engines supported by the client | Yes|
|theme|[InputTheme](../types/InputTheme.md) | Theme to update | Yes|
|slug|[string](../types/string.md) | Unique theme ID | Optional|
|title|[string](../types/string.md) | Theme name | Optional|
|document|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Theme file | Optional|
### Return type: [Theme](../types/Theme.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();
$Theme = $MadelineProto->account->updateTheme(['format' => 'string', 'theme' => InputTheme, 'slug' => 'string', 'title' => 'string', 'document' => InputDocument, ]);
```
Or, if you're into Lua:
```lua
Theme = account.updateTheme({format='string', theme=InputTheme, slug='string', title='string', document=InputDocument, })
```

View File

@ -0,0 +1,47 @@
---
title: account.uploadTheme
description: Upload theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.uploadTheme
[Back to methods index](index.md)
Upload theme
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|file|[File path or InputFile](../types/InputFile.md) | File | Yes|
|thumb|[File path or InputFile](../types/InputFile.md) | Thumb | Optional|
|file\_name|[string](../types/string.md) | File name | Yes|
|mime\_type|[string](../types/string.md) | Mime type | Yes|
### Return type: [Document](../types/Document.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();
$Document = $MadelineProto->account->uploadTheme(['file' => InputFile, 'thumb' => InputFile, 'file_name' => 'string', 'mime_type' => 'string', ]);
```
Or, if you're into Lua:
```lua
Document = account.uploadTheme({file=InputFile, thumb=InputFile, file_name='string', mime_type='string', })
```

View File

@ -48,6 +48,8 @@ $MadelineProto->[account->confirmPasswordEmail](account_confirmPasswordEmail.md)
$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_confirmPhone"></a> $MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_confirmPhone"></a>
$MadelineProto->[account->createTheme](account_createTheme.md)(\['slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), \]) === [$Theme](../types/Theme.md)<a name="account_createTheme"></a>
$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_deleteAccount"></a> $MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_deleteAccount"></a>
$MadelineProto->[account->deleteSecureValue](account_deleteSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Bool](../types/Bool.md)<a name="account_deleteSecureValue"></a> $MadelineProto->[account->deleteSecureValue](account_deleteSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Bool](../types/Bool.md)<a name="account_deleteSecureValue"></a>
@ -78,6 +80,10 @@ $MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPr
$MadelineProto->[account->getSecureValue](account_getSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Vector\_of\_SecureValue](../types/SecureValue.md)<a name="account_getSecureValue"></a> $MadelineProto->[account->getSecureValue](account_getSecureValue.md)(\['types' => \[[SecureValueType](../types/SecureValueType.md)\], \]) === [$Vector\_of\_SecureValue](../types/SecureValue.md)<a name="account_getSecureValue"></a>
$MadelineProto->[account->getTheme](account_getTheme.md)(\['format' => [string](../types/string.md), 'theme' => [InputTheme](../types/InputTheme.md), 'document_id' => [long](../types/long.md), \]) === [$Theme](../types/Theme.md)<a name="account_getTheme"></a>
$MadelineProto->[account->getThemes](account_getThemes.md)(\['format' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$account\_Themes](../types/account_Themes.md)<a name="account_getThemes"></a>
$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md)<a name="account_getTmpPassword"></a> $MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md)<a name="account_getTmpPassword"></a>
$MadelineProto->[account->getWallPaper](account_getWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_getWallPaper"></a> $MadelineProto->[account->getWallPaper](account_getWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_getWallPaper"></a>
@ -88,6 +94,8 @@ $MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)
$MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['contacts' => [Bool](../types/Bool.md), 'message_users' => [Bool](../types/Bool.md), 'message_chats' => [Bool](../types/Bool.md), 'message_megagroups' => [Bool](../types/Bool.md), 'message_channels' => [Bool](../types/Bool.md), 'files' => [Bool](../types/Bool.md), 'file_max_size' => [int](../types/int.md), \]) === [$account\_Takeout](../types/account_Takeout.md)<a name="account_initTakeoutSession"></a> $MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['contacts' => [Bool](../types/Bool.md), 'message_users' => [Bool](../types/Bool.md), 'message_chats' => [Bool](../types/Bool.md), 'message_megagroups' => [Bool](../types/Bool.md), 'message_channels' => [Bool](../types/Bool.md), 'files' => [Bool](../types/Bool.md), 'file_max_size' => [int](../types/int.md), \]) === [$account\_Takeout](../types/account_Takeout.md)<a name="account_initTakeoutSession"></a>
$MadelineProto->[account->installTheme](account_installTheme.md)(\['dark' => [Bool](../types/Bool.md), 'format' => [string](../types/string.md), 'theme' => [InputTheme](../types/InputTheme.md), \]) === [$Bool](../types/Bool.md)<a name="account_installTheme"></a>
$MadelineProto->[account->installWallPaper](account_installWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_installWallPaper"></a> $MadelineProto->[account->installWallPaper](account_installWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_installWallPaper"></a>
$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['no_muted' => [Bool](../types/Bool.md), 'token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'secret' => [bytes](../types/bytes.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="account_registerDevice"></a> $MadelineProto->[account->registerDevice](account_registerDevice.md)(\['no_muted' => [Bool](../types/Bool.md), 'token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'secret' => [bytes](../types/bytes.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="account_registerDevice"></a>
@ -110,6 +118,8 @@ $MadelineProto->[account->saveAutoDownloadSettings](account_saveAutoDownloadSett
$MadelineProto->[account->saveSecureValue](account_saveSecureValue.md)(\['value' => [InputSecureValue](../types/InputSecureValue.md), 'secure_secret_id' => [long](../types/long.md), \]) === [$SecureValue](../types/SecureValue.md)<a name="account_saveSecureValue"></a> $MadelineProto->[account->saveSecureValue](account_saveSecureValue.md)(\['value' => [InputSecureValue](../types/InputSecureValue.md), 'secure_secret_id' => [long](../types/long.md), \]) === [$SecureValue](../types/SecureValue.md)<a name="account_saveSecureValue"></a>
$MadelineProto->[account->saveTheme](account_saveTheme.md)(\['theme' => [InputTheme](../types/InputTheme.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account_saveTheme"></a>
$MadelineProto->[account->saveWallPaper](account_saveWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'unsave' => [Bool](../types/Bool.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_saveWallPaper"></a> $MadelineProto->[account->saveWallPaper](account_saveWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'unsave' => [Bool](../types/Bool.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_saveWallPaper"></a>
$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendChangePhoneCode"></a> $MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendChangePhoneCode"></a>
@ -138,8 +148,12 @@ $MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name
$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account_updateStatus"></a> $MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account_updateStatus"></a>
$MadelineProto->[account->updateTheme](account_updateTheme.md)(\['format' => [string](../types/string.md), 'theme' => [InputTheme](../types/InputTheme.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), \]) === [$Theme](../types/Theme.md)<a name="account_updateTheme"></a>
$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_updateUsername"></a> $MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_updateUsername"></a>
$MadelineProto->[account->uploadTheme](account_uploadTheme.md)(\['file' => [InputFile](../types/InputFile.md), 'thumb' => [InputFile](../types/InputFile.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md)<a name="account_uploadTheme"></a>
$MadelineProto->[account->uploadWallPaper](account_uploadWallPaper.md)(\['file' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_uploadWallPaper"></a> $MadelineProto->[account->uploadWallPaper](account_uploadWallPaper.md)(\['file' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_uploadWallPaper"></a>
$MadelineProto->[account->verifyEmail](account_verifyEmail.md)(\['email' => [string](../types/string.md), 'code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_verifyEmail"></a> $MadelineProto->[account->verifyEmail](account_verifyEmail.md)(\['email' => [string](../types/string.md), 'code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_verifyEmail"></a>
@ -402,6 +416,8 @@ $MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_cle
$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_deleteMessages"></a> $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_deleteMessages"></a>
$MadelineProto->[messages->deleteScheduledMessages](messages_deleteScheduledMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_deleteScheduledMessages"></a>
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a> $MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatAbout](messages_editChatAbout.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="messages_editChatAbout"></a> $MadelineProto->[messages->editChatAbout](messages_editChatAbout.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="messages_editChatAbout"></a>
@ -416,13 +432,13 @@ $MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id'
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)<a name="messages_editInlineBotMessage"></a> $MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md)<a name="messages_editInlineBotMessage"></a>
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_editMessage"></a> $MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editMessage"></a>
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a> $MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_faveSticker"></a> $MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_faveSticker"></a>
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a> $MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a>
$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getAllChats"></a> $MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getAllChats"></a>
@ -494,6 +510,10 @@ $MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['
$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md)<a name="messages_getSavedGifs"></a> $MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md)<a name="messages_getSavedGifs"></a>
$MadelineProto->[messages->getScheduledHistory](messages_getScheduledHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getScheduledHistory"></a>
$MadelineProto->[messages->getScheduledMessages](messages_getScheduledMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getScheduledMessages"></a>
$MadelineProto->[messages->getSearchCounters](messages_getSearchCounters.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'filters' => \[[MessagesFilter](../types/MessagesFilter.md)\], \]) === [$Vector\_of\_messages\_SearchCounter](../types/messages_SearchCounter.md)<a name="messages_getSearchCounters"></a> $MadelineProto->[messages->getSearchCounters](messages_getSearchCounters.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'filters' => \[[MessagesFilter](../types/MessagesFilter.md)\], \]) === [$Vector\_of\_messages\_SearchCounter](../types/messages_SearchCounter.md)<a name="messages_getSearchCounters"></a>
$MadelineProto->[messages->getSplitRanges](messages_getSplitRanges.md)(\[\]) === [$Vector\_of\_MessageRange](../types/MessageRange.md)<a name="messages_getSplitRanges"></a> $MadelineProto->[messages->getSplitRanges](messages_getSplitRanges.md)(\[\]) === [$Vector\_of\_MessageRange](../types/MessageRange.md)<a name="messages_getSplitRanges"></a>
@ -568,13 +588,15 @@ $MadelineProto->[messages->sendEncryptedFile](messages_sendEncryptedFile.md)(\['
$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedService"></a> $MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedService"></a>
$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'hide_via' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendInlineBotResult"></a> $MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'hide_via' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendInlineBotResult"></a>
$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_sendMedia"></a> $MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendMedia"></a>
$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_sendMessage"></a> $MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendMessage"></a>
$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_sendMultiMedia"></a> $MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], 'schedule_date' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendMultiMedia"></a>
$MadelineProto->[messages->sendScheduledMessages](messages_sendScheduledMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_sendScheduledMessages"></a>
$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendScreenshotNotification"></a> $MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_sendScreenshotNotification"></a>

View File

@ -41,6 +41,7 @@ Bool = auth.resetAuthorizations({})
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|406|FRESH_RESET_AUTHORISATION_FORBIDDEN|You can't logout other sessions if less than 24 hours have passed since you logged on the current session|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -48,5 +48,6 @@ Updates = channels.deleteChannel({channel=InputChannel, })
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = channels.deleteHistory({channel=InputChannel, max_id=int, }) Bool = channels.deleteHistory({channel=InputChannel, max_id=int, })
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|

View File

@ -53,5 +53,6 @@ Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_r
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USER_ADMIN_INVALID|You're not an admin| |400|USER_ADMIN_INVALID|You're not an admin|
|400|USER_ID_INVALID|The provided user ID is invalid| |400|USER_ID_INVALID|The provided user ID is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -50,5 +50,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|

View File

@ -52,6 +52,7 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_INVALID|Invalid chat|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_BLOCKED|User blocked| |400|USER_BLOCKED|User blocked|
@ -63,5 +64,6 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| |403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|-503|Timeout|Timeout while fetching data|

View File

@ -19,7 +19,7 @@ Toggle slow mode
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
### Can bots use this method: **YES** ### Can bots use this method: **NO**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)): ### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
@ -43,3 +43,13 @@ Or, if you're into Lua:
Updates = channels.toggleSlowMode({channel=InputChannel, seconds=int, }) Updates = channels.toggleSlowMode({channel=InputChannel, seconds=int, })
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|INPUT_METHOD_INVALID_1192227_X|Invalid method|
|400|INPUT_METHOD_INVALID_1604042050_X|Invalid method|
|400|SECONDS_INVALID|Invalid duration provided|

View File

@ -48,9 +48,12 @@ Bool = channels.updateUsername({channel=InputChannel, username='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_INVALID|The provided username is not valid|
|400|USERNAME_NOT_MODIFIED|The username was not modified|
|400|USERNAME_OCCUPIED|The provided username is already occupied| |400|USERNAME_OCCUPIED|The provided username is already occupied|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -37,3 +37,10 @@ Or, if you're into Lua:
Vector_of_SavedContact = contacts.getSaved({}) Vector_of_SavedContact = contacts.getSaved({})
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -108,6 +108,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="messages_createChat.html" name="messages_createChat">Create a chat (not supergroup): messages.createChat</a> * <a href="messages_createChat.html" name="messages_createChat">Create a chat (not supergroup): messages.createChat</a>
* <a href="account_createTheme.html" name="account_createTheme">Create a theme: account.createTheme</a>
* <a href="channels_createChannel.html" name="channels_createChannel">Create channel/supergroup: channels.createChannel</a> * <a href="channels_createChannel.html" name="channels_createChannel">Create channel/supergroup: channels.createChannel</a>
* <a href="stickers_createStickerSet.html" name="stickers_createStickerSet">Create stickerset: stickers.createStickerSet</a> * <a href="stickers_createStickerSet.html" name="stickers_createStickerSet">Create stickerset: stickers.createStickerSet</a>
@ -140,6 +142,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a> * <a href="photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a>
* <a href="messages_deleteScheduledMessages.html" name="messages_deleteScheduledMessages">Delete scheduled messages: messages.deleteScheduledMessages</a>
* <a href="account_deleteSecureValue.html" name="account_deleteSecureValue">Delete secure telegram passport value: account.deleteSecureValue</a> * <a href="account_deleteSecureValue.html" name="account_deleteSecureValue">Delete secure telegram passport value: account.deleteSecureValue</a>
* <a href="channels_deleteHistory.html" name="channels_deleteHistory">Delete the history of a supergroup/channel: channels.deleteHistory</a> * <a href="channels_deleteHistory.html" name="channels_deleteHistory">Delete the history of a supergroup/channel: channels.deleteHistory</a>
@ -276,6 +280,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="help_getProxyData.html" name="help_getProxyData">Get information about the current proxy: help.getProxyData</a> * <a href="help_getProxyData.html" name="help_getProxyData">Get information about the current proxy: help.getProxyData</a>
* <a href="account_getThemes.html" name="account_getThemes">Get installed themes: account.getThemes</a>
* <a href="help_getInviteText.html" name="help_getInviteText">Get invitation text: help.getInviteText</a> * <a href="help_getInviteText.html" name="help_getInviteText">Get invitation text: help.getInviteText</a>
* <a href="langpack_getStrings.html" name="langpack_getStrings">Get language pack strings: langpack.getStrings</a> * <a href="langpack_getStrings.html" name="langpack_getStrings">Get language pack strings: langpack.getStrings</a>
@ -332,6 +338,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a> * <a href="payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a>
* <a href="messages_getScheduledHistory.html" name="messages_getScheduledHistory">Get scheduled history: messages.getScheduledHistory</a>
* <a href="messages_getScheduledMessages.html" name="messages_getScheduledMessages">Get scheduled messages: messages.getScheduledMessages</a>
* <a href="messages_getSearchCounters.html" name="messages_getSearchCounters">Get search counter: messages.getSearchCounters</a> * <a href="messages_getSearchCounters.html" name="messages_getSearchCounters">Get search counter: messages.getSearchCounters</a>
* <a href="account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a> * <a href="account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a>
@ -364,6 +374,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="messages_getPeerSettings.html" name="messages_getPeerSettings">Get the settings of apeer: messages.getPeerSettings</a> * <a href="messages_getPeerSettings.html" name="messages_getPeerSettings">Get the settings of apeer: messages.getPeerSettings</a>
* <a href="account_getTheme.html" name="account_getTheme">Get theme information: account.getTheme</a>
* <a href="messages_getUnreadMentions.html" name="messages_getUnreadMentions">Get unread mentions: messages.getUnreadMentions</a> * <a href="messages_getUnreadMentions.html" name="messages_getUnreadMentions">Get unread mentions: messages.getUnreadMentions</a>
* <a href="help_getTermsOfServiceUpdate.html" name="help_getTermsOfServiceUpdate">Get updated TOS: help.getTermsOfServiceUpdate</a> * <a href="help_getTermsOfServiceUpdate.html" name="help_getTermsOfServiceUpdate">Get updated TOS: help.getTermsOfServiceUpdate</a>
@ -386,6 +398,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a> * <a href="initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a>
* <a href="account_installTheme.html" name="account_installTheme">Install theme: account.installTheme</a>
* <a href="account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a> * <a href="account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a>
* <a href="auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a> * <a href="auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a>
@ -512,6 +526,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="account_sendVerifyPhoneCode.html" name="account_sendVerifyPhoneCode">Send phone verification code: account.sendVerifyPhoneCode</a> * <a href="account_sendVerifyPhoneCode.html" name="account_sendVerifyPhoneCode">Send phone verification code: account.sendVerifyPhoneCode</a>
* <a href="messages_sendScheduledMessages.html" name="messages_sendScheduledMessages">Send scheduled messages: messages.sendScheduledMessages</a>
* <a href="messages_sendScreenshotNotification.html" name="messages_sendScreenshotNotification">Send screenshot notification: messages.sendScreenshotNotification</a> * <a href="messages_sendScreenshotNotification.html" name="messages_sendScreenshotNotification">Send screenshot notification: messages.sendScreenshotNotification</a>
* <a href="messages_setEncryptedTyping.html" name="messages_setEncryptedTyping">Send typing notification to secret chat: messages.setEncryptedTyping</a> * <a href="messages_setEncryptedTyping.html" name="messages_setEncryptedTyping">Send typing notification to secret chat: messages.setEncryptedTyping</a>
@ -562,6 +578,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="channels_updateUsername.html" name="channels_updateUsername">Update the username of a supergroup/channel: channels.updateUsername</a> * <a href="channels_updateUsername.html" name="channels_updateUsername">Update the username of a supergroup/channel: channels.updateUsername</a>
* <a href="account_updateTheme.html" name="account_updateTheme">Update theme: account.updateTheme</a>
* <a href="account_updateUsername.html" name="account_updateUsername">Update this user's username: account.updateUsername</a> * <a href="account_updateUsername.html" name="account_updateUsername">Update this user's username: account.updateUsername</a>
* <a href="messages_uploadMedia.html" name="messages_uploadMedia">Upload a file without sending it to anyone: messages.uploadMedia</a> * <a href="messages_uploadMedia.html" name="messages_uploadMedia">Upload a file without sending it to anyone: messages.uploadMedia</a>
@ -570,6 +588,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a> * <a href="photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a>
* <a href="account_uploadTheme.html" name="account_uploadTheme">Upload theme: account.uploadTheme</a>
* <a href="account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a> * <a href="account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a>
* <a href="auth_sendCode.html" name="auth_sendCode">Use phone_login instead: auth.sendCode</a> * <a href="auth_sendCode.html" name="auth_sendCode">Use phone_login instead: auth.sendCode</a>

View File

@ -47,6 +47,7 @@ Updates = messages.createChat({users={InputUser}, title='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -0,0 +1,45 @@
---
title: messages.deleteScheduledMessages
description: Delete scheduled messages
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.deleteScheduledMessages
[Back to methods index](index.md)
Delete scheduled messages
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional|
|id|Array of [int](../types/int.md) | ID | Yes|
### Return type: [Updates](../types/Updates.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();
$Updates = $MadelineProto->messages->deleteScheduledMessages(['peer' => InputPeer, 'id' => [int, int], ]);
```
Or, if you're into Lua:
```lua
Updates = messages.deleteScheduledMessages({peer=InputPeer, id={int}, })
```

View File

@ -21,6 +21,7 @@ Edit a message
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | The new keyboard | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | The new keyboard | Optional|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | The new entities (for styled text) | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | The new entities (for styled text) | Optional|
|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | |parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional |
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -40,13 +41,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'media' => InputMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'media' => InputMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message='string', media=InputMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message='string', media=InputMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', schedule_date=int, })
``` ```

View File

@ -20,6 +20,7 @@ Forward messages
|from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | From where to forward the messages | Optional| |from\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | From where to forward the messages | Optional|
|id|Array of [int](../types/int.md) | The message IDs | Yes| |id|Array of [int](../types/int.md) | The message IDs | Yes|
|to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to forward the messages | Optional| |to\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to forward the messages | Optional|
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -39,13 +40,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=Bool, grouped=Bool, from_peer=InputPeer, id={int}, to_peer=InputPeer, }) Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=Bool, grouped=Bool, from_peer=InputPeer, id={int}, to_peer=InputPeer, schedule_date=int, })
``` ```
### Errors ### Errors

View File

@ -48,6 +48,7 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -0,0 +1,45 @@
---
title: messages.getScheduledHistory
description: Get scheduled history
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.getScheduledHistory
[Back to methods index](index.md)
Get scheduled history
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional|
|hash|Array of [int](../types/int.md) | Hash | Optional|
### Return type: [messages\_Messages](../types/messages_Messages.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();
$messages_Messages = $MadelineProto->messages->getScheduledHistory(['peer' => InputPeer, 'hash' => [int, int], ]);
```
Or, if you're into Lua:
```lua
messages_Messages = messages.getScheduledHistory({peer=InputPeer, hash={int}, })
```

View File

@ -0,0 +1,45 @@
---
title: messages.getScheduledMessages
description: Get scheduled messages
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.getScheduledMessages
[Back to methods index](index.md)
Get scheduled messages
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional|
|id|Array of [int](../types/int.md) | ID | Yes|
### Return type: [messages\_Messages](../types/messages_Messages.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();
$messages_Messages = $MadelineProto->messages->getScheduledMessages(['peer' => InputPeer, 'id' => [int, int], ]);
```
Or, if you're into Lua:
```lua
messages_Messages = messages.getScheduledMessages({peer=InputPeer, id={int}, })
```

View File

@ -86,3 +86,10 @@ You can also use normal markdown, note that to create mentions you must use the
``` ```
MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php).
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|MESSAGE_EMPTY|The provided message is empty|

View File

@ -21,6 +21,7 @@ Send inline bot result obtained with messages.getInlineBotResults to the chat
|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional|
|query\_id|[long](../types/long.md) | The inline query ID | Yes| |query\_id|[long](../types/long.md) | The inline query ID | Yes|
|id|[string](../types/string.md) | The ID of one of the inline results | Yes| |id|[string](../types/string.md) | The ID of one of the inline results | Yes|
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -40,13 +41,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'hide_via' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'hide_via' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draft=Bool, hide_via=Bool, peer=InputPeer, reply_to_msg_id=int, query_id=long, id='string', }) Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draft=Bool, hide_via=Bool, peer=InputPeer, reply_to_msg_id=int, query_id=long, id='string', schedule_date=int, })
``` ```
### Errors ### Errors

View File

@ -23,6 +23,7 @@ Send a media
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities for styled text | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities for styled text | Optional|
|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | |parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional |
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -42,13 +43,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', schedule_date=int, })
``` ```
@ -106,6 +107,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|EXTERNAL_URL_INVALID|External URL invalid| |400|EXTERNAL_URL_INVALID|External URL invalid|
|400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|400|FILE_PARTS_INVALID|The number of file parts is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid|
@ -117,6 +119,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots| |400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -23,6 +23,7 @@ Send a message
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Keyboards to send | Optional|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities to send (for styled text) | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Entities to send (for styled text) | Optional|
|parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional | |parse\_mode| [string](../types/string.md) | Whether to parse HTML or Markdown markup in the message| Optional |
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -42,13 +43,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', }) Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, message='string', reply_markup=ReplyMarkup, entities={MessageEntity}, parse_mode='string', schedule_date=int, })
``` ```
@ -112,10 +113,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user| |400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_EMPTY|The provided message is empty|
|400|MESSAGE_TOO_LONG|The provided message is too long| |400|MESSAGE_TOO_LONG|The provided message is too long|
|400|MSG_ID_INVALID|Provided reply_to_msg_id is invalid| |400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
@ -124,6 +126,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|YOU_BLOCKED_USER|You blocked this user| |400|YOU_BLOCKED_USER|You blocked this user|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -19,6 +19,7 @@ Send an album
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the album | Optional| |peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Where to send the album | Optional|
|reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional| |reply\_to\_msg\_id|[int](../types/int.md) | Reply to message by ID | Optional|
|multi\_media|Array of [InputSingleMedia](../types/InputSingleMedia.md) | The album | Yes| |multi\_media|Array of [InputSingleMedia](../types/InputSingleMedia.md) | The album | Yes|
|schedule\_date|[int](../types/int.md) | Schedule date | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)
@ -38,13 +39,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); $Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], 'schedule_date' => int, ]);
``` ```
Or, if you're into Lua: Or, if you're into Lua:
```lua ```lua
Updates = messages.sendMultiMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, multi_media={InputSingleMedia}, }) Updates = messages.sendMultiMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, multi_media={InputSingleMedia}, schedule_date=int, })
``` ```
### Errors ### Errors

View File

@ -0,0 +1,45 @@
---
title: messages.sendScheduledMessages
description: Send scheduled messages
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.sendScheduledMessages
[Back to methods index](index.md)
Send scheduled messages
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Peer | Optional|
|id|Array of [int](../types/int.md) | ID | Yes|
### Return type: [Updates](../types/Updates.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();
$Updates = $MadelineProto->messages->sendScheduledMessages(['peer' => InputPeer, 'id' => [int, int], ]);
```
Or, if you're into Lua:
```lua
Updates = messages.sendScheduledMessages({peer=InputPeer, id={int}, })
```

View File

@ -46,6 +46,7 @@ UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_CROP_SIZE_SMALL|Photo is too small|

View File

@ -52,8 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty|
|400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid|
|400|PINNED_DIALOGS_TOO_MUCH||
|400|RANGES_INVALID|Invalid range provided| |400|RANGES_INVALID|Invalid range provided|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|

View File

@ -18,6 +18,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
### Methods that return an object of this type (methods): ### Methods that return an object of this type (methods):
[$MadelineProto->account->uploadTheme](../methods/account_uploadTheme.md)
[$MadelineProto->messages->getDocumentByHash](../methods/messages_getDocumentByHash.md) [$MadelineProto->messages->getDocumentByHash](../methods/messages_getDocumentByHash.md)

View File

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

View File

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

View File

@ -26,6 +26,8 @@ Describes available privacy settings
[privacyKeyPhoneNumber](../constructors/privacyKeyPhoneNumber.md) [privacyKeyPhoneNumber](../constructors/privacyKeyPhoneNumber.md)
[privacyKeyAddedByPhone](../constructors/privacyKeyAddedByPhone.md)
### Methods that return an object of this type (methods): ### Methods that return an object of this type (methods):

View File

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

View File

@ -0,0 +1,28 @@
---
title: Theme
description: constructors and methods of type Theme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: Theme
[Back to types index](index.md)
### Possible values (constructors):
[themeDocumentNotModified](../constructors/themeDocumentNotModified.md)
[theme](../constructors/theme.md)
### Methods that return an object of this type (methods):
[$MadelineProto->account->createTheme](../methods/account_createTheme.md)
[$MadelineProto->account->updateTheme](../methods/account_updateTheme.md)
[$MadelineProto->account->getTheme](../methods/account_getTheme.md)

View File

@ -154,6 +154,12 @@ Contains notifications about data changes
[updatePeerLocated](../constructors/updatePeerLocated.md) [updatePeerLocated](../constructors/updatePeerLocated.md)
[updateNewScheduledMessage](../constructors/updateNewScheduledMessage.md)
[updateDeleteScheduledMessages](../constructors/updateDeleteScheduledMessages.md)
[updateTheme](../constructors/updateTheme.md)
### Methods that return an object of this type (methods): ### Methods that return an object of this type (methods):

View File

@ -80,6 +80,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->messages->editChatDefaultBannedRights](../methods/messages_editChatDefaultBannedRights.md) [$MadelineProto->messages->editChatDefaultBannedRights](../methods/messages_editChatDefaultBannedRights.md)
[$MadelineProto->messages->sendScheduledMessages](../methods/messages_sendScheduledMessages.md)
[$MadelineProto->messages->deleteScheduledMessages](../methods/messages_deleteScheduledMessages.md)
[$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md) [$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md)
[$MadelineProto->channels->createChannel](../methods/channels_createChannel.md) [$MadelineProto->channels->createChannel](../methods/channels_createChannel.md)

View File

@ -0,0 +1,24 @@
---
title: account_Themes
description: constructors and methods of type account_Themes
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: account\_Themes
[Back to types index](index.md)
### Possible values (constructors):
[account\_themesNotModified](../constructors/account_themesNotModified.md)
[account\_themes](../constructors/account_themes.md)
### Methods that return an object of this type (methods):
[$MadelineProto->account->getThemes](../methods/account_getThemes.md)

View File

@ -203,6 +203,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[InputStickeredMedia](InputStickeredMedia.md)<a name="InputStickeredMedia"></a> [InputStickeredMedia](InputStickeredMedia.md)<a name="InputStickeredMedia"></a>
[InputTheme](InputTheme.md)<a name="InputTheme"></a>
[InputUser](InputUser.md)<a name="InputUser"></a> [InputUser](InputUser.md)<a name="InputUser"></a>
[InputWallPaper](InputWallPaper.md)<a name="InputWallPaper"></a> [InputWallPaper](InputWallPaper.md)<a name="InputWallPaper"></a>
@ -321,6 +323,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[ReportReason](ReportReason.md)<a name="ReportReason"></a> [ReportReason](ReportReason.md)<a name="ReportReason"></a>
[RestrictionReason](RestrictionReason.md)<a name="RestrictionReason"></a>
[RichText](RichText.md)<a name="RichText"></a> [RichText](RichText.md)<a name="RichText"></a>
[SavedContact](SavedContact.md)<a name="SavedContact"></a> [SavedContact](SavedContact.md)<a name="SavedContact"></a>
@ -359,6 +363,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[StickerSetCovered](StickerSetCovered.md)<a name="StickerSetCovered"></a> [StickerSetCovered](StickerSetCovered.md)<a name="StickerSetCovered"></a>
[Theme](Theme.md)<a name="Theme"></a>
[TopPeer](TopPeer.md)<a name="TopPeer"></a> [TopPeer](TopPeer.md)<a name="TopPeer"></a>
[TopPeerCategory](TopPeerCategory.md)<a name="TopPeerCategory"></a> [TopPeerCategory](TopPeerCategory.md)<a name="TopPeerCategory"></a>
@ -411,6 +417,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[account\_Takeout](account_Takeout.md)<a name="account_Takeout"></a> [account\_Takeout](account_Takeout.md)<a name="account_Takeout"></a>
[account\_Themes](account_Themes.md)<a name="account_Themes"></a>
[account\_TmpPassword](account_TmpPassword.md)<a name="account_TmpPassword"></a> [account\_TmpPassword](account_TmpPassword.md)<a name="account_TmpPassword"></a>
[account\_WallPapers](account_WallPapers.md)<a name="account_WallPapers"></a> [account\_WallPapers](account_WallPapers.md)<a name="account_WallPapers"></a>

View File

@ -34,6 +34,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->messages->getRecentLocations](../methods/messages_getRecentLocations.md) [$MadelineProto->messages->getRecentLocations](../methods/messages_getRecentLocations.md)
[$MadelineProto->messages->getScheduledHistory](../methods/messages_getScheduledHistory.md)
[$MadelineProto->messages->getScheduledMessages](../methods/messages_getScheduledMessages.md)
[$MadelineProto->channels->getMessages](../methods/channels_getMessages.md) [$MadelineProto->channels->getMessages](../methods/channels_getMessages.md)

View File

@ -219,6 +219,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getContactSignUpNotification.html" name="account_getContactSignUpNotification">Contact signup notification setting value: account.getContactSignUpNotification</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getContactSignUpNotification.html" name="account_getContactSignUpNotification">Contact signup notification setting value: account.getContactSignUpNotification</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_migrateChat.html" name="messages_migrateChat">Convert chat to supergroup: messages.migrateChat</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_migrateChat.html" name="messages_migrateChat">Convert chat to supergroup: messages.migrateChat</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_createChat.html" name="messages_createChat">Create a chat (not supergroup): messages.createChat</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_createChat.html" name="messages_createChat">Create a chat (not supergroup): messages.createChat</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_createTheme.html" name="account_createTheme">Create a theme: account.createTheme</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_createChannel.html" name="channels_createChannel">Create channel/supergroup: channels.createChannel</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_createChannel.html" name="channels_createChannel">Create channel/supergroup: channels.createChannel</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers_createStickerSet.html" name="stickers_createStickerSet">Create stickerset: stickers.createStickerSet</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers_createStickerSet.html" name="stickers_createStickerSet">Create stickerset: stickers.createStickerSet</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_resetAuthorization.html" name="account_resetAuthorization">Delete a certain session: account.resetAuthorization</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_resetAuthorization.html" name="account_resetAuthorization">Delete a certain session: account.resetAuthorization</a>
@ -235,6 +236,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_deleteMessages.html" name="messages_deleteMessages">Delete messages: messages.deleteMessages</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_deleteMessages.html" name="messages_deleteMessages">Delete messages: messages.deleteMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_deleteContacts.html" name="contacts_deleteContacts">Delete multiple contacts: contacts.deleteContacts</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_deleteContacts.html" name="contacts_deleteContacts">Delete multiple contacts: contacts.deleteContacts</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_deleteScheduledMessages.html" name="messages_deleteScheduledMessages">Delete scheduled messages: messages.deleteScheduledMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_deleteSecureValue.html" name="account_deleteSecureValue">Delete secure telegram passport value: account.deleteSecureValue</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_deleteSecureValue.html" name="account_deleteSecureValue">Delete secure telegram passport value: account.deleteSecureValue</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_deleteHistory.html" name="channels_deleteHistory">Delete the history of a supergroup/channel: channels.deleteHistory</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_deleteHistory.html" name="channels_deleteHistory">Delete the history of a supergroup/channel: channels.deleteHistory</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_deleteAccount.html" name="account_deleteAccount">Delete this account: account.deleteAccount</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_deleteAccount.html" name="account_deleteAccount">Delete this account: account.deleteAccount</a>
@ -303,6 +305,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users_getUsers.html" name="users_getUsers">Get info about users: users.getUsers</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/users_getUsers.html" name="users_getUsers">Get info about users: users.getUsers</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getSupport.html" name="help_getSupport">Get info of support user: help.getSupport</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getSupport.html" name="help_getSupport">Get info of support user: help.getSupport</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getProxyData.html" name="help_getProxyData">Get information about the current proxy: help.getProxyData</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getProxyData.html" name="help_getProxyData">Get information about the current proxy: help.getProxyData</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getThemes.html" name="account_getThemes">Get installed themes: account.getThemes</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getInviteText.html" name="help_getInviteText">Get invitation text: help.getInviteText</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getInviteText.html" name="help_getInviteText">Get invitation text: help.getInviteText</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/langpack_getStrings.html" name="langpack_getStrings">Get language pack strings: langpack.getStrings</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/langpack_getStrings.html" name="langpack_getStrings">Get language pack strings: langpack.getStrings</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/langpack_getDifference.html" name="langpack_getDifference">Get language pack updates: langpack.getDifference</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/langpack_getDifference.html" name="langpack_getDifference">Get language pack updates: langpack.getDifference</a>
@ -331,6 +334,8 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_getSaved.html" name="contacts_getSaved">Get saved contacts: contacts.getSaved</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_getSaved.html" name="contacts_getSaved">Get saved contacts: contacts.getSaved</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSavedGifs.html" name="messages_getSavedGifs">Get saved gifs: messages.getSavedGifs</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSavedGifs.html" name="messages_getSavedGifs">Get saved gifs: messages.getSavedGifs</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getScheduledHistory.html" name="messages_getScheduledHistory">Get scheduled history: messages.getScheduledHistory</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getScheduledMessages.html" name="messages_getScheduledMessages">Get scheduled messages: messages.getScheduledMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSearchCounters.html" name="messages_getSearchCounters">Get search counter: messages.getSearchCounters</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSearchCounters.html" name="messages_getSearchCounters">Get search counter: messages.getSearchCounters</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getConfig.html" name="help_getConfig">Get server configuration: help.getConfig</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getConfig.html" name="help_getConfig">Get server configuration: help.getConfig</a>
@ -347,6 +352,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_exportMessageLink.html" name="channels_exportMessageLink">Get the link of a message in a channel: channels.exportMessageLink</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_exportMessageLink.html" name="channels_exportMessageLink">Get the link of a message in a channel: channels.exportMessageLink</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_getUserPhotos.html" name="photos_getUserPhotos">Get the profile photos of a user: photos.getUserPhotos</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_getUserPhotos.html" name="photos_getUserPhotos">Get the profile photos of a user: photos.getUserPhotos</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getPeerSettings.html" name="messages_getPeerSettings">Get the settings of apeer: messages.getPeerSettings</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getPeerSettings.html" name="messages_getPeerSettings">Get the settings of apeer: messages.getPeerSettings</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getTheme.html" name="account_getTheme">Get theme information: account.getTheme</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getUnreadMentions.html" name="messages_getUnreadMentions">Get unread mentions: messages.getUnreadMentions</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getUnreadMentions.html" name="messages_getUnreadMentions">Get unread mentions: messages.getUnreadMentions</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getTermsOfServiceUpdate.html" name="help_getTermsOfServiceUpdate">Get updated TOS: help.getTermsOfServiceUpdate</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getTermsOfServiceUpdate.html" name="help_getTermsOfServiceUpdate">Get updated TOS: help.getTermsOfServiceUpdate</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getUserInfo.html" name="help_getUserInfo">Get user info: help.getUserInfo</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getUserInfo.html" name="help_getUserInfo">Get user info: help.getUserInfo</a>
@ -358,6 +364,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_hidePeerSettingsBar.html" name="messages_hidePeerSettingsBar">Hide peer settings bar: messages.hidePeerSettingsBar</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_hidePeerSettingsBar.html" name="messages_hidePeerSettingsBar">Hide peer settings bar: messages.hidePeerSettingsBar</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_importChatInvite.html" name="messages_importChatInvite">Import chat invite: messages.importChatInvite</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_importChatInvite.html" name="messages_importChatInvite">Import chat invite: messages.importChatInvite</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_installTheme.html" name="account_installTheme">Install theme: account.installTheme</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/invokeWithTakeout.html" name="invokeWithTakeout">Invoke method from takeout session: invokeWithTakeout</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/invokeWithTakeout.html" name="invokeWithTakeout">Invoke method from takeout session: invokeWithTakeout</a>
@ -421,6 +428,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendInlineBotResult.html" name="messages_sendInlineBotResult">Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendInlineBotResult.html" name="messages_sendInlineBotResult">Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendEncrypted.html" name="messages_sendEncrypted">Send message to secret chat: messages.sendEncrypted</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendEncrypted.html" name="messages_sendEncrypted">Send message to secret chat: messages.sendEncrypted</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_sendVerifyPhoneCode.html" name="account_sendVerifyPhoneCode">Send phone verification code: account.sendVerifyPhoneCode</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_sendVerifyPhoneCode.html" name="account_sendVerifyPhoneCode">Send phone verification code: account.sendVerifyPhoneCode</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendScheduledMessages.html" name="messages_sendScheduledMessages">Send scheduled messages: messages.sendScheduledMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendScreenshotNotification.html" name="messages_sendScreenshotNotification">Send screenshot notification: messages.sendScreenshotNotification</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendScreenshotNotification.html" name="messages_sendScreenshotNotification">Send screenshot notification: messages.sendScreenshotNotification</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_setEncryptedTyping.html" name="messages_setEncryptedTyping">Send typing notification to secret chat: messages.setEncryptedTyping</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_setEncryptedTyping.html" name="messages_setEncryptedTyping">Send typing notification to secret chat: messages.setEncryptedTyping</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendVote.html" name="messages_sendVote">Send vote: messages.sendVote</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_sendVote.html" name="messages_sendVote">Send vote: messages.sendVote</a>
@ -446,10 +454,12 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_updatePinnedMessage.html" name="messages_updatePinnedMessage">Update pinned message: messages.updatePinnedMessage</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_updatePinnedMessage.html" name="messages_updatePinnedMessage">Update pinned message: messages.updatePinnedMessage</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateProfile.html" name="account_updateProfile">Update profile info: account.updateProfile</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateProfile.html" name="account_updateProfile">Update profile info: account.updateProfile</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_updateUsername.html" name="channels_updateUsername">Update the username of a supergroup/channel: channels.updateUsername</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_updateUsername.html" name="channels_updateUsername">Update the username of a supergroup/channel: channels.updateUsername</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateTheme.html" name="account_updateTheme">Update theme: account.updateTheme</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateUsername.html" name="account_updateUsername">Update this user's username: account.updateUsername</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateUsername.html" name="account_updateUsername">Update this user's username: account.updateUsername</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_uploadMedia.html" name="messages_uploadMedia">Upload a file without sending it to anyone: messages.uploadMedia</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_uploadMedia.html" name="messages_uploadMedia">Upload a file without sending it to anyone: messages.uploadMedia</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_uploadEncryptedFile.html" name="messages_uploadEncryptedFile">Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_uploadEncryptedFile.html" name="messages_uploadEncryptedFile">Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_uploadTheme.html" name="account_uploadTheme">Upload theme: account.uploadTheme</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_sendCode.html" name="auth_sendCode">Use phone_login instead: auth.sendCode</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_sendCode.html" name="auth_sendCode">Use phone_login instead: auth.sendCode</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_recoverPassword.html" name="auth_recoverPassword">Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_recoverPassword.html" name="auth_recoverPassword">Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword</a>

View File

@ -41,6 +41,7 @@ Bool = auth.resetAuthorizations({})
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|406|FRESH_RESET_AUTHORISATION_FORBIDDEN|You can't logout other sessions if less than 24 hours have passed since you logged on the current session|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -48,5 +48,6 @@ Updates = channels.deleteChannel({channel=InputChannel, })
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = channels.deleteHistory({channel=InputChannel, max_id=int, }) Bool = channels.deleteHistory({channel=InputChannel, max_id=int, })
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|

View File

@ -53,5 +53,6 @@ Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_r
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USER_ADMIN_INVALID|You're not an admin| |400|USER_ADMIN_INVALID|You're not an admin|
|400|USER_ID_INVALID|The provided user ID is invalid| |400|USER_ID_INVALID|The provided user ID is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -50,5 +50,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|

View File

@ -52,6 +52,7 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_INVALID|Invalid chat|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_BLOCKED|User blocked| |400|USER_BLOCKED|User blocked|
@ -63,5 +64,6 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| |403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|-503|Timeout|Timeout while fetching data|

View File

@ -48,9 +48,12 @@ Bool = channels.updateUsername({channel=InputChannel, username='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_INVALID|The provided username is not valid|
|400|USERNAME_NOT_MODIFIED|The username was not modified|
|400|USERNAME_OCCUPIED|The provided username is already occupied| |400|USERNAME_OCCUPIED|The provided username is already occupied|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -37,3 +37,10 @@ Or, if you're into Lua:
Vector_of_SavedContact = contacts.getSaved({}) Vector_of_SavedContact = contacts.getSaved({})
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -47,6 +47,7 @@ Updates = messages.createChat({users={InputUser}, title='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -48,6 +48,7 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -86,3 +86,10 @@ You can also use normal markdown, note that to create mentions you must use the
``` ```
MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php).
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|MESSAGE_EMPTY|The provided message is empty|

View File

@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|EXTERNAL_URL_INVALID|External URL invalid| |400|EXTERNAL_URL_INVALID|External URL invalid|
|400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|400|FILE_PARTS_INVALID|The number of file parts is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid|
@ -117,6 +118,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots| |400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -112,10 +112,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user| |400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_EMPTY|The provided message is empty|
|400|MESSAGE_TOO_LONG|The provided message is too long| |400|MESSAGE_TOO_LONG|The provided message is too long|
|400|MSG_ID_INVALID|Provided reply_to_msg_id is invalid| |400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
@ -124,6 +125,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|YOU_BLOCKED_USER|You blocked this user| |400|YOU_BLOCKED_USER|You blocked this user|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -46,6 +46,7 @@ UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_CROP_SIZE_SMALL|Photo is too small|

View File

@ -52,8 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty|
|400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid|
|400|PINNED_DIALOGS_TOO_MUCH||
|400|RANGES_INVALID|Invalid range provided| |400|RANGES_INVALID|Invalid range provided|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|

View File

@ -41,6 +41,7 @@ Bool = auth.resetAuthorizations({})
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|406|FRESH_RESET_AUTHORISATION_FORBIDDEN|You can't logout other sessions if less than 24 hours have passed since you logged on the current session|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -48,5 +48,6 @@ Updates = channels.deleteChannel({channel=InputChannel, })
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = channels.deleteHistory({channel=InputChannel, max_id=int, }) Bool = channels.deleteHistory({channel=InputChannel, max_id=int, })
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|

View File

@ -53,5 +53,6 @@ Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_r
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USER_ADMIN_INVALID|You're not an admin| |400|USER_ADMIN_INVALID|You're not an admin|
|400|USER_ID_INVALID|The provided user ID is invalid| |400|USER_ID_INVALID|The provided user ID is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -50,5 +50,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|

View File

@ -52,6 +52,7 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_INVALID|Invalid chat|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_BLOCKED|User blocked| |400|USER_BLOCKED|User blocked|
@ -63,5 +64,6 @@ Updates = channels.inviteToChannel({channel=InputChannel, users={InputUser}, })
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |403|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| |403|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|-503|Timeout|Timeout while fetching data|

View File

@ -48,9 +48,12 @@ Bool = channels.updateUsername({channel=InputChannel, username='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |400|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_INVALID|The provided username is not valid|
|400|USERNAME_NOT_MODIFIED|The username was not modified|
|400|USERNAME_OCCUPIED|The provided username is already occupied| |400|USERNAME_OCCUPIED|The provided username is already occupied|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -37,3 +37,10 @@ Or, if you're into Lua:
Vector_of_SavedContact = contacts.getSaved({}) Vector_of_SavedContact = contacts.getSaved({})
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -47,6 +47,7 @@ Updates = messages.createChat({users={InputUser}, title='string', })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -48,6 +48,7 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -86,3 +86,10 @@ You can also use normal markdown, note that to create mentions you must use the
``` ```
MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php). MadelineProto supports all html entities supported by [html_entity_decode](http://php.net/manual/en/function.html-entity-decode.php).
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|MESSAGE_EMPTY|The provided message is empty|

View File

@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|EXTERNAL_URL_INVALID|External URL invalid| |400|EXTERNAL_URL_INVALID|External URL invalid|
|400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |400|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|400|FILE_PARTS_INVALID|The number of file parts is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid|
@ -117,6 +118,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots| |400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -112,10 +112,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|CHAT_ID_INVALID|The provided chat id is invalid| |400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user| |400|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_EMPTY|The provided message is empty|
|400|MESSAGE_TOO_LONG|The provided message is too long| |400|MESSAGE_TOO_LONG|The provided message is too long|
|400|MSG_ID_INVALID|Provided reply_to_msg_id is invalid| |400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid|
|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
@ -124,6 +125,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|YOU_BLOCKED_USER|You blocked this user| |400|YOU_BLOCKED_USER|You blocked this user|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -46,6 +46,7 @@ UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, })
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_CROP_SIZE_SMALL|Photo is too small|

View File

@ -52,8 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors|
|400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty|
|400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid|
|400|PINNED_DIALOGS_TOO_MUCH||
|400|RANGES_INVALID|Invalid range provided| |400|RANGES_INVALID|Invalid range provided|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|

View File

@ -41,6 +41,7 @@ Bool = auth.resetAuthorizations({})
| Code | Type | Description | | Code | Type | Description |
|------|----------|---------------| |------|----------|---------------|
|406|FRESH_RESET_AUTHORISATION_FORBIDDEN|You can't logout other sessions if less than 24 hours have passed since you logged on the current session|
|-503|Timeout|Timeout while fetching data| |-503|Timeout|Timeout while fetching data|

View File

@ -48,5 +48,6 @@ Updates = channels.deleteChannel({channel=InputChannel, })
|------|----------|---------------| |------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = channels.deleteHistory({channel=InputChannel, max_id=int, }) Bool = channels.deleteHistory({channel=InputChannel, max_id=int, })
``` ```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|

View File

@ -53,5 +53,6 @@ Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_r
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|USER_ADMIN_INVALID|You're not an admin| |400|USER_ADMIN_INVALID|You're not an admin|
|400|USER_ID_INVALID|The provided user ID is invalid| |400|USER_ID_INVALID|The provided user ID is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

Some files were not shown because too many files have changed in this diff Show More