This commit is contained in:
Daniil Gentili 2020-01-10 14:18:02 +01:00
parent aba6cb23e4
commit de22c3b924
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
698 changed files with 1218 additions and 3 deletions

View File

@ -49,5 +49,6 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|SETTINGS_INVALID|Invalid settings were provided|

View File

@ -48,5 +48,7 @@ auth.Authorization = auth.checkPassword({password=InputCheckPasswordSRP, })
| Code | Type | Description |
|------|----------|---------------|
|400|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|400|SRP_ID_INVALID|Invalid SRP ID provided|
|400|SRP_PASSWORD_CHANGED|Password has changed|

View File

@ -54,6 +54,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig
|400|BOT_CHANNELS_NA|Bots can't edit admin privileges|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_CREATOR|You can't leave this channel, because you're its creator|
|400|USER_ID_INVALID|The provided user ID is invalid|
|400|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -52,5 +52,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|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_TITLE_EMPTY|No chat title provided|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -51,5 +51,6 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MESSAGE_IDS_EMPTY|No message ids were provided|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,10 +50,12 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|

View File

@ -48,5 +48,6 @@ Bool = contacts.block({id=InputUser, })
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|

View File

@ -44,6 +44,7 @@ CdnConfig = help.getCdnConfig({})
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|-503|Timeout|Timeout while fetching data|

View File

@ -44,6 +44,7 @@ Config = help.getConfig({})
|------|----------|---------------|
|400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|400|CONNECTION_NOT_INITED|Connection not initialized|
|400|CONNECTION_SYSTEM_EMPTY|Connection system empty|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|-503|Timeout|Timeout while fetching data|

View File

