Update docs

This commit is contained in:
Daniil Gentili 2017-09-25 10:26:30 +00:00
parent fba1c8e623
commit ef49c56407
461 changed files with 928 additions and 0 deletions

View File

@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|NEW_SALT_INVALID|The new salt is invalid|
|NEW_SETTINGS_INVALID|The new settings are invalid| |NEW_SETTINGS_INVALID|The new settings are invalid|
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -25,6 +25,7 @@ description: channels.checkUsername parameters, return type and example
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|USERNAME_INVALID|The provided username is not valid|
### Example: ### Example:

View File

@ -24,6 +24,8 @@ description: channels.editAbout parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ABOUT_NOT_MODIFIED|About text has not changed|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example: ### Example:

View File

@ -27,6 +27,9 @@ description: channels.editAdmin parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| |CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this|
|USER_CREATOR|You can't leave this channel, because you're its creator|
|USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -25,6 +25,7 @@ description: channels.editBanned parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|USER_ADMIN_INVALID|You're not an admin| |USER_ADMIN_INVALID|You're not an admin|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|

View File

@ -24,6 +24,7 @@ description: channels.editTitle parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example: ### Example:

View File

@ -22,6 +22,7 @@ description: channels.getChannels parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|NEED_CHAT_INVALID|The provided chat is invalid| |NEED_CHAT_INVALID|The provided chat is invalid|

View File

@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|

View File

@ -31,11 +31,13 @@ description: channels.inviteToChannel parameters, return type and example
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_BOT|Bots can only be admins in channels.|
|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_KICKED|This user was kicked from this supergroup/channel| |USER_KICKED|This user was kicked from this supergroup/channel|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| |USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: channels.joinChannel parameters, return type and example
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: channels.setStickers parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|PARTICIPANTS_TOO_FEW|Not enough participants|
### Example: ### Example:

View File

@ -29,6 +29,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|AUTH_BYTES_INVALID|The provided authorization is invalid| |AUTH_BYTES_INVALID|The provided authorization is invalid|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|INPUT_LAYER_INVALID|The provided layer is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -28,7 +28,9 @@ description: messages.editMessage parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MESSAGE_AUTHOR_REQUIRED|Message author required|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_NOT_MODIFIED|The message text has not changed| |MESSAGE_NOT_MODIFIED|The message text has not changed|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -27,14 +27,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -26,6 +26,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -24,6 +24,8 @@ description: messages.getMessagesViews parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|

View File

@ -34,6 +34,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -29,6 +29,7 @@ description: messages.sendInlineBotResult parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INLINE_RESULT_EXPIRED|The inline query expired| |INLINE_RESULT_EXPIRED|The inline query expired|
|PEER_ID_INVALID|The provided peer id is invalid|
|QUERY_ID_EMPTY|The query ID is empty| |QUERY_ID_EMPTY|The query ID is empty|

View File

@ -28,13 +28,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -22,6 +22,7 @@ description: phone.receivedCall parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CALL_ALREADY_DECLINED|The call was already declined|
|CALL_PEER_INVALID|The provided call peer object is invalid| |CALL_PEER_INVALID|The provided call peer object is invalid|

View File

@ -22,8 +22,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -27,6 +27,9 @@ description: stickers.createStickerSet parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|BOT_MISSING|This method can only be run by a bot| |BOT_MISSING|This method can only be run by a bot|
|PACK_SHORT_NAME_INVALID|Short pack name invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|STICKERS_EMPTY|No sticker provided|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,13 +23,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -28,6 +28,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|AUTH_BYTES_INVALID|The provided authorization is invalid| |AUTH_BYTES_INVALID|The provided authorization is invalid|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|INPUT_LAYER_INVALID|The provided layer is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,13 +23,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -28,6 +28,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|AUTH_BYTES_INVALID|The provided authorization is invalid| |AUTH_BYTES_INVALID|The provided authorization is invalid|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|INPUT_LAYER_INVALID|The provided layer is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -24,13 +24,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -29,6 +29,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|NEW_SALT_INVALID|The new salt is invalid|
|NEW_SETTINGS_INVALID|The new settings are invalid| |NEW_SETTINGS_INVALID|The new settings are invalid|
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|AUTH_BYTES_INVALID|The provided authorization is invalid| |AUTH_BYTES_INVALID|The provided authorization is invalid|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|INPUT_LAYER_INVALID|The provided layer is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -24,13 +24,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -29,6 +29,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|NEW_SALT_INVALID|The new salt is invalid|
|NEW_SETTINGS_INVALID|The new settings are invalid| |NEW_SETTINGS_INVALID|The new settings are invalid|
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

View File

@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|AUTH_BYTES_INVALID|The provided authorization is invalid| |AUTH_BYTES_INVALID|The provided authorization is invalid|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|INPUT_LAYER_INVALID|The provided layer is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid|

View File

