Add missing errors

This commit is contained in:
Daniil Gentili 2019-10-29 19:02:30 +01:00
parent 0fc9b14f85
commit acdcb1ab54
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
495 changed files with 729 additions and 77 deletions

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|-503|Timeout|Timeout while fetching data|

View File

@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|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|

View File

@ -49,5 +49,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = contacts.acceptContact({id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_REQ_MISSING|Missing contact request|

View File

@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|CONTACT_NAME_EMPTY|Contact name empty|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
help_UserInfo = help.getUserInfo({user_id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|USER_INVALID|Invalid user provided|

View File

@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', })
|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|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Code | Type | Description |
|------|----------|---------------|
|400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data|

View File

@ -116,10 +116,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -43,3 +43,10 @@ Or, if you're into Lua:
Updates = messages.sendScheduledMessages({peer=InputPeer, id={int}, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|MESSAGE_ID_INVALID|The provided message id is invalid|

View File

@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

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

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|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|

View File

@ -516,12 +516,10 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
## Very complex and complete examples
You can find examples for nearly every MadelineProto function in
* [magnaluna webradio](https://magna.madelineproto.xyz) - Multifeatured Telegram VoIP webradio
* [`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
* [`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
* [`userbots/pwrtelegram_debug_bot`](https://github.com/danog/MadelineProto/blob/master/userbots/pwrtelegram_debug_bot.php) - Multi-function bot
* [`bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/bot.php) - examples for sending normal messages, downloading any media
* [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/secret_bot.php) - secret chat bot
* [`pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/examples/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|-503|Timeout|Timeout while fetching data|

View File

@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|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|

View File

@ -49,5 +49,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
help_UserInfo = help.getUserInfo({user_id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|USER_INVALID|Invalid user provided|

View File

@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', })
|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|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Code | Type | Description |
|------|----------|---------------|
|400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data|

View File

@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

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

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|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|

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|-503|Timeout|Timeout while fetching data|

View File

@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|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|

View File

@ -49,5 +49,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = contacts.acceptContact({id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_REQ_MISSING|Missing contact request|

View File

@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|CONTACT_NAME_EMPTY|Contact name empty|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
help_UserInfo = help.getUserInfo({user_id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|USER_INVALID|Invalid user provided|

View File

@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', })
|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|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Code | Type | Description |
|------|----------|---------------|
|400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data|

View File

@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

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

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|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|

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|-503|Timeout|Timeout while fetching data|

View File

@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|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|

View File

@ -49,5 +49,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = contacts.acceptContact({id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_REQ_MISSING|Missing contact request|

View File

@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|CONTACT_NAME_EMPTY|Contact name empty|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
help_UserInfo = help.getUserInfo({user_id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|USER_INVALID|Invalid user provided|

View File

@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', })
|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|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Code | Type | Description |
|------|----------|---------------|
|400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data|

View File

@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

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

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|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|

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|
|403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|-503|Timeout|Timeout while fetching data|

View File

@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, })
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|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|

View File

@ -49,5 +49,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
Updates = contacts.acceptContact({id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_REQ_MISSING|Missing contact request|

View File

@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f
| Code | Type | Description |
|------|----------|---------------|
|400|CONTACT_ID_INVALID|The provided contact ID is invalid|
|400|CONTACT_NAME_EMPTY|Contact name empty|

View File

@ -42,3 +42,10 @@ Or, if you're into Lua:
help_UserInfo = help.getUserInfo({user_id=InputUser, })
```
### Errors
| Code | Type | Description |
|------|----------|---------------|
|403|USER_INVALID|Invalid user provided|

View File

@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', })
|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|
|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', })
| Code | Type | Description |
|------|----------|---------------|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch
| Code | Type | Description |
|------|----------|---------------|
|400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights|
|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|400|PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score=
|403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.|
|-503|Timeout|Timeout while fetching data|

View File

@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http:
|400|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|400|MEDIA_EMPTY|The provided media object is invalid|
|400|MEDIA_INVALID|Media invalid|
|400|MSG_ID_INVALID|Invalid message ID provided|
|400|PEER_ID_INVALID|The provided peer id is invalid|
|400|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid|
|400|PHOTO_SAVE_FILE_INVALID||
|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later|
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|

View File

@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, })
|400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|400|USER_IS_BLOCKED|You were blocked by this user|
|400|USER_IS_BOT|Bots can't send messages to other bots|
|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

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

View File

@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, })
| Code | Type | Description |
|------|----------|---------------|
|400|MSG_ID_INVALID|Invalid message ID provided|
|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|

View File

@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({phone_number='string', phone_code_hash='string'
| Code | Type | Description |
|------|----------|---------------|
|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)|
|400|PHONE_CODE_HASH_EMPTY|phone_code_hash is missing|
|400|PHONE_NUMBER_INVALID|The phone number is invalid|

View File

@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string'
| Code | Type | Description |
|------|----------|---------------|
|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|400|CHAT_TITLE_EMPTY|No chat title provided|
|406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|

View File

@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|400|MSG_ID_INVALID|Invalid message ID provided|

View File

@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string
|400|CHANNEL_INVALID|The provided channel is invalid|
|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|
|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat|

View File

@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, })
|------|----------|---------------|
|400|CHANNEL_INVALID|The provided channel is invalid|
|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|400|MSG_ID_INVALID|Invalid message ID provided|

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