Update docs

This commit is contained in:
Daniil Gentili 2019-08-15 20:25:16 +02:00
parent 8f6784adf5
commit cb0704e70a
3581 changed files with 112999 additions and 721 deletions

View File

@ -0,0 +1,36 @@
---
title: auth.authorizationSignUpRequired
description: auth_authorizationSignUpRequired attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.authorizationSignUpRequired
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|
### Type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```php
$auth_authorizationSignUpRequired = ['_' => 'auth.authorizationSignUpRequired', 'terms_of_service' => help_TermsOfService];
```
Or, if you're into Lua:
```lua
auth_authorizationSignUpRequired={_='auth.authorizationSignUpRequired', terms_of_service=help_TermsOfService}
```

View File

@ -14,12 +14,10 @@ Sent code
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_registered|[Bool](../types/Bool.md) | Optional|Phone registered?|
|type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Yes|Type|
|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash|
|next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|Next type|
|timeout|[int](../types/int.md) | Optional|Timeout|
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Terms of service|
@ -29,14 +27,14 @@ Sent code
### Example:
```php
$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int, 'terms_of_service' => help_TermsOfService];
$auth_sentCode = ['_' => 'auth.sentCode', 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int];
```
Or, if you're into Lua:
```lua
auth_sentCode={_='auth.sentCode', phone_registered=Bool, type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int, terms_of_service=help_TermsOfService}
auth_sentCode={_='auth.sentCode', type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int}
```

View File

@ -24,6 +24,8 @@ Channel
|min|[Bool](../types/Bool.md) | Optional|Min?|
|scam|[Bool](../types/Bool.md) | Optional|Scam channel|
|has\_link|[Bool](../types/Bool.md) | Optional|Has linked chat?|
|has\_geo|[Bool](../types/Bool.md) | Optional||
|slowmode\_enabled|[Bool](../types/Bool.md) | Optional||
|id|[int](../types/int.md) | Yes|ID|
|access\_hash|[long](../types/long.md) | Optional|Access hash|
|title|[string](../types/string.md) | Yes|Title|
@ -45,14 +47,14 @@ Channel
### Example:
```php
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'signatures' => Bool, 'min' => Bool, 'scam' => Bool, 'has_link' => 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' => 'string', 'admin_rights' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int];
```
Or, if you're into 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, 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='string', admin_rights=ChatAdminRights, banned_rights=ChatBannedRights, default_banned_rights=ChatBannedRights, participants_count=int}
```

View File

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

View File

@ -42,6 +42,8 @@ Full channel
|folder\_id|[int](../types/int.md) | Optional|Folder ID|
|linked\_chat\_id|[int](../types/int.md) | Optional|Linked chat ID|
|location|[ChannelLocation](../types/ChannelLocation.md) | Optional|Location|
|slowmode\_seconds|[int](../types/int.md) | Optional||
|slowmode\_next\_send\_date|[int](../types/int.md) | Optional||
|pts|[int](../types/int.md) | Yes|PTS|
@ -52,14 +54,14 @@ Full channel
### Example:
```php
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'hidden_prehistory' => Bool, 'can_view_stats' => Bool, 'can_set_location' => Bool, '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, '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, '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:
```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, 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, 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

@ -21,6 +21,7 @@ Channel participant admin
|promoted\_by|[int](../types/int.md) | Yes|Promoted by|
|date|[int](../types/int.md) | Yes|Date|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|Admin rights|
|rank|[string](../types/string.md) | Optional||
@ -30,14 +31,14 @@ Channel participant admin
### Example:
```php
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights];
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights, 'rank' => 'string'];
```
Or, if you're into Lua:
```lua
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights}
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights, rank='string'}
```

View File

@ -15,6 +15,7 @@ Channel participant creator
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|user\_id|[int](../types/int.md) | Yes|User ID|
|rank|[string](../types/string.md) | Optional||
@ -24,14 +25,14 @@ Channel participant creator
### Example:
```php
$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int];
$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int, 'rank' => 'string'];
```
Or, if you're into Lua:
```lua
channelParticipantCreator={_='channelParticipantCreator', user_id=int}
channelParticipantCreator={_='channelParticipantCreator', user_id=int, rank='string'}
```

View File

