Update docs
This commit is contained in:
parent
fba1c8e623
commit
ef49c56407
@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|NEW_SALT_INVALID|The new salt is invalid|
|
||||
|NEW_SETTINGS_INVALID|The new settings are invalid|
|
||||
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -25,6 +25,7 @@ description: channels.checkUsername parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|USERNAME_INVALID|The provided username is not valid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -24,6 +24,8 @@ description: channels.editAbout parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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:
|
||||
|
@ -27,6 +27,9 @@ description: channels.editAdmin parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|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|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.editBanned parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|USER_ADMIN_INVALID|You're not an admin|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|
@ -24,6 +24,7 @@ description: channels.editTitle parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -22,6 +22,7 @@ description: channels.getChannels parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|NEED_CHAT_INVALID|The provided chat is invalid|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -31,11 +31,13 @@ description: channels.inviteToChannel parameters, return type and example
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|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_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_KICKED|This user was kicked from this supergroup/channel|
|
||||
|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|
|
||||
|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -24,6 +24,7 @@ description: channels.joinChannel parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -24,6 +24,7 @@ description: channels.setStickers parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|PARTICIPANTS_TOO_FEW|Not enough participants|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -29,6 +29,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -28,7 +28,9 @@ description: messages.editMessage parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|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_NOT_MODIFIED|The message text has not changed|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
@ -27,14 +27,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -26,6 +26,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -24,6 +24,8 @@ description: messages.getMessagesViews parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|
||||
|
||||
|
@ -34,6 +34,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@ description: messages.sendInlineBotResult parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INLINE_RESULT_EXPIRED|The inline query expired|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|QUERY_ID_EMPTY|The query ID is empty|
|
||||
|
||||
|
||||
|
@ -28,13 +28,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -36,6 +36,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -22,6 +22,7 @@ description: phone.receivedCall parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CALL_ALREADY_DECLINED|The call was already declined|
|
||||
|CALL_PEER_INVALID|The provided call peer object is invalid|
|
||||
|
||||
|
||||
|
@ -22,8 +22,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,9 @@ description: stickers.createStickerSet parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -23,13 +23,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -23,13 +23,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -24,13 +24,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|NEW_SALT_INVALID|The new salt is invalid|
|
||||
|NEW_SETTINGS_INVALID|The new settings are invalid|
|
||||
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -24,13 +24,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -29,6 +29,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|NEW_SALT_INVALID|The new salt is invalid|
|
||||
|NEW_SETTINGS_INVALID|The new settings are invalid|
|
||||
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: invokeWithLayer parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
@ -23,14 +23,22 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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_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|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|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_INVALID|A provided random ID is invalid|
|
||||
|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:
|
||||
|
@ -24,6 +24,7 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: messages.search parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncrypted parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
@ -23,6 +23,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|DATA_INVALID|Encrypted data invalid|
|
||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||
|
||||
|
||||
|
@ -25,13 +25,20 @@ description: messages.sendMedia parameters, return type and example
|
||||
|
||||
| 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|
|
||||
|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|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MEDIA_CAPTION_TOO_LONG|The caption is too long|
|
||||
|MEDIA_EMPTY|The provided media object is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|PHOTO_EXT_INVALID|The extension of the photo is invalid|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -30,6 +30,7 @@ description: messages.sendMessage parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
@ -25,8 +25,11 @@ description: photos.uploadProfilePhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|FILE_PART_0_MISSING|File part 0 missing|
|
||||
|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_EXT_INVALID|The extension of the photo is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -23,7 +23,9 @@ description: account.updatePasswordSettings parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|NEW_SALT_INVALID|The new salt is invalid|
|
||||
|NEW_SETTINGS_INVALID|The new settings are invalid|
|
||||
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -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_INVALID|The phone number is invalid|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -25,6 +25,7 @@ description: channels.checkUsername parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|USERNAME_INVALID|The provided username is not valid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -24,6 +24,8 @@ description: channels.editAbout parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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:
|
||||
|
@ -27,6 +27,9 @@ description: channels.editAdmin parameters, return type and example
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|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|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: channels.editTitle parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -22,6 +22,7 @@ description: channels.getChannels parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|NEED_CHAT_INVALID|The provided chat is invalid|
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|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|
|
||||
|
||||
|
||||
|
@ -31,11 +31,13 @@ description: channels.inviteToChannel parameters, return type and example
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|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_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_KICKED|This user was kicked from this supergroup/channel|
|
||||
|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|
|
||||
|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -24,6 +24,7 @@ description: channels.joinChannel parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups|
|
||||
|
||||
|
||||
### Example:
|
||||
|
@ -27,6 +27,7 @@ description: initConnection parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CONNECTION_LAYER_INVALID|Layer invalid|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user