Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 10, 2020
1 parent aba6cb2 commit de22c3b
Show file tree
Hide file tree
Showing 698 changed files with 1,218 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/API_docs/methods/account.updateNotifySettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


2 changes: 2 additions & 0 deletions docs/API_docs/methods/auth.checkPassword.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/channels.editAdmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
1 change: 1 addition & 0 deletions docs/API_docs/methods/channels.editTitle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/channels.getMessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


2 changes: 2 additions & 0 deletions docs/API_docs/methods/channels.joinChannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


7 changes: 7 additions & 0 deletions docs/API_docs/methods/channels.togglePreHistoryHidden.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/contacts.block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/help.getCdnConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/help.getConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
2 changes: 2 additions & 0 deletions docs/API_docs/methods/messages.editChatTitle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/messages.exportChatInvite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
1 change: 1 addition & 0 deletions docs/API_docs/methods/messages.getCommonChats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


3 changes: 3 additions & 0 deletions docs/API_docs/methods/messages.importChatInvite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/messages.readHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
1 change: 1 addition & 0 deletions docs/API_docs/methods/messages.sendEncryptedService.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
2 changes: 2 additions & 0 deletions docs/API_docs/methods/messages.sendInlineBotResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 2 additions & 0 deletions docs/API_docs/methods/messages.sendMedia.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -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.|
Expand Down
1 change: 1 addition & 0 deletions docs/API_docs/methods/messages.startBot.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


2 changes: 2 additions & 0 deletions docs/API_docs/methods/messages.updatePinnedMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


7 changes: 7 additions & 0 deletions docs/API_docs/methods/phone.getCallConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions docs/API_docs/methods/upload.getFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.|
Expand Down
7 changes: 7 additions & 0 deletions docs/MTProto_docs/methods/req_pq_multi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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||


7 changes: 7 additions & 0 deletions docs/MTProto_docs/methods/set_client_DH_params.md
Original file line number Diff line number Diff line change
Expand Up @@ -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||


2 changes: 1 addition & 1 deletion docs/docs/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion docs/docs/LOGIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion docs/docs/REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -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|


2 changes: 2 additions & 0 deletions old_docs/API_docs_v100/methods/auth.checkPassword.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/channels.editAdmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/channels.editTitle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/channels.getMessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


2 changes: 2 additions & 0 deletions old_docs/API_docs_v100/methods/channels.joinChannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/contacts.block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/help.getCdnConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/help.getConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
2 changes: 2 additions & 0 deletions old_docs/API_docs_v100/methods/messages.editChatTitle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/messages.getCommonChats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


3 changes: 3 additions & 0 deletions old_docs/API_docs_v100/methods/messages.importChatInvite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|


1 change: 1 addition & 0 deletions old_docs/API_docs_v100/methods/messages.readHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
Loading

0 comments on commit de22c3b

Please sign in to comment.