@ -16,8 +16,7 @@ Code settings
|----------|---------------|----------|-------------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?|
|current\_number|[Bool](../types/Bool.md) | Optional|Current number?|
|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional|Persistent hash?|
|app\_hash|[string](../types/string.md) | Optional|Hash type|
|allow\_app\_hash|[Bool](../types/Bool.md) | Optional||
@ -27,14 +26,14 @@ Code settings
### Example:
```php
$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'app_hash_persistent' => Bool, 'app_hash' => 'string'];
$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'allow_app_hash' => Bool];
```
Or, if you're into Lua:
```lua
codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, app_hash_persistent=Bool, app_hash='string'}
codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, allow_app_hash=Bool}
```

View File

@ -14,7 +14,7 @@ App update
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|popup|[Bool](../types/Bool.md) | Optional|Popup?|
|can\_not\_skip|[Bool](../types/Bool.md) | Optional||
|id|[int](../types/int.md) | Yes|ID|
|version|[string](../types/string.md) | Yes|Version|
|text|[string](../types/string.md) | Yes|Text|
@ -30,14 +30,14 @@ App update
### Example:
```php
$help_appUpdate = ['_' => 'help.appUpdate', 'popup' => Bool, 'id' => int, 'version' => 'string', 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'document' => Document, 'url' => 'string'];
$help_appUpdate = ['_' => 'help.appUpdate', 'can_not_skip' => Bool, 'id' => int, 'version' => 'string', 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'document' => Document, 'url' => 'string'];
```
Or, if you're into Lua:
```lua
help_appUpdate={_='help.appUpdate', popup=Bool, id=int, version='string', text='string', entities={MessageEntity}, document=Document, url='string'}
help_appUpdate={_='help.appUpdate', can_not_skip=Bool, id=int, version='string', text='string', entities={MessageEntity}, document=Document, url='string'}
```

View File

