diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -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: diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -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: diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -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: diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -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: diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index cada97f7..6c372ef9 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -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| diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index 52a15ce9..7fb904b9 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -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| diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -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: diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -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| diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -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| diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -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: diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -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: diff --git a/docs/API_docs/methods/channels_setStickers.md b/docs/API_docs/methods/channels_setStickers.md index c0755222..6712ada0 100644 --- a/docs/API_docs/methods/channels_setStickers.md +++ b/docs/API_docs/methods/channels_setStickers.md @@ -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: diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index c09d0684..b66ab859 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -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| diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -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| diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -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| diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -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| diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -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: diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -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| diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -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| diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index 2321d4f2..fa0da85a 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -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: diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -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| diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -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| diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -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| diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -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| diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -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| diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index 4ca8cff7..02ec673b 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index 90e183aa..dfd042ed 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 5ff14fdc..2da373b7 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index 6fb3f60e..c836dab0 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index b564d460..78d9652a 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index cfc31036..cef5621e 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index 90e183aa..dfd042ed 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 5ff14fdc..2da373b7 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index 6fb3f60e..c836dab0 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index b564d460..78d9652a 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index cfc31036..cef5621e 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index 90e183aa..dfd042ed 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 5ff14fdc..2da373b7 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index 6fb3f60e..c836dab0 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index ce23c874..75748ba7 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index e4676bb0..b3ebf402 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 6f34fcdb..2e9d7c55 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index 6fb3f60e..c836dab0 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index 963d0cfc..b8deffa4 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index 028ab64f..c790d8ab 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 6f34fcdb..2e9d7c55 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index 6fb3f60e..c836dab0 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index a5aa1fb9..3bbe8269 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index 02632337..3eccd03d 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index 9c6b48a5..7ec0ecc6 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index 8dd3f599..93e80c63 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -24,14 +24,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: diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index 8d457c35..24dab686 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -23,6 +23,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| diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index a5aa1fb9..3bbe8269 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 3e6f1688..0f9e04de 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -32,6 +32,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| diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 6f34fcdb..2e9d7c55 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index 8d457c35..24dab686 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -23,6 +23,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| diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index a5aa1fb9..3bbe8269 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 3e6f1688..0f9e04de 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -32,6 +32,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| diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index 9c6b48a5..7ec0ecc6 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index 39810493..103e1df1 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -25,14 +25,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: diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index 8d457c35..24dab686 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -23,6 +23,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| diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 0e097b33..6f11a7a2 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -26,13 +26,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| diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index b1f581ad..6b0b4c57 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -34,6 +34,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| diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index 39810493..103e1df1 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -25,14 +25,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: diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 0e097b33..6f11a7a2 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -26,13 +26,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| diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index b1f581ad..6b0b4c57 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -34,6 +34,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| diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index 39810493..103e1df1 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -25,14 +25,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: diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 0e097b33..6f11a7a2 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -26,13 +26,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| diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index b1f581ad..6b0b4c57 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -34,6 +34,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| diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index 39810493..103e1df1 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -25,14 +25,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: diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index b25f00bb..e1c6b2a2 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -27,6 +27,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| diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 0e097b33..6f11a7a2 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -26,13 +26,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| diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index b1f581ad..6b0b4c57 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -34,6 +34,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| diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index 39810493..103e1df1 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -25,14 +25,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: diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index b25f00bb..e1c6b2a2 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -27,6 +27,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| diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 0e097b33..6f11a7a2 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -26,13 +26,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| diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index b1f581ad..6b0b4c57 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -34,6 +34,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| diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index 87fa8506..e50b70a6 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index 73ba4090..fadbdbd0 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index d3bc4c53..626fc6c3 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index bac92ac3..cf2e36fb 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index 118a62bc..2f8eb3b7 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 718a0e4b..382c4a30 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -26,14 +26,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: diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 718a0e4b..382c4a30 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -26,14 +26,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: diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index 5585c6c0..ae20fdfc 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index 7ad3840b..7d57d188 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -25,6 +25,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| diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -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| diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/auth_checkPhone.md b/old_docs/API_docs_v65/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v65/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/channels_checkUsername.md b/old_docs/API_docs_v65/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v65/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v65/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/channels_editAbout.md b/old_docs/API_docs_v65/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v65/methods/channels_editAbout.md +++ b/old_docs/API_docs_v65/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/channels_editAdmin.md b/old_docs/API_docs_v65/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v65/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/channels_joinChannel.md b/old_docs/API_docs_v65/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/initConnection.md b/old_docs/API_docs_v65/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v65/methods/initConnection.md +++ b/old_docs/API_docs_v65/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_addChatUser.md b/old_docs/API_docs_v65/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v65/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/messages_getDialogs.md b/old_docs/API_docs_v65/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/old_docs/API_docs_v65/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/phone_receivedCall.md b/old_docs/API_docs_v65/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/old_docs/API_docs_v65/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v65/methods/phone_receivedCall.md @@ -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| diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/auth_checkPhone.md b/old_docs/API_docs_v66/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v66/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/channels_checkUsername.md b/old_docs/API_docs_v66/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v66/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v66/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/channels_editAbout.md b/old_docs/API_docs_v66/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v66/methods/channels_editAbout.md +++ b/old_docs/API_docs_v66/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/channels_editAdmin.md b/old_docs/API_docs_v66/methods/channels_editAdmin.md index 9382c319..e5e49253 100644 --- a/old_docs/API_docs_v66/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/channels_joinChannel.md b/old_docs/API_docs_v66/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/initConnection.md b/old_docs/API_docs_v66/methods/initConnection.md index 2b33ed26..0d22a1cb 100644 --- a/old_docs/API_docs_v66/methods/initConnection.md +++ b/old_docs/API_docs_v66/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_addChatUser.md b/old_docs/API_docs_v66/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v66/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/messages_getDialogs.md b/old_docs/API_docs_v66/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/old_docs/API_docs_v66/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index 3230b65e..522abac1 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -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: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/phone_receivedCall.md b/old_docs/API_docs_v66/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/old_docs/API_docs_v66/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v66/methods/phone_receivedCall.md @@ -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| diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/auth_checkPhone.md b/old_docs/API_docs_v68/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v68/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/channels_checkUsername.md b/old_docs/API_docs_v68/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v68/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v68/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/channels_editAbout.md b/old_docs/API_docs_v68/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v68/methods/channels_editAbout.md +++ b/old_docs/API_docs_v68/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/channels_editAdmin.md b/old_docs/API_docs_v68/methods/channels_editAdmin.md index cada97f7..6c372ef9 100644 --- a/old_docs/API_docs_v68/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/channels_editBanned.md b/old_docs/API_docs_v68/methods/channels_editBanned.md index 52a15ce9..7fb904b9 100644 --- a/old_docs/API_docs_v68/methods/channels_editBanned.md +++ b/old_docs/API_docs_v68/methods/channels_editBanned.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/channels_getChannels.md b/old_docs/API_docs_v68/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/channels_joinChannel.md b/old_docs/API_docs_v68/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/initConnection.md b/old_docs/API_docs_v68/methods/initConnection.md index c09d0684..b66ab859 100644 --- a/old_docs/API_docs_v68/methods/initConnection.md +++ b/old_docs/API_docs_v68/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_addChatUser.md b/old_docs/API_docs_v68/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v68/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/messages_getDialogs.md b/old_docs/API_docs_v68/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/old_docs/API_docs_v68/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index ab888435..af8a34dd 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/phone_receivedCall.md b/old_docs/API_docs_v68/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/old_docs/API_docs_v68/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v68/methods/phone_receivedCall.md @@ -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| diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index 4ca8cff7..02ec673b 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md index fe6d62f4..ad4c10cc 100644 --- a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/auth_checkPhone.md b/old_docs/API_docs_v70/methods/auth_checkPhone.md index 23fa22ba..3455904d 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v70/methods/auth_checkPhone.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/channels_checkUsername.md b/old_docs/API_docs_v70/methods/channels_checkUsername.md index e8bcf845..d6ea876d 100644 --- a/old_docs/API_docs_v70/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v70/methods/channels_checkUsername.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/channels_editAbout.md b/old_docs/API_docs_v70/methods/channels_editAbout.md index b9655325..9438df1b 100644 --- a/old_docs/API_docs_v70/methods/channels_editAbout.md +++ b/old_docs/API_docs_v70/methods/channels_editAbout.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/channels_editAdmin.md b/old_docs/API_docs_v70/methods/channels_editAdmin.md index cada97f7..6c372ef9 100644 --- a/old_docs/API_docs_v70/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels_editAdmin.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/channels_editBanned.md b/old_docs/API_docs_v70/methods/channels_editBanned.md index 52a15ce9..7fb904b9 100644 --- a/old_docs/API_docs_v70/methods/channels_editBanned.md +++ b/old_docs/API_docs_v70/methods/channels_editBanned.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index 3b695af7..bb5dad6a 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/channels_getChannels.md b/old_docs/API_docs_v70/methods/channels_getChannels.md index a4dd92a0..665363cc 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index d13d93a8..289293ac 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md index 80441626..6f24f8b2 100644 --- a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/channels_joinChannel.md b/old_docs/API_docs_v70/methods/channels_joinChannel.md index f5787937..f31730a1 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/initConnection.md b/old_docs/API_docs_v70/methods/initConnection.md index c09d0684..b66ab859 100644 --- a/old_docs/API_docs_v70/methods/initConnection.md +++ b/old_docs/API_docs_v70/methods/initConnection.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index 48663a68..9aae3f67 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_addChatUser.md b/old_docs/API_docs_v70/methods/messages_addChatUser.md index d0d6167b..ce22bc31 100644 --- a/old_docs/API_docs_v70/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_addChatUser.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index a15e0235..5937b22a 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index 9f309530..eb1f9872 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/messages_getDialogs.md b/old_docs/API_docs_v70/methods/messages_getDialogs.md index b79d9428..27f0d655 100644 --- a/old_docs/API_docs_v70/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getDialogs.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md index c6044a89..263f3f95 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index ab888435..af8a34dd 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -32,6 +32,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: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md index 388243c8..ce1f2bf0 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index 557c6004..f589a382 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md index bdb08f80..8a91e882 100644 --- a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 1888a271..6c5e65d5 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index 7e2a71fa..337aecb6 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/phone_receivedCall.md b/old_docs/API_docs_v70/methods/phone_receivedCall.md index 765be909..9d59b1ea 100644 --- a/old_docs/API_docs_v70/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v70/methods/phone_receivedCall.md @@ -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| diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index 0bb06b1d..58541f23 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -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: diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index 4ca8cff7..02ec673b 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -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|