@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|PEER_ID_INVALID|The provided peer id is invalid|
|USER_ALREADY_PARTICIPANT|The user is already in the group| |USER_ALREADY_PARTICIPANT|The user is already in the group|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat|
|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|MEDIA_EMPTY|The provided media object is invalid|
|MESSAGE_ID_INVALID|The provided message id is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid|
|MESSAGE_IDS_EMPTY|No message ids were provided| |MESSAGE_IDS_EMPTY|No message ids were provided|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PTS_CHANGE_EMPTY|No PTS change|
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| |RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|RANDOM_ID_INVALID|A provided random ID is invalid|
|Timeout|A timeout occurred while fetching data from the bot| |Timeout|A timeout occurred while fetching data from the bot|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_IS_BOT|Bots can't send messages to other bots|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|

View File

@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|----------|---------------| |----------|---------------|
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|SEARCH_QUERY_EMPTY|The search query is empty|
### Example: ### Example:

View File

@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHAT_ID_INVALID|The provided chat id is invalid|
|DATA_INVALID|Encrypted data invalid| |DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|DATA_INVALID|Encrypted data invalid|
|MSG_WAIT_FAILED|A waiting call returned an error| |MSG_WAIT_FAILED|A waiting call returned an error|

View File

@ -25,13 +25,20 @@ description: messages.sendMedia parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PART_LENGTH_INVALID|The length of a file part is invalid|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|MEDIA_CAPTION_TOO_LONG|The caption is too long| |MEDIA_CAPTION_TOO_LONG|The caption is too long|
|MEDIA_EMPTY|The provided media object is invalid| |MEDIA_EMPTY|The provided media object is invalid|
|PEER_ID_INVALID|The provided peer id is invalid| |PEER_ID_INVALID|The provided peer id is invalid|
|PHOTO_EXT_INVALID|The extension of the photo is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid|
|STORAGE_CHECK_FAILED|Server storage check failed| |STORAGE_CHECK_FAILED|Server storage check failed|
|USER_IS_BLOCKED|User is blocked|
|USER_IS_BOT|Bots can't send messages to other bots|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|

View File

@ -30,6 +30,7 @@ description: messages.sendMessage parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|CHAT_ID_INVALID|The provided chat id is invalid|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|MESSAGE_EMPTY|The provided message is empty| |MESSAGE_EMPTY|The provided message is empty|

View File

@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|FILE_PART_0_MISSING|File part 0 missing|
|FILE_PARTS_INVALID|The number of file parts is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid|
|IMAGE_PROCESS_FAILED|Failure while processing image|
|PHOTO_CROP_SIZE_SMALL|Photo is too small| |PHOTO_CROP_SIZE_SMALL|Photo is too small|
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
### Example: ### Example:

View File

@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|NEW_SALT_INVALID|The new salt is invalid|
|NEW_SETTINGS_INVALID|The new settings are invalid| |NEW_SETTINGS_INVALID|The new settings are invalid|
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: auth.checkPhone parameters, return type and example
|----------|---------------| |----------|---------------|
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| |PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|PHONE_NUMBER_INVALID|The phone number is invalid| |PHONE_NUMBER_INVALID|The phone number is invalid|
|PHONE_NUMBER_INVALID|The phone number is invalid|
### Example: ### Example:

View File

@ -25,6 +25,7 @@ description: channels.checkUsername parameters, return type and example
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_ID_INVALID|The provided chat id is invalid|
|USERNAME_INVALID|The provided username is not valid|
### Example: ### Example:

View File

@ -24,6 +24,8 @@ description: channels.editAbout parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ABOUT_NOT_MODIFIED|About text has not changed|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example: ### Example:

View File

@ -27,6 +27,9 @@ description: channels.editAdmin parameters, return type and example
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| |CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this|
|USER_CREATOR|You can't leave this channel, because you're its creator|
|USER_ID_INVALID|The provided user ID is invalid|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|

View File

@ -24,6 +24,7 @@ description: channels.editTitle parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
### Example: ### Example:

View File

@ -22,6 +22,7 @@ description: channels.getChannels parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid|
|NEED_CHAT_INVALID|The provided chat is invalid| |NEED_CHAT_INVALID|The provided chat is invalid|

View File

@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|

View File

@ -31,11 +31,13 @@ description: channels.inviteToChannel parameters, return type and example
|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|INPUT_USER_DEACTIVATED|The specified user was deleted| |INPUT_USER_DEACTIVATED|The specified user was deleted|
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|USER_BOT|Bots can only be admins in channels.|
|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|USER_ID_INVALID|The provided user ID is invalid| |USER_ID_INVALID|The provided user ID is invalid|
|USER_KICKED|This user was kicked from this supergroup/channel| |USER_KICKED|This user was kicked from this supergroup/channel|
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| |USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| |USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
### Example: ### Example:

View File

@ -24,6 +24,7 @@ description: channels.joinChannel parameters, return type and example
|----------|---------------| |----------|---------------|
|CHANNEL_INVALID|The provided channel is invalid| |CHANNEL_INVALID|The provided channel is invalid|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
### Example: ### Example:

View File

@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
| Error | Description | | Error | Description |
|----------|---------------| |----------|---------------|
|CONNECTION_LAYER_INVALID|Layer invalid|
|INPUT_FETCH_FAIL|Failed deserializing TL payload| |INPUT_FETCH_FAIL|Failed deserializing TL payload|

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