@ -42,7 +42,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$auth\_authorization](../constructors/auth_authorization.md) = \['tmp_sessions' => [int](../types/int.md), 'user' => [User](../types/User.md), \];<a name="auth_authorization"></a>
[$auth\_checkedPhone](../constructors/auth_checkedPhone.md) = \['phone_registered' => [Bool](../types/Bool.md), \];<a name="auth_checkedPhone"></a>
[$auth\_authorizationSignUpRequired](../constructors/auth_authorizationSignUpRequired.md) = \['terms_of_service' => [help\_TermsOfService](../types/help_TermsOfService.md), \];<a name="auth_authorizationSignUpRequired"></a>
[$auth\_codeTypeCall](../constructors/auth_codeTypeCall.md) = \[\];<a name="auth_codeTypeCall"></a>
@ -54,7 +54,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$auth\_passwordRecovery](../constructors/auth_passwordRecovery.md) = \['email_pattern' => [string](../types/string.md), \];<a name="auth_passwordRecovery"></a>
[$auth\_sentCode](../constructors/auth_sentCode.md) = \['phone_registered' => [Bool](../types/Bool.md), 'type' => [auth\_SentCodeType](../types/auth_SentCodeType.md), 'phone_code_hash' => [string](../types/string.md), 'next_type' => [auth\_CodeType](../types/auth_CodeType.md), 'timeout' => [int](../types/int.md), 'terms_of_service' => [help\_TermsOfService](../types/help_TermsOfService.md), \];<a name="auth_sentCode"></a>
[$auth\_sentCode](../constructors/auth_sentCode.md) = \['type' => [auth\_SentCodeType](../types/auth_SentCodeType.md), 'phone_code_hash' => [string](../types/string.md), 'next_type' => [auth\_CodeType](../types/auth_CodeType.md), 'timeout' => [int](../types/int.md), \];<a name="auth_sentCode"></a>
[$auth\_sentCodeTypeApp](../constructors/auth_sentCodeTypeApp.md) = \['length' => [int](../types/int.md), \];<a name="auth_sentCodeTypeApp"></a>
@ -110,7 +110,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>[$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), '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' => [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>[$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>
@ -172,6 +172,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$channelAdminLogEventActionToggleSignatures](../constructors/channelAdminLogEventActionToggleSignatures.md) = \['new_value' => [Bool](../types/Bool.md), \];<a name="channelAdminLogEventActionToggleSignatures"></a>
***
<br><br>[$channelAdminLogEventActionToggleSlowMode](../constructors/channelAdminLogEventActionToggleSlowMode.md) = \['prev_value' => [int](../types/int.md), 'new_value' => [int](../types/int.md), \];<a name="channelAdminLogEventActionToggleSlowMode"></a>
***
<br><br>[$channelAdminLogEventActionUpdatePinned](../constructors/channelAdminLogEventActionUpdatePinned.md) = \['message' => [Message](../types/Message.md), \];<a name="channelAdminLogEventActionUpdatePinned"></a>
@ -182,7 +185,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \];<a name="channelForbidden"></a>
***
<br><br>[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_stickers' => [Bool](../types/Bool.md), 'hidden_prehistory' => [Bool](../types/Bool.md), 'can_view_stats' => [Bool](../types/Bool.md), 'can_set_location' => [Bool](../types/Bool.md), '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), '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), '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>
@ -200,13 +203,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$channelParticipant](../constructors/channelParticipant.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="channelParticipant"></a>
***
<br><br>[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'self' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \];<a name="channelParticipantAdmin"></a>
<br><br>[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'self' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'rank' => [string](../types/string.md), \];<a name="channelParticipantAdmin"></a>
***
<br><br>[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \];<a name="channelParticipantBanned"></a>
***
<br><br>[$channelParticipantCreator](../constructors/channelParticipantCreator.md) = \['user_id' => [int](../types/int.md), \];<a name="channelParticipantCreator"></a>
<br><br>[$channelParticipantCreator](../constructors/channelParticipantCreator.md) = \['user_id' => [int](../types/int.md), 'rank' => [string](../types/string.md), \];<a name="channelParticipantCreator"></a>
***
<br><br>[$channelParticipantSelf](../constructors/channelParticipantSelf.md) = \['user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="channelParticipantSelf"></a>
@ -296,7 +299,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\];<a name="chatPhotoEmpty"></a>
***
<br><br>[$codeSettings](../constructors/codeSettings.md) = \['allow_flashcall' => [Bool](../types/Bool.md), 'current_number' => [Bool](../types/Bool.md), 'app_hash_persistent' => [Bool](../types/Bool.md), 'app_hash' => [string](../types/string.md), \];<a name="codeSettings"></a>
<br><br>[$codeSettings](../constructors/codeSettings.md) = \['allow_flashcall' => [Bool](../types/Bool.md), 'current_number' => [Bool](../types/Bool.md), 'allow_app_hash' => [Bool](../types/Bool.md), \];<a name="codeSettings"></a>
***
<br><br>[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'default_p2p_contacts' => [Bool](../types/Bool.md), 'preload_featured_stickers' => [Bool](../types/Bool.md), 'ignore_phone_entities' => [Bool](../types/Bool.md), 'revoke_pm_inbox' => [Bool](../types/Bool.md), 'blocked_mode' => [Bool](../types/Bool.md), 'pfs_enabled' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'test_mode' => [Bool](../types/Bool.md), 'this_dc' => [int](../types/int.md), 'dc_options' => \[[DcOption](../types/DcOption.md)\], 'dc_txt_domain_name' => [string](../types/string.md), 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'revoke_time_limit' => [int](../types/int.md), 'revoke_pm_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'stickers_faved_limit' => [int](../types/int.md), 'channels_read_media_period' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'pinned_infolder_count_max' => [int](../types/int.md), 'call_receive_timeout_ms' => [int](../types/int.md), 'call_ring_timeout_ms' => [int](../types/int.md), 'call_connect_timeout_ms' => [int](../types/int.md), 'call_packet_timeout_ms' => [int](../types/int.md), 'me_url_prefix' => [string](../types/string.md), 'autoupdate_url_prefix' => [string](../types/string.md), 'gif_search_username' => [string](../types/string.md), 'venue_search_username' => [string](../types/string.md), 'img_search_username' => [string](../types/string.md), 'static_maps_provider' => [string](../types/string.md), 'caption_length_max' => [int](../types/int.md), 'message_length_max' => [int](../types/int.md), 'webfile_dc_id' => [int](../types/int.md), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'base_lang_pack_version' => [int](../types/int.md), \];<a name="config"></a>
@ -545,7 +548,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$geoPointEmpty](../constructors/geoPointEmpty.md) = \[\];<a name="geoPointEmpty"></a>
***
<br><br>[$help\_appUpdate](../constructors/help_appUpdate.md) = \['popup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'version' => [string](../types/string.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'document' => [Document](../types/Document.md), 'url' => [string](../types/string.md), \];<a name="help_appUpdate"></a>
<br><br>[$help\_appUpdate](../constructors/help_appUpdate.md) = \['can_not_skip' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'version' => [string](../types/string.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'document' => [Document](../types/Document.md), 'url' => [string](../types/string.md), \];<a name="help_appUpdate"></a>
[$help\_configSimple](../constructors/help_configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'rules' => \[[AccessPointRule](../types/AccessPointRule.md)\], \];<a name="help_configSimple"></a>
@ -965,6 +968,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputSingleMedia](../constructors/inputSingleMedia.md) = \['media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \];<a name="inputSingleMedia"></a>
***
<br><br>[$inputStickerSetAnimatedEmoji](../constructors/inputStickerSetAnimatedEmoji.md) = \[\];<a name="inputStickerSetAnimatedEmoji"></a>
***
<br><br>[$inputStickerSetEmpty](../constructors/inputStickerSetEmpty.md) = \[\];<a name="inputStickerSetEmpty"></a>
@ -1098,7 +1104,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>[$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), '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), '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>[$messageActionBotAllowed](../constructors/messageActionBotAllowed.md) = \['domain' => [string](../types/string.md), \];<a name="messageActionBotAllowed"></a>
@ -1505,7 +1511,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$payments\_paymentResult](../constructors/payments_paymentResult.md) = \['updates' => [Updates](../types/Updates.md), \];<a name="payments_paymentResult"></a>
[$payments\_paymentVerficationNeeded](../constructors/payments_paymentVerficationNeeded.md) = \['url' => [string](../types/string.md), \];<a name="payments_paymentVerficationNeeded"></a>
[$payments\_paymentVerificationNeeded](../constructors/payments_paymentVerificationNeeded.md) = \['url' => [string](../types/string.md), \];<a name="payments_paymentVerificationNeeded"></a>
[$payments\_savedInfo](../constructors/payments_savedInfo.md) = \['has_saved_credentials' => [Bool](../types/Bool.md), 'saved_info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \];<a name="payments_savedInfo"></a>

View File

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

View File

@ -19,7 +19,6 @@ Message
|media\_unread|[Bool](../types/Bool.md) | Optional|Media unread?|
|silent|[Bool](../types/Bool.md) | Optional|Silent?|
|post|[Bool](../types/Bool.md) | Optional|Post?|
|from\_scheduled|[Bool](../types/Bool.md) | Optional|From scheduled?|
|legacy|[Bool](../types/Bool.md) | Optional|Legacy message|
|id|[int](../types/int.md) | Yes|ID|
|from\_id|[int](../types/int.md) | Optional|From ID|
@ -45,14 +44,14 @@ Message
### Example:
```php
$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'from_scheduled' => 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, '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];
```
Or, if you're into Lua:
```lua
message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, from_scheduled=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, 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}
```

View File

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

View File

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

View File

@ -22,7 +22,7 @@ Accept telegram passport authorization
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Delete secure telegram passport value
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Get secure value for telegram passport
### Return type: [Vector\_of\_SecureValue](../types/SecureValue.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)):

View File

@ -13,6 +13,7 @@ Register device for push notifications
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|no\_muted|[Bool](../types/Bool.md) | Idk yet | Optional|
|token\_type|[int](../types/int.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone, 6 - Blackberry, and other, see source code of official apps for more info | Yes|
|token|[string](../types/string.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes|
|app\_sandbox|[Bool](../types/Bool.md) | Should the app run in a sandbox? | Yes|
@ -37,13 +38,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'secret' => 'bytes', 'other_uids' => [int, int], ]);
$Bool = $MadelineProto->account->registerDevice(['no_muted' => Bool, 'token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'secret' => 'bytes', 'other_uids' => [int, int], ]);
```
Or, if you're into Lua:
```lua
Bool = account.registerDevice({token_type=int, token='string', app_sandbox=Bool, secret='bytes', other_uids={int}, })
Bool = account.registerDevice({no_muted=Bool, token_type=int, token='string', app_sandbox=Bool, secret='bytes', other_uids={int}, })
```
### Errors this method can return:

View File

@ -90,7 +90,7 @@ $MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['
$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)(\['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>
$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md)<a name="account_reportPeer"></a>
@ -176,7 +176,7 @@ $MadelineProto->[auth->sendCode](auth_sendCode.md)(\['phone_number' => [string](
$MadelineProto->[auth->signIn](auth_signIn.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signIn"></a>
$MadelineProto->[auth->signUp](auth_signUp.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signUp"></a>
$MadelineProto->[auth->signUp](auth_signUp.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signUp"></a>
***
<br><br>
@ -198,7 +198,7 @@ $MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channe
$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="channels_deleteUserHistory"></a>
$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editAdmin"></a>
$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'rank' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editAdmin"></a>
$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editBanned"></a>
@ -250,6 +250,8 @@ $MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidd
$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleSignatures"></a>
$MadelineProto->[channels->toggleSlowMode](channels_toggleSlowMode.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'seconds' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleSlowMode"></a>
$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="channels_updateUsername"></a>
***
@ -672,7 +674,7 @@ $MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [by
$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_FileHash](../types/FileHash.md)<a name="upload_getCdnFileHashes"></a>
$MadelineProto->[upload->getFile](upload_getFile.md)(\['location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_File](../types/upload_File.md)<a name="upload_getFile"></a>
$MadelineProto->[upload->getFile](upload_getFile.md)(\['precise' => [Bool](../types/Bool.md), 'location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_File](../types/upload_File.md)<a name="upload_getFile"></a>
$MadelineProto->[upload->getFileHashes](upload_getFileHashes.md)(\['location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_FileHash](../types/FileHash.md)<a name="upload_getFileHashes"></a>

View File

@ -13,7 +13,7 @@ Delete all logged-in sessions.
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **NO**
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):

View File

@ -53,5 +53,6 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
|----------|---------------|
|CHAT_TITLE_EMPTY|No chat title provided|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -16,6 +16,7 @@ Edit admin permissions of a user in a channel/supergroup
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Admin rights | Yes|
|rank|[string](../types/string.md) | | Yes|
### Return type: [Updates](../types/Updates.md)
@ -35,13 +36,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChatAdminRights, ]);
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChatAdminRights, 'rank' => 'string', ]);
```
Or, if you're into Lua:
```lua
Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChatAdminRights, })
Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChatAdminRights, rank='string', })
```
### Errors this method can return:

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
messages_Chats = channels.getLeftChannels({offset=int, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -49,5 +49,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|INVITE_HASH_EXPIRED|The invite link has expired|
|INVITE_HASH_INVALID|The invite hash is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group|

View File

@ -0,0 +1,43 @@
---
title: channels.toggleSlowMode
description: channels.toggleSlowMode parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: channels.toggleSlowMode
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|
|seconds|[int](../types/int.md) | 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->channels->toggleSlowMode(['channel' => InputChannel, 'seconds' => int, ]);
```
Or, if you're into Lua:
```lua
Updates = channels.toggleSlowMode({channel=InputChannel, seconds=int, })
```

View File

@ -46,3 +46,10 @@ Or, if you're into Lua:
Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, first_name='string', last_name='string', phone='string', })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|CONTACT_ID_INVALID|The provided contact ID is invalid|

View File

@ -18,7 +18,7 @@ Delete contacts by phones
### Return type: [Bool](../types/Bool.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)):

View File

@ -56,6 +56,6 @@ contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bot
| Error | Description |
|----------|---------------|
|TYPES_EMPTY|The types field is empty|
|TYPES_EMPTY|No top peer type was provided|

View File

@ -18,7 +18,7 @@ Edit folder
### 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)):
@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = folders.editPeerFolders({folder_peers={InputFolderPeer}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|FOLDER_ID_INVALID|Invalid folder ID|

View File

@ -21,7 +21,7 @@ Edit user info
### Return type: [help\_UserInfo](../types/help_UserInfo.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)):

View File

@ -41,6 +41,7 @@ CdnConfig = help.getCdnConfig({})
| Error | Description |
|----------|---------------|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|Timeout|Timeout while fetching data|

View File

@ -41,6 +41,7 @@ Config = help.getConfig({})
| Error | Description |
|----------|---------------|
|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|Timeout|Timeout while fetching data|

View File

@ -47,6 +47,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Error | Description |
|----------|---------------|
|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -109,6 +109,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_NOT_MODIFIED|The message text has not changed|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MESSAGE_AUTHOR_REQUIRED|Message author required|

View File

@ -64,7 +64,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|

View File

@ -18,7 +18,7 @@ Get emoji keyword languages
### Return type: [Vector\_of\_EmojiLanguage](../types/EmojiLanguage.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)):

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
messages_PeerDialogs = messages.getPinnedDialogs({folder_id=int, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|FOLDER_ID_INVALID|Invalid folder ID|

View File

@ -19,7 +19,7 @@ Get search counter
### Return type: [Vector\_of\_messages\_SearchCounter](../types/messages_SearchCounter.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)):

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
StatsURL = messages.getStatsURL({dark=Bool, peer=InputPeer, params='string', })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -20,7 +20,7 @@ Report a message
### Return type: [Bool](../types/Bool.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)):

View File

@ -56,6 +56,6 @@ If the length of the provided message is bigger than 4096, the message will be s
|DATA_INVALID|Encrypted data invalid|
|ENCRYPTION_DECLINED|The secret chat was declined|
|MSG_WAIT_FAILED|A waiting call returned an error|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -113,11 +113,12 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid|
|MEDIA_INVALID|Media invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|

View File

@ -103,21 +103,23 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
| Error | Description |
|----------|---------------|
|BUTTON_DATA_INVALID|The provided button data is invalid|
|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid|
|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid|
|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid|
|BUTTON_URL_INVALID|Button URL invalid|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|ENTITY_MENTION_USER_INVALID|You can't use this entity|
|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty|
|MESSAGE_TOO_LONG|The provided message is too long|
|MSG_ID_INVALID|Provided reply_to_msg_id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -47,3 +47,11 @@ Or, if you're into Lua:
Updates = messages.sendMultiMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, multi_media={InputSingleMedia}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|MEDIA_INVALID|Media invalid|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -20,7 +20,7 @@ Send vote
### 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)):

View File

@ -57,5 +57,6 @@ If the length of the provided message is bigger than 4096, the message will be s
| Error | Description |
|----------|---------------|
|QUERY_ID_INVALID|The query ID is invalid|
|URL_INVALID|Invalid URL provided|

View File

@ -53,10 +53,13 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long,
| Error | Description |
|----------|---------------|
|ARTICLE_TITLE_EMPTY|The title of the article is empty|
|BUTTON_DATA_INVALID|The provided button data is invalid|
|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid|
|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid|
|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid|
|BUTTON_URL_INVALID|Button URL invalid|
|MESSAGE_EMPTY|The provided message is empty|
|MESSAGE_TOO_LONG|The provided message is too long|
|PHOTO_INVALID|Photo invalid|
|PHOTO_THUMB_URL_EMPTY|Photo thumbnail URL is empty|
|QUERY_ID_INVALID|The query ID is invalid|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|RESULT_TYPE_INVALID|Result type invalid|

View File

@ -49,10 +49,11 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -42,3 +42,11 @@ Or, if you're into Lua:
UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small|

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Error | Description |
|----------|---------------|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|Timeout|Timeout while fetching data|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = users.setSecureValueErrors({id=InputUser, errors={SecureValueError}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|USER_ID_INVALID|The provided user ID is invalid|

View File

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

View File

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

View File

@ -106,6 +106,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->channels->editCreator](../methods/channels_editCreator.md)
[$MadelineProto->channels->toggleSlowMode](../methods/channels_toggleSlowMode.md)
[$MadelineProto->phone->discardCall](../methods/phone_discardCall.md)
[$MadelineProto->phone->setCallRating](../methods/phone_setCallRating.md)

View File

@ -12,6 +12,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[auth\_authorization](../constructors/auth_authorization.md)
[auth\_authorizationSignUpRequired](../constructors/auth_authorizationSignUpRequired.md)
### Methods that return an object of this type (methods):

View File

@ -419,8 +419,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[auth\_Authorization](auth_Authorization.md)<a name="auth_Authorization"></a>
[auth\_CheckedPhone](auth_CheckedPhone.md)<a name="auth_CheckedPhone"></a>
[auth\_CodeType](auth_CodeType.md)<a name="auth_CodeType"></a>
[auth\_ExportedAuthorization](auth_ExportedAuthorization.md)<a name="auth_ExportedAuthorization"></a>

View File

@ -12,7 +12,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[payments\_paymentResult](../constructors/payments_paymentResult.md)
[payments\_paymentVerficationNeeded](../constructors/payments_paymentVerficationNeeded.md)
[payments\_paymentVerificationNeeded](../constructors/payments_paymentVerificationNeeded.md)

View File

@ -473,7 +473,6 @@ You can find examples for nearly every MadelineProto function in
* [`tests/testing.php`](https://github.com/danog/MadelineProto/blob/master/tests/testing.php) - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos.
* [`bot.php`](https://github.com/danog/MadelineProto/blob/master/bot.php) - examples for sending normal messages, downloading any media
* [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/master/secret_bot.php) - secret chat bot
* [`multiprocess_bot.php`](https://github.com/danog/MadelineProto/blob/master/multiprocess_bot.php) - multithreaded bot
* [`magna.php`](https://github.com/danog/MadelineProto/blob/master/magna.php) - examples for receiving calls
* [`userbots/pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot
* [`userbots/MadelineProto_bot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/MadelineProto_bot.php) - Multi-function bot

View File

@ -22,7 +22,7 @@ Accept telegram passport authorization
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Delete secure telegram passport value
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Get secure value for telegram passport
### Return type: [Vector\_of\_SecureValue](../types/SecureValue.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)):

View File

@ -13,7 +13,7 @@ Delete all logged-in sessions.
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **NO**
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):

View File

@ -51,5 +51,6 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
|----------|---------------|
|CHAT_TITLE_EMPTY|No chat title provided|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
messages_Chats = channels.getLeftChannels({offset=int, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -49,5 +49,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|INVITE_HASH_EXPIRED|The invite link has expired|
|INVITE_HASH_INVALID|The invite hash is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group|

View File

@ -18,7 +18,7 @@ Delete contacts by phones
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Delete a contact
### Return type: [contacts\_Link](../types/contacts_Link.md)
### Can bots use this method: **NO**
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):

View File

@ -56,6 +56,6 @@ contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bot
| Error | Description |
|----------|---------------|
|TYPES_EMPTY|The types field is empty|
|TYPES_EMPTY|No top peer type was provided|

View File

@ -18,7 +18,7 @@ Edit folder
### 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)):
@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = folders.editPeerFolders({folder_peers={InputFolderPeer}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|FOLDER_ID_INVALID|Invalid folder ID|

View File

@ -21,7 +21,7 @@ Edit user info
### Return type: [help\_UserInfo](../types/help_UserInfo.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)):

View File

@ -41,6 +41,7 @@ CdnConfig = help.getCdnConfig({})
| Error | Description |
|----------|---------------|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|Timeout|Timeout while fetching data|

View File

@ -41,6 +41,7 @@ Config = help.getConfig({})
| Error | Description |
|----------|---------------|
|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|Timeout|Timeout while fetching data|

View File

@ -47,6 +47,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Error | Description |
|----------|---------------|
|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -109,6 +109,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_NOT_MODIFIED|The message text has not changed|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MESSAGE_AUTHOR_REQUIRED|Message author required|

View File

@ -64,7 +64,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|PEER_ID_INVALID|The provided peer id is invalid|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|

View File

@ -18,7 +18,7 @@ Get emoji keyword languages
### Return type: [Vector\_of\_EmojiLanguage](../types/EmojiLanguage.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)):

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
messages_PeerDialogs = messages.getPinnedDialogs({folder_id=int, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|FOLDER_ID_INVALID|Invalid folder ID|

View File

@ -19,7 +19,7 @@ Get search counter
### Return type: [Vector\_of\_messages\_SearchCounter](../types/messages_SearchCounter.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)):

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
StatsURL = messages.getStatsURL({dark=Bool, peer=InputPeer, params='string', })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -18,7 +18,7 @@ Hide report spam popup
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **NO**
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):

View File

@ -20,7 +20,7 @@ Report a message
### Return type: [Bool](../types/Bool.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)):

View File

@ -56,6 +56,6 @@ If the length of the provided message is bigger than 4096, the message will be s
|DATA_INVALID|Encrypted data invalid|
|ENCRYPTION_DECLINED|The secret chat was declined|
|MSG_WAIT_FAILED|A waiting call returned an error|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -113,11 +113,12 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid|
|MEDIA_INVALID|Media invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|WEBPAGE_MEDIA_EMPTY|Webpage media empty|

View File

@ -103,21 +103,23 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
| Error | Description |
|----------|---------------|
|BUTTON_DATA_INVALID|The provided button data is invalid|
|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid|
|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid|
|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid|
|BUTTON_URL_INVALID|Button URL invalid|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|ENTITY_MENTION_USER_INVALID|You can't use this entity|
|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted|
|ENTITY_MENTION_USER_INVALID|You mentioned an invalid user|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty|
|MESSAGE_TOO_LONG|The provided message is too long|
|MSG_ID_INVALID|Provided reply_to_msg_id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|YOU_BLOCKED_USER|You blocked this user|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -47,3 +47,11 @@ Or, if you're into Lua:
Updates = messages.sendMultiMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, multi_media={InputSingleMedia}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|MEDIA_INVALID|Media invalid|
|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -20,7 +20,7 @@ Send vote
### 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)):

View File

@ -57,5 +57,6 @@ If the length of the provided message is bigger than 4096, the message will be s
| Error | Description |
|----------|---------------|
|QUERY_ID_INVALID|The query ID is invalid|
|URL_INVALID|Invalid URL provided|

View File

@ -53,10 +53,13 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long,
| Error | Description |
|----------|---------------|
|ARTICLE_TITLE_EMPTY|The title of the article is empty|
|BUTTON_DATA_INVALID|The provided button data is invalid|
|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid|
|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid|
|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid|
|BUTTON_URL_INVALID|Button URL invalid|
|MESSAGE_EMPTY|The provided message is empty|
|MESSAGE_TOO_LONG|The provided message is too long|
|PHOTO_INVALID|Photo invalid|
|PHOTO_THUMB_URL_EMPTY|Photo thumbnail URL is empty|
|QUERY_ID_INVALID|The query ID is invalid|
|REPLY_MARKUP_INVALID|The provided reply markup is invalid|
|RESULT_TYPE_INVALID|Result type invalid|

View File

@ -49,10 +49,11 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BLOCKED|You were blocked by this user|
|USER_IS_BOT|Bots can't send messages to other bots|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -42,3 +42,11 @@ Or, if you're into Lua:
UserProfilePhoto = photos.updateProfilePhoto({id=InputPhoto, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small|

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Error | Description |
|----------|---------------|
|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|Timeout|Timeout while fetching data|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Bool = users.setSecureValueErrors({id=InputUser, errors={SecureValueError}, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|USER_ID_INVALID|The provided user ID is invalid|

View File

@ -22,7 +22,7 @@ Accept telegram passport authorization
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Delete secure telegram passport value
### Return type: [Bool](../types/Bool.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)):

View File

@ -18,7 +18,7 @@ Get secure value for telegram passport
### Return type: [Vector\_of\_SecureValue](../types/SecureValue.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)):

View File

@ -13,7 +13,7 @@ Delete all logged-in sessions.
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **NO**
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):

View File

@ -53,5 +53,6 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
|----------|---------------|
|CHAT_TITLE_EMPTY|No chat title provided|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
messages_Chats = channels.getLeftChannels({offset=int, })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|TAKEOUT_REQUIRED|A takeout session has to be initialized, first|

View File

@ -49,5 +49,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|INVITE_HASH_EXPIRED|The invite link has expired|
|INVITE_HASH_INVALID|The invite hash is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group|

View File

@ -46,3 +46,10 @@ Or, if you're into Lua:
Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, first_name='string', last_name='string', phone='string', })
```
### Errors this method can return:
| Error | Description |
|----------|---------------|
|CONTACT_ID_INVALID|The provided contact ID is invalid|

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