@ -49,6 +49,8 @@ Updates = messages.editChatTitle({chat_id=InputPeer, title='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -47,6 +47,7 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, })
| Code | Type | Description |
|------|----------|---------------|
|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_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -49,6 +49,7 @@ messages.Chats = messages.getCommonChats({user_id=InputUser, max_id=int, limit=i
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ID_INVALID|The provided user ID is invalid|

View File

@ -47,12 +47,15 @@ Updates = messages.importChatInvite({hash='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,6 +48,7 @@ messages.AffectedMessages = messages.readHistory({peer=InputPeer, max_id=int, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,6 +50,7 @@ messages.SentEncryptedMessage = messages.sendEncryptedService({peer=InputEncrypt
|------|----------|---------------|
|400|DATA_INVALID|Encrypted data invalid|
|400|ENCRYPTION_DECLINED|The secret chat was declined|
|400|ENCRYPTION_ID_INVALID|The provided secret chat ID is invalid|
|400|MSG_WAIT_FAILED|A waiting call returned an error|
|403|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -59,6 +59,8 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf
|400|INLINE_RESULT_EXPIRED|The inline query expired|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|QUERY_ID_EMPTY|The query ID is empty|
|400|RESULT_ID_EMPTY|Result ID empty|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|

View File

@ -116,6 +116,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MD5_CHECKSUM_INVALID|The MD5 checksums do not match|
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
@ -131,6 +132,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|
|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media 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.|

View File

@ -55,5 +55,6 @@ Updates = messages.startBot({bot=InputUser, peer=InputPeer, start_param='string'
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|START_PARAM_EMPTY|The start parameter is empty|
|400|START_PARAM_INVALID|Start parameter invalid|
|400|START_PARAM_TOO_LONG|Start parameter is too long|

View File

@ -51,5 +51,7 @@ Updates = messages.updatePinnedMessage({silent=Bool, peer=InputPeer, id=int, })
|------|----------|---------------|
|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|MESSAGE_ID_INVALID|The provided message id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -38,3 +38,10 @@ Or, if you're into Lua:
DataJSON = phone.getCallConfig({})
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -54,6 +54,7 @@ upload.File = upload.getFile({precise=Bool, location=InputFileLocation, offset=i
|400|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|400|LIMIT_INVALID|The provided limit is invalid|
|400|LOCATION_INVALID|The provided location is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|OFFSET_INVALID|The provided offset is invalid|
|406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
ResPQ = req_pq_multi({nonce=int128, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|INPUT_METHOD_INVALID_3195965169_X||

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Set_client_DH_params_answer = set_client_DH_params({nonce=int128, server_nonce=int128, encrypted_data='bytes', })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|INPUT_METHOD_INVALID_4110704415_X||

View File

@ -535,4 +535,4 @@ if (!isset($result['file_name'])) {
* `$result['file_size']` - File size
* `$result['file_name']` - File name
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>

View File

@ -134,4 +134,4 @@ $result = yield $MadelineProto->update2fa(['password' => 'current password', 'ne
If you want to logout, you can use the update2fa function, see [here for the parameters and the result](https://docs.madelineproto.xyz/update2fa.html).
<a href="https://docs.madelineproto.xyz/docs/FEATURES.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/FEATURES.html">Next section</a>

View File

@ -18,4 +18,4 @@ sudo apt-get install php7.4 php7.4-dev php7.4-xml php7.4-zip php7.4-gmp php7.4-c
Next, follow the instructions on [voip.madelineproto.xyz](https://voip.madelineproto.xyz) and [prime.madelineproto.xyz](https://prime.madelineproto.xyz) to install libtgvoip and PrimeModule.
<a href="https://docs.madelineproto.xyz/docs/INSTALLATION.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/INSTALLATION.html">Next section</a>

View File

@ -49,5 +49,6 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|SETTINGS_INVALID|Invalid settings were provided|

View File

@ -48,5 +48,7 @@ auth.Authorization = auth.checkPassword({password=InputCheckPasswordSRP, })
| Code | Type | Description |
|------|----------|---------------|
|400|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|400|SRP_ID_INVALID|Invalid SRP ID provided|
|400|SRP_PASSWORD_CHANGED|Password has changed|

View File

@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig
|400|BOT_CHANNELS_NA|Bots can't edit admin privileges|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_CREATOR|You can't leave this channel, because you're its creator|
|400|USER_ID_INVALID|The provided user ID is invalid|
|400|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -52,5 +52,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|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_TITLE_EMPTY|No chat title provided|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -51,5 +51,6 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MESSAGE_IDS_EMPTY|No message ids were provided|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,10 +50,12 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|

View File

@ -48,5 +48,6 @@ Bool = contacts.block({id=InputUser, })
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|

View File

@ -44,6 +44,7 @@ CdnConfig = help.getCdnConfig({})
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|-503|Timeout|Timeout while fetching data|

View File

@ -44,6 +44,7 @@ Config = help.getConfig({})
|------|----------|---------------|
|400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|400|CONNECTION_NOT_INITED|Connection not initialized|
|400|CONNECTION_SYSTEM_EMPTY|Connection system empty|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|-503|Timeout|Timeout while fetching data|

View File

@ -49,6 +49,8 @@ Updates = messages.editChatTitle({chat_id=InputPeer, title='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -47,6 +47,7 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, })
| Code | Type | Description |
|------|----------|---------------|
|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_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -49,6 +49,7 @@ messages.Chats = messages.getCommonChats({user_id=InputUser, max_id=int, limit=i
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ID_INVALID|The provided user ID is invalid|

View File

@ -47,12 +47,15 @@ Updates = messages.importChatInvite({hash='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,6 +48,7 @@ messages.AffectedMessages = messages.readHistory({peer=InputPeer, max_id=int, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,6 +50,7 @@ messages.SentEncryptedMessage = messages.sendEncryptedService({peer=InputEncrypt
|------|----------|---------------|
|400|DATA_INVALID|Encrypted data invalid|
|400|ENCRYPTION_DECLINED|The secret chat was declined|
|400|ENCRYPTION_ID_INVALID|The provided secret chat ID is invalid|
|400|MSG_WAIT_FAILED|A waiting call returned an error|
|403|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -58,6 +58,8 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf
|400|INLINE_RESULT_EXPIRED|The inline query expired|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|QUERY_ID_EMPTY|The query ID is empty|
|400|RESULT_ID_EMPTY|Result ID empty|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|

View File

@ -115,6 +115,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MD5_CHECKSUM_INVALID|The MD5 checksums do not match|
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
@ -130,6 +131,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|
|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media 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.|

View File

@ -55,5 +55,6 @@ Updates = messages.startBot({bot=InputUser, peer=InputPeer, start_param='string'
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|START_PARAM_EMPTY|The start parameter is empty|
|400|START_PARAM_INVALID|Start parameter invalid|
|400|START_PARAM_TOO_LONG|Start parameter is too long|

View File

@ -51,5 +51,7 @@ Updates = messages.updatePinnedMessage({silent=Bool, peer=InputPeer, id=int, })
|------|----------|---------------|
|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|MESSAGE_ID_INVALID|The provided message id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -38,3 +38,10 @@ Or, if you're into Lua:
DataJSON = phone.getCallConfig({})
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -53,6 +53,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int,
|400|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|400|LIMIT_INVALID|The provided limit is invalid|
|400|LOCATION_INVALID|The provided location is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|OFFSET_INVALID|The provided offset is invalid|
|406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|

View File

@ -49,5 +49,6 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|SETTINGS_INVALID|Invalid settings were provided|

View File

@ -48,5 +48,7 @@ auth.Authorization = auth.checkPassword({password=InputCheckPasswordSRP, })
| Code | Type | Description |
|------|----------|---------------|
|400|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|400|SRP_ID_INVALID|Invalid SRP ID provided|
|400|SRP_PASSWORD_CHANGED|Password has changed|

View File

@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig
|400|BOT_CHANNELS_NA|Bots can't edit admin privileges|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_CREATOR|You can't leave this channel, because you're its creator|
|400|USER_ID_INVALID|The provided user ID is invalid|
|400|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -52,5 +52,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|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_TITLE_EMPTY|No chat title provided|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -51,5 +51,6 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MESSAGE_IDS_EMPTY|No message ids were provided|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,10 +50,12 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|

View File

@ -48,5 +48,6 @@ Bool = contacts.block({id=InputUser, })
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|

View File

@ -44,6 +44,7 @@ CdnConfig = help.getCdnConfig({})
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|-503|Timeout|Timeout while fetching data|

View File

@ -44,6 +44,7 @@ Config = help.getConfig({})
|------|----------|---------------|
|400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|400|CONNECTION_NOT_INITED|Connection not initialized|
|400|CONNECTION_SYSTEM_EMPTY|Connection system empty|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|-503|Timeout|Timeout while fetching data|

View File

@ -49,6 +49,8 @@ Updates = messages.editChatTitle({chat_id=InputPeer, title='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -47,6 +47,7 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, })
| Code | Type | Description |
|------|----------|---------------|
|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_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -49,6 +49,7 @@ messages.Chats = messages.getCommonChats({user_id=InputUser, max_id=int, limit=i
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ID_INVALID|The provided user ID is invalid|

View File

@ -47,12 +47,15 @@ Updates = messages.importChatInvite({hash='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,6 +48,7 @@ messages.AffectedMessages = messages.readHistory({peer=InputPeer, max_id=int, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,6 +50,7 @@ messages.SentEncryptedMessage = messages.sendEncryptedService({peer=InputEncrypt
|------|----------|---------------|
|400|DATA_INVALID|Encrypted data invalid|
|400|ENCRYPTION_DECLINED|The secret chat was declined|
|400|ENCRYPTION_ID_INVALID|The provided secret chat ID is invalid|
|400|MSG_WAIT_FAILED|A waiting call returned an error|
|403|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -58,6 +58,8 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf
|400|INLINE_RESULT_EXPIRED|The inline query expired|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|QUERY_ID_EMPTY|The query ID is empty|
|400|RESULT_ID_EMPTY|Result ID empty|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|

View File

@ -115,6 +115,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MD5_CHECKSUM_INVALID|The MD5 checksums do not match|
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
@ -130,6 +131,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|
|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media 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.|

View File

@ -55,5 +55,6 @@ Updates = messages.startBot({bot=InputUser, peer=InputPeer, start_param='string'
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|START_PARAM_EMPTY|The start parameter is empty|
|400|START_PARAM_INVALID|Start parameter invalid|
|400|START_PARAM_TOO_LONG|Start parameter is too long|

View File

@ -51,5 +51,7 @@ Updates = messages.updatePinnedMessage({silent=Bool, peer=InputPeer, id=int, })
|------|----------|---------------|
|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|MESSAGE_ID_INVALID|The provided message id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -38,3 +38,10 @@ Or, if you're into Lua:
DataJSON = phone.getCallConfig({})
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -53,6 +53,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int,
|400|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|400|LIMIT_INVALID|The provided limit is invalid|
|400|LOCATION_INVALID|The provided location is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|OFFSET_INVALID|The provided offset is invalid|
|406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|

View File

@ -49,5 +49,6 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|SETTINGS_INVALID|Invalid settings were provided|

View File

@ -48,5 +48,7 @@ auth.Authorization = auth.checkPassword({password=InputCheckPasswordSRP, })
| Code | Type | Description |
|------|----------|---------------|
|400|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|400|SRP_ID_INVALID|Invalid SRP ID provided|
|400|SRP_PASSWORD_CHANGED|Password has changed|

View File

@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig
|400|BOT_CHANNELS_NA|Bots can't edit admin privileges|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_CREATOR|You can't leave this channel, because you're its creator|
|400|USER_ID_INVALID|The provided user ID is invalid|
|400|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -52,5 +52,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|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_TITLE_EMPTY|No chat title provided|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -51,5 +51,6 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MESSAGE_IDS_EMPTY|No message ids were provided|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,10 +50,12 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|

View File

@ -48,5 +48,6 @@ Bool = contacts.block({id=InputUser, })
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|

View File

@ -44,6 +44,7 @@ CdnConfig = help.getCdnConfig({})
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|-503|Timeout|Timeout while fetching data|

View File

@ -44,6 +44,7 @@ Config = help.getConfig({})
|------|----------|---------------|
|400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty|
|400|CONNECTION_NOT_INITED|Connection not initialized|
|400|CONNECTION_SYSTEM_EMPTY|Connection system empty|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|-503|Timeout|Timeout while fetching data|

View File

@ -49,6 +49,8 @@ Updates = messages.editChatTitle({chat_id=InputPeer, title='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_ID_INVALID|The provided chat id is invalid|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -47,6 +47,7 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, })
| Code | Type | Description |
|------|----------|---------------|
|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_ID_INVALID|The provided chat id is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -49,6 +49,7 @@ messages.Chats = messages.getCommonChats({user_id=InputUser, max_id=int, limit=i
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ID_INVALID|The provided user ID is invalid|

View File

@ -47,12 +47,15 @@ Updates = messages.importChatInvite({hash='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,6 +48,7 @@ messages.AffectedMessages = messages.readHistory({peer=InputPeer, max_id=int, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,6 +50,7 @@ messages.SentEncryptedMessage = messages.sendEncryptedService({peer=InputEncrypt
|------|----------|---------------|
|400|DATA_INVALID|Encrypted data invalid|
|400|ENCRYPTION_DECLINED|The secret chat was declined|
|400|ENCRYPTION_ID_INVALID|The provided secret chat ID is invalid|
|400|MSG_WAIT_FAILED|A waiting call returned an error|
|403|USER_IS_BLOCKED|You were blocked by this user|

View File

@ -58,6 +58,8 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf
|400|INLINE_RESULT_EXPIRED|The inline query expired|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|QUERY_ID_EMPTY|The query ID is empty|
|400|RESULT_ID_EMPTY|Result ID empty|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|

View File

@ -115,6 +115,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|FILE_PARTS_INVALID|The number of file parts is invalid|
|400|IMAGE_PROCESS_FAILED|Failure while processing image|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|MD5_CHECKSUM_INVALID|The MD5 checksums do not match|
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
@ -130,6 +131,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|400|WEBPAGE_MEDIA_EMPTY|Webpage media empty|
|400|YOU_BLOCKED_USER|You blocked this user|
|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media 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.|

View File

@ -55,5 +55,6 @@ Updates = messages.startBot({bot=InputUser, peer=InputPeer, start_param='string'
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|START_PARAM_EMPTY|The start parameter is empty|
|400|START_PARAM_INVALID|Start parameter invalid|
|400|START_PARAM_TOO_LONG|Start parameter is too long|

View File

@ -51,5 +51,7 @@ Updates = messages.updatePinnedMessage({silent=Bool, peer=InputPeer, id=int, })
|------|----------|---------------|
|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|MESSAGE_ID_INVALID|The provided message id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -38,3 +38,10 @@ Or, if you're into Lua:
DataJSON = phone.getCallConfig({})
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|

View File

@ -53,6 +53,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int,
|400|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|400|LIMIT_INVALID|The provided limit is invalid|
|400|LOCATION_INVALID|The provided location is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|OFFSET_INVALID|The provided offset is invalid|
|406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)|
|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|

View File

@ -49,5 +49,6 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|SETTINGS_INVALID|Invalid settings were provided|

View File

@ -48,5 +48,7 @@ auth.Authorization = auth.checkPassword({password=InputCheckPasswordSRP, })
| Code | Type | Description |
|------|----------|---------------|
|400|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|400|SRP_ID_INVALID|Invalid SRP ID provided|
|400|SRP_PASSWORD_CHANGED|Password has changed|

View File

@ -54,6 +54,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig
|400|BOT_CHANNELS_NA|Bots can't edit admin privileges|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|INPUT_USER_DEACTIVATED|The specified user was deleted|
|400|USER_CREATOR|You can't leave this channel, because you're its creator|
|400|USER_ID_INVALID|The provided user ID is invalid|
|400|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -52,5 +52,6 @@ Updates = channels.editTitle({channel=InputChannel, title='string', })
|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_TITLE_EMPTY|No chat title provided|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -51,5 +51,6 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MESSAGE_IDS_EMPTY|No message ids were provided|
|-503|Timeout|Timeout while fetching data|

View File

@ -50,10 +50,12 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|INVITE_HASH_EMPTY|The invite hash is empty|
|400|INVITE_HASH_EXPIRED|The invite link has expired|
|400|INVITE_HASH_INVALID|The invite hash is invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|USER_ALREADY_PARTICIPANT|The user is already in the group|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -44,3 +44,10 @@ Or, if you're into Lua:
Updates = channels.togglePreHistoryHidden({channel=InputChannel, enabled=Bool, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|

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