diff --git a/v1.json b/v1.json index eb84ea3..7157ca6 100644 --- a/v1.json +++ b/v1.json @@ -36,6 +36,7 @@ "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", + "GIF_CONTENT_TYPE_INVALID", "MESSAGE_EMPTY", "MESSAGE_TOO_LONG", "PHOTO_INVALID", @@ -44,7 +45,8 @@ "REPLY_MARKUP_INVALID", "RESULT_TYPE_INVALID", "SEND_MESSAGE_TYPE_INVALID", - "START_PARAM_INVALID" + "START_PARAM_INVALID", + "WEBDOCUMENT_SIZE_TOO_BIG" ], "auth.importAuthorization": [ "AUTH_BYTES_INVALID", @@ -64,7 +66,35 @@ "messages.editChatDefaultBannedRights": [ "BANNED_RIGHTS_INVALID", "CHAT_NOT_MODIFIED", - "PEER_ID_INVALID" + "PEER_ID_INVALID", + "UNTIL_DATE_INVALID" + ], + "messages.sendMessage": [ + "BOT_DOMAIN_INVALID", + "BOT_INVALID", + "BUTTON_DATA_INVALID", + "BUTTON_TYPE_INVALID", + "BUTTON_URL_INVALID", + "CHANNEL_INVALID", + "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED", + "CHAT_ID_INVALID", + "CHAT_RESTRICTED", + "ENCRYPTION_DECLINED", + "ENTITY_MENTION_USER_INVALID", + "FROM_MESSAGE_BOT_DISABLED", + "INPUT_USER_DEACTIVATED", + "MESSAGE_EMPTY", + "MESSAGE_TOO_LONG", + "MSG_ID_INVALID", + "PEER_ID_INVALID", + "REPLY_MARKUP_INVALID", + "SCHEDULE_BOT_NOT_ALLOWED", + "SCHEDULE_TOO_MUCH", + "USER_BANNED_IN_CHANNEL", + "USER_IS_BLOCKED", + "USER_IS_BOT", + "YOU_BLOCKED_USER" ], "channels.inviteToChannel": [ "BOT_GROUPS_BLOCKED", @@ -91,6 +121,7 @@ "messages.startBot": [ "BOT_INVALID", "INPUT_USER_DEACTIVATED", + "MSG_ID_INVALID", "PEER_ID_INVALID", "START_PARAM_EMPTY", "START_PARAM_INVALID" @@ -126,8 +157,14 @@ "BOT_MISSING", "STICKER_INVALID" ], + "channels.setDiscussionGroup": [ + "BROADCAST_ID_INVALID", + "LINK_NOT_MODIFIED", + "MEGAGROUP_ID_INVALID" + ], "messages.sendMedia": [ "BUTTON_DATA_INVALID", + "BUTTON_TYPE_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", @@ -145,37 +182,16 @@ "PHOTO_EXT_INVALID", "PHOTO_INVALID_DIMENSIONS", "PHOTO_SAVE_FILE_INVALID", + "REPLY_MARKUP_BUY_EMPTY", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", "USER_IS_BOT", "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY" - ], - "messages.sendMessage": [ - "BUTTON_DATA_INVALID", - "BUTTON_TYPE_INVALID", - "BUTTON_URL_INVALID", - "CHANNEL_INVALID", - "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED", - "CHAT_ID_INVALID", - "CHAT_RESTRICTED", - "ENTITY_MENTION_USER_INVALID", - "FROM_MESSAGE_BOT_DISABLED", - "INPUT_USER_DEACTIVATED", - "MESSAGE_EMPTY", - "MESSAGE_TOO_LONG", - "MSG_ID_INVALID", - "PEER_ID_INVALID", - "REPLY_MARKUP_INVALID", - "SCHEDULE_BOT_NOT_ALLOWED", - "SCHEDULE_TOO_MUCH", - "USER_BANNED_IN_CHANNEL", - "USER_IS_BLOCKED", - "USER_IS_BOT", + "WEBPAGE_MEDIA_EMPTY", "YOU_BLOCKED_USER" ], "messages.editMessage": [ + "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", @@ -186,6 +202,7 @@ "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED", "PEER_ID_INVALID", + "SCHEDULE_DATE_INVALID", "USER_BANNED_IN_CHANNEL" ], "phone.acceptCall": [ @@ -243,7 +260,8 @@ ], "channels.deleteMessages": [ "CHANNEL_INVALID", - "CHANNEL_PRIVATE" + "CHANNEL_PRIVATE", + "MSG_ID_INVALID" ], "channels.deleteUserHistory": [ "CHANNEL_INVALID", @@ -262,6 +280,7 @@ "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "MSG_ID_INVALID", + "PINNED_DIALOGS_TOO_MUCH", "USER_ADMIN_INVALID", "USER_ID_INVALID" ], @@ -269,6 +288,8 @@ "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", + "PHOTO_CROP_SIZE_SMALL", + "PHOTO_EXT_INVALID", "PHOTO_INVALID" ], "channels.editTitle": [ @@ -311,6 +332,7 @@ "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", + "MSG_ID_INVALID", "USER_ID_INVALID", "USER_NOT_PARTICIPANT" ], @@ -387,6 +409,7 @@ "MEDIA_EMPTY", "MESSAGE_ID_INVALID", "MESSAGE_IDS_EMPTY", + "MSG_ID_INVALID", "PEER_ID_INVALID", "RANDOM_ID_INVALID", "USER_BANNED_IN_CHANNEL", @@ -396,6 +419,7 @@ ], "messages.getBotCallbackAnswer": [ "CHANNEL_INVALID", + "CHANNEL_PRIVATE", "DATA_INVALID", "MESSAGE_ID_INVALID", "PEER_ID_INVALID" @@ -411,6 +435,7 @@ "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", + "MSG_ID_INVALID", "PEER_ID_INVALID" ], "messages.getPeerSettings": [ @@ -451,12 +476,19 @@ "PINNED_DIALOGS_TOO_MUCH", "RANGES_INVALID" ], + "channels.editCreator": [ + "CHANNEL_PRIVATE", + "PASSWORD_HASH_INVALID", + "PASSWORD_TOO_FRESH_X", + "SESSION_TOO_FRESH_X" + ], "messages.getPeerDialogs": [ "CHANNEL_PRIVATE", "PEER_ID_INVALID" ], "channels.createChannel": [ "CHANNELS_TOO_MUCH", + "CHAT_ABOUT_TOO_LONG", "CHAT_TITLE_EMPTY" ], "messages.importChatInvite": [ @@ -482,6 +514,12 @@ "USER_ID_INVALID", "USERS_TOO_MUCH" ], + "messages.deleteChatUser": [ + "CHAT_ADMIN_REQUIRED", + "CHAT_ID_INVALID", + "PEER_ID_INVALID", + "USER_NOT_PARTICIPANT" + ], "messages.exportChatInvite": [ "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", @@ -493,7 +531,12 @@ "PEER_ID_INVALID", "QUERY_ID_EMPTY", "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY" + "WEBPAGE_MEDIA_EMPTY", + "YOU_BLOCKED_USER" + ], + "messages.updatePinnedMessage": [ + "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED" ], "messages.discardEncryption": [ "CHAT_ID_EMPTY", @@ -505,13 +548,9 @@ "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED" ], - "messages.deleteChatUser": [ - "CHAT_ID_INVALID", - "PEER_ID_INVALID", - "USER_NOT_PARTICIPANT" - ], "messages.editChatAdmin": [ - "CHAT_ID_INVALID" + "CHAT_ID_INVALID", + "USER_NOT_PARTICIPANT" ], "messages.editChatPhoto": [ "CHAT_ID_INVALID", @@ -558,15 +597,17 @@ "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED" ], + "messages.createChat": [ + "CHAT_INVALID", + "INPUT_USER_DEACTIVATED", + "USERS_TOO_FEW" + ], "channels.toggleSlowMode": [ "CHAT_NOT_MODIFIED", "INPUT_METHOD_INVALID_1192227_X", "INPUT_METHOD_INVALID_1604042050_X", "SECONDS_INVALID" ], - "messages.updatePinnedMessage": [ - "CHAT_NOT_MODIFIED" - ], "auth.recoverPassword": [ "CODE_EMPTY" ], @@ -575,10 +616,12 @@ "PHONE_CODE_EMPTY" ], "account.confirmPasswordEmail": [ - "CODE_INVALID" + "CODE_INVALID", + "EMAIL_HASH_EXPIRED" ], "help.getConfig": [ - "CONNECTION_DEVICE_MODEL_EMPTY" + "CONNECTION_DEVICE_MODEL_EMPTY", + "CONNECTION_NOT_INITED" ], "initConnection": [ "CONNECTION_LAYER_INVALID", @@ -605,6 +648,11 @@ "ENCRYPTION_DECLINED", "MSG_WAIT_FAILED" ], + "messages.sendEncryptedFile": [ + "DATA_TOO_LONG", + "MD5_CHECKSUM_INVALID", + "MSG_WAIT_FAILED" + ], "auth.exportAuthorization": [ "DC_ID_INVALID" ], @@ -617,7 +665,8 @@ "EMAIL_UNCONFIRMED_X", "NEW_SALT_INVALID", "NEW_SETTINGS_INVALID", - "PASSWORD_HASH_INVALID" + "PASSWORD_HASH_INVALID", + "SRP_ID_INVALID" ], "account.verifyEmail": [ "EMAIL_VERIFY_EXPIRED" @@ -643,6 +692,7 @@ "upload.saveBigFilePart": [ "FILE_PART_EMPTY", "FILE_PART_INVALID", + "FILE_PART_SIZE_CHANGED", "FILE_PART_SIZE_INVALID", "FILE_PARTS_INVALID" ], @@ -654,11 +704,14 @@ "photos.updateProfilePhoto": [ "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", - "PHOTO_CROP_SIZE_SMALL" + "LOCATION_INVALID", + "PHOTO_CROP_SIZE_SMALL", + "PHOTO_EXT_INVALID" ], "photos.uploadProfilePhoto": [ "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", + "PHOTO_CROP_FILE_MISSING", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID" ], @@ -693,9 +746,8 @@ "req_pq": [ "INPUT_METHOD_INVALID_1615239032_X" ], - "messages.createChat": [ - "INPUT_USER_DEACTIVATED", - "USERS_TOO_FEW" + "req_DH_params": [ + "INPUT_METHOD_INVALID_3608339646_X" ], "messages.checkChatInvite": [ "INVITE_HASH_EMPTY", @@ -725,8 +777,11 @@ "USER_ID_INVALID" ], "messages.sendMultiMedia": [ + "MEDIA_EMPTY", "MEDIA_INVALID", - "PEER_ID_INVALID" + "MULTI_MEDIA_TOO_LONG", + "PEER_ID_INVALID", + "RANDOM_ID_EMPTY" ], "auth.sendInvites": [ "MESSAGE_EMPTY" @@ -757,6 +812,11 @@ "messages.sendScheduledMessages": [ "MESSAGE_ID_INVALID" ], + "messages.sendVote": [ + "MESSAGE_ID_INVALID", + "MESSAGE_POLL_CLOSED", + "OPTION_INVALID" + ], "messages.setGameScore": [ "MESSAGE_ID_INVALID", "PEER_ID_INVALID", @@ -778,9 +838,9 @@ "payments.validateRequestedInfo": [ "MESSAGE_ID_INVALID" ], - "messages.sendVote": [ - "MESSAGE_POLL_CLOSED", - "OPTION_INVALID" + "users.getFullUser": [ + "MSG_ID_INVALID", + "USER_ID_INVALID" ], "users.getUsers": [ "MSG_ID_INVALID" @@ -791,9 +851,6 @@ "messages.receivedQueue": [ "MSG_WAIT_FAILED" ], - "messages.sendEncryptedFile": [ - "MSG_WAIT_FAILED" - ], "auth.requestPasswordRecovery": [ "PASSWORD_EMPTY" ], @@ -807,11 +864,6 @@ "auth.checkPassword": [ "PASSWORD_HASH_INVALID" ], - "channels.editCreator": [ - "PASSWORD_HASH_INVALID", - "PASSWORD_TOO_FRESH_X", - "SESSION_TOO_FRESH_X" - ], "account.getNotifySettings": [ "PEER_ID_INVALID" ], @@ -942,6 +994,9 @@ "messages.uninstallStickerSet": [ "STICKERSET_INVALID" ], + "account.uploadTheme": [ + "THEME_FILE_INVALID" + ], "account.registerDevice": [ "TOKEN_INVALID" ], @@ -960,9 +1015,6 @@ "messages.getCommonChats": [ "USER_ID_INVALID" ], - "users.getFullUser": [ - "USER_ID_INVALID" - ], "users.setSecureValueErrors": [ "USER_ID_INVALID" ], @@ -983,18 +1035,36 @@ ] }, "406": { + "account.updateProfile": [ + "AUTH_KEY_DUPLICATED" + ], "account.updateStatus": [ "AUTH_KEY_DUPLICATED" ], + "channels.getChannels": [ + "AUTH_KEY_DUPLICATED" + ], + "channels.getFullChannel": [ + "AUTH_KEY_DUPLICATED" + ], + "channels.getParticipants": [ + "AUTH_KEY_DUPLICATED" + ], "channels.joinChannel": [ "AUTH_KEY_DUPLICATED" ], + "contacts.resolveUsername": [ + "AUTH_KEY_DUPLICATED" + ], "help.getCdnConfig": [ "AUTH_KEY_DUPLICATED" ], "help.getConfig": [ "AUTH_KEY_DUPLICATED" ], + "help.getTermsOfServiceUpdate": [ + "AUTH_KEY_DUPLICATED" + ], "invokeWithLayer": [ "AUTH_KEY_DUPLICATED" ], @@ -1004,9 +1074,15 @@ "messages.getHistory": [ "AUTH_KEY_DUPLICATED" ], + "messages.getMessagesViews": [ + "AUTH_KEY_DUPLICATED" + ], "messages.getPeerDialogs": [ "AUTH_KEY_DUPLICATED" ], + "messages.search": [ + "AUTH_KEY_DUPLICATED" + ], "messages.sendMessage": [ "AUTH_KEY_DUPLICATED" ], @@ -1052,6 +1128,9 @@ "auth.importBotAuthorization": [ "AUTH_KEY_INVALID" ], + "auth.checkPhone": [ + "AUTH_KEY_PERM_EMPTY" + ], "contacts.resolveUsername": [ "AUTH_KEY_PERM_EMPTY", "SESSION_PASSWORD_NEEDED" @@ -1062,6 +1141,9 @@ "messages.getHistory": [ "AUTH_KEY_PERM_EMPTY" ], + "messages.sendMessage": [ + "AUTH_KEY_PERM_EMPTY" + ], "updates.getDifference": [ "AUTH_KEY_PERM_EMPTY", "SESSION_PASSWORD_NEEDED" @@ -1116,8 +1198,16 @@ ], "channels.editAdmin": [ "CHAT_ADMIN_INVITE_REQUIRED", + "CHAT_WRITE_FORBIDDEN", "RIGHT_FORBIDDEN", - "USER_PRIVACY_RESTRICTED" + "USER_PRIVACY_RESTRICTED", + "USER_RESTRICTED" + ], + "messages.editMessage": [ + "CHAT_ADMIN_REQUIRED", + "CHAT_WRITE_FORBIDDEN", + "INLINE_BOT_REQUIRED", + "MESSAGE_AUTHOR_REQUIRED" ], "messages.migrateChat": [ "CHAT_ADMIN_REQUIRED" @@ -1128,10 +1218,18 @@ "CHAT_SEND_STICKERS_FORBIDDEN", "CHAT_WRITE_FORBIDDEN" ], + "messages.sendInlineBotResult": [ + "CHAT_SEND_INLINE_FORBIDDEN", + "CHAT_SEND_MEDIA_FORBIDDEN", + "CHAT_WRITE_FORBIDDEN" + ], "messages.sendMedia": [ "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_WRITE_FORBIDDEN" ], + "channels.deleteChannel": [ + "CHAT_WRITE_FORBIDDEN" + ], "channels.editBanned": [ "CHAT_WRITE_FORBIDDEN" ], @@ -1152,14 +1250,6 @@ "messages.editChatAbout": [ "CHAT_WRITE_FORBIDDEN" ], - "messages.editMessage": [ - "CHAT_WRITE_FORBIDDEN", - "INLINE_BOT_REQUIRED", - "MESSAGE_AUTHOR_REQUIRED" - ], - "messages.sendInlineBotResult": [ - "CHAT_WRITE_FORBIDDEN" - ], "messages.sendMessage": [ "CHAT_WRITE_FORBIDDEN" ], @@ -1184,6 +1274,9 @@ "messages.setInlineBotResults": [ "USER_BOT_INVALID" ], + "help.getSupportName": [ + "USER_INVALID" + ], "help.getUserInfo": [ "USER_INVALID" ], @@ -1209,11 +1302,17 @@ "messages.forwardMessages": [ "SLOWMODE_WAIT_X" ], + "messages.sendMedia": [ + "SLOWMODE_WAIT_X" + ], "messages.sendMessage": [ "SLOWMODE_WAIT_X" ] }, "-503": { + "account.updateProfile": [ + "Timeout" + ], "account.updateStatus": [ "Timeout" ], @@ -1349,6 +1448,9 @@ "BOT_CHANNELS_NA": [ "Bots can't edit admin privileges" ], + "BOT_DOMAIN_INVALID": [ + "Bot domain invalid" + ], "BOT_GROUPS_BLOCKED": [ "This bot can't be added to groups" ], @@ -1367,6 +1469,9 @@ "BOTS_TOO_MUCH": [ "There are too many bots in this chat\/channel" ], + "BROADCAST_ID_INVALID": [ + "Broadcast ID invalid" + ], "BUTTON_DATA_INVALID": [ "The data of one or more of the buttons you provided is invalid" ], @@ -1445,6 +1550,9 @@ "CHAT_SEND_GIFS_FORBIDDEN": [ "You can't send gifs in this chat" ], + "CHAT_SEND_INLINE_FORBIDDEN": [ + "You can't send inline messages in this group" + ], "CHAT_SEND_MEDIA_FORBIDDEN": [ "You can't send media in this chat" ], @@ -1499,6 +1607,9 @@ "DATA_JSON_INVALID": [ "The provided JSON data is invalid" ], + "DATA_TOO_LONG": [ + "Data too long" + ], "DATE_EMPTY": [ "Date empty" ], @@ -1508,6 +1619,9 @@ "DH_G_A_INVALID": [ "g_a invalid" ], + "EMAIL_HASH_EXPIRED": [ + "Email hash expired" + ], "EMAIL_UNCONFIRMED": [ "Email unconfirmed" ], @@ -1565,6 +1679,9 @@ "FILE_PART_LENGTH_INVALID": [ "The length of a file part is invalid" ], + "FILE_PART_SIZE_CHANGED": [ + "Provided file part size has changed" + ], "FILE_PART_SIZE_INVALID": [ "The provided file part size is invalid" ], @@ -1589,6 +1706,9 @@ "FROM_MESSAGE_BOT_DISABLED": [ "Bots can't use fromMessage min constructors" ], + "GIF_CONTENT_TYPE_INVALID": [ + "GIF content-type invalid" + ], "GIF_ID_INVALID": [ "The provided GIF ID is invalid" ], @@ -1637,6 +1757,9 @@ "INPUT_METHOD_INVALID_1615239032_X": [ "Invalid method, use req_pq_multi instead" ], + "INPUT_METHOD_INVALID_3608339646_X": [ + "Invalid method" + ], "INPUT_REQUEST_TOO_LONG": [ "The request is too big" ], @@ -1691,6 +1814,9 @@ "LIMIT_INVALID": [ "The provided limit is invalid" ], + "LINK_NOT_MODIFIED": [ + "Discussion link not modified" + ], "LOCATION_INVALID": [ "The provided location is invalid" ], @@ -1709,6 +1835,9 @@ "MEDIA_INVALID": [ "Media invalid" ], + "MEGAGROUP_ID_INVALID": [ + "Invalid supergroup ID" + ], "MEMBER_NO_LOCATION": [ "An internal failure occurred while fetching user info (couldn't find location)" ], @@ -1754,6 +1883,9 @@ "MSGID_DECREASE_RETRY": [ "IDK TBH" ], + "MULTI_MEDIA_TOO_LONG": [ + "Too many media files for album" + ], "NEED_CHAT_INVALID": [ "The provided chat is invalid" ], @@ -1853,6 +1985,9 @@ "PHONE_PASSWORD_PROTECTED": [ "This phone is password protected" ], + "PHOTO_CROP_FILE_MISSING": [ + "Photo crop file missing" + ], "PHOTO_CROP_SIZE_SMALL": [ "Photo is too small" ], @@ -1892,6 +2027,9 @@ "RANDOM_ID_DUPLICATE": [ "You provided a random ID that was already used" ], + "RANDOM_ID_EMPTY": [ + "Random ID empty" + ], "RANDOM_ID_INVALID": [ "A provided random ID is invalid" ], @@ -1907,6 +2045,9 @@ "REG_ID_GENERATE_FAILED": [ "Failure while generating registration ID" ], + "REPLY_MARKUP_BUY_EMPTY": [ + "Reply markup for buy button empty" + ], "REPLY_MARKUP_INVALID": [ "The provided reply markup is invalid" ], @@ -1928,6 +2069,9 @@ "SCHEDULE_BOT_NOT_ALLOWED": [ "Bots cannot schedule messages" ], + "SCHEDULE_DATE_INVALID": [ + "Invalid schedule date provided" + ], "SCHEDULE_TOO_MUCH": [ "There are too many scheduled messages" ], @@ -1955,6 +2099,9 @@ "SMS_CODE_CREATE_FAILED": [ "An error occurred while creating the SMS code" ], + "SRP_ID_INVALID": [ + "Invalid SRP ID provided" + ], "START_PARAM_EMPTY": [ "The start parameter is empty" ], @@ -1994,6 +2141,9 @@ "TEMP_AUTH_KEY_EMPTY": [ "No temporary auth key provided" ], + "THEME_FILE_INVALID": [ + "Invalid theme file provided" + ], "Timeout": [ "Timeout while fetching data" ], @@ -2015,6 +2165,9 @@ "UNKNOWN_METHOD": [ "The method you tried to call cannot be called on non-CDN DCs" ], + "UNTIL_DATE_INVALID": [ + "Invalid until date provided" + ], "URL_INVALID": [ "Invalid URL provided" ], @@ -2099,6 +2252,9 @@ "WC_CONVERT_URL_INVALID": [ "WC convert URL invalid" ], + "WEBDOCUMENT_SIZE_TOO_BIG": [ + "Webdocument is too big!" + ], "WEBPAGE_CURL_FAILED": [ "Failure while fetching the webpage with cURL" ], diff --git a/v2.json b/v2.json index 5a35f58..eeb0db3 100644 --- a/v2.json +++ b/v2.json @@ -7,10 +7,20 @@ "error_message": "ABOUT_TOO_LONG", "error_description": "About string too long" }, + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, { "error_code": 400, "error_message": "FIRSTNAME_INVALID", "error_description": "The first name is invalid" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" } ], "auth.importBotAuthorization": [ @@ -61,6 +71,11 @@ "error_message": "CHAT_ADMIN_REQUIRED", "error_description": "You must be an admin in this chat to do this" }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" + }, { "error_code": 403, "error_message": "RIGHT_FORBIDDEN", @@ -85,6 +100,11 @@ "error_code": 403, "error_message": "USER_PRIVACY_RESTRICTED", "error_description": "The user's privacy settings do not allow you to do this" + }, + { + "error_code": 403, + "error_message": "USER_RESTRICTED", + "error_description": "You're spamreported, you can't create channels or chats." } ], "auth.sendCode": [ @@ -165,6 +185,11 @@ "error_message": "BUTTON_URL_INVALID", "error_description": "Button URL invalid" }, + { + "error_code": 400, + "error_message": "GIF_CONTENT_TYPE_INVALID", + "error_description": "GIF content-type invalid" + }, { "error_code": 400, "error_message": "MESSAGE_EMPTY", @@ -214,6 +239,11 @@ "error_code": 403, "error_message": "USER_BOT_INVALID", "error_description": "This method can only be called by a bot" + }, + { + "error_code": 400, + "error_message": "WEBDOCUMENT_SIZE_TOO_BIG", + "error_description": "Webdocument is too big!" } ], "auth.importAuthorization": [ @@ -307,6 +337,92 @@ "error_description": "Timeout while fetching data" } ], + "channels.getChannels": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 400, + "error_message": "CHANNEL_INVALID", + "error_description": "The provided channel is invalid" + }, + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + } + ], + "channels.getFullChannel": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 400, + "error_message": "CHANNEL_INVALID", + "error_description": "The provided channel is invalid" + }, + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 403, + "error_message": "CHANNEL_PUBLIC_GROUP_NA", + "error_description": "channel\/supergroup not available" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + } + ], + "channels.getParticipants": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 400, + "error_message": "CHANNEL_INVALID", + "error_description": "The provided channel is invalid" + }, + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 400, + "error_message": "INPUT_CONSTRUCTOR_INVALID", + "error_description": "The provided constructor is invalid" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + } + ], "channels.joinChannel": [ { "error_code": 406, @@ -349,6 +465,33 @@ "error_description": "The user is already in the group" } ], + "contacts.resolveUsername": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 401, + "error_message": "AUTH_KEY_PERM_EMPTY", + "error_description": "The temporary auth key must be binded to the permanent auth key to use these methods." + }, + { + "error_code": 401, + "error_message": "SESSION_PASSWORD_NEEDED", + "error_description": "2FA is enabled, use a password to login" + }, + { + "error_code": 400, + "error_message": "USERNAME_INVALID", + "error_description": "The provided username is not valid" + }, + { + "error_code": 400, + "error_message": "USERNAME_NOT_OCCUPIED", + "error_description": "The provided username is not occupied" + } + ], "help.getCdnConfig": [ { "error_code": 406, @@ -377,12 +520,24 @@ "error_message": "CONNECTION_DEVICE_MODEL_EMPTY", "error_description": "Device model empty" }, + { + "error_code": 400, + "error_message": "CONNECTION_NOT_INITED", + "error_description": "Connection not initialized" + }, { "error_code": -503, "error_message": "Timeout", "error_description": "Timeout while fetching data" } ], + "help.getTermsOfServiceUpdate": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + } + ], "messages.getBotCallbackAnswer": [ { "error_code": 406, @@ -394,6 +549,11 @@ "error_message": "CHANNEL_INVALID", "error_description": "The provided channel is invalid" }, + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, { "error_code": 400, "error_message": "DATA_INVALID", @@ -457,6 +617,38 @@ "error_description": "Timeout while fetching data" } ], + "messages.getMessagesViews": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 400, + "error_message": "CHANNEL_INVALID", + "error_description": "The provided channel is invalid" + }, + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 400, + "error_message": "CHAT_ID_INVALID", + "error_description": "The provided chat id is invalid" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + } + ], "messages.getPeerDialogs": [ { "error_code": 406, @@ -474,12 +666,74 @@ "error_description": "The provided peer id is invalid" } ], + "messages.search": [ + { + "error_code": 406, + "error_message": "AUTH_KEY_DUPLICATED", + "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": 400, + "error_message": "CHANNEL_INVALID", + "error_description": "The provided channel is invalid" + }, + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 400, + "error_message": "INPUT_CONSTRUCTOR_INVALID", + "error_description": "The provided constructor is invalid" + }, + { + "error_code": 400, + "error_message": "INPUT_USER_DEACTIVATED", + "error_description": "The specified user was deleted" + }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "PEER_ID_NOT_SUPPORTED", + "error_description": "The provided peer ID is not supported" + }, + { + "error_code": 400, + "error_message": "SEARCH_QUERY_EMPTY", + "error_description": "The search query is empty" + }, + { + "error_code": 400, + "error_message": "USER_ID_INVALID", + "error_description": "The provided user ID is invalid" + } + ], "messages.sendMessage": [ { "error_code": 406, "error_message": "AUTH_KEY_DUPLICATED", "error_description": "An auth key with the same ID was already generated" }, + { + "error_code": 401, + "error_message": "AUTH_KEY_PERM_EMPTY", + "error_description": "The temporary auth key must be binded to the permanent auth key to use these methods." + }, + { + "error_code": 400, + "error_message": "BOT_DOMAIN_INVALID", + "error_description": "Bot domain invalid" + }, + { + "error_code": 400, + "error_message": "BOT_INVALID", + "error_description": "This is not a valid bot" + }, { "error_code": 400, "error_message": "BUTTON_DATA_INVALID", @@ -525,6 +779,11 @@ "error_message": "CHAT_WRITE_FORBIDDEN", "error_description": "You can't write in this chat" }, + { + "error_code": 400, + "error_message": "ENCRYPTION_DECLINED", + "error_description": "The secret chat was declined" + }, { "error_code": 400, "error_message": "ENTITY_MENTION_USER_INVALID", @@ -785,6 +1044,11 @@ "error_message": "AUTH_KEY_DUPLICATED", "error_description": "An auth key with the same ID was already generated" }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, { "error_code": -503, "error_message": "Timeout", @@ -823,26 +1087,26 @@ "error_description": "Timeout while fetching data" } ], - "contacts.resolveUsername": [ + "auth.checkPhone": [ { "error_code": 401, "error_message": "AUTH_KEY_PERM_EMPTY", "error_description": "The temporary auth key must be binded to the permanent auth key to use these methods." }, { - "error_code": 401, - "error_message": "SESSION_PASSWORD_NEEDED", - "error_description": "2FA is enabled, use a password to login" + "error_code": 400, + "error_message": "PHONE_NUMBER_BANNED", + "error_description": "The provided phone number is banned from telegram" }, { "error_code": 400, - "error_message": "USERNAME_INVALID", - "error_description": "The provided username is not valid" + "error_message": "PHONE_NUMBER_INVALID", + "error_description": "The phone number is invalid" }, { - "error_code": 400, - "error_message": "USERNAME_NOT_OCCUPIED", - "error_description": "The provided username is not occupied" + "error_code": 406, + "error_message": "PHONE_NUMBER_INVALID", + "error_description": "The phone number is invalid" } ], "upload.getFile": [ @@ -902,6 +1166,11 @@ "error_code": 400, "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "UNTIL_DATE_INVALID", + "error_description": "Invalid until date provided" } ], "channels.inviteToChannel": [ @@ -1034,6 +1303,11 @@ "error_message": "INPUT_USER_DEACTIVATED", "error_description": "The specified user was deleted" }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -1165,12 +1439,34 @@ "error_description": "The provided sticker is invalid" } ], + "channels.setDiscussionGroup": [ + { + "error_code": 400, + "error_message": "BROADCAST_ID_INVALID", + "error_description": "Broadcast ID invalid" + }, + { + "error_code": 400, + "error_message": "LINK_NOT_MODIFIED", + "error_description": "Discussion link not modified" + }, + { + "error_code": 400, + "error_message": "MEGAGROUP_ID_INVALID", + "error_description": "Invalid supergroup ID" + } + ], "messages.sendMedia": [ { "error_code": 400, "error_message": "BUTTON_DATA_INVALID", "error_description": "The data of one or more of the buttons you provided is invalid" }, + { + "error_code": 400, + "error_message": "BUTTON_TYPE_INVALID", + "error_description": "The type of one or more of the buttons you provided is invalid" + }, { "error_code": 400, "error_message": "CHANNEL_INVALID", @@ -1266,6 +1562,16 @@ "error_message": "PHOTO_SAVE_FILE_INVALID", "error_description": "Internal issues, try again later" }, + { + "error_code": 400, + "error_message": "REPLY_MARKUP_BUY_EMPTY", + "error_description": "Reply markup for buy button empty" + }, + { + "error_code": 420, + "error_message": "SLOWMODE_WAIT_X", + "error_description": "Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat." + }, { "error_code": -503, "error_message": "Timeout", @@ -1295,9 +1601,19 @@ "error_code": 400, "error_message": "WEBPAGE_MEDIA_EMPTY", "error_description": "Webpage media empty" + }, + { + "error_code": 400, + "error_message": "YOU_BLOCKED_USER", + "error_description": "You blocked this user" } ], "messages.editMessage": [ + { + "error_code": 400, + "error_message": "BUTTON_TYPE_INVALID", + "error_description": "The type of one or more of the buttons you provided is invalid" + }, { "error_code": 400, "error_message": "BUTTON_URL_INVALID", @@ -1318,6 +1634,11 @@ "error_message": "CHAT_ADMIN_REQUIRED", "error_description": "You must be an admin in this chat to do this" }, + { + "error_code": 403, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, { "error_code": 403, "error_message": "CHAT_WRITE_FORBIDDEN", @@ -1363,6 +1684,11 @@ "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" }, + { + "error_code": 400, + "error_message": "SCHEDULE_DATE_INVALID", + "error_description": "Invalid schedule date provided" + }, { "error_code": 400, "error_message": "USER_BANNED_IN_CHANNEL", @@ -1517,6 +1843,11 @@ "error_code": 400, "error_message": "CHAT_ADMIN_REQUIRED", "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" } ], "channels.deleteHistory": [ @@ -1541,6 +1872,11 @@ "error_code": 403, "error_message": "MESSAGE_DELETE_FORBIDDEN", "error_description": "You can't delete one of the messages you tried to delete, most likely because it is a service message." + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" } ], "channels.deleteUserHistory": [ @@ -1613,6 +1949,11 @@ "error_message": "MSG_ID_INVALID", "error_description": "Invalid message ID provided" }, + { + "error_code": 400, + "error_message": "PINNED_DIALOGS_TOO_MUCH", + "error_description": "Too many pinned dialogs" + }, { "error_code": 400, "error_message": "USER_ADMIN_INVALID", @@ -1640,6 +1981,16 @@ "error_message": "CHAT_NOT_MODIFIED", "error_description": "The pinned message wasn't modified" }, + { + "error_code": 400, + "error_message": "PHOTO_CROP_SIZE_SMALL", + "error_description": "Photo is too small" + }, + { + "error_code": 400, + "error_message": "PHOTO_EXT_INVALID", + "error_description": "The extension of the photo is invalid" + }, { "error_code": 400, "error_message": "PHOTO_INVALID", @@ -1724,50 +2075,6 @@ "error_description": "You can't write in this chat" } ], - "channels.getChannels": [ - { - "error_code": 400, - "error_message": "CHANNEL_INVALID", - "error_description": "The provided channel is invalid" - }, - { - "error_code": 400, - "error_message": "CHANNEL_PRIVATE", - "error_description": "You haven't joined this channel\/supergroup" - }, - { - "error_code": 400, - "error_message": "MSG_ID_INVALID", - "error_description": "Invalid message ID provided" - } - ], - "channels.getFullChannel": [ - { - "error_code": 400, - "error_message": "CHANNEL_INVALID", - "error_description": "The provided channel is invalid" - }, - { - "error_code": 400, - "error_message": "CHANNEL_PRIVATE", - "error_description": "You haven't joined this channel\/supergroup" - }, - { - "error_code": 403, - "error_message": "CHANNEL_PUBLIC_GROUP_NA", - "error_description": "channel\/supergroup not available" - }, - { - "error_code": 400, - "error_message": "MSG_ID_INVALID", - "error_description": "Invalid message ID provided" - }, - { - "error_code": -503, - "error_message": "Timeout", - "error_description": "Timeout while fetching data" - } - ], "channels.getMessages": [ { "error_code": 400, @@ -1801,6 +2108,11 @@ "error_message": "CHAT_ADMIN_REQUIRED", "error_description": "You must be an admin in this chat to do this" }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, { "error_code": 400, "error_message": "USER_ID_INVALID", @@ -1812,33 +2124,6 @@ "error_description": "You're not a member of this supergroup\/channel" } ], - "channels.getParticipants": [ - { - "error_code": 400, - "error_message": "CHANNEL_INVALID", - "error_description": "The provided channel is invalid" - }, - { - "error_code": 400, - "error_message": "CHANNEL_PRIVATE", - "error_description": "You haven't joined this channel\/supergroup" - }, - { - "error_code": 400, - "error_message": "CHAT_ADMIN_REQUIRED", - "error_description": "You must be an admin in this chat to do this" - }, - { - "error_code": 400, - "error_message": "INPUT_CONSTRUCTOR_INVALID", - "error_description": "The provided constructor is invalid" - }, - { - "error_code": -503, - "error_message": "Timeout", - "error_description": "Timeout while fetching data" - } - ], "channels.leaveChannel": [ { "error_code": 400, @@ -2083,6 +2368,11 @@ "error_message": "MESSAGE_IDS_EMPTY", "error_description": "No message ids were provided" }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -2124,28 +2414,6 @@ "error_description": "You blocked this user" } ], - "messages.getMessagesViews": [ - { - "error_code": 400, - "error_message": "CHANNEL_INVALID", - "error_description": "The provided channel is invalid" - }, - { - "error_code": 400, - "error_message": "CHANNEL_PRIVATE", - "error_description": "You haven't joined this channel\/supergroup" - }, - { - "error_code": 400, - "error_message": "CHAT_ID_INVALID", - "error_description": "The provided chat id is invalid" - }, - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - } - ], "messages.getPeerSettings": [ { "error_code": 400, @@ -2158,48 +2426,6 @@ "error_description": "The provided peer id is invalid" } ], - "messages.search": [ - { - "error_code": 400, - "error_message": "CHANNEL_INVALID", - "error_description": "The provided channel is invalid" - }, - { - "error_code": 400, - "error_message": "CHAT_ADMIN_REQUIRED", - "error_description": "You must be an admin in this chat to do this" - }, - { - "error_code": 400, - "error_message": "INPUT_CONSTRUCTOR_INVALID", - "error_description": "The provided constructor is invalid" - }, - { - "error_code": 400, - "error_message": "INPUT_USER_DEACTIVATED", - "error_description": "The specified user was deleted" - }, - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - }, - { - "error_code": 400, - "error_message": "PEER_ID_NOT_SUPPORTED", - "error_description": "The provided peer ID is not supported" - }, - { - "error_code": 400, - "error_message": "SEARCH_QUERY_EMPTY", - "error_description": "The search query is empty" - }, - { - "error_code": 400, - "error_message": "USER_ID_INVALID", - "error_description": "The provided user ID is invalid" - } - ], "msgs_state_req": [ { "error_code": 400, @@ -2207,12 +2433,39 @@ "error_description": "The provided channel is invalid" } ], + "channels.editCreator": [ + { + "error_code": 400, + "error_message": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 400, + "error_message": "PASSWORD_HASH_INVALID", + "error_description": "The provided password hash is invalid" + }, + { + "error_code": 400, + "error_message": "PASSWORD_TOO_FRESH_X", + "error_description": "The password was modified less than 24 hours ago, try again in X seconds" + }, + { + "error_code": 400, + "error_message": "SESSION_TOO_FRESH_X", + "error_description": "This session was created less than 24 hours ago, try again in X seconds" + } + ], "channels.createChannel": [ { "error_code": 400, "error_message": "CHANNELS_TOO_MUCH", "error_description": "You have joined too many channels\/supergroups" }, + { + "error_code": 400, + "error_message": "CHAT_ABOUT_TOO_LONG", + "error_description": "Chat about too long" + }, { "error_code": 400, "error_message": "CHAT_TITLE_EMPTY", @@ -2340,6 +2593,28 @@ "error_description": "The maximum number of users has been exceeded (to create a chat, for example)" } ], + "messages.deleteChatUser": [ + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 400, + "error_message": "CHAT_ID_INVALID", + "error_description": "The provided chat id is invalid" + }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "USER_NOT_PARTICIPANT", + "error_description": "You're not a member of this supergroup\/channel" + } + ], "messages.exportChatInvite": [ { "error_code": 400, @@ -2380,6 +2655,16 @@ "error_message": "CHAT_ADMIN_REQUIRED", "error_description": "You must be an admin in this chat to do this" }, + { + "error_code": 403, + "error_message": "CHAT_SEND_INLINE_FORBIDDEN", + "error_description": "You can't send inline messages in this group" + }, + { + "error_code": 403, + "error_message": "CHAT_SEND_MEDIA_FORBIDDEN", + "error_description": "You can't send media in this chat" + }, { "error_code": 403, "error_message": "CHAT_WRITE_FORBIDDEN", @@ -2409,6 +2694,23 @@ "error_code": 400, "error_message": "WEBPAGE_MEDIA_EMPTY", "error_description": "Webpage media empty" + }, + { + "error_code": 400, + "error_message": "YOU_BLOCKED_USER", + "error_description": "You blocked this user" + } + ], + "messages.updatePinnedMessage": [ + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 400, + "error_message": "CHAT_NOT_MODIFIED", + "error_description": "The pinned message wasn't modified" } ], "messages.discardEncryption": [ @@ -2445,28 +2747,16 @@ "error_description": "The secret chat was already declined" } ], - "messages.deleteChatUser": [ - { - "error_code": 400, - "error_message": "CHAT_ID_INVALID", - "error_description": "The provided chat id is invalid" - }, - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - }, - { - "error_code": 400, - "error_message": "USER_NOT_PARTICIPANT", - "error_description": "You're not a member of this supergroup\/channel" - } - ], "messages.editChatAdmin": [ { "error_code": 400, "error_message": "CHAT_ID_INVALID", "error_description": "The provided chat id is invalid" + }, + { + "error_code": 400, + "error_message": "USER_NOT_PARTICIPANT", + "error_description": "You're not a member of this supergroup\/channel" } ], "messages.editChatPhoto": [ @@ -2602,6 +2892,28 @@ "error_description": "The pinned message wasn't modified" } ], + "messages.createChat": [ + { + "error_code": 400, + "error_message": "CHAT_INVALID", + "error_description": "Invalid chat" + }, + { + "error_code": 400, + "error_message": "INPUT_USER_DEACTIVATED", + "error_description": "The specified user was deleted" + }, + { + "error_code": 403, + "error_message": "USER_RESTRICTED", + "error_description": "You're spamreported, you can't create channels or chats." + }, + { + "error_code": 400, + "error_message": "USERS_TOO_FEW", + "error_description": "Not enough users (to create a chat, for example)" + } + ], "channels.toggleSlowMode": [ { "error_code": 400, @@ -2624,13 +2936,6 @@ "error_description": "Invalid duration provided" } ], - "messages.updatePinnedMessage": [ - { - "error_code": 400, - "error_message": "CHAT_NOT_MODIFIED", - "error_description": "The pinned message wasn't modified" - } - ], "auth.recoverPassword": [ { "error_code": 400, @@ -2655,6 +2960,11 @@ "error_code": 400, "error_message": "CODE_INVALID", "error_description": "Code invalid" + }, + { + "error_code": 400, + "error_message": "EMAIL_HASH_EXPIRED", + "error_description": "Email hash expired" } ], "initConnection": [ @@ -2731,6 +3041,23 @@ "error_description": "You were blocked by this user" } ], + "messages.sendEncryptedFile": [ + { + "error_code": 400, + "error_message": "DATA_TOO_LONG", + "error_description": "Data too long" + }, + { + "error_code": 400, + "error_message": "MD5_CHECKSUM_INVALID", + "error_description": "The MD5 checksums do not match" + }, + { + "error_code": 400, + "error_message": "MSG_WAIT_FAILED", + "error_description": "A waiting call returned an error" + } + ], "auth.exportAuthorization": [ { "error_code": 400, @@ -2775,6 +3102,11 @@ "error_code": 400, "error_message": "PASSWORD_HASH_INVALID", "error_description": "The provided password hash is invalid" + }, + { + "error_code": 400, + "error_message": "SRP_ID_INVALID", + "error_description": "Invalid SRP ID provided" } ], "account.verifyEmail": [ @@ -2831,6 +3163,11 @@ "error_message": "FILE_PART_INVALID", "error_description": "The file part number is invalid" }, + { + "error_code": 400, + "error_message": "FILE_PART_SIZE_CHANGED", + "error_description": "Provided file part size has changed" + }, { "error_code": 400, "error_message": "FILE_PART_SIZE_INVALID", @@ -2880,10 +3217,20 @@ "error_message": "IMAGE_PROCESS_FAILED", "error_description": "Failure while processing image" }, + { + "error_code": 400, + "error_message": "LOCATION_INVALID", + "error_description": "The provided location is invalid" + }, { "error_code": 400, "error_message": "PHOTO_CROP_SIZE_SMALL", "error_description": "Photo is too small" + }, + { + "error_code": 400, + "error_message": "PHOTO_EXT_INVALID", + "error_description": "The extension of the photo is invalid" } ], "photos.uploadProfilePhoto": [ @@ -2897,6 +3244,11 @@ "error_message": "IMAGE_PROCESS_FAILED", "error_description": "Failure while processing image" }, + { + "error_code": 400, + "error_message": "PHOTO_CROP_FILE_MISSING", + "error_description": "Photo crop file missing" + }, { "error_code": 400, "error_message": "PHOTO_CROP_SIZE_SMALL", @@ -3026,21 +3378,11 @@ "error_description": "Invalid method, use req_pq_multi instead" } ], - "messages.createChat": [ + "req_DH_params": [ { "error_code": 400, - "error_message": "INPUT_USER_DEACTIVATED", - "error_description": "The specified user was deleted" - }, - { - "error_code": 403, - "error_message": "USER_RESTRICTED", - "error_description": "You're spamreported, you can't create channels or chats." - }, - { - "error_code": 400, - "error_message": "USERS_TOO_FEW", - "error_description": "Not enough users (to create a chat, for example)" + "error_message": "INPUT_METHOD_INVALID_3608339646_X", + "error_description": "Invalid method" } ], "messages.checkChatInvite": [ @@ -3120,15 +3462,30 @@ } ], "messages.sendMultiMedia": [ + { + "error_code": 400, + "error_message": "MEDIA_EMPTY", + "error_description": "The provided media object is invalid" + }, { "error_code": 400, "error_message": "MEDIA_INVALID", "error_description": "Media invalid" }, + { + "error_code": 400, + "error_message": "MULTI_MEDIA_TOO_LONG", + "error_description": "Too many media files for album" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "RANDOM_ID_EMPTY", + "error_description": "Random ID empty" } ], "messages.getMessageEditData": [ @@ -3231,6 +3588,23 @@ "error_description": "The provided message id is invalid" } ], + "messages.sendVote": [ + { + "error_code": 400, + "error_message": "MESSAGE_ID_INVALID", + "error_description": "The provided message id is invalid" + }, + { + "error_code": 400, + "error_message": "MESSAGE_POLL_CLOSED", + "error_description": "Poll closed" + }, + { + "error_code": 400, + "error_message": "OPTION_INVALID", + "error_description": "Invalid option selected" + } + ], "messages.setGameScore": [ { "error_code": 400, @@ -3288,18 +3662,6 @@ "error_description": "The provided message id is invalid" } ], - "messages.sendVote": [ - { - "error_code": 400, - "error_message": "MESSAGE_POLL_CLOSED", - "error_description": "Poll closed" - }, - { - "error_code": 400, - "error_message": "OPTION_INVALID", - "error_description": "Invalid option selected" - } - ], "messages.readEncryptedHistory": [ { "error_code": 400, @@ -3314,13 +3676,6 @@ "error_description": "A waiting call returned an error" } ], - "messages.sendEncryptedFile": [ - { - "error_code": 400, - "error_message": "MSG_WAIT_FAILED", - "error_description": "A waiting call returned an error" - } - ], "auth.requestPasswordRecovery": [ { "error_code": 400, @@ -3354,23 +3709,6 @@ "error_description": "The provided password hash is invalid" } ], - "channels.editCreator": [ - { - "error_code": 400, - "error_message": "PASSWORD_HASH_INVALID", - "error_description": "The provided password hash is invalid" - }, - { - "error_code": 400, - "error_message": "PASSWORD_TOO_FRESH_X", - "error_description": "The password was modified less than 24 hours ago, try again in X seconds" - }, - { - "error_code": 400, - "error_message": "SESSION_TOO_FRESH_X", - "error_description": "This session was created less than 24 hours ago, try again in X seconds" - } - ], "account.getNotifySettings": [ { "error_code": 400, @@ -3544,23 +3882,6 @@ "error_description": "The phone number is invalid" } ], - "auth.checkPhone": [ - { - "error_code": 400, - "error_message": "PHONE_NUMBER_BANNED", - "error_description": "The provided phone number is banned from telegram" - }, - { - "error_code": 400, - "error_message": "PHONE_NUMBER_INVALID", - "error_description": "The phone number is invalid" - }, - { - "error_code": 406, - "error_message": "PHONE_NUMBER_INVALID", - "error_description": "The phone number is invalid" - } - ], "account.changePhone": [ { "error_code": 400, @@ -3764,6 +4085,13 @@ "error_description": "A takeout session has to be initialized, first" } ], + "account.uploadTheme": [ + { + "error_code": 400, + "error_message": "THEME_FILE_INVALID", + "error_description": "Invalid theme file provided" + } + ], "contacts.deleteContacts": [ { "error_code": -503, @@ -3820,6 +4148,13 @@ "error_description": "The provided user ID is invalid" } ], + "help.getSupportName": [ + { + "error_code": 403, + "error_message": "USER_INVALID", + "error_description": "Invalid user provided" + } + ], "help.getUserInfo": [ { "error_code": 403, diff --git a/v3.json b/v3.json index a448553..3d0ceb2 100644 --- a/v3.json +++ b/v3.json @@ -36,6 +36,7 @@ "BUTTON_DATA_INVALID": "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID": "BUTTON_URL_INVALID", + "GIF_CONTENT_TYPE_INVALID": "GIF_CONTENT_TYPE_INVALID", "MESSAGE_EMPTY": "MESSAGE_EMPTY", "MESSAGE_TOO_LONG": "MESSAGE_TOO_LONG", "PHOTO_INVALID": "PHOTO_INVALID", @@ -44,7 +45,8 @@ "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", "RESULT_TYPE_INVALID": "RESULT_TYPE_INVALID", "SEND_MESSAGE_TYPE_INVALID": "SEND_MESSAGE_TYPE_INVALID", - "START_PARAM_INVALID": "START_PARAM_INVALID" + "START_PARAM_INVALID": "START_PARAM_INVALID", + "WEBDOCUMENT_SIZE_TOO_BIG": "WEBDOCUMENT_SIZE_TOO_BIG" }, "auth.importAuthorization": { "AUTH_BYTES_INVALID": "AUTH_BYTES_INVALID", @@ -64,7 +66,35 @@ "messages.editChatDefaultBannedRights": { "BANNED_RIGHTS_INVALID": "BANNED_RIGHTS_INVALID", "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", - "PEER_ID_INVALID": "PEER_ID_INVALID" + "PEER_ID_INVALID": "PEER_ID_INVALID", + "UNTIL_DATE_INVALID": "UNTIL_DATE_INVALID" + }, + "messages.sendMessage": { + "BOT_DOMAIN_INVALID": "BOT_DOMAIN_INVALID", + "BOT_INVALID": "BOT_INVALID", + "BUTTON_DATA_INVALID": "BUTTON_DATA_INVALID", + "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", + "BUTTON_URL_INVALID": "BUTTON_URL_INVALID", + "CHANNEL_INVALID": "CHANNEL_INVALID", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "CHAT_RESTRICTED": "CHAT_RESTRICTED", + "ENCRYPTION_DECLINED": "ENCRYPTION_DECLINED", + "ENTITY_MENTION_USER_INVALID": "ENTITY_MENTION_USER_INVALID", + "FROM_MESSAGE_BOT_DISABLED": "FROM_MESSAGE_BOT_DISABLED", + "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", + "MESSAGE_EMPTY": "MESSAGE_EMPTY", + "MESSAGE_TOO_LONG": "MESSAGE_TOO_LONG", + "MSG_ID_INVALID": "MSG_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID", + "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", + "SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED", + "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", + "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", + "USER_IS_BLOCKED": "USER_IS_BLOCKED", + "USER_IS_BOT": "USER_IS_BOT", + "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" }, "channels.inviteToChannel": { "BOT_GROUPS_BLOCKED": "BOT_GROUPS_BLOCKED", @@ -91,6 +121,7 @@ "messages.startBot": { "BOT_INVALID": "BOT_INVALID", "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", + "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "START_PARAM_EMPTY": "START_PARAM_EMPTY", "START_PARAM_INVALID": "START_PARAM_INVALID" @@ -126,8 +157,14 @@ "BOT_MISSING": "BOT_MISSING", "STICKER_INVALID": "STICKER_INVALID" }, + "channels.setDiscussionGroup": { + "BROADCAST_ID_INVALID": "BROADCAST_ID_INVALID", + "LINK_NOT_MODIFIED": "LINK_NOT_MODIFIED", + "MEGAGROUP_ID_INVALID": "MEGAGROUP_ID_INVALID" + }, "messages.sendMedia": { "BUTTON_DATA_INVALID": "BUTTON_DATA_INVALID", + "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", @@ -145,37 +182,16 @@ "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", "PHOTO_INVALID_DIMENSIONS": "PHOTO_INVALID_DIMENSIONS", "PHOTO_SAVE_FILE_INVALID": "PHOTO_SAVE_FILE_INVALID", + "REPLY_MARKUP_BUY_EMPTY": "REPLY_MARKUP_BUY_EMPTY", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BOT": "USER_IS_BOT", "WEBPAGE_CURL_FAILED": "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY" - }, - "messages.sendMessage": { - "BUTTON_DATA_INVALID": "BUTTON_DATA_INVALID", - "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", - "BUTTON_URL_INVALID": "BUTTON_URL_INVALID", - "CHANNEL_INVALID": "CHANNEL_INVALID", - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", - "CHAT_ID_INVALID": "CHAT_ID_INVALID", - "CHAT_RESTRICTED": "CHAT_RESTRICTED", - "ENTITY_MENTION_USER_INVALID": "ENTITY_MENTION_USER_INVALID", - "FROM_MESSAGE_BOT_DISABLED": "FROM_MESSAGE_BOT_DISABLED", - "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", - "MESSAGE_EMPTY": "MESSAGE_EMPTY", - "MESSAGE_TOO_LONG": "MESSAGE_TOO_LONG", - "MSG_ID_INVALID": "MSG_ID_INVALID", - "PEER_ID_INVALID": "PEER_ID_INVALID", - "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", - "SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED", - "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", - "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", - "USER_IS_BLOCKED": "USER_IS_BLOCKED", - "USER_IS_BOT": "USER_IS_BOT", + "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY", "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" }, "messages.editMessage": { + "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID": "BUTTON_URL_INVALID", "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", @@ -186,6 +202,7 @@ "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED": "MESSAGE_NOT_MODIFIED", "PEER_ID_INVALID": "PEER_ID_INVALID", + "SCHEDULE_DATE_INVALID": "SCHEDULE_DATE_INVALID", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL" }, "phone.acceptCall": { @@ -243,7 +260,8 @@ }, "channels.deleteMessages": { "CHANNEL_INVALID": "CHANNEL_INVALID", - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE" + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "MSG_ID_INVALID": "MSG_ID_INVALID" }, "channels.deleteUserHistory": { "CHANNEL_INVALID": "CHANNEL_INVALID", @@ -262,6 +280,7 @@ "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "MSG_ID_INVALID": "MSG_ID_INVALID", + "PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH", "USER_ADMIN_INVALID": "USER_ADMIN_INVALID", "USER_ID_INVALID": "USER_ID_INVALID" }, @@ -269,6 +288,8 @@ "CHANNEL_INVALID": "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", + "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL", + "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", "PHOTO_INVALID": "PHOTO_INVALID" }, "channels.editTitle": { @@ -311,6 +332,7 @@ "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "MSG_ID_INVALID": "MSG_ID_INVALID", "USER_ID_INVALID": "USER_ID_INVALID", "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" }, @@ -387,6 +409,7 @@ "MEDIA_EMPTY": "MEDIA_EMPTY", "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "MESSAGE_IDS_EMPTY": "MESSAGE_IDS_EMPTY", + "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "RANDOM_ID_INVALID": "RANDOM_ID_INVALID", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", @@ -396,6 +419,7 @@ }, "messages.getBotCallbackAnswer": { "CHANNEL_INVALID": "CHANNEL_INVALID", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "DATA_INVALID": "DATA_INVALID", "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" @@ -411,6 +435,7 @@ "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" }, "messages.getPeerSettings": { @@ -451,12 +476,19 @@ "PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH", "RANGES_INVALID": "RANGES_INVALID" }, + "channels.editCreator": { + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID", + "PASSWORD_TOO_FRESH_X": "PASSWORD_TOO_FRESH_X", + "SESSION_TOO_FRESH_X": "SESSION_TOO_FRESH_X" + }, "messages.getPeerDialogs": { "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "PEER_ID_INVALID": "PEER_ID_INVALID" }, "channels.createChannel": { "CHANNELS_TOO_MUCH": "CHANNELS_TOO_MUCH", + "CHAT_ABOUT_TOO_LONG": "CHAT_ABOUT_TOO_LONG", "CHAT_TITLE_EMPTY": "CHAT_TITLE_EMPTY" }, "messages.importChatInvite": { @@ -482,6 +514,12 @@ "USER_ID_INVALID": "USER_ID_INVALID", "USERS_TOO_MUCH": "USERS_TOO_MUCH" }, + "messages.deleteChatUser": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID", + "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" + }, "messages.exportChatInvite": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID": "CHAT_ID_INVALID", @@ -493,7 +531,12 @@ "PEER_ID_INVALID": "PEER_ID_INVALID", "QUERY_ID_EMPTY": "QUERY_ID_EMPTY", "WEBPAGE_CURL_FAILED": "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY" + "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY", + "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" + }, + "messages.updatePinnedMessage": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED" }, "messages.discardEncryption": { "CHAT_ID_EMPTY": "CHAT_ID_EMPTY", @@ -505,13 +548,9 @@ "ENCRYPTION_ALREADY_ACCEPTED": "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED" }, - "messages.deleteChatUser": { - "CHAT_ID_INVALID": "CHAT_ID_INVALID", - "PEER_ID_INVALID": "PEER_ID_INVALID", - "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" - }, "messages.editChatAdmin": { - "CHAT_ID_INVALID": "CHAT_ID_INVALID" + "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" }, "messages.editChatPhoto": { "CHAT_ID_INVALID": "CHAT_ID_INVALID", @@ -558,15 +597,17 @@ "CHAT_ID_INVALID": "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED" }, + "messages.createChat": { + "CHAT_INVALID": "CHAT_INVALID", + "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", + "USERS_TOO_FEW": "USERS_TOO_FEW" + }, "channels.toggleSlowMode": { "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", "INPUT_METHOD_INVALID_1192227_X": "INPUT_METHOD_INVALID_1192227_X", "INPUT_METHOD_INVALID_1604042050_X": "INPUT_METHOD_INVALID_1604042050_X", "SECONDS_INVALID": "SECONDS_INVALID" }, - "messages.updatePinnedMessage": { - "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED" - }, "auth.recoverPassword": { "CODE_EMPTY": "CODE_EMPTY" }, @@ -575,10 +616,12 @@ "PHONE_CODE_EMPTY": "PHONE_CODE_EMPTY" }, "account.confirmPasswordEmail": { - "CODE_INVALID": "CODE_INVALID" + "CODE_INVALID": "CODE_INVALID", + "EMAIL_HASH_EXPIRED": "EMAIL_HASH_EXPIRED" }, "help.getConfig": { - "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY" + "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY", + "CONNECTION_NOT_INITED": "CONNECTION_NOT_INITED" }, "initConnection": { "CONNECTION_LAYER_INVALID": "CONNECTION_LAYER_INVALID", @@ -605,6 +648,11 @@ "ENCRYPTION_DECLINED": "ENCRYPTION_DECLINED", "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" }, + "messages.sendEncryptedFile": { + "DATA_TOO_LONG": "DATA_TOO_LONG", + "MD5_CHECKSUM_INVALID": "MD5_CHECKSUM_INVALID", + "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" + }, "auth.exportAuthorization": { "DC_ID_INVALID": "DC_ID_INVALID" }, @@ -617,7 +665,8 @@ "EMAIL_UNCONFIRMED_X": "EMAIL_UNCONFIRMED_X", "NEW_SALT_INVALID": "NEW_SALT_INVALID", "NEW_SETTINGS_INVALID": "NEW_SETTINGS_INVALID", - "PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID" + "PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID", + "SRP_ID_INVALID": "SRP_ID_INVALID" }, "account.verifyEmail": { "EMAIL_VERIFY_EXPIRED": "EMAIL_VERIFY_EXPIRED" @@ -643,6 +692,7 @@ "upload.saveBigFilePart": { "FILE_PART_EMPTY": "FILE_PART_EMPTY", "FILE_PART_INVALID": "FILE_PART_INVALID", + "FILE_PART_SIZE_CHANGED": "FILE_PART_SIZE_CHANGED", "FILE_PART_SIZE_INVALID": "FILE_PART_SIZE_INVALID", "FILE_PARTS_INVALID": "FILE_PARTS_INVALID" }, @@ -654,11 +704,14 @@ "photos.updateProfilePhoto": { "FILE_PARTS_INVALID": "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED": "IMAGE_PROCESS_FAILED", - "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL" + "LOCATION_INVALID": "LOCATION_INVALID", + "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL", + "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID" }, "photos.uploadProfilePhoto": { "FILE_PARTS_INVALID": "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED": "IMAGE_PROCESS_FAILED", + "PHOTO_CROP_FILE_MISSING": "PHOTO_CROP_FILE_MISSING", "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID" }, @@ -693,9 +746,8 @@ "req_pq": { "INPUT_METHOD_INVALID_1615239032_X": "INPUT_METHOD_INVALID_1615239032_X" }, - "messages.createChat": { - "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", - "USERS_TOO_FEW": "USERS_TOO_FEW" + "req_DH_params": { + "INPUT_METHOD_INVALID_3608339646_X": "INPUT_METHOD_INVALID_3608339646_X" }, "messages.checkChatInvite": { "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", @@ -725,8 +777,11 @@ "USER_ID_INVALID": "USER_ID_INVALID" }, "messages.sendMultiMedia": { + "MEDIA_EMPTY": "MEDIA_EMPTY", "MEDIA_INVALID": "MEDIA_INVALID", - "PEER_ID_INVALID": "PEER_ID_INVALID" + "MULTI_MEDIA_TOO_LONG": "MULTI_MEDIA_TOO_LONG", + "PEER_ID_INVALID": "PEER_ID_INVALID", + "RANDOM_ID_EMPTY": "RANDOM_ID_EMPTY" }, "auth.sendInvites": { "MESSAGE_EMPTY": "MESSAGE_EMPTY" @@ -757,6 +812,11 @@ "messages.sendScheduledMessages": { "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID" }, + "messages.sendVote": { + "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", + "MESSAGE_POLL_CLOSED": "MESSAGE_POLL_CLOSED", + "OPTION_INVALID": "OPTION_INVALID" + }, "messages.setGameScore": { "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", @@ -778,9 +838,9 @@ "payments.validateRequestedInfo": { "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID" }, - "messages.sendVote": { - "MESSAGE_POLL_CLOSED": "MESSAGE_POLL_CLOSED", - "OPTION_INVALID": "OPTION_INVALID" + "users.getFullUser": { + "MSG_ID_INVALID": "MSG_ID_INVALID", + "USER_ID_INVALID": "USER_ID_INVALID" }, "users.getUsers": { "MSG_ID_INVALID": "MSG_ID_INVALID" @@ -791,9 +851,6 @@ "messages.receivedQueue": { "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" }, - "messages.sendEncryptedFile": { - "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" - }, "auth.requestPasswordRecovery": { "PASSWORD_EMPTY": "PASSWORD_EMPTY" }, @@ -807,11 +864,6 @@ "auth.checkPassword": { "PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID" }, - "channels.editCreator": { - "PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID", - "PASSWORD_TOO_FRESH_X": "PASSWORD_TOO_FRESH_X", - "SESSION_TOO_FRESH_X": "SESSION_TOO_FRESH_X" - }, "account.getNotifySettings": { "PEER_ID_INVALID": "PEER_ID_INVALID" }, @@ -942,6 +994,9 @@ "messages.uninstallStickerSet": { "STICKERSET_INVALID": "STICKERSET_INVALID" }, + "account.uploadTheme": { + "THEME_FILE_INVALID": "THEME_FILE_INVALID" + }, "account.registerDevice": { "TOKEN_INVALID": "TOKEN_INVALID" }, @@ -960,9 +1015,6 @@ "messages.getCommonChats": { "USER_ID_INVALID": "USER_ID_INVALID" }, - "users.getFullUser": { - "USER_ID_INVALID": "USER_ID_INVALID" - }, "users.setSecureValueErrors": { "USER_ID_INVALID": "USER_ID_INVALID" }, @@ -1115,6 +1167,9 @@ "RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE", "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" }, + "messages.uploadMedia": { + "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" + }, "photos.uploadProfilePhoto": { "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" }, @@ -1126,18 +1181,36 @@ } }, "406": { + "account.updateProfile": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "account.updateStatus": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "channels.getChannels": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, + "channels.getFullChannel": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, + "channels.getParticipants": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "channels.joinChannel": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "contacts.resolveUsername": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "help.getCdnConfig": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, "help.getConfig": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "help.getTermsOfServiceUpdate": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "invokeWithLayer": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1147,9 +1220,15 @@ "messages.getHistory": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.getMessagesViews": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "messages.getPeerDialogs": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.search": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "messages.sendMessage": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1195,6 +1274,9 @@ "auth.importBotAuthorization": { "AUTH_KEY_INVALID": "AUTH_KEY_INVALID" }, + "auth.checkPhone": { + "AUTH_KEY_PERM_EMPTY": "AUTH_KEY_PERM_EMPTY" + }, "contacts.resolveUsername": { "AUTH_KEY_PERM_EMPTY": "AUTH_KEY_PERM_EMPTY", "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" @@ -1205,6 +1287,9 @@ "messages.getHistory": { "AUTH_KEY_PERM_EMPTY": "AUTH_KEY_PERM_EMPTY" }, + "messages.sendMessage": { + "AUTH_KEY_PERM_EMPTY": "AUTH_KEY_PERM_EMPTY" + }, "updates.getDifference": { "AUTH_KEY_PERM_EMPTY": "AUTH_KEY_PERM_EMPTY", "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" @@ -1259,8 +1344,16 @@ }, "channels.editAdmin": { "CHAT_ADMIN_INVITE_REQUIRED": "CHAT_ADMIN_INVITE_REQUIRED", + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", "RIGHT_FORBIDDEN": "RIGHT_FORBIDDEN", - "USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED" + "USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED", + "USER_RESTRICTED": "USER_RESTRICTED" + }, + "messages.editMessage": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", + "INLINE_BOT_REQUIRED": "INLINE_BOT_REQUIRED", + "MESSAGE_AUTHOR_REQUIRED": "MESSAGE_AUTHOR_REQUIRED" }, "messages.migrateChat": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" @@ -1271,10 +1364,18 @@ "CHAT_SEND_STICKERS_FORBIDDEN": "CHAT_SEND_STICKERS_FORBIDDEN", "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, + "messages.sendInlineBotResult": { + "CHAT_SEND_INLINE_FORBIDDEN": "CHAT_SEND_INLINE_FORBIDDEN", + "CHAT_SEND_MEDIA_FORBIDDEN": "CHAT_SEND_MEDIA_FORBIDDEN", + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" + }, "messages.sendMedia": { "CHAT_SEND_MEDIA_FORBIDDEN": "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, + "channels.deleteChannel": { + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" + }, "channels.editBanned": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, @@ -1295,14 +1396,6 @@ "messages.editChatAbout": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, - "messages.editMessage": { - "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", - "INLINE_BOT_REQUIRED": "INLINE_BOT_REQUIRED", - "MESSAGE_AUTHOR_REQUIRED": "MESSAGE_AUTHOR_REQUIRED" - }, - "messages.sendInlineBotResult": { - "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" - }, "messages.sendMessage": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, @@ -1327,6 +1420,9 @@ "messages.setInlineBotResults": { "USER_BOT_INVALID": "USER_BOT_INVALID" }, + "help.getSupportName": { + "USER_INVALID": "USER_INVALID" + }, "help.getUserInfo": { "USER_INVALID": "USER_INVALID" }, @@ -1352,11 +1448,17 @@ "messages.forwardMessages": { "SLOWMODE_WAIT_X": "SLOWMODE_WAIT_X" }, + "messages.sendMedia": { + "SLOWMODE_WAIT_X": "SLOWMODE_WAIT_X" + }, "messages.sendMessage": { "SLOWMODE_WAIT_X": "SLOWMODE_WAIT_X" } }, "-503": { + "account.updateProfile": { + "Timeout": "Timeout" + }, "account.updateStatus": { "Timeout": "Timeout" }, @@ -1456,12 +1558,14 @@ "AUTH_RESTART": "Restart the authorization process", "BANNED_RIGHTS_INVALID": "You provided some invalid flags in the banned rights", "BOT_CHANNELS_NA": "Bots can't edit admin privileges", + "BOT_DOMAIN_INVALID": "Bot domain invalid", "BOT_GROUPS_BLOCKED": "This bot can't be added to groups", "BOT_INLINE_DISABLED": "This bot can't be used in inline mode", "BOT_INVALID": "This is not a valid bot", "BOT_METHOD_INVALID": "This method cannot be run by a bot", "BOT_MISSING": "This method can only be run by a bot", "BOTS_TOO_MUCH": "There are too many bots in this chat\/channel", + "BROADCAST_ID_INVALID": "Broadcast ID invalid", "BUTTON_DATA_INVALID": "The data of one or more of the buttons you provided is invalid", "BUTTON_TYPE_INVALID": "The type of one or more of the buttons you provided is invalid", "BUTTON_URL_INVALID": "Button URL invalid", @@ -1488,6 +1592,7 @@ "CHAT_OCCUPY_LOC_FAILED": "An internal error occurred while creating the chat", "CHAT_RESTRICTED": "You can't send messages in this chat, you were restricted", "CHAT_SEND_GIFS_FORBIDDEN": "You can't send gifs in this chat", + "CHAT_SEND_INLINE_FORBIDDEN": "You can't send inline messages in this group", "CHAT_SEND_MEDIA_FORBIDDEN": "You can't send media in this chat", "CHAT_SEND_STICKERS_FORBIDDEN": "You can't send stickers in this chat.", "CHAT_TITLE_EMPTY": "No chat title provided", @@ -1506,9 +1611,11 @@ "CONTACT_REQ_MISSING": "Missing contact request", "DATA_INVALID": "Encrypted data invalid", "DATA_JSON_INVALID": "The provided JSON data is invalid", + "DATA_TOO_LONG": "Data too long", "DATE_EMPTY": "Date empty", "DC_ID_INVALID": "The provided DC ID is invalid", "DH_G_A_INVALID": "g_a invalid", + "EMAIL_HASH_EXPIRED": "Email hash expired", "EMAIL_UNCONFIRMED": "Email unconfirmed", "EMAIL_UNCONFIRMED_X": "The provided email isn't confirmed, X is the length of the verification code that was just sent to the email.", "EMAIL_VERIFY_EXPIRED": "The verification email has expired", @@ -1528,6 +1635,7 @@ "FILE_PART_EMPTY": "The provided file part is empty", "FILE_PART_INVALID": "The file part number is invalid", "FILE_PART_LENGTH_INVALID": "The length of a file part is invalid", + "FILE_PART_SIZE_CHANGED": "Provided file part size has changed", "FILE_PART_SIZE_INVALID": "The provided file part size is invalid", "FILE_PARTS_INVALID": "The number of file parts is invalid", "FILEREF_UPGRADE_NEEDED": "The client has to be updated in order to support [file references](https:\/\/core.telegram.org\/api\/file_reference)", @@ -1536,6 +1644,7 @@ "FOLDER_ID_INVALID": "Invalid folder ID", "FRESH_RESET_AUTHORISATION_FORBIDDEN": "You can't logout other sessions if less than 24 hours have passed since you logged on the current session", "FROM_MESSAGE_BOT_DISABLED": "Bots can't use fromMessage min constructors", + "GIF_CONTENT_TYPE_INVALID": "GIF content-type invalid", "GIF_ID_INVALID": "The provided GIF ID is invalid", "GROUPED_MEDIA_INVALID": "Invalid grouped media", "HASH_INVALID": "The provided hash is invalid", @@ -1552,6 +1661,7 @@ "INPUT_METHOD_INVALID_1192227_X": "Invalid method", "INPUT_METHOD_INVALID_1604042050_X": "Invalid method", "INPUT_METHOD_INVALID_1615239032_X": "Invalid method, use req_pq_multi instead", + "INPUT_METHOD_INVALID_3608339646_X": "Invalid method", "INPUT_REQUEST_TOO_LONG": "The request is too big", "INPUT_USER_DEACTIVATED": "The specified user was deleted", "INTERDC_1_CALL_ERROR": "An error occurred while communicating with DC 1", @@ -1570,12 +1680,14 @@ "LANG_PACK_INVALID": "The provided language pack is invalid", "LASTNAME_INVALID": "The last name is invalid", "LIMIT_INVALID": "The provided limit is invalid", + "LINK_NOT_MODIFIED": "Discussion link not modified", "LOCATION_INVALID": "The provided location is invalid", "MAX_ID_INVALID": "The provided max ID is invalid", "MD5_CHECKSUM_INVALID": "The MD5 checksums do not match", "MEDIA_CAPTION_TOO_LONG": "The caption is too long", "MEDIA_EMPTY": "The provided media object is invalid", "MEDIA_INVALID": "Media invalid", + "MEGAGROUP_ID_INVALID": "Invalid supergroup ID", "MEMBER_NO_LOCATION": "An internal failure occurred while fetching user info (couldn't find location)", "MEMBER_OCCUPY_PRIMARY_LOC_FAILED": "Occupation of primary member location failed", "MESSAGE_AUTHOR_REQUIRED": "Message author required", @@ -1591,6 +1703,7 @@ "MSG_RANGE_UNSYNC": "Message range unsynchronized", "MSG_WAIT_FAILED": "A waiting call returned an error", "MSGID_DECREASE_RETRY": "IDK TBH", + "MULTI_MEDIA_TOO_LONG": "Too many media files for album", "NEED_CHAT_INVALID": "The provided chat is invalid", "NEED_MEMBER_INVALID": "The provided member is invalid", "NEW_SALT_INVALID": "The new salt is invalid", @@ -1624,6 +1737,7 @@ "PHONE_NUMBER_UNOCCUPIED": "The phone number is not yet being used", "PHONE_PASSWORD_FLOOD": "You have tried logging in too many times", "PHONE_PASSWORD_PROTECTED": "This phone is password protected", + "PHOTO_CROP_FILE_MISSING": "Photo crop file missing", "PHOTO_CROP_SIZE_SMALL": "Photo is too small", "PHOTO_EXT_INVALID": "The extension of the photo is invalid", "PHOTO_INVALID": "Photo invalid", @@ -1637,11 +1751,13 @@ "QUERY_ID_INVALID": "The query ID is invalid", "QUERY_TOO_SHORT": "The query string is too short", "RANDOM_ID_DUPLICATE": "You provided a random ID that was already used", + "RANDOM_ID_EMPTY": "Random ID empty", "RANDOM_ID_INVALID": "A provided random ID is invalid", "RANDOM_LENGTH_INVALID": "Random length invalid", "RANGES_INVALID": "Invalid range provided", "REACTION_EMPTY": "Empty reaction provided", "REG_ID_GENERATE_FAILED": "Failure while generating registration ID", + "REPLY_MARKUP_BUY_EMPTY": "Reply markup for buy button empty", "REPLY_MARKUP_INVALID": "The provided reply markup is invalid", "RESULT_TYPE_INVALID": "Result type invalid", "RIGHT_FORBIDDEN": "Your admin rights do not allow you to do this", @@ -1649,6 +1765,7 @@ "RPC_MCGET_FAIL": "Telegram is having internal issues, please try again later.", "RSA_DECRYPT_FAILED": "Internal RSA decryption failed", "SCHEDULE_BOT_NOT_ALLOWED": "Bots cannot schedule messages", + "SCHEDULE_DATE_INVALID": "Invalid schedule date provided", "SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SEARCH_QUERY_EMPTY": "The search query is empty", "SECONDS_INVALID": "Invalid duration provided", @@ -1658,6 +1775,7 @@ "SHA256_HASH_INVALID": "The provided SHA256 hash is invalid", "SLOWMODE_WAIT_X": "Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.", "SMS_CODE_CREATE_FAILED": "An error occurred while creating the SMS code", + "SRP_ID_INVALID": "Invalid SRP ID provided", "START_PARAM_EMPTY": "The start parameter is empty", "START_PARAM_INVALID": "Start parameter invalid", "STICKER_EMOJI_INVALID": "Sticker emoji invalid", @@ -1671,6 +1789,7 @@ "STORE_INVALID_SCALAR_TYPE": "Tried storing an invalid scalar type", "TAKEOUT_REQUIRED": "A takeout session has to be initialized, first", "TEMP_AUTH_KEY_EMPTY": "No temporary auth key provided", + "THEME_FILE_INVALID": "Invalid theme file provided", "Timeout": "Timeout while fetching data", "TMP_PASSWORD_DISABLED": "The temporary password is disabled", "TOKEN_INVALID": "The provided token is invalid", @@ -1678,6 +1797,7 @@ "TYPE_CONSTRUCTOR_INVALID": "The type constructor is invalid", "TYPES_EMPTY": "No top peer type was provided", "UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs", + "UNTIL_DATE_INVALID": "Invalid until date provided", "URL_INVALID": "Invalid URL provided", "USER_ADMIN_INVALID": "You're not an admin", "USER_ALREADY_PARTICIPANT": "The user is already in the group", @@ -1706,6 +1826,7 @@ "USERS_TOO_FEW": "Not enough users (to create a chat, for example)", "USERS_TOO_MUCH": "The maximum number of users has been exceeded (to create a chat, for example)", "WC_CONVERT_URL_INVALID": "WC convert URL invalid", + "WEBDOCUMENT_SIZE_TOO_BIG": "Webdocument is too big!", "WEBPAGE_CURL_FAILED": "Failure while fetching the webpage with cURL", "WEBPAGE_MEDIA_EMPTY": "Webpage media empty", "WORKER_BUSY_TOO_LONG_RETRY": "Worker busy, try again later",