From b8305f477e61a0449ec20177b4ae11796458fd5c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 14 Nov 2020 18:04:45 +0000 Subject: [PATCH] Update --- v1.json | 334 +++++++++++++++++---- v2.json | 901 ++++++++++++++++++++++++++++++++++++++++++-------------- v3.json | 338 ++++++++++++++++----- v4.json | 198 +++++++++++-- 4 files changed, 1398 insertions(+), 373 deletions(-) diff --git a/v1.json b/v1.json index fd08440..da110bd 100644 --- a/v1.json +++ b/v1.json @@ -34,15 +34,18 @@ "channels.editAdmin": [ "ADMINS_TOO_MUCH", "BOT_CHANNELS_NA", + "BOT_GROUPS_BLOCKED", "BOTS_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "INPUT_USER_DEACTIVATED", "PEER_ID_INVALID", + "USER_BLOCKED", "USER_CREATOR", "USER_ID_INVALID", - "USER_NOT_MUTUAL_CONTACT" + "USER_NOT_MUTUAL_CONTACT", + "USERS_TOO_MUCH" ], "auth.sendCode": [ "API_ID_INVALID", @@ -69,6 +72,7 @@ "PHOTO_THUMB_URL_EMPTY", "QUERY_ID_INVALID", "REPLY_MARKUP_INVALID", + "RESULT_ID_DUPLICATE", "RESULT_TYPE_INVALID", "RESULTS_TOO_MUCH", "SEND_MESSAGE_MEDIA_INVALID", @@ -93,6 +97,12 @@ "INPUT_LAYER_INVALID", "INVITE_HASH_EXPIRED" ], + "auth.importLoginToken": [ + "AUTH_TOKEN_EXPIRED" + ], + "auth.acceptLoginToken": [ + "AUTH_TOKEN_INVALIDX" + ], "messages.editChatDefaultBannedRights": [ "BANNED_RIGHTS_INVALID", "CHAT_ADMIN_REQUIRED", @@ -122,6 +132,7 @@ "PINNED_DIALOGS_TOO_MUCH", "REPLY_MARKUP_INVALID", "SCHEDULE_BOT_NOT_ALLOWED", + "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", @@ -165,12 +176,17 @@ ], "messages.uploadMedia": [ "BOT_MISSING", + "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED", "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", + "INPUT_USER_DEACTIVATED", "MEDIA_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID", "PHOTO_EXT_INVALID", + "PHOTO_SAVE_FILE_INVALID", + "USER_BANNED_IN_CHANNEL", "WEBPAGE_CURL_FAILED" ], "stickers.addStickerToSet": [ @@ -185,10 +201,13 @@ "BOT_MISSING", "PACK_SHORT_NAME_INVALID", "PACK_SHORT_NAME_OCCUPIED", + "PACK_TITLE_INVALID", "PEER_ID_INVALID", + "SHORTNAME_OCCUPY_FAILED", "STICKER_EMOJI_INVALID", "STICKER_FILE_INVALID", "STICKER_PNG_DIMENSIONS", + "STICKER_PNG_NOPNG", "STICKERS_EMPTY", "USER_ID_INVALID" ], @@ -224,6 +243,8 @@ "MSG_ID_INVALID", "PEER_ID_INVALID", "RANDOM_ID_INVALID", + "SCHEDULE_TOO_MUCH", + "SLOWMODE_MULTI_MSGS_DISABLED", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", "USER_IS_BOT", @@ -255,6 +276,7 @@ "POLL_ANSWERS_INVALID", "POLL_OPTION_DUPLICATE", "POLL_OPTION_INVALID", + "QUIZ_CORRECT_ANSWER_INVALID", "QUIZ_CORRECT_ANSWERS_EMPTY", "REPLY_MARKUP_BUY_EMPTY", "REPLY_MARKUP_INVALID", @@ -267,6 +289,12 @@ "WEBPAGE_MEDIA_EMPTY", "YOU_BLOCKED_USER" ], + "stats.getBroadcastStats": [ + "BROADCAST_REQUIRED", + "CHANNEL_INVALID", + "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED" + ], "messages.editMessage": [ "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID", @@ -281,6 +309,7 @@ "MESSAGE_EMPTY", "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED", + "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "PEER_ID_INVALID", "REPLY_MARKUP_INVALID", @@ -392,7 +421,8 @@ "channels.exportMessageLink": [ "CHANNEL_INVALID", "CHANNEL_PRIVATE", - "MESSAGE_ID_INVALID" + "MESSAGE_ID_INVALID", + "MSG_ID_INVALID" ], "channels.getAdminLog": [ "CHANNEL_INVALID", @@ -457,7 +487,8 @@ ], "channels.readMessageContents": [ "CHANNEL_INVALID", - "CHANNEL_PRIVATE" + "CHANNEL_PRIVATE", + "MSG_ID_INVALID" ], "channels.reportSpam": [ "CHANNEL_INVALID", @@ -497,6 +528,7 @@ "CHANNEL_PRIVATE", "CHANNELS_ADMIN_PUBLIC_TOO_MUCH", "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED", "USERNAME_INVALID", "USERNAME_NOT_MODIFIED", "USERNAME_OCCUPIED" @@ -514,6 +546,7 @@ "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", + "CONNECTION_DEVICE_MODEL_EMPTY", "MSG_ID_INVALID", "PEER_ID_INVALID" ], @@ -524,6 +557,13 @@ "MSG_ID_INVALID", "PEER_ID_INVALID" ], + "messages.getPeerDialogs": [ + "CHANNEL_INVALID", + "CHANNEL_PRIVATE", + "CONNECTION_DEVICE_MODEL_EMPTY", + "MSG_ID_INVALID", + "PEER_ID_INVALID" + ], "messages.getPeerSettings": [ "CHANNEL_INVALID", "PEER_ID_INVALID" @@ -543,6 +583,7 @@ "MSG_ID_INVALID", "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT", + "USER_CHANNELS_TOO_MUCH", "USERS_TOO_MUCH" ], "messages.readMentions": [ @@ -557,11 +598,29 @@ "CHAT_ADMIN_REQUIRED", "INPUT_CONSTRUCTOR_INVALID", "INPUT_USER_DEACTIVATED", + "MSG_ID_INVALID", "PEER_ID_INVALID", "PEER_ID_NOT_SUPPORTED", "SEARCH_QUERY_EMPTY", "USER_ID_INVALID" ], + "messages.sendInlineBotResult": [ + "CHANNEL_INVALID", + "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED", + "CHAT_RESTRICTED", + "INLINE_RESULT_EXPIRED", + "INPUT_USER_DEACTIVATED", + "MEDIA_EMPTY", + "MSG_ID_INVALID", + "PEER_ID_INVALID", + "QUERY_ID_EMPTY", + "RESULT_ID_EMPTY", + "USER_BANNED_IN_CHANNEL", + "WEBPAGE_CURL_FAILED", + "WEBPAGE_MEDIA_EMPTY", + "YOU_BLOCKED_USER" + ], "messages.setTyping": [ "CHANNEL_INVALID", "CHANNEL_PRIVATE", @@ -579,12 +638,12 @@ "MESSAGE_ID_INVALID" ], "msgs_state_req": [ - "CHANNEL_INVALID" - ], - "stats.getBroadcastStats": [ "CHANNEL_INVALID", - "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED" + "MSG_ID_INVALID" + ], + "stats.getMessagePublicForwards": [ + "CHANNEL_INVALID", + "MESSAGE_ID_INVALID" ], "updates.getChannelDifference": [ "CHANNEL_INVALID", @@ -605,7 +664,8 @@ "LIMIT_INVALID", "LOCATION_INVALID", "MSG_ID_INVALID", - "OFFSET_INVALID" + "OFFSET_INVALID", + "PEER_ID_INVALID" ], "account.reportPeer": [ "CHANNEL_PRIVATE", @@ -636,26 +696,6 @@ "CHANNEL_PRIVATE", "PEER_ID_INVALID" ], - "messages.getPeerDialogs": [ - "CHANNEL_PRIVATE", - "MSG_ID_INVALID", - "PEER_ID_INVALID" - ], - "messages.sendInlineBotResult": [ - "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED", - "CHAT_RESTRICTED", - "INLINE_RESULT_EXPIRED", - "INPUT_USER_DEACTIVATED", - "MEDIA_EMPTY", - "PEER_ID_INVALID", - "QUERY_ID_EMPTY", - "RESULT_ID_EMPTY", - "USER_BANNED_IN_CHANNEL", - "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY", - "YOU_BLOCKED_USER" - ], "messages.updatePinnedMessage": [ "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", @@ -663,11 +703,27 @@ "MESSAGE_ID_INVALID", "PIN_RESTRICTED" ], + "users.getFullUser": [ + "CHANNEL_PRIVATE", + "MSG_ID_INVALID", + "USER_ID_INVALID" + ], + "users.getUsers": [ + "CHANNEL_PRIVATE", + "CONNECTION_NOT_INITED", + "INPUT_LAYER_INVALID", + "MSG_ID_INVALID" + ], "channels.createChannel": [ "CHANNELS_TOO_MUCH", "CHAT_ABOUT_TOO_LONG", "CHAT_TITLE_EMPTY" ], + "channels.toggleSlowMode": [ + "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED", + "SECONDS_INVALID" + ], "messages.addChatUser": [ "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", @@ -681,6 +737,7 @@ "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "PEER_ID_INVALID", + "USER_ID_INVALID", "USER_NOT_PARTICIPANT" ], "messages.getMessageEditData": [ @@ -693,7 +750,8 @@ "PEER_ID_INVALID" ], "messages.getScheduledMessages": [ - "CHAT_ADMIN_REQUIRED" + "CHAT_ADMIN_REQUIRED", + "PEER_ID_INVALID" ], "messages.sendMultiMedia": [ "CHAT_ADMIN_REQUIRED", @@ -703,6 +761,9 @@ "PEER_ID_INVALID", "RANDOM_ID_EMPTY" ], + "stats.getMessageStats": [ + "CHAT_ADMIN_REQUIRED" + ], "messages.discardEncryption": [ "CHAT_ID_EMPTY", "ENCRYPTION_ALREADY_DECLINED", @@ -727,11 +788,13 @@ ], "messages.editChatPhoto": [ "CHAT_ID_INVALID", + "CHAT_NOT_MODIFIED", "INPUT_CONSTRUCTOR_INVALID", "INPUT_FETCH_FAIL", "PEER_ID_INVALID", "PHOTO_CROP_SIZE_SMALL", - "PHOTO_EXT_INVALID" + "PHOTO_EXT_INVALID", + "PHOTO_INVALID" ], "messages.editChatTitle": [ "CHAT_ID_INVALID", @@ -784,10 +847,6 @@ "INPUT_USER_DEACTIVATED", "USERS_TOO_FEW" ], - "channels.toggleSlowMode": [ - "CHAT_NOT_MODIFIED", - "SECONDS_INVALID" - ], "auth.recoverPassword": [ "CODE_EMPTY" ], @@ -803,14 +862,17 @@ "CONNECTION_API_ID_INVALID", "CONNECTION_APP_VERSION_EMPTY", "CONNECTION_DEVICE_MODEL_EMPTY", + "CONNECTION_LANG_PACK_INVALID", "CONNECTION_LAYER_INVALID", "CONNECTION_NOT_INITED", "CONNECTION_SYSTEM_EMPTY", "CONNECTION_SYSTEM_LANG_CODE_EMPTY", "DATA_INVALID", - "INPUT_LAYER_INVALID" + "INPUT_LAYER_INVALID", + "MSG_ID_INVALID" ], "contacts.resolveUsername": [ + "CONNECTION_DEVICE_MODEL_EMPTY", "CONNECTION_LAYER_INVALID", "USERNAME_INVALID", "USERNAME_NOT_OCCUPIED" @@ -832,7 +894,8 @@ "contacts.block": [ "CONTACT_ID_INVALID", "INPUT_USER_DEACTIVATED", - "MSG_ID_INVALID" + "MSG_ID_INVALID", + "PEER_ID_INVALID" ], "contacts.deleteContact": [ "CONTACT_ID_INVALID" @@ -889,6 +952,7 @@ "FILE_PART_INVALID", "FILE_PART_SIZE_CHANGED", "FILE_PART_SIZE_INVALID", + "FILE_PART_TOO_BIG", "FILE_PARTS_INVALID" ], "upload.saveFilePart": [ @@ -901,14 +965,20 @@ "IMAGE_PROCESS_FAILED", "LOCATION_INVALID", "PHOTO_CROP_SIZE_SMALL", - "PHOTO_EXT_INVALID" + "PHOTO_EXT_INVALID", + "PHOTO_ID_INVALID" ], "photos.uploadProfilePhoto": [ "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", "PHOTO_CROP_FILE_MISSING", "PHOTO_CROP_SIZE_SMALL", - "PHOTO_EXT_INVALID" + "PHOTO_EXT_INVALID", + "PHOTO_FILE_MISSING", + "VIDEO_FILE_INVALID" + ], + "messages.updateDialogFilter": [ + "FILTER_ID_INVALID" ], "auth.signUp": [ "FIRSTNAME_INVALID", @@ -942,7 +1012,8 @@ "GIF_ID_INVALID" ], "stats.loadAsyncGraph": [ - "GRAPH_INVALID_RELOAD" + "GRAPH_INVALID_RELOAD", + "GRAPH_OUTDATED_RELOAD" ], "account.resetAuthorization": [ "HASH_INVALID" @@ -953,10 +1024,6 @@ "invokeWithTakeout": [ "INPUT_FETCH_FAIL" ], - "users.getUsers": [ - "INPUT_LAYER_INVALID", - "MSG_ID_INVALID" - ], "messages.checkChatInvite": [ "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", @@ -984,6 +1051,9 @@ "MAX_ID_INVALID", "USER_ID_INVALID" ], + "channels.editLocation": [ + "MEGAGROUP_REQUIRED" + ], "auth.sendInvites": [ "MESSAGE_EMPTY" ], @@ -1017,7 +1087,8 @@ "MESSAGE_ID_INVALID", "MESSAGE_POLL_CLOSED", "OPTION_INVALID", - "OPTIONS_TOO_MUCH" + "OPTIONS_TOO_MUCH", + "REVOTE_NOT_ALLOWED" ], "messages.setGameScore": [ "MESSAGE_ID_INVALID", @@ -1048,14 +1119,13 @@ "MSG_ID_INVALID", "USER_ID_INVALID" ], + "messages.getPollVotes": [ + "MSG_ID_INVALID" + ], "messages.reportSpam": [ "MSG_ID_INVALID", "PEER_ID_INVALID" ], - "users.getFullUser": [ - "MSG_ID_INVALID", - "USER_ID_INVALID" - ], "messages.readEncryptedHistory": [ "MSG_WAIT_FAILED" ], @@ -1138,7 +1208,8 @@ "PRIVACY_KEY_INVALID" ], "account.setPrivacy": [ - "PRIVACY_KEY_INVALID" + "PRIVACY_KEY_INVALID", + "PRIVACY_VALUE_INVALID" ], "bots.answerWebhookJSONQuery": [ "QUERY_ID_INVALID", @@ -1223,6 +1294,9 @@ "account.checkUsername": [ "AUTH_KEY_DUPLICATED" ], + "account.getAuthorizations": [ + "AUTH_KEY_DUPLICATED" + ], "account.updateProfile": [ "AUTH_KEY_DUPLICATED" ], @@ -1268,6 +1342,9 @@ "channels.updateUsername": [ "AUTH_KEY_DUPLICATED" ], + "contacts.getContacts": [ + "AUTH_KEY_DUPLICATED" + ], "contacts.importContacts": [ "AUTH_KEY_DUPLICATED" ], @@ -1316,6 +1393,9 @@ "messages.getPeerDialogs": [ "AUTH_KEY_DUPLICATED" ], + "messages.getUnreadMentions": [ + "AUTH_KEY_DUPLICATED" + ], "messages.importChatInvite": [ "AUTH_KEY_DUPLICATED" ], @@ -1337,9 +1417,18 @@ "messages.sendMultiMedia": [ "AUTH_KEY_DUPLICATED" ], + "messages.sendVote": [ + "AUTH_KEY_DUPLICATED" + ], "messages.setTyping": [ "AUTH_KEY_DUPLICATED" ], + "messages.startBot": [ + "AUTH_KEY_DUPLICATED" + ], + "messages.updatePinnedMessage": [ + "AUTH_KEY_DUPLICATED" + ], "phone.getCallConfig": [ "AUTH_KEY_DUPLICATED" ], @@ -1447,15 +1536,24 @@ "auth.signIn": [ "SESSION_PASSWORD_NEEDED" ], + "channels.createChannel": [ + "SESSION_PASSWORD_NEEDED" + ], "channels.getChannels": [ "SESSION_PASSWORD_NEEDED" ], "channels.joinChannel": [ "SESSION_PASSWORD_NEEDED" ], + "contacts.getContacts": [ + "SESSION_PASSWORD_NEEDED" + ], "contacts.getStatuses": [ "SESSION_PASSWORD_NEEDED" ], + "contacts.importContacts": [ + "SESSION_PASSWORD_NEEDED" + ], "help.getTermsOfServiceUpdate": [ "SESSION_PASSWORD_NEEDED" ], @@ -1482,6 +1580,10 @@ ] }, "403": { + "messages.getPollVotes": [ + "BROADCAST_FORBIDDEN", + "POLL_VOTE_REQUIRED" + ], "channels.getFullChannel": [ "CHANNEL_PUBLIC_GROUP_NA" ], @@ -1557,6 +1659,11 @@ "invokeWithLayer": [ "CHAT_WRITE_FORBIDDEN" ], + "messages.addChatUser": [ + "CHAT_WRITE_FORBIDDEN", + "USER_NOT_MUTUAL_CONTACT", + "USER_PRIVACY_RESTRICTED" + ], "messages.editChatAbout": [ "CHAT_WRITE_FORBIDDEN" ], @@ -1584,9 +1691,6 @@ "messages.deleteMessages": [ "MESSAGE_DELETE_FORBIDDEN" ], - "messages.getPollVotes": [ - "POLL_VOTE_REQUIRED" - ], "account.finishTakeoutSession": [ "TAKEOUT_REQUIRED" ], @@ -1612,10 +1716,6 @@ "USER_IS_BLOCKED", "USER_PRIVACY_RESTRICTED" ], - "messages.addChatUser": [ - "USER_NOT_MUTUAL_CONTACT", - "USER_PRIVACY_RESTRICTED" - ], "channels.createChannel": [ "USER_RESTRICTED" ], @@ -1634,14 +1734,50 @@ "msgs_state_req": [ "Invalid msgs_state_req query" ], + "account.updateProfile": [ + "No workers running" + ], + "auth.sendCode": [ + "No workers running" + ], + "channels.getMessages": [ + "No workers running" + ], + "channels.getParticipants": [ + "No workers running" + ], "help.getCdnConfig": [ "No workers running" ], + "help.getConfig": [ + "No workers running" + ], + "help.getNearestDc": [ + "No workers running" + ], + "messages.getMessagesViews": [ + "No workers running" + ], + "messages.readHistory": [ + "No workers running" + ], + "messages.sendMessage": [ + "No workers running" + ], + "photos.deletePhotos": [ + "No workers running" + ], + "photos.updateProfilePhoto": [ + "No workers running" + ], "updates.getChannelDifference": [ "No workers running" ], "updates.getDifference": [ "No workers running" + ], + "users.getFullUser": [ + "No workers running" ] }, "-504": { @@ -1677,6 +1813,9 @@ "auth.resetAuthorizations": [ "Timeout" ], + "auth.sendCode": [ + "Timeout" + ], "channels.deleteMessages": [ "Timeout" ], @@ -1710,6 +1849,9 @@ "contacts.deleteContacts": [ "Timeout" ], + "contacts.resolveUsername": [ + "Timeout" + ], "contacts.search": [ "Timeout" ], @@ -1725,12 +1867,18 @@ "messages.deleteHistory": [ "Timeout" ], + "messages.editMessage": [ + "Timeout" + ], "messages.forwardMessages": [ "Timeout" ], "messages.getBotCallbackAnswer": [ "Timeout" ], + "messages.getDhConfig": [ + "Timeout" + ], "messages.getDialogs": [ "Timeout" ], @@ -1746,12 +1894,18 @@ "messages.getPeerDialogs": [ "Timeout" ], + "messages.getUnreadMentions": [ + "Timeout" + ], "messages.importChatInvite": [ "Timeout" ], "messages.readHistory": [ "Timeout" ], + "messages.search": [ + "Timeout" + ], "messages.sendInlineBotResult": [ "Timeout" ], @@ -1794,6 +1948,9 @@ "upload.saveBigFilePart": [ "Timeout" ], + "upload.saveFilePart": [ + "Timeout" + ], "users.getFullUser": [ "Timeout" ], @@ -1854,6 +2011,12 @@ "AUTH_RESTART": [ "Restart the authorization process" ], + "AUTH_TOKEN_EXPIRED": [ + "The authorization token has expired" + ], + "AUTH_TOKEN_INVALIDX": [ + "The specified auth token is invalid" + ], "BANNED_RIGHTS_INVALID": [ "You provided some invalid flags in the banned rights" ], @@ -1884,12 +2047,18 @@ "BOTS_TOO_MUCH": [ "There are too many bots in this chat\/channel" ], + "BROADCAST_FORBIDDEN": [ + "" + ], "BROADCAST_ID_INVALID": [ "Broadcast ID invalid" ], "BROADCAST_PUBLIC_VOTERS_FORBIDDEN": [ "You can't forward polls with public voters" ], + "BROADCAST_REQUIRED": [ + "This method can only be called on a channel, please use stats.getMegagroupStats for supergroups" + ], "BUTTON_DATA_INVALID": [ "The data of one or more of the buttons you provided is invalid" ], @@ -2133,6 +2302,9 @@ "FILE_PART_SIZE_INVALID": [ "The provided file part size is invalid" ], + "FILE_PART_TOO_BIG": [ + "The uploaded file part is too big" + ], "FILE_PARTS_INVALID": [ "The number of file parts is invalid" ], @@ -2142,6 +2314,9 @@ "FILEREF_UPGRADE_NEEDED": [ "The client has to be updated in order to support [file references](https:\/\/core.telegram.org\/api\/file_reference)" ], + "FILTER_ID_INVALID": [ + "The specified filter ID is invalid" + ], "FIRSTNAME_INVALID": [ "The first name is invalid" ], @@ -2172,6 +2347,9 @@ "GRAPH_INVALID_RELOAD": [ "Invalid graph token provided, please reload the stats and provide the updated token" ], + "GRAPH_OUTDATED_RELOAD": [ + "The graph is outdated, please get a new async token using stats.getBroadcastStats" + ], "GROUPED_ID_OCCUPY_FAULED": [ "Internal error" ], @@ -2298,6 +2476,9 @@ "MEGAGROUP_ID_INVALID": [ "Invalid supergroup ID" ], + "MEGAGROUP_REQUIRED": [ + "You can only use this method on a supergroup" + ], "MEMBER_FETCH_FAILED": [ "Internal error" ], @@ -2397,6 +2578,9 @@ "PACK_SHORT_NAME_OCCUPIED": [ "A stickerpack with this name already exists" ], + "PACK_TITLE_INVALID": [ + "The stickerpack title is invalid" + ], "PARTICIPANT_CALL_FAILED": [ "Failure while making call" ], @@ -2487,6 +2671,12 @@ "PHOTO_EXT_INVALID": [ "The extension of the photo is invalid" ], + "PHOTO_FILE_MISSING": [ + "Profile photo file missing" + ], + "PHOTO_ID_INVALID": [ + "Photo ID invalid" + ], "PHOTO_INVALID": [ "Photo invalid" ], @@ -2523,6 +2713,9 @@ "PRIVACY_KEY_INVALID": [ "The privacy key is invalid" ], + "PRIVACY_VALUE_INVALID": [ + "The specified privacy rule combination is invalid" + ], "PTS_CHANGE_EMPTY": [ "No PTS change" ], @@ -2535,6 +2728,9 @@ "QUERY_TOO_SHORT": [ "The query string is too short" ], + "QUIZ_CORRECT_ANSWER_INVALID": [ + "An invalid value was provided to the correct_answers field" + ], "QUIZ_CORRECT_ANSWERS_EMPTY": [ "No correct quiz answer was specified" ], @@ -2565,6 +2761,9 @@ "REPLY_MARKUP_INVALID": [ "The provided reply markup is invalid" ], + "RESULT_ID_DUPLICATE": [ + "You provided a duplicate result ID" + ], "RESULT_ID_EMPTY": [ "Result ID empty" ], @@ -2574,6 +2773,9 @@ "RESULTS_TOO_MUCH": [ "Too many results were provided" ], + "REVOTE_NOT_ALLOWED": [ + "You cannot change your vote" + ], "RIGHT_FORBIDDEN": [ "Your admin rights do not allow you to do this" ], @@ -2595,6 +2797,9 @@ "SCHEDULE_DATE_INVALID": [ "Invalid schedule date provided" ], + "SCHEDULE_DATE_TOO_LATE": [ + "You can't schedule a message this far in the future" + ], "SCHEDULE_TOO_MUCH": [ "There are too many scheduled messages" ], @@ -2622,9 +2827,15 @@ "SHA256_HASH_INVALID": [ "The provided SHA256 hash is invalid" ], + "SHORTNAME_OCCUPY_FAILED": [ + "An internal error occurred" + ], "SIGN_IN_FAILED": [ "Failure while signing in" ], + "SLOWMODE_MULTI_MSGS_DISABLED": [ + "Slowmode is enabled, you cannot forward multiple messages to this group." + ], "SLOWMODE_WAIT_X": [ "Slowmode is enabled in this chat: wait X seconds before sending another message to this chat." ], @@ -2661,6 +2872,9 @@ "STICKER_PNG_DIMENSIONS": [ "Sticker png dimensions invalid" ], + "STICKER_PNG_NOPNG": [ + "One of the specified stickers is not a valid PNG file" + ], "STICKERS_EMPTY": [ "No sticker provided" ], @@ -2718,6 +2932,9 @@ "UNTIL_DATE_INVALID": [ "Invalid until date provided" ], + "UPLOAD_NO_VOLUME": [ + "An internal error occurred" + ], "URL_INVALID": [ "Invalid URL provided" ], @@ -2802,6 +3019,9 @@ "USERS_TOO_MUCH": [ "The maximum number of users has been exceeded (to create a chat, for example)" ], + "VIDEO_FILE_INVALID": [ + "The specified video file is invalid" + ], "VOLUME_LOC_NOT_FOUND": [ "Internal error" ], diff --git a/v2.json b/v2.json index c44926f..1e0b7de 100644 --- a/v2.json +++ b/v2.json @@ -24,6 +24,11 @@ "error_message": "FIRSTNAME_INVALID", "error_description": "The first name is invalid" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 401, "error_message": "SESSION_PASSWORD_NEEDED", @@ -68,6 +73,11 @@ "error_message": "BOT_CHANNELS_NA", "error_description": "Bots can't edit admin privileges" }, + { + "error_code": 400, + "error_message": "BOT_GROUPS_BLOCKED", + "error_description": "This bot can't be added to groups" + }, { "error_code": 400, "error_message": "BOTS_TOO_MUCH", @@ -118,6 +128,11 @@ "error_message": "RIGHT_FORBIDDEN", "error_description": "Your admin rights do not allow you to do this" }, + { + "error_code": 400, + "error_message": "USER_BLOCKED", + "error_description": "User blocked" + }, { "error_code": 403, "error_message": "USER_CHANNELS_TOO_MUCH", @@ -147,6 +162,11 @@ "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_MUCH", + "error_description": "The maximum number of users has been exceeded (to create a chat, for example)" } ], "auth.sendCode": [ @@ -175,6 +195,11 @@ "error_message": "INPUT_REQUEST_TOO_LONG", "error_description": "The request is too big" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 400, "error_message": "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN", @@ -214,6 +239,11 @@ "error_code": 400, "error_message": "SMS_CODE_CREATE_FAILED", "error_description": "An error occurred while creating the SMS code" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" } ], "messages.setInlineBotResults": [ @@ -282,6 +312,11 @@ "error_message": "REPLY_MARKUP_INVALID", "error_description": "The provided reply markup is invalid" }, + { + "error_code": 400, + "error_message": "RESULT_ID_DUPLICATE", + "error_description": "You provided a duplicate result ID" + }, { "error_code": 400, "error_message": "RESULT_TYPE_INVALID", @@ -419,6 +454,18 @@ "error_description": "The provided username is not valid" } ], + "account.getAuthorizations": [ + { + "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": "SESSION_PASSWORD_NEEDED", + "error_description": "2FA is enabled, use a password to login" + } + ], "account.updateStatus": [ { "error_code": 406, @@ -489,6 +536,11 @@ "error_message": "CHAT_TITLE_EMPTY", "error_description": "No chat title provided" }, + { + "error_code": 401, + "error_message": "SESSION_PASSWORD_NEEDED", + "error_description": "2FA is enabled, use a password to login" + }, { "error_code": 403, "error_message": "USER_RESTRICTED", @@ -590,6 +642,11 @@ "error_message": "MSG_ID_INVALID", "error_description": "Invalid message ID provided" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": -503, "error_message": "Timeout", @@ -622,6 +679,11 @@ "error_message": "INPUT_CONSTRUCTOR_INVALID", "error_description": "The provided constructor is invalid" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": -503, "error_message": "Timeout", @@ -897,6 +959,11 @@ "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" + }, { "error_code": 403, "error_message": "CHAT_WRITE_FORBIDDEN", @@ -918,11 +985,28 @@ "error_description": "The provided username is already occupied" } ], + "contacts.getContacts": [ + { + "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": "SESSION_PASSWORD_NEEDED", + "error_description": "2FA is enabled, use a password to login" + } + ], "contacts.importContacts": [ { "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": "SESSION_PASSWORD_NEEDED", + "error_description": "2FA is enabled, use a password to login" } ], "contacts.resolveUsername": [ @@ -936,6 +1020,11 @@ "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": "CONNECTION_DEVICE_MODEL_EMPTY", + "error_description": "Device model empty" + }, { "error_code": 400, "error_message": "CONNECTION_LAYER_INVALID", @@ -946,6 +1035,11 @@ "error_message": "SESSION_PASSWORD_NEEDED", "error_description": "2FA is enabled, use a password to login" }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + }, { "error_code": 400, "error_message": "USERNAME_INVALID", @@ -1005,6 +1099,11 @@ "error_message": "CONNECTION_DEVICE_MODEL_EMPTY", "error_description": "Device model empty" }, + { + "error_code": 400, + "error_message": "CONNECTION_LANG_PACK_INVALID", + "error_description": "Language pack invalid" + }, { "error_code": 400, "error_message": "CONNECTION_LAYER_INVALID", @@ -1035,6 +1134,16 @@ "error_message": "INPUT_LAYER_INVALID", "error_description": "The provided layer is invalid" }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": -503, "error_message": "Timeout", @@ -1046,6 +1155,11 @@ "error_code": 406, "error_message": "AUTH_KEY_DUPLICATED", "error_description": "An auth key with the same ID was already generated" + }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" } ], "help.getTermsOfServiceUpdate": [ @@ -1210,6 +1324,11 @@ "error_message": "MESSAGE_NOT_MODIFIED", "error_description": "The message text has not changed" }, + { + "error_code": 400, + "error_message": "MESSAGE_TOO_LONG", + "error_description": "The provided message is too long" + }, { "error_code": 400, "error_message": "MSG_ID_INVALID", @@ -1230,6 +1349,11 @@ "error_message": "SCHEDULE_DATE_INVALID", "error_description": "Invalid schedule date provided" }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + }, { "error_code": 400, "error_message": "USER_BANNED_IN_CHANNEL", @@ -1337,6 +1461,16 @@ "error_message": "RANDOM_ID_INVALID", "error_description": "A provided random ID is invalid" }, + { + "error_code": 400, + "error_message": "SCHEDULE_TOO_MUCH", + "error_description": "There are too many scheduled messages" + }, + { + "error_code": 400, + "error_message": "SLOWMODE_MULTI_MSGS_DISABLED", + "error_description": "Slowmode is enabled, you cannot forward multiple messages to this group." + }, { "error_code": 420, "error_message": "SLOWMODE_WAIT_X", @@ -1473,6 +1607,11 @@ "error_message": "CHAT_ID_INVALID", "error_description": "The provided chat id is invalid" }, + { + "error_code": 400, + "error_message": "CONNECTION_DEVICE_MODEL_EMPTY", + "error_description": "Device model empty" + }, { "error_code": -504, "error_message": "memory limit exit", @@ -1520,6 +1659,11 @@ "error_message": "MSG_ID_INVALID", "error_description": "Invalid message ID provided" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -1537,11 +1681,21 @@ "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": "CONNECTION_DEVICE_MODEL_EMPTY", + "error_description": "Device model empty" + }, { "error_code": 400, "error_message": "MSG_ID_INVALID", @@ -1558,6 +1712,33 @@ "error_description": "Timeout while fetching data" } ], + "messages.getUnreadMentions": [ + { + "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": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + } + ], "messages.importChatInvite": [ { "error_code": 406, @@ -1619,6 +1800,11 @@ "error_message": "USER_ALREADY_PARTICIPANT", "error_description": "The user is already in the group" }, + { + "error_code": 400, + "error_message": "USER_CHANNELS_TOO_MUCH", + "error_description": "One of the users you tried to add is already in too many channels\/supergroups" + }, { "error_code": 400, "error_message": "USERS_TOO_MUCH", @@ -1641,6 +1827,11 @@ "error_message": "MSG_ID_INVALID", "error_description": "Invalid message ID provided" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -1710,6 +1901,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", @@ -1725,6 +1921,11 @@ "error_message": "SEARCH_QUERY_EMPTY", "error_description": "The search query is empty" }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + }, { "error_code": 400, "error_message": "USER_ID_INVALID", @@ -1887,6 +2088,11 @@ "error_message": "POLL_OPTION_INVALID", "error_description": "Invalid poll option provided" }, + { + "error_code": 400, + "error_message": "QUIZ_CORRECT_ANSWER_INVALID", + "error_description": "An invalid value was provided to the correct_answers field" + }, { "error_code": 400, "error_message": "QUIZ_CORRECT_ANSWERS_EMPTY", @@ -2059,6 +2265,11 @@ "error_message": "MSG_ID_INVALID", "error_description": "Invalid message ID provided" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -2079,6 +2290,11 @@ "error_message": "SCHEDULE_BOT_NOT_ALLOWED", "error_description": "Bots cannot schedule messages" }, + { + "error_code": 400, + "error_message": "SCHEDULE_DATE_TOO_LATE", + "error_description": "You can't schedule a message this far in the future" + }, { "error_code": 400, "error_message": "SCHEDULE_TOO_MUCH", @@ -2152,6 +2368,38 @@ "error_description": "Random ID empty" } ], + "messages.sendVote": [ + { + "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": "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" + }, + { + "error_code": 400, + "error_message": "OPTIONS_TOO_MUCH", + "error_description": "Too many options provided" + }, + { + "error_code": 400, + "error_message": "REVOTE_NOT_ALLOWED", + "error_description": "You cannot change your vote" + } + ], "messages.setTyping": [ { "error_code": 406, @@ -2219,6 +2467,85 @@ "error_description": "Bots can't send messages to other bots" } ], + "messages.startBot": [ + { + "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": "BOT_INVALID", + "error_description": "This is not a valid bot" + }, + { + "error_code": 400, + "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", + "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "START_PARAM_EMPTY", + "error_description": "The start parameter is empty" + }, + { + "error_code": 400, + "error_message": "START_PARAM_INVALID", + "error_description": "Start parameter invalid" + }, + { + "error_code": 400, + "error_message": "START_PARAM_TOO_LONG", + "error_description": "Start parameter is too long" + } + ], + "messages.updatePinnedMessage": [ + { + "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_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": "CHAT_NOT_MODIFIED", + "error_description": "The pinned message wasn't modified" + }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" + }, + { + "error_code": 400, + "error_message": "MESSAGE_ID_INVALID", + "error_description": "The provided message id is invalid" + }, + { + "error_code": 400, + "error_message": "PIN_RESTRICTED", + "error_description": "You can't pin messages" + } + ], "phone.getCallConfig": [ { "error_code": 406, @@ -2264,6 +2591,11 @@ "error_message": "LOCATION_INVALID", "error_description": "The provided location is invalid" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": 400, "error_message": "PHOTO_CROP_SIZE_SMALL", @@ -2273,6 +2605,11 @@ "error_code": 400, "error_message": "PHOTO_EXT_INVALID", "error_description": "The extension of the photo is invalid" + }, + { + "error_code": 400, + "error_message": "PHOTO_ID_INVALID", + "error_description": "Photo ID invalid" } ], "updates.getChannelDifference": [ @@ -2472,6 +2809,11 @@ "error_message": "OFFSET_INVALID", "error_description": "The provided offset is invalid" }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + }, { "error_code": -503, "error_message": "Timeout", @@ -2504,6 +2846,11 @@ "error_message": "FILE_PART_SIZE_INVALID", "error_description": "The provided file part size is invalid" }, + { + "error_code": 400, + "error_message": "FILE_PART_TOO_BIG", + "error_description": "The uploaded file part is too big" + }, { "error_code": 400, "error_message": "FILE_PARTS_INVALID", @@ -2540,6 +2887,11 @@ "error_code": 401, "error_message": "SESSION_PASSWORD_NEEDED", "error_description": "2FA is enabled, use a password to login" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" } ], "users.getFullUser": [ @@ -2548,11 +2900,21 @@ "error_message": "AUTH_KEY_DUPLICATED", "error_description": "An auth key with the same ID was already generated" }, + { + "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" }, + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, { "error_code": -503, "error_message": "Timeout", @@ -2575,6 +2937,16 @@ "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": "CHANNEL_PRIVATE", + "error_description": "You haven't joined this channel\/supergroup" + }, + { + "error_code": 400, + "error_message": "CONNECTION_NOT_INITED", + "error_description": "Connection not initialized" + }, { "error_code": 400, "error_message": "INPUT_LAYER_INVALID", @@ -2618,6 +2990,20 @@ "error_description": "The phone number is invalid" } ], + "auth.importLoginToken": [ + { + "error_code": 400, + "error_message": "AUTH_TOKEN_EXPIRED", + "error_description": "The authorization token has expired" + } + ], + "auth.acceptLoginToken": [ + { + "error_code": 400, + "error_message": "AUTH_TOKEN_INVALIDX", + "error_description": "The specified auth token is invalid" + } + ], "messages.editChatDefaultBannedRights": [ { "error_code": 400, @@ -2682,49 +3068,22 @@ "error_description": "Timeout while fetching data" } ], - "messages.startBot": [ - { - "error_code": 400, - "error_message": "BOT_INVALID", - "error_description": "This is not a valid bot" - }, - { - "error_code": 400, - "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", - "error_description": "The provided peer id is invalid" - }, - { - "error_code": 400, - "error_message": "START_PARAM_EMPTY", - "error_description": "The start parameter is empty" - }, - { - "error_code": 400, - "error_message": "START_PARAM_INVALID", - "error_description": "Start parameter invalid" - }, - { - "error_code": 400, - "error_message": "START_PARAM_TOO_LONG", - "error_description": "Start parameter is too long" - } - ], "messages.uploadMedia": [ { "error_code": 400, "error_message": "BOT_MISSING", "error_description": "This method can only be run by a bot" }, + { + "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": 403, "error_message": "CHAT_WRITE_FORBIDDEN", @@ -2740,6 +3099,11 @@ "error_message": "IMAGE_PROCESS_FAILED", "error_description": "Failure while processing image" }, + { + "error_code": 400, + "error_message": "INPUT_USER_DEACTIVATED", + "error_description": "The specified user was deleted" + }, { "error_code": 400, "error_message": "MEDIA_INVALID", @@ -2760,11 +3124,21 @@ "error_message": "PHOTO_EXT_INVALID", "error_description": "The extension of the photo is invalid" }, + { + "error_code": 400, + "error_message": "PHOTO_SAVE_FILE_INVALID", + "error_description": "Internal issues, try again later" + }, { "error_code": -503, "error_message": "Timeout", "error_description": "Timeout while fetching data" }, + { + "error_code": 400, + "error_message": "USER_BANNED_IN_CHANNEL", + "error_description": "You're banned from sending messages in supergroups\/channels" + }, { "error_code": 400, "error_message": "WEBPAGE_CURL_FAILED", @@ -2811,11 +3185,21 @@ "error_message": "PACK_SHORT_NAME_OCCUPIED", "error_description": "A stickerpack with this name already exists" }, + { + "error_code": 400, + "error_message": "PACK_TITLE_INVALID", + "error_description": "The stickerpack title is invalid" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" }, + { + "error_code": 400, + "error_message": "SHORTNAME_OCCUPY_FAILED", + "error_description": "An internal error occurred" + }, { "error_code": 400, "error_message": "STICKER_EMOJI_INVALID", @@ -2831,6 +3215,11 @@ "error_message": "STICKER_PNG_DIMENSIONS", "error_description": "Sticker png dimensions invalid" }, + { + "error_code": 400, + "error_message": "STICKER_PNG_NOPNG", + "error_description": "One of the specified stickers is not a valid PNG file" + }, { "error_code": 400, "error_message": "STICKERS_EMPTY", @@ -2854,6 +3243,23 @@ "error_description": "The provided sticker is invalid" } ], + "messages.getPollVotes": [ + { + "error_code": 403, + "error_message": "BROADCAST_FORBIDDEN", + "error_description": "" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" + }, + { + "error_code": 403, + "error_message": "POLL_VOTE_REQUIRED", + "error_description": "Cast a vote in the poll before calling this method" + } + ], "channels.setDiscussionGroup": [ { "error_code": 400, @@ -2871,6 +3277,33 @@ "error_description": "Invalid supergroup ID" } ], + "stats.getBroadcastStats": [ + { + "error_code": 400, + "error_message": "BROADCAST_REQUIRED", + "error_description": "This method can only be called on a channel, please use stats.getMegagroupStats for supergroups" + }, + { + "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": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + } + ], "phone.acceptCall": [ { "error_code": 400, @@ -3267,6 +3700,11 @@ "error_code": 400, "error_message": "MESSAGE_ID_INVALID", "error_description": "The provided message id is invalid" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" } ], "channels.getAdminLog": [ @@ -3344,6 +3782,11 @@ "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" + }, { "error_code": -503, "error_message": "Timeout", @@ -3521,7 +3964,7 @@ "error_description": "The provided peer id is invalid" } ], - "messages.getUnreadMentions": [ + "messages.sendInlineBotResult": [ { "error_code": 400, "error_message": "CHANNEL_INVALID", @@ -3532,10 +3975,105 @@ "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": "CHAT_RESTRICTED", + "error_description": "You can't send messages in this chat, you were restricted" + }, + { + "error_code": 403, + "error_message": "CHAT_SEND_GIFS_FORBIDDEN", + "error_description": "You can't send gifs in this chat" + }, + { + "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_SEND_STICKERS_FORBIDDEN", + "error_description": "You can't send stickers in this chat." + }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" + }, + { + "error_code": 400, + "error_message": "INLINE_RESULT_EXPIRED", + "error_description": "The inline query expired" + }, + { + "error_code": 400, + "error_message": "INPUT_USER_DEACTIVATED", + "error_description": "The specified user was deleted" + }, + { + "error_code": 400, + "error_message": "MEDIA_EMPTY", + "error_description": "The provided media object 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" + }, + { + "error_code": 400, + "error_message": "QUERY_ID_EMPTY", + "error_description": "The query ID is empty" + }, + { + "error_code": 400, + "error_message": "RESULT_ID_EMPTY", + "error_description": "Result ID empty" + }, + { + "error_code": 420, + "error_message": "SLOWMODE_WAIT_X", + "error_description": "Slowmode is enabled in this chat: wait X seconds before sending another message to this chat." + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + }, + { + "error_code": 400, + "error_message": "USER_BANNED_IN_CHANNEL", + "error_description": "You're banned from sending messages in supergroups\/channels" + }, + { + "error_code": 400, + "error_message": "WEBPAGE_CURL_FAILED", + "error_description": "Failure while fetching the webpage with cURL" + }, + { + "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" } ], "msg_container": [ @@ -3560,9 +4098,14 @@ "error_code": -500, "error_message": "Invalid msgs_state_req query", "error_description": "Invalid msgs_state_req query" + }, + { + "error_code": 400, + "error_message": "MSG_ID_INVALID", + "error_description": "Invalid message ID provided" } ], - "stats.getBroadcastStats": [ + "stats.getMessagePublicForwards": [ { "error_code": 400, "error_message": "CHANNEL_INVALID", @@ -3570,18 +4113,8 @@ }, { "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": -503, - "error_message": "Timeout", - "error_description": "Timeout while fetching data" + "error_message": "MESSAGE_ID_INVALID", + "error_description": "The provided message id is invalid" } ], "account.reportPeer": [ @@ -3694,114 +4227,7 @@ "error_description": "The provided peer id is invalid" } ], - "messages.sendInlineBotResult": [ - { - "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": "CHAT_RESTRICTED", - "error_description": "You can't send messages in this chat, you were restricted" - }, - { - "error_code": 403, - "error_message": "CHAT_SEND_GIFS_FORBIDDEN", - "error_description": "You can't send gifs in this chat" - }, - { - "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_SEND_STICKERS_FORBIDDEN", - "error_description": "You can't send stickers in this chat." - }, - { - "error_code": 403, - "error_message": "CHAT_WRITE_FORBIDDEN", - "error_description": "You can't write in this chat" - }, - { - "error_code": 400, - "error_message": "INLINE_RESULT_EXPIRED", - "error_description": "The inline query expired" - }, - { - "error_code": 400, - "error_message": "INPUT_USER_DEACTIVATED", - "error_description": "The specified user was deleted" - }, - { - "error_code": 400, - "error_message": "MEDIA_EMPTY", - "error_description": "The provided media object is invalid" - }, - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - }, - { - "error_code": 400, - "error_message": "QUERY_ID_EMPTY", - "error_description": "The query ID is empty" - }, - { - "error_code": 400, - "error_message": "RESULT_ID_EMPTY", - "error_description": "Result ID empty" - }, - { - "error_code": 420, - "error_message": "SLOWMODE_WAIT_X", - "error_description": "Slowmode is enabled in this chat: wait X seconds before sending another message to this chat." - }, - { - "error_code": -503, - "error_message": "Timeout", - "error_description": "Timeout while fetching data" - }, - { - "error_code": 400, - "error_message": "USER_BANNED_IN_CHANNEL", - "error_description": "You're banned from sending messages in supergroups\/channels" - }, - { - "error_code": 400, - "error_message": "WEBPAGE_CURL_FAILED", - "error_description": "Failure while fetching the webpage with cURL" - }, - { - "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": "CHANNEL_PRIVATE", - "error_description": "You haven't joined this channel\/supergroup" - }, + "channels.toggleSlowMode": [ { "error_code": 400, "error_message": "CHAT_ADMIN_REQUIRED", @@ -3812,20 +4238,10 @@ "error_message": "CHAT_NOT_MODIFIED", "error_description": "The pinned message wasn't modified" }, - { - "error_code": 403, - "error_message": "CHAT_WRITE_FORBIDDEN", - "error_description": "You can't write in this chat" - }, { "error_code": 400, - "error_message": "MESSAGE_ID_INVALID", - "error_description": "The provided message id is invalid" - }, - { - "error_code": 400, - "error_message": "PIN_RESTRICTED", - "error_description": "You can't pin messages" + "error_message": "SECONDS_INVALID", + "error_description": "Invalid duration provided" } ], "messages.addChatUser": [ @@ -3839,6 +4255,11 @@ "error_message": "CHAT_ID_INVALID", "error_description": "The provided chat id is invalid" }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" + }, { "error_code": 400, "error_message": "INPUT_USER_DEACTIVATED", @@ -3891,6 +4312,11 @@ "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" }, + { + "error_code": 400, + "error_message": "USER_ID_INVALID", + "error_description": "The provided user ID is invalid" + }, { "error_code": 400, "error_message": "USER_NOT_PARTICIPANT", @@ -3936,6 +4362,11 @@ "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": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" } ], "messages.migrateChat": [ @@ -3955,6 +4386,13 @@ "error_description": "The provided peer id is invalid" } ], + "stats.getMessageStats": [ + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + } + ], "messages.discardEncryption": [ { "error_code": 400, @@ -4017,6 +4455,11 @@ "error_message": "CHAT_ID_INVALID", "error_description": "The provided chat id is invalid" }, + { + "error_code": 400, + "error_message": "CHAT_NOT_MODIFIED", + "error_description": "The pinned message wasn't modified" + }, { "error_code": 400, "error_message": "INPUT_CONSTRUCTOR_INVALID", @@ -4041,6 +4484,11 @@ "error_code": 400, "error_message": "PHOTO_EXT_INVALID", "error_description": "The extension of the photo is invalid" + }, + { + "error_code": 400, + "error_message": "PHOTO_INVALID", + "error_description": "Photo invalid" } ], "messages.editChatTitle": [ @@ -4191,18 +4639,6 @@ "error_description": "Not enough users (to create a chat, for example)" } ], - "channels.toggleSlowMode": [ - { - "error_code": 400, - "error_message": "CHAT_NOT_MODIFIED", - "error_description": "The pinned message wasn't modified" - }, - { - "error_code": 400, - "error_message": "SECONDS_INVALID", - "error_description": "Invalid duration provided" - } - ], "auth.recoverPassword": [ { "error_code": 400, @@ -4295,6 +4731,11 @@ "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" } ], "contacts.deleteContact": [ @@ -4492,10 +4933,27 @@ "error_message": "PHOTO_EXT_INVALID", "error_description": "The extension of the photo is invalid" }, + { + "error_code": 400, + "error_message": "PHOTO_FILE_MISSING", + "error_description": "Profile photo file missing" + }, { "error_code": -503, "error_message": "Timeout", "error_description": "Timeout while fetching data" + }, + { + "error_code": 400, + "error_message": "VIDEO_FILE_INVALID", + "error_description": "The specified video file is invalid" + } + ], + "messages.updateDialogFilter": [ + { + "error_code": 400, + "error_message": "FILTER_ID_INVALID", + "error_description": "The specified filter ID is invalid" } ], "auth.signUp": [ @@ -4615,6 +5073,11 @@ "error_message": "GRAPH_INVALID_RELOAD", "error_description": "Invalid graph token provided, please reload the stats and provide the updated token" }, + { + "error_code": 400, + "error_message": "GRAPH_OUTDATED_RELOAD", + "error_description": "The graph is outdated, please get a new async token using stats.getBroadcastStats" + }, { "error_code": -503, "error_message": "Timeout", @@ -4689,6 +5152,13 @@ "error_description": "The provided location is invalid" } ], + "channels.editLocation": [ + { + "error_code": 400, + "error_message": "MEGAGROUP_REQUIRED", + "error_description": "You can only use this method on a supergroup" + } + ], "messages.deleteMessages": [ { "error_code": 403, @@ -4777,28 +5247,6 @@ "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" - }, - { - "error_code": 400, - "error_message": "OPTIONS_TOO_MUCH", - "error_description": "Too many options provided" - } - ], "messages.setGameScore": [ { "error_code": 400, @@ -4906,6 +5354,18 @@ "error_description": "A waiting call returned an error" } ], + "photos.deletePhotos": [ + { + "error_code": -500, + "error_message": "No workers running", + "error_description": "Internal error" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" + } + ], "auth.requestPasswordRecovery": [ { "error_code": 400, @@ -5099,13 +5559,6 @@ "error_description": "The phone number is invalid" } ], - "messages.getPollVotes": [ - { - "error_code": 403, - "error_message": "POLL_VOTE_REQUIRED", - "error_description": "Cast a vote in the poll before calling this method" - } - ], "account.getPrivacy": [ { "error_code": 400, @@ -5119,6 +5572,11 @@ "error_message": "PRIVACY_KEY_INVALID", "error_description": "The privacy key is invalid" }, + { + "error_code": 400, + "error_message": "PRIVACY_VALUE_INVALID", + "error_description": "The specified privacy rule combination is invalid" + }, { "error_code": 401, "error_message": "SESSION_PASSWORD_NEEDED", @@ -5178,6 +5636,11 @@ "error_code": 400, "error_message": "RANDOM_LENGTH_INVALID", "error_description": "Random length invalid" + }, + { + "error_code": -503, + "error_message": "Timeout", + "error_description": "Timeout while fetching data" } ], "upload.reuploadCdnFile": [ @@ -5194,13 +5657,6 @@ "error_description": "The search query is empty" } ], - "account.getAuthorizations": [ - { - "error_code": 401, - "error_message": "SESSION_PASSWORD_NEEDED", - "error_description": "2FA is enabled, use a password to login" - } - ], "contacts.getStatuses": [ { "error_code": 401, @@ -5318,13 +5774,6 @@ "error_description": "Timeout while fetching data" } ], - "photos.deletePhotos": [ - { - "error_code": -503, - "error_message": "Timeout", - "error_description": "Timeout while fetching data" - } - ], "account.registerDevice": [ { "error_code": 400, diff --git a/v3.json b/v3.json index 2ae5d00..e7c2dc6 100644 --- a/v3.json +++ b/v3.json @@ -34,15 +34,18 @@ "channels.editAdmin": { "ADMINS_TOO_MUCH": "ADMINS_TOO_MUCH", "BOT_CHANNELS_NA": "BOT_CHANNELS_NA", + "BOT_GROUPS_BLOCKED": "BOT_GROUPS_BLOCKED", "BOTS_TOO_MUCH": "BOTS_TOO_MUCH", "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", "PEER_ID_INVALID": "PEER_ID_INVALID", + "USER_BLOCKED": "USER_BLOCKED", "USER_CREATOR": "USER_CREATOR", "USER_ID_INVALID": "USER_ID_INVALID", - "USER_NOT_MUTUAL_CONTACT": "USER_NOT_MUTUAL_CONTACT" + "USER_NOT_MUTUAL_CONTACT": "USER_NOT_MUTUAL_CONTACT", + "USERS_TOO_MUCH": "USERS_TOO_MUCH" }, "auth.sendCode": { "API_ID_INVALID": "API_ID_INVALID", @@ -69,6 +72,7 @@ "PHOTO_THUMB_URL_EMPTY": "PHOTO_THUMB_URL_EMPTY", "QUERY_ID_INVALID": "QUERY_ID_INVALID", "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", + "RESULT_ID_DUPLICATE": "RESULT_ID_DUPLICATE", "RESULT_TYPE_INVALID": "RESULT_TYPE_INVALID", "RESULTS_TOO_MUCH": "RESULTS_TOO_MUCH", "SEND_MESSAGE_MEDIA_INVALID": "SEND_MESSAGE_MEDIA_INVALID", @@ -93,6 +97,12 @@ "INPUT_LAYER_INVALID": "INPUT_LAYER_INVALID", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED" }, + "auth.importLoginToken": { + "AUTH_TOKEN_EXPIRED": "AUTH_TOKEN_EXPIRED" + }, + "auth.acceptLoginToken": { + "AUTH_TOKEN_INVALIDX": "AUTH_TOKEN_INVALIDX" + }, "messages.editChatDefaultBannedRights": { "BANNED_RIGHTS_INVALID": "BANNED_RIGHTS_INVALID", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", @@ -122,6 +132,7 @@ "PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH", "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", "SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED", + "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", @@ -165,12 +176,17 @@ }, "messages.uploadMedia": { "BOT_MISSING": "BOT_MISSING", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "FILE_PARTS_INVALID": "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED": "IMAGE_PROCESS_FAILED", + "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", "MEDIA_INVALID": "MEDIA_INVALID", "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", + "PHOTO_SAVE_FILE_INVALID": "PHOTO_SAVE_FILE_INVALID", + "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "WEBPAGE_CURL_FAILED": "WEBPAGE_CURL_FAILED" }, "stickers.addStickerToSet": { @@ -185,10 +201,13 @@ "BOT_MISSING": "BOT_MISSING", "PACK_SHORT_NAME_INVALID": "PACK_SHORT_NAME_INVALID", "PACK_SHORT_NAME_OCCUPIED": "PACK_SHORT_NAME_OCCUPIED", + "PACK_TITLE_INVALID": "PACK_TITLE_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", + "SHORTNAME_OCCUPY_FAILED": "SHORTNAME_OCCUPY_FAILED", "STICKER_EMOJI_INVALID": "STICKER_EMOJI_INVALID", "STICKER_FILE_INVALID": "STICKER_FILE_INVALID", "STICKER_PNG_DIMENSIONS": "STICKER_PNG_DIMENSIONS", + "STICKER_PNG_NOPNG": "STICKER_PNG_NOPNG", "STICKERS_EMPTY": "STICKERS_EMPTY", "USER_ID_INVALID": "USER_ID_INVALID" }, @@ -224,6 +243,8 @@ "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "RANDOM_ID_INVALID": "RANDOM_ID_INVALID", + "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", + "SLOWMODE_MULTI_MSGS_DISABLED": "SLOWMODE_MULTI_MSGS_DISABLED", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BOT": "USER_IS_BOT", @@ -255,6 +276,7 @@ "POLL_ANSWERS_INVALID": "POLL_ANSWERS_INVALID", "POLL_OPTION_DUPLICATE": "POLL_OPTION_DUPLICATE", "POLL_OPTION_INVALID": "POLL_OPTION_INVALID", + "QUIZ_CORRECT_ANSWER_INVALID": "QUIZ_CORRECT_ANSWER_INVALID", "QUIZ_CORRECT_ANSWERS_EMPTY": "QUIZ_CORRECT_ANSWERS_EMPTY", "REPLY_MARKUP_BUY_EMPTY": "REPLY_MARKUP_BUY_EMPTY", "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", @@ -267,6 +289,12 @@ "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY", "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" }, + "stats.getBroadcastStats": { + "BROADCAST_REQUIRED": "BROADCAST_REQUIRED", + "CHANNEL_INVALID": "CHANNEL_INVALID", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + }, "messages.editMessage": { "BUTTON_DATA_INVALID": "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID": "BUTTON_TYPE_INVALID", @@ -281,6 +309,7 @@ "MESSAGE_EMPTY": "MESSAGE_EMPTY", "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED": "MESSAGE_NOT_MODIFIED", + "MESSAGE_TOO_LONG": "MESSAGE_TOO_LONG", "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "REPLY_MARKUP_INVALID": "REPLY_MARKUP_INVALID", @@ -392,7 +421,8 @@ "channels.exportMessageLink": { "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", - "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID" + "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", + "MSG_ID_INVALID": "MSG_ID_INVALID" }, "channels.getAdminLog": { "CHANNEL_INVALID": "CHANNEL_INVALID", @@ -457,7 +487,8 @@ }, "channels.readMessageContents": { "CHANNEL_INVALID": "CHANNEL_INVALID", - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE" + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "MSG_ID_INVALID": "MSG_ID_INVALID" }, "channels.reportSpam": { "CHANNEL_INVALID": "CHANNEL_INVALID", @@ -497,6 +528,7 @@ "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHANNELS_ADMIN_PUBLIC_TOO_MUCH": "CHANNELS_ADMIN_PUBLIC_TOO_MUCH", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", "USERNAME_INVALID": "USERNAME_INVALID", "USERNAME_NOT_MODIFIED": "USERNAME_NOT_MODIFIED", "USERNAME_OCCUPIED": "USERNAME_OCCUPIED" @@ -514,6 +546,7 @@ "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY", "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" }, @@ -524,6 +557,13 @@ "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" }, + "messages.getPeerDialogs": { + "CHANNEL_INVALID": "CHANNEL_INVALID", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY", + "MSG_ID_INVALID": "MSG_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID" + }, "messages.getPeerSettings": { "CHANNEL_INVALID": "CHANNEL_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" @@ -543,6 +583,7 @@ "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT", + "USER_CHANNELS_TOO_MUCH": "USER_CHANNELS_TOO_MUCH", "USERS_TOO_MUCH": "USERS_TOO_MUCH" }, "messages.readMentions": { @@ -557,11 +598,29 @@ "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "INPUT_CONSTRUCTOR_INVALID": "INPUT_CONSTRUCTOR_INVALID", "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", + "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "PEER_ID_NOT_SUPPORTED": "PEER_ID_NOT_SUPPORTED", "SEARCH_QUERY_EMPTY": "SEARCH_QUERY_EMPTY", "USER_ID_INVALID": "USER_ID_INVALID" }, + "messages.sendInlineBotResult": { + "CHANNEL_INVALID": "CHANNEL_INVALID", + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_RESTRICTED": "CHAT_RESTRICTED", + "INLINE_RESULT_EXPIRED": "INLINE_RESULT_EXPIRED", + "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", + "MEDIA_EMPTY": "MEDIA_EMPTY", + "MSG_ID_INVALID": "MSG_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID", + "QUERY_ID_EMPTY": "QUERY_ID_EMPTY", + "RESULT_ID_EMPTY": "RESULT_ID_EMPTY", + "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", + "WEBPAGE_CURL_FAILED": "WEBPAGE_CURL_FAILED", + "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY", + "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" + }, "messages.setTyping": { "CHANNEL_INVALID": "CHANNEL_INVALID", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", @@ -579,12 +638,12 @@ "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID" }, "msgs_state_req": { - "CHANNEL_INVALID": "CHANNEL_INVALID" - }, - "stats.getBroadcastStats": { "CHANNEL_INVALID": "CHANNEL_INVALID", - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + "MSG_ID_INVALID": "MSG_ID_INVALID" + }, + "stats.getMessagePublicForwards": { + "CHANNEL_INVALID": "CHANNEL_INVALID", + "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID" }, "updates.getChannelDifference": { "CHANNEL_INVALID": "CHANNEL_INVALID", @@ -605,7 +664,8 @@ "LIMIT_INVALID": "LIMIT_INVALID", "LOCATION_INVALID": "LOCATION_INVALID", "MSG_ID_INVALID": "MSG_ID_INVALID", - "OFFSET_INVALID": "OFFSET_INVALID" + "OFFSET_INVALID": "OFFSET_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID" }, "account.reportPeer": { "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", @@ -636,26 +696,6 @@ "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "PEER_ID_INVALID": "PEER_ID_INVALID" }, - "messages.getPeerDialogs": { - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", - "MSG_ID_INVALID": "MSG_ID_INVALID", - "PEER_ID_INVALID": "PEER_ID_INVALID" - }, - "messages.sendInlineBotResult": { - "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", - "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", - "CHAT_RESTRICTED": "CHAT_RESTRICTED", - "INLINE_RESULT_EXPIRED": "INLINE_RESULT_EXPIRED", - "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", - "MEDIA_EMPTY": "MEDIA_EMPTY", - "PEER_ID_INVALID": "PEER_ID_INVALID", - "QUERY_ID_EMPTY": "QUERY_ID_EMPTY", - "RESULT_ID_EMPTY": "RESULT_ID_EMPTY", - "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", - "WEBPAGE_CURL_FAILED": "WEBPAGE_CURL_FAILED", - "WEBPAGE_MEDIA_EMPTY": "WEBPAGE_MEDIA_EMPTY", - "YOU_BLOCKED_USER": "YOU_BLOCKED_USER" - }, "messages.updatePinnedMessage": { "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", @@ -663,11 +703,27 @@ "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "PIN_RESTRICTED": "PIN_RESTRICTED" }, + "users.getFullUser": { + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "MSG_ID_INVALID": "MSG_ID_INVALID", + "USER_ID_INVALID": "USER_ID_INVALID" + }, + "users.getUsers": { + "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CONNECTION_NOT_INITED": "CONNECTION_NOT_INITED", + "INPUT_LAYER_INVALID": "INPUT_LAYER_INVALID", + "MSG_ID_INVALID": "MSG_ID_INVALID" + }, "channels.createChannel": { "CHANNELS_TOO_MUCH": "CHANNELS_TOO_MUCH", "CHAT_ABOUT_TOO_LONG": "CHAT_ABOUT_TOO_LONG", "CHAT_TITLE_EMPTY": "CHAT_TITLE_EMPTY" }, + "channels.toggleSlowMode": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", + "SECONDS_INVALID": "SECONDS_INVALID" + }, "messages.addChatUser": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID": "CHAT_ID_INVALID", @@ -681,6 +737,7 @@ "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID": "CHAT_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", + "USER_ID_INVALID": "USER_ID_INVALID", "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" }, "messages.getMessageEditData": { @@ -693,7 +750,8 @@ "PEER_ID_INVALID": "PEER_ID_INVALID" }, "messages.getScheduledMessages": { - "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "PEER_ID_INVALID": "PEER_ID_INVALID" }, "messages.sendMultiMedia": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", @@ -703,6 +761,9 @@ "PEER_ID_INVALID": "PEER_ID_INVALID", "RANDOM_ID_EMPTY": "RANDOM_ID_EMPTY" }, + "stats.getMessageStats": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + }, "messages.discardEncryption": { "CHAT_ID_EMPTY": "CHAT_ID_EMPTY", "ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED", @@ -727,11 +788,13 @@ }, "messages.editChatPhoto": { "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", "INPUT_CONSTRUCTOR_INVALID": "INPUT_CONSTRUCTOR_INVALID", "INPUT_FETCH_FAIL": "INPUT_FETCH_FAIL", "PEER_ID_INVALID": "PEER_ID_INVALID", "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL", - "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID" + "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", + "PHOTO_INVALID": "PHOTO_INVALID" }, "messages.editChatTitle": { "CHAT_ID_INVALID": "CHAT_ID_INVALID", @@ -784,10 +847,6 @@ "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", "USERS_TOO_FEW": "USERS_TOO_FEW" }, - "channels.toggleSlowMode": { - "CHAT_NOT_MODIFIED": "CHAT_NOT_MODIFIED", - "SECONDS_INVALID": "SECONDS_INVALID" - }, "auth.recoverPassword": { "CODE_EMPTY": "CODE_EMPTY" }, @@ -803,14 +862,17 @@ "CONNECTION_API_ID_INVALID": "CONNECTION_API_ID_INVALID", "CONNECTION_APP_VERSION_EMPTY": "CONNECTION_APP_VERSION_EMPTY", "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY", + "CONNECTION_LANG_PACK_INVALID": "CONNECTION_LANG_PACK_INVALID", "CONNECTION_LAYER_INVALID": "CONNECTION_LAYER_INVALID", "CONNECTION_NOT_INITED": "CONNECTION_NOT_INITED", "CONNECTION_SYSTEM_EMPTY": "CONNECTION_SYSTEM_EMPTY", "CONNECTION_SYSTEM_LANG_CODE_EMPTY": "CONNECTION_SYSTEM_LANG_CODE_EMPTY", "DATA_INVALID": "DATA_INVALID", - "INPUT_LAYER_INVALID": "INPUT_LAYER_INVALID" + "INPUT_LAYER_INVALID": "INPUT_LAYER_INVALID", + "MSG_ID_INVALID": "MSG_ID_INVALID" }, "contacts.resolveUsername": { + "CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY", "CONNECTION_LAYER_INVALID": "CONNECTION_LAYER_INVALID", "USERNAME_INVALID": "USERNAME_INVALID", "USERNAME_NOT_OCCUPIED": "USERNAME_NOT_OCCUPIED" @@ -832,7 +894,8 @@ "contacts.block": { "CONTACT_ID_INVALID": "CONTACT_ID_INVALID", "INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED", - "MSG_ID_INVALID": "MSG_ID_INVALID" + "MSG_ID_INVALID": "MSG_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID" }, "contacts.deleteContact": { "CONTACT_ID_INVALID": "CONTACT_ID_INVALID" @@ -889,6 +952,7 @@ "FILE_PART_INVALID": "FILE_PART_INVALID", "FILE_PART_SIZE_CHANGED": "FILE_PART_SIZE_CHANGED", "FILE_PART_SIZE_INVALID": "FILE_PART_SIZE_INVALID", + "FILE_PART_TOO_BIG": "FILE_PART_TOO_BIG", "FILE_PARTS_INVALID": "FILE_PARTS_INVALID" }, "upload.saveFilePart": { @@ -901,14 +965,20 @@ "IMAGE_PROCESS_FAILED": "IMAGE_PROCESS_FAILED", "LOCATION_INVALID": "LOCATION_INVALID", "PHOTO_CROP_SIZE_SMALL": "PHOTO_CROP_SIZE_SMALL", - "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID" + "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", + "PHOTO_ID_INVALID": "PHOTO_ID_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" + "PHOTO_EXT_INVALID": "PHOTO_EXT_INVALID", + "PHOTO_FILE_MISSING": "PHOTO_FILE_MISSING", + "VIDEO_FILE_INVALID": "VIDEO_FILE_INVALID" + }, + "messages.updateDialogFilter": { + "FILTER_ID_INVALID": "FILTER_ID_INVALID" }, "auth.signUp": { "FIRSTNAME_INVALID": "FIRSTNAME_INVALID", @@ -942,7 +1012,8 @@ "GIF_ID_INVALID": "GIF_ID_INVALID" }, "stats.loadAsyncGraph": { - "GRAPH_INVALID_RELOAD": "GRAPH_INVALID_RELOAD" + "GRAPH_INVALID_RELOAD": "GRAPH_INVALID_RELOAD", + "GRAPH_OUTDATED_RELOAD": "GRAPH_OUTDATED_RELOAD" }, "account.resetAuthorization": { "HASH_INVALID": "HASH_INVALID" @@ -953,10 +1024,6 @@ "invokeWithTakeout": { "INPUT_FETCH_FAIL": "INPUT_FETCH_FAIL" }, - "users.getUsers": { - "INPUT_LAYER_INVALID": "INPUT_LAYER_INVALID", - "MSG_ID_INVALID": "MSG_ID_INVALID" - }, "messages.checkChatInvite": { "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED", @@ -984,6 +1051,9 @@ "MAX_ID_INVALID": "MAX_ID_INVALID", "USER_ID_INVALID": "USER_ID_INVALID" }, + "channels.editLocation": { + "MEGAGROUP_REQUIRED": "MEGAGROUP_REQUIRED" + }, "auth.sendInvites": { "MESSAGE_EMPTY": "MESSAGE_EMPTY" }, @@ -1017,7 +1087,8 @@ "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "MESSAGE_POLL_CLOSED": "MESSAGE_POLL_CLOSED", "OPTION_INVALID": "OPTION_INVALID", - "OPTIONS_TOO_MUCH": "OPTIONS_TOO_MUCH" + "OPTIONS_TOO_MUCH": "OPTIONS_TOO_MUCH", + "REVOTE_NOT_ALLOWED": "REVOTE_NOT_ALLOWED" }, "messages.setGameScore": { "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", @@ -1048,14 +1119,13 @@ "MSG_ID_INVALID": "MSG_ID_INVALID", "USER_ID_INVALID": "USER_ID_INVALID" }, + "messages.getPollVotes": { + "MSG_ID_INVALID": "MSG_ID_INVALID" + }, "messages.reportSpam": { "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" }, - "users.getFullUser": { - "MSG_ID_INVALID": "MSG_ID_INVALID", - "USER_ID_INVALID": "USER_ID_INVALID" - }, "messages.readEncryptedHistory": { "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" }, @@ -1138,7 +1208,8 @@ "PRIVACY_KEY_INVALID": "PRIVACY_KEY_INVALID" }, "account.setPrivacy": { - "PRIVACY_KEY_INVALID": "PRIVACY_KEY_INVALID" + "PRIVACY_KEY_INVALID": "PRIVACY_KEY_INVALID", + "PRIVACY_VALUE_INVALID": "PRIVACY_VALUE_INVALID" }, "bots.answerWebhookJSONQuery": { "QUERY_ID_INVALID": "QUERY_ID_INVALID", @@ -1242,6 +1313,10 @@ "stats.getBroadcastStats": { "CHP_CALL_FAIL": "CHP_CALL_FAIL" }, + "stats.loadAsyncGraph": { + "CHP_CALL_FAIL": "CHP_CALL_FAIL", + "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT" + }, "messages.acceptEncryption": { "ENCRYPTION_OCCUPY_ADMIN_FAILED": "ENCRYPTION_OCCUPY_ADMIN_FAILED", "ENCRYPTION_OCCUPY_FAILED": "ENCRYPTION_OCCUPY_FAILED" @@ -1270,16 +1345,26 @@ "STORE_INVALID_SCALAR_TYPE": "STORE_INVALID_SCALAR_TYPE", "VOLUME_LOC_NOT_FOUND": "VOLUME_LOC_NOT_FOUND" }, + "messages.sendMedia": { + "IMAGE_ENGINE_DOWN": "IMAGE_ENGINE_DOWN", + "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT", + "RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE", + "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED", + "UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME" + }, "photos.updateProfilePhoto": { "IMAGE_ENGINE_DOWN": "IMAGE_ENGINE_DOWN", + "MEMBER_FETCH_FAILED": "MEMBER_FETCH_FAILED", "NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID", - "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" + "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED", + "UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME" }, "photos.uploadProfilePhoto": { "IMAGE_ENGINE_DOWN": "IMAGE_ENGINE_DOWN", "MEMBER_FETCH_FAILED": "MEMBER_FETCH_FAILED", "NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID", - "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" + "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED", + "UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME" }, "users.getUsers": { "MEMBER_NO_LOCATION": "MEMBER_NO_LOCATION", @@ -1294,6 +1379,9 @@ "account.updateUsername": { "MEMBER_OCCUPY_USERNAME_FAILED": "MEMBER_OCCUPY_USERNAME_FAILED" }, + "messages.deleteHistory": { + "MSG_RANGE_UNSYNC": "MSG_RANGE_UNSYNC" + }, "messages.getHistory": { "MSG_RANGE_UNSYNC": "MSG_RANGE_UNSYNC", "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" @@ -1365,6 +1453,10 @@ "MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY", "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" }, + "messages.editMessage": { + "MT_SEND_QUEUE_TOO_LONG": "MT_SEND_QUEUE_TOO_LONG", + "PTS_CHANGE_EMPTY": "PTS_CHANGE_EMPTY" + }, "messages.sendInlineBotResult": { "MT_SEND_QUEUE_TOO_LONG": "MT_SEND_QUEUE_TOO_LONG", "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT", @@ -1375,7 +1467,8 @@ "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" }, "messages.editChatPhoto": { - "NEED_CHAT_INVALID": "NEED_CHAT_INVALID" + "NEED_CHAT_INVALID": "NEED_CHAT_INVALID", + "UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME" }, "messages.editChatTitle": { "NEED_CHAT_INVALID": "NEED_CHAT_INVALID" @@ -1383,6 +1476,10 @@ "messages.updatePinnedMessage": { "NEED_CHAT_INVALID": "NEED_CHAT_INVALID" }, + "channels.readHistory": { + "NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID", + "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" + }, "contacts.deleteContacts": { "NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID" }, @@ -1398,14 +1495,6 @@ "auth.resendCode": { "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT" }, - "messages.sendMedia": { - "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT", - "RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE", - "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" - }, - "stats.loadAsyncGraph": { - "POSTPONED_TIMEOUT": "POSTPONED_TIMEOUT" - }, "messages.sendMultiMedia": { "RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE", "WORKER_BUSY_TOO_LONG_RETRY": "WORKER_BUSY_TOO_LONG_RETRY" @@ -1416,9 +1505,6 @@ "channels.inviteToChannel": { "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" }, - "channels.readHistory": { - "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" - }, "help.getConfig": { "RPC_CONNECT_FAILED": "RPC_CONNECT_FAILED" }, @@ -1435,7 +1521,8 @@ "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" }, "upload.saveBigFilePart": { - "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED" + "STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED", + "UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME" }, "upload.getCdnFile": { "UNKNOWN_METHOD": "UNKNOWN_METHOD" @@ -1448,6 +1535,9 @@ "account.checkUsername": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "account.getAuthorizations": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "account.updateProfile": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1493,6 +1583,9 @@ "channels.updateUsername": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "contacts.getContacts": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "contacts.importContacts": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1541,6 +1634,9 @@ "messages.getPeerDialogs": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.getUnreadMentions": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "messages.importChatInvite": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1562,9 +1658,18 @@ "messages.sendMultiMedia": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.sendVote": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "messages.setTyping": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.startBot": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, + "messages.updatePinnedMessage": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "phone.getCallConfig": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -1672,15 +1777,24 @@ "auth.signIn": { "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" }, + "channels.createChannel": { + "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" + }, "channels.getChannels": { "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" }, "channels.joinChannel": { "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" }, + "contacts.getContacts": { + "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" + }, "contacts.getStatuses": { "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" }, + "contacts.importContacts": { + "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" + }, "help.getTermsOfServiceUpdate": { "SESSION_PASSWORD_NEEDED": "SESSION_PASSWORD_NEEDED" }, @@ -1707,6 +1821,10 @@ } }, "403": { + "messages.getPollVotes": { + "BROADCAST_FORBIDDEN": "BROADCAST_FORBIDDEN", + "POLL_VOTE_REQUIRED": "POLL_VOTE_REQUIRED" + }, "channels.getFullChannel": { "CHANNEL_PUBLIC_GROUP_NA": "CHANNEL_PUBLIC_GROUP_NA" }, @@ -1782,6 +1900,11 @@ "invokeWithLayer": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, + "messages.addChatUser": { + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", + "USER_NOT_MUTUAL_CONTACT": "USER_NOT_MUTUAL_CONTACT", + "USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED" + }, "messages.editChatAbout": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, @@ -1809,9 +1932,6 @@ "messages.deleteMessages": { "MESSAGE_DELETE_FORBIDDEN": "MESSAGE_DELETE_FORBIDDEN" }, - "messages.getPollVotes": { - "POLL_VOTE_REQUIRED": "POLL_VOTE_REQUIRED" - }, "account.finishTakeoutSession": { "TAKEOUT_REQUIRED": "TAKEOUT_REQUIRED" }, @@ -1837,10 +1957,6 @@ "USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED" }, - "messages.addChatUser": { - "USER_NOT_MUTUAL_CONTACT": "USER_NOT_MUTUAL_CONTACT", - "USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED" - }, "channels.createChannel": { "USER_RESTRICTED": "USER_RESTRICTED" }, @@ -1859,14 +1975,50 @@ "msgs_state_req": { "Invalid msgs_state_req query": "Invalid msgs_state_req query" }, + "account.updateProfile": { + "No workers running": "No workers running" + }, + "auth.sendCode": { + "No workers running": "No workers running" + }, + "channels.getMessages": { + "No workers running": "No workers running" + }, + "channels.getParticipants": { + "No workers running": "No workers running" + }, "help.getCdnConfig": { "No workers running": "No workers running" }, + "help.getConfig": { + "No workers running": "No workers running" + }, + "help.getNearestDc": { + "No workers running": "No workers running" + }, + "messages.getMessagesViews": { + "No workers running": "No workers running" + }, + "messages.readHistory": { + "No workers running": "No workers running" + }, + "messages.sendMessage": { + "No workers running": "No workers running" + }, + "photos.deletePhotos": { + "No workers running": "No workers running" + }, + "photos.updateProfilePhoto": { + "No workers running": "No workers running" + }, "updates.getChannelDifference": { "No workers running": "No workers running" }, "updates.getDifference": { "No workers running": "No workers running" + }, + "users.getFullUser": { + "No workers running": "No workers running" } }, "-504": { @@ -1902,6 +2054,9 @@ "auth.resetAuthorizations": { "Timeout": "Timeout" }, + "auth.sendCode": { + "Timeout": "Timeout" + }, "channels.deleteMessages": { "Timeout": "Timeout" }, @@ -1935,6 +2090,9 @@ "contacts.deleteContacts": { "Timeout": "Timeout" }, + "contacts.resolveUsername": { + "Timeout": "Timeout" + }, "contacts.search": { "Timeout": "Timeout" }, @@ -1950,12 +2108,18 @@ "messages.deleteHistory": { "Timeout": "Timeout" }, + "messages.editMessage": { + "Timeout": "Timeout" + }, "messages.forwardMessages": { "Timeout": "Timeout" }, "messages.getBotCallbackAnswer": { "Timeout": "Timeout" }, + "messages.getDhConfig": { + "Timeout": "Timeout" + }, "messages.getDialogs": { "Timeout": "Timeout" }, @@ -1971,12 +2135,18 @@ "messages.getPeerDialogs": { "Timeout": "Timeout" }, + "messages.getUnreadMentions": { + "Timeout": "Timeout" + }, "messages.importChatInvite": { "Timeout": "Timeout" }, "messages.readHistory": { "Timeout": "Timeout" }, + "messages.search": { + "Timeout": "Timeout" + }, "messages.sendInlineBotResult": { "Timeout": "Timeout" }, @@ -2019,6 +2189,9 @@ "upload.saveBigFilePart": { "Timeout": "Timeout" }, + "upload.saveFilePart": { + "Timeout": "Timeout" + }, "users.getFullUser": { "Timeout": "Timeout" }, @@ -2045,6 +2218,8 @@ "AUTH_KEY_PERM_EMPTY": "The temporary auth key must be binded to the permanent auth key to use these methods.", "AUTH_KEY_UNREGISTERED": "The authorization key has expired", "AUTH_RESTART": "Restart the authorization process", + "AUTH_TOKEN_EXPIRED": "The authorization token has expired", + "AUTH_TOKEN_INVALIDX": "The specified auth token is invalid", "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", @@ -2055,8 +2230,10 @@ "BOT_MISSING": "This method can only be run by a bot", "BOT_RESPONSE_TIMEOUT": "A timeout occurred while fetching data from the bot", "BOTS_TOO_MUCH": "There are too many bots in this chat\/channel", + "BROADCAST_FORBIDDEN": "", "BROADCAST_ID_INVALID": "Broadcast ID invalid", "BROADCAST_PUBLIC_VOTERS_FORBIDDEN": "You can't forward polls with public voters", + "BROADCAST_REQUIRED": "This method can only be called on a channel, please use stats.getMegagroupStats for supergroups", "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", @@ -2138,9 +2315,11 @@ "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_PART_TOO_BIG": "The uploaded file part is too big", "FILE_PARTS_INVALID": "The number of file parts is invalid", "FILE_REFERENCE_EXPIRED": "File reference expired, it must be refetched as described in https:\/\/core.telegram.org\/api\/file_reference", "FILEREF_UPGRADE_NEEDED": "The client has to be updated in order to support [file references](https:\/\/core.telegram.org\/api\/file_reference)", + "FILTER_ID_INVALID": "The specified filter ID is invalid", "FIRSTNAME_INVALID": "The first name is invalid", "FLOOD_WAIT_666": "Spooky af m8", "FOLDER_ID_INVALID": "Invalid folder ID", @@ -2151,6 +2330,7 @@ "GIF_CONTENT_TYPE_INVALID": "GIF content-type invalid", "GIF_ID_INVALID": "The provided GIF ID is invalid", "GRAPH_INVALID_RELOAD": "Invalid graph token provided, please reload the stats and provide the updated token", + "GRAPH_OUTDATED_RELOAD": "The graph is outdated, please get a new async token using stats.getBroadcastStats", "GROUPED_ID_OCCUPY_FAULED": "Internal error", "GROUPED_MEDIA_INVALID": "Invalid grouped media", "HASH_INVALID": "The provided hash is invalid", @@ -2193,6 +2373,7 @@ "MEDIA_INVALID": "Media invalid", "MEDIA_PREV_INVALID": "Previous media invalid", "MEGAGROUP_ID_INVALID": "Invalid supergroup ID", + "MEGAGROUP_REQUIRED": "You can only use this method on a supergroup", "MEMBER_FETCH_FAILED": "Internal error", "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", @@ -2226,6 +2407,7 @@ "P0NY_FLOODWAIT": "No", "PACK_SHORT_NAME_INVALID": "Short pack name invalid", "PACK_SHORT_NAME_OCCUPIED": "A stickerpack with this name already exists", + "PACK_TITLE_INVALID": "The stickerpack title is invalid", "PARTICIPANT_CALL_FAILED": "Failure while making call", "PARTICIPANT_VERSION_OUTDATED": "The other participant does not use an up to date telegram client with support for calls", "PARTICIPANTS_TOO_FEW": "Not enough participants", @@ -2256,6 +2438,8 @@ "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_FILE_MISSING": "Profile photo file missing", + "PHOTO_ID_INVALID": "Photo ID invalid", "PHOTO_INVALID": "Photo invalid", "PHOTO_INVALID_DIMENSIONS": "The photo dimensions are invalid", "PHOTO_SAVE_FILE_INVALID": "Internal issues, try again later", @@ -2268,10 +2452,12 @@ "POLL_VOTE_REQUIRED": "Cast a vote in the poll before calling this method", "POSTPONED_TIMEOUT": "Internal error", "PRIVACY_KEY_INVALID": "The privacy key is invalid", + "PRIVACY_VALUE_INVALID": "The specified privacy rule combination is invalid", "PTS_CHANGE_EMPTY": "No PTS change", "QUERY_ID_EMPTY": "The query ID is empty", "QUERY_ID_INVALID": "The query ID is invalid", "QUERY_TOO_SHORT": "The query string is too short", + "QUIZ_CORRECT_ANSWER_INVALID": "An invalid value was provided to the correct_answers field", "QUIZ_CORRECT_ANSWERS_EMPTY": "No correct quiz answer was specified", "RANDOM_ID_DUPLICATE": "You provided a random ID that was already used", "RANDOM_ID_EMPTY": "Random ID empty", @@ -2282,9 +2468,11 @@ "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_ID_DUPLICATE": "You provided a duplicate result ID", "RESULT_ID_EMPTY": "Result ID empty", "RESULT_TYPE_INVALID": "Result type invalid", "RESULTS_TOO_MUCH": "Too many results were provided", + "REVOTE_NOT_ALLOWED": "You cannot change your vote", "RIGHT_FORBIDDEN": "Your admin rights do not allow you to do this", "RPC_CALL_FAIL": "Telegram is having internal issues, please try again later.", "RPC_CONNECT_FAILED": "Internal error", @@ -2292,6 +2480,7 @@ "RSA_DECRYPT_FAILED": "Internal RSA decryption failed", "SCHEDULE_BOT_NOT_ALLOWED": "Bots cannot schedule messages", "SCHEDULE_DATE_INVALID": "Invalid schedule date provided", + "SCHEDULE_DATE_TOO_LATE": "You can't schedule a message this far in the future", "SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SEARCH_QUERY_EMPTY": "The search query is empty", "SECONDS_INVALID": "Invalid duration provided", @@ -2301,7 +2490,9 @@ "SESSION_TOO_FRESH_X": "This session was created less than 24 hours ago, try again in X seconds", "SETTINGS_INVALID": "Invalid settings were provided", "SHA256_HASH_INVALID": "The provided SHA256 hash is invalid", + "SHORTNAME_OCCUPY_FAILED": "An internal error occurred", "SIGN_IN_FAILED": "Failure while signing in", + "SLOWMODE_MULTI_MSGS_DISABLED": "Slowmode is enabled, you cannot forward multiple messages to this group.", "SLOWMODE_WAIT_X": "Slowmode is enabled in this chat: wait X seconds before sending another message to this chat.", "SMS_CODE_CREATE_FAILED": "An error occurred while creating the SMS code", "SRP_ID_INVALID": "Invalid SRP ID provided", @@ -2314,6 +2505,7 @@ "STICKER_ID_INVALID": "The provided sticker ID is invalid", "STICKER_INVALID": "The provided sticker is invalid", "STICKER_PNG_DIMENSIONS": "Sticker png dimensions invalid", + "STICKER_PNG_NOPNG": "One of the specified stickers is not a valid PNG file", "STICKERS_EMPTY": "No sticker provided", "STICKERSET_INVALID": "The provided sticker set is invalid", "STORAGE_CHECK_FAILED": "Server storage check failed", @@ -2333,6 +2525,7 @@ "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", + "UPLOAD_NO_VOLUME": "An internal error occurred", "URL_INVALID": "Invalid URL provided", "USER_ADMIN_INVALID": "You're not an admin", "USER_ALREADY_PARTICIPANT": "The user is already in the group", @@ -2361,6 +2554,7 @@ "USERPIC_UPLOAD_REQUIRED": "You must have a profile picture to publish your geolocation", "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)", + "VIDEO_FILE_INVALID": "The specified video file is invalid", "VOLUME_LOC_NOT_FOUND": "Internal error", "WC_CONVERT_URL_INVALID": "WC convert URL invalid", "WEBDOCUMENT_INVALID": "Invalid webdocument URL provided", diff --git a/v4.json b/v4.json index 14d6f91..a1bffbe 100644 --- a/v4.json +++ b/v4.json @@ -42,6 +42,12 @@ "auth.importAuthorization", "invokeWithLayer" ], + "AUTH_TOKEN_EXPIRED": [ + "auth.importLoginToken" + ], + "AUTH_TOKEN_INVALIDX": [ + "auth.acceptLoginToken" + ], "BANNED_RIGHTS_INVALID": [ "messages.editChatDefaultBannedRights" ], @@ -52,6 +58,7 @@ "messages.sendMessage" ], "BOT_GROUPS_BLOCKED": [ + "channels.editAdmin", "channels.inviteToChannel" ], "BOT_INLINE_DISABLED": [ @@ -84,6 +91,9 @@ "messages.forwardMessages", "messages.sendMedia" ], + "BROADCAST_REQUIRED": [ + "stats.getBroadcastStats" + ], "BUTTON_DATA_INVALID": [ "messages.editMessage", "messages.sendMedia", @@ -165,17 +175,20 @@ "messages.getBotCallbackAnswer", "messages.getHistory", "messages.getMessagesViews", + "messages.getPeerDialogs", "messages.getPeerSettings", "messages.getUnreadMentions", "messages.importChatInvite", "messages.readMentions", "messages.search", + "messages.sendInlineBotResult", "messages.sendMedia", "messages.sendMessage", "messages.setTyping", "msg_container", "msgs_state_req", "stats.getBroadcastStats", + "stats.getMessagePublicForwards", "updates.getChannelDifference", "upload.getFile" ], @@ -222,9 +235,12 @@ "messages.sendMessage", "messages.setTyping", "messages.updatePinnedMessage", + "messages.uploadMedia", "stats.getBroadcastStats", "updates.getChannelDifference", - "upload.getFile" + "upload.getFile", + "users.getFullUser", + "users.getUsers" ], "CHANNEL_TOO_LARGE": [ "channels.deleteChannel" @@ -264,6 +280,7 @@ "channels.reportSpam", "channels.toggleInvites", "channels.togglePreHistoryHidden", + "channels.toggleSlowMode", "channels.updatePinnedMessage", "channels.updateUsername", "messages.addChatUser", @@ -283,7 +300,9 @@ "messages.sendMultiMedia", "messages.setTyping", "messages.updatePinnedMessage", - "stats.getBroadcastStats" + "messages.uploadMedia", + "stats.getBroadcastStats", + "stats.getMessageStats" ], "CHAT_ID_EMPTY": [ "messages.discardEncryption" @@ -330,8 +349,10 @@ "channels.togglePreHistoryHidden", "channels.toggleSlowMode", "channels.updatePinnedMessage", + "channels.updateUsername", "messages.editChatAbout", "messages.editChatDefaultBannedRights", + "messages.editChatPhoto", "messages.editChatTitle", "messages.toggleChatAdmins", "messages.updatePinnedMessage" @@ -365,10 +386,14 @@ "help.getConfig" ], "CONNECTION_DEVICE_MODEL_EMPTY": [ + "contacts.resolveUsername", "help.getConfig", - "invokeWithLayer" + "invokeWithLayer", + "messages.getHistory", + "messages.getPeerDialogs" ], "CONNECTION_LANG_PACK_INVALID": [ + "help.getConfig", "invokeWithLayer" ], "CONNECTION_LAYER_INVALID": [ @@ -378,7 +403,8 @@ ], "CONNECTION_NOT_INITED": [ "help.getConfig", - "invokeWithLayer" + "invokeWithLayer", + "users.getUsers" ], "CONNECTION_SYSTEM_EMPTY": [ "help.getConfig", @@ -489,6 +515,9 @@ "FILE_PART_SIZE_INVALID": [ "upload.saveBigFilePart" ], + "FILE_PART_TOO_BIG": [ + "upload.saveBigFilePart" + ], "FILE_PARTS_INVALID": [ "messages.sendMedia", "messages.uploadMedia", @@ -499,6 +528,9 @@ "FILE_REFERENCE_EXPIRED": [ "upload.getFile" ], + "FILTER_ID_INVALID": [ + "messages.updateDialogFilter" + ], "FIRSTNAME_INVALID": [ "account.updateProfile", "auth.signUp" @@ -525,6 +557,9 @@ "GRAPH_INVALID_RELOAD": [ "stats.loadAsyncGraph" ], + "GRAPH_OUTDATED_RELOAD": [ + "stats.loadAsyncGraph" + ], "GROUPED_MEDIA_INVALID": [ "messages.forwardMessages" ], @@ -579,7 +614,8 @@ "messages.sendMedia", "messages.sendMessage", "messages.setTyping", - "messages.startBot" + "messages.startBot", + "messages.uploadMedia" ], "INVITE_HASH_EMPTY": [ "channels.joinChannel", @@ -644,6 +680,9 @@ "MEGAGROUP_ID_INVALID": [ "channels.setDiscussionGroup" ], + "MEGAGROUP_REQUIRED": [ + "channels.editLocation" + ], "MESSAGE_EDIT_TIME_EXPIRED": [ "messages.editMessage" ], @@ -676,7 +715,8 @@ "payments.getPaymentForm", "payments.getPaymentReceipt", "payments.sendPaymentForm", - "payments.validateRequestedInfo" + "payments.validateRequestedInfo", + "stats.getMessagePublicForwards" ], "MESSAGE_IDS_EMPTY": [ "channels.getMessages", @@ -690,6 +730,7 @@ "messages.sendVote" ], "MESSAGE_TOO_LONG": [ + "messages.editMessage", "messages.sendMessage", "messages.setInlineBotResults" ], @@ -701,6 +742,7 @@ "channels.deleteMessages", "channels.deleteUserHistory", "channels.editBanned", + "channels.exportMessageLink", "channels.getAdminLog", "channels.getChannels", "channels.getFullChannel", @@ -710,8 +752,10 @@ "channels.joinChannel", "channels.leaveChannel", "channels.readHistory", + "channels.readMessageContents", "contacts.addContact", "contacts.block", + "help.getConfig", "messages.deleteHistory", "messages.editMessage", "messages.forwardMessages", @@ -720,15 +764,19 @@ "messages.getInlineBotResults", "messages.getMessagesViews", "messages.getPeerDialogs", + "messages.getPollVotes", "messages.importChatInvite", "messages.readHistory", "messages.readMentions", "messages.reportSpam", + "messages.search", + "messages.sendInlineBotResult", "messages.sendMedia", "messages.sendMessage", "messages.setTyping", "messages.startBot", "messages.uploadMedia", + "msgs_state_req", "updates.getChannelDifference", "upload.getFile", "users.getFullUser", @@ -768,6 +816,9 @@ "PACK_SHORT_NAME_OCCUPIED": [ "stickers.createStickerSet" ], + "PACK_TITLE_INVALID": [ + "stickers.createStickerSet" + ], "PARTICIPANT_VERSION_OUTDATED": [ "phone.requestCall" ], @@ -796,6 +847,7 @@ "account.updateNotifySettings", "channels.editAdmin", "channels.joinChannel", + "contacts.block", "contacts.resetTopPeerRating", "messages.addChatUser", "messages.deleteChatUser", @@ -820,6 +872,7 @@ "messages.getPeerDialogs", "messages.getPeerSettings", "messages.getScheduledHistory", + "messages.getScheduledMessages", "messages.getStatsURL", "messages.getUnreadMentions", "messages.hideReportSpam", @@ -842,7 +895,8 @@ "messages.startBot", "messages.toggleDialogPin", "messages.uploadMedia", - "stickers.createStickerSet" + "stickers.createStickerSet", + "upload.getFile" ], "PEER_ID_NOT_SUPPORTED": [ "messages.search" @@ -928,15 +982,23 @@ "photos.updateProfilePhoto", "photos.uploadProfilePhoto" ], + "PHOTO_FILE_MISSING": [ + "photos.uploadProfilePhoto" + ], + "PHOTO_ID_INVALID": [ + "photos.updateProfilePhoto" + ], "PHOTO_INVALID": [ "channels.editPhoto", + "messages.editChatPhoto", "messages.setInlineBotResults" ], "PHOTO_INVALID_DIMENSIONS": [ "messages.sendMedia" ], "PHOTO_SAVE_FILE_INVALID": [ - "messages.sendMedia" + "messages.sendMedia", + "messages.uploadMedia" ], "PHOTO_THUMB_URL_EMPTY": [ "messages.setInlineBotResults" @@ -962,6 +1024,9 @@ "account.getPrivacy", "account.setPrivacy" ], + "PRIVACY_VALUE_INVALID": [ + "account.setPrivacy" + ], "QUERY_ID_EMPTY": [ "messages.sendInlineBotResult" ], @@ -974,6 +1039,9 @@ "QUERY_TOO_SHORT": [ "contacts.search" ], + "QUIZ_CORRECT_ANSWER_INVALID": [ + "messages.sendMedia" + ], "QUIZ_CORRECT_ANSWERS_EMPTY": [ "messages.sendMedia" ], @@ -1001,6 +1069,9 @@ "messages.sendMessage", "messages.setInlineBotResults" ], + "RESULT_ID_DUPLICATE": [ + "messages.setInlineBotResults" + ], "RESULT_ID_EMPTY": [ "messages.sendInlineBotResult" ], @@ -1010,6 +1081,9 @@ "RESULTS_TOO_MUCH": [ "messages.setInlineBotResults" ], + "REVOTE_NOT_ALLOWED": [ + "messages.sendVote" + ], "RSA_DECRYPT_FAILED": [ "upload.getCdnFileHashes", "upload.reuploadCdnFile" @@ -1020,7 +1094,11 @@ "SCHEDULE_DATE_INVALID": [ "messages.editMessage" ], + "SCHEDULE_DATE_TOO_LATE": [ + "messages.sendMessage" + ], "SCHEDULE_TOO_MUCH": [ + "messages.forwardMessages", "messages.sendMedia", "messages.sendMessage" ], @@ -1048,6 +1126,12 @@ "SHA256_HASH_INVALID": [ "messages.getDocumentByHash" ], + "SHORTNAME_OCCUPY_FAILED": [ + "stickers.createStickerSet" + ], + "SLOWMODE_MULTI_MSGS_DISABLED": [ + "messages.forwardMessages" + ], "SMS_CODE_CREATE_FAILED": [ "auth.sendCode" ], @@ -1085,6 +1169,9 @@ "STICKER_PNG_DIMENSIONS": [ "stickers.createStickerSet" ], + "STICKER_PNG_NOPNG": [ + "stickers.createStickerSet" + ], "STICKERS_EMPTY": [ "stickers.createStickerSet" ], @@ -1144,9 +1231,11 @@ "messages.sendInlineBotResult", "messages.sendMedia", "messages.sendMessage", - "messages.setTyping" + "messages.setTyping", + "messages.uploadMedia" ], "USER_BLOCKED": [ + "channels.editAdmin", "channels.inviteToChannel" ], "USER_BOT": [ @@ -1164,7 +1253,8 @@ ], "USER_CHANNELS_TOO_MUCH": [ "channels.inviteToChannel", - "channels.joinChannel" + "channels.joinChannel", + "messages.importChatInvite" ], "USER_CREATOR": [ "channels.editAdmin", @@ -1180,6 +1270,7 @@ "channels.inviteToChannel", "channels.reportSpam", "messages.addChatUser", + "messages.deleteChatUser", "messages.editChatAdmin", "messages.getCommonChats", "messages.requestEncryption", @@ -1237,11 +1328,15 @@ "messages.createChat" ], "USERS_TOO_MUCH": [ + "channels.editAdmin", "channels.inviteToChannel", "channels.joinChannel", "messages.addChatUser", "messages.importChatInvite" ], + "VIDEO_FILE_INVALID": [ + "photos.uploadProfilePhoto" + ], "WC_CONVERT_URL_INVALID": [ "messages.getWebPage" ], @@ -1292,7 +1387,8 @@ "channels.updateUsername" ], "CHP_CALL_FAIL": [ - "stats.getBroadcastStats" + "stats.getBroadcastStats", + "stats.loadAsyncGraph" ], "ENCRYPTION_OCCUPY_ADMIN_FAILED": [ "messages.acceptEncryption" @@ -1308,10 +1404,12 @@ "updates.getDifference" ], "IMAGE_ENGINE_DOWN": [ + "messages.sendMedia", "photos.updateProfilePhoto", "photos.uploadProfilePhoto" ], "MEMBER_FETCH_FAILED": [ + "photos.updateProfilePhoto", "photos.uploadProfilePhoto" ], "MEMBER_NO_LOCATION": [ @@ -1324,6 +1422,7 @@ "account.updateUsername" ], "MSG_RANGE_UNSYNC": [ + "messages.deleteHistory", "messages.getHistory", "messages.getPeerDialogs" ], @@ -1351,6 +1450,7 @@ "users.getUsers" ], "MT_SEND_QUEUE_TOO_LONG": [ + "messages.editMessage", "messages.sendInlineBotResult", "messages.sendMessage" ], @@ -1364,6 +1464,7 @@ "updates.getChannelDifference" ], "NEED_MEMBER_INVALID": [ + "channels.readHistory", "contacts.deleteContacts", "contacts.importCard", "invokeWithLayer", @@ -1387,6 +1488,7 @@ "stats.loadAsyncGraph" ], "PTS_CHANGE_EMPTY": [ + "messages.editMessage", "messages.forwardMessages", "messages.sendMessage" ], @@ -1436,6 +1538,13 @@ "UNKNOWN_METHOD": [ "upload.getCdnFile" ], + "UPLOAD_NO_VOLUME": [ + "messages.editChatPhoto", + "messages.sendMedia", + "photos.updateProfilePhoto", + "photos.uploadProfilePhoto", + "upload.saveBigFilePart" + ], "VOLUME_LOC_NOT_FOUND": [ "updates.getChannelDifference", "updates.getDifference" @@ -1451,6 +1560,7 @@ "406": { "AUTH_KEY_DUPLICATED": [ "account.checkUsername", + "account.getAuthorizations", "account.updateProfile", "account.updateStatus", "account.updateUsername", @@ -1465,6 +1575,7 @@ "channels.leaveChannel", "channels.readHistory", "channels.updateUsername", + "contacts.getContacts", "contacts.importContacts", "contacts.resolveUsername", "help.getCdnConfig", @@ -1481,6 +1592,7 @@ "messages.getHistory", "messages.getMessagesViews", "messages.getPeerDialogs", + "messages.getUnreadMentions", "messages.importChatInvite", "messages.readHistory", "messages.readMentions", @@ -1488,7 +1600,10 @@ "messages.sendMedia", "messages.sendMessage", "messages.sendMultiMedia", + "messages.sendVote", "messages.setTyping", + "messages.startBot", + "messages.updatePinnedMessage", "phone.getCallConfig", "photos.getUserPhotos", "photos.updateProfilePhoto", @@ -1549,9 +1664,12 @@ "account.updateStatus", "account.updateUsername", "auth.signIn", + "channels.createChannel", "channels.getChannels", "channels.joinChannel", + "contacts.getContacts", "contacts.getStatuses", + "contacts.importContacts", "contacts.resolveUsername", "help.getCdnConfig", "help.getTermsOfServiceUpdate", @@ -1567,6 +1685,9 @@ ] }, "403": { + "BROADCAST_FORBIDDEN": [ + "messages.getPollVotes" + ], "CHANNEL_PUBLIC_GROUP_NA": [ "channels.getFullChannel", "channels.leaveChannel", @@ -1611,6 +1732,7 @@ "channels.inviteToChannel", "channels.updateUsername", "invokeWithLayer", + "messages.addChatUser", "messages.editChatAbout", "messages.editMessage", "messages.exportChatInvite", @@ -1686,9 +1808,21 @@ "msgs_state_req" ], "No workers running": [ + "account.updateProfile", + "auth.sendCode", + "channels.getMessages", + "channels.getParticipants", "help.getCdnConfig", + "help.getConfig", + "help.getNearestDc", + "messages.getMessagesViews", + "messages.readHistory", + "messages.sendMessage", + "photos.deletePhotos", + "photos.updateProfilePhoto", "updates.getChannelDifference", - "updates.getDifference" + "updates.getDifference", + "users.getFullUser" ] }, "-504": { @@ -1707,6 +1841,7 @@ "account.updateStatus", "auth.bindTempAuthKey", "auth.resetAuthorizations", + "auth.sendCode", "channels.deleteMessages", "channels.getChannels", "channels.getFullChannel", @@ -1718,20 +1853,25 @@ "channels.readHistory", "channels.readMessageContents", "contacts.deleteContacts", + "contacts.resolveUsername", "contacts.search", "help.getCdnConfig", "help.getConfig", "invokeWithLayer", "messages.deleteHistory", + "messages.editMessage", "messages.forwardMessages", "messages.getBotCallbackAnswer", + "messages.getDhConfig", "messages.getDialogs", "messages.getHistory", "messages.getInlineBotResults", "messages.getMessagesViews", "messages.getPeerDialogs", + "messages.getUnreadMentions", "messages.importChatInvite", "messages.readHistory", + "messages.search", "messages.sendInlineBotResult", "messages.sendMedia", "messages.sendMessage", @@ -1746,6 +1886,7 @@ "updates.getState", "upload.getFile", "upload.saveBigFilePart", + "upload.saveFilePart", "users.getFullUser", "users.getUsers" ] @@ -1753,7 +1894,7 @@ }, "human_result": { "-429": "Too many requests", - "2FA_CONFIRM_WAIT_%d": "Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in % seconds.", + "2FA_CONFIRM_WAIT_%d": "Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds.", "ABOUT_TOO_LONG": "About string too long", "ACCESS_TOKEN_EXPIRED": "Access token expired", "ACCESS_TOKEN_INVALID": "Access token invalid", @@ -1769,6 +1910,8 @@ "AUTH_KEY_PERM_EMPTY": "The temporary auth key must be binded to the permanent auth key to use these methods.", "AUTH_KEY_UNREGISTERED": "The authorization key has expired", "AUTH_RESTART": "Restart the authorization process", + "AUTH_TOKEN_EXPIRED": "The authorization token has expired", + "AUTH_TOKEN_INVALIDX": "The specified auth token is invalid", "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", @@ -1779,8 +1922,10 @@ "BOT_MISSING": "This method can only be run by a bot", "BOT_RESPONSE_TIMEOUT": "A timeout occurred while fetching data from the bot", "BOTS_TOO_MUCH": "There are too many bots in this chat\/channel", + "BROADCAST_FORBIDDEN": "", "BROADCAST_ID_INVALID": "Broadcast ID invalid", "BROADCAST_PUBLIC_VOTERS_FORBIDDEN": "You can't forward polls with public voters", + "BROADCAST_REQUIRED": "This method can only be called on a channel, please use stats.getMegagroupStats for supergroups", "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", @@ -1841,7 +1986,7 @@ "DH_G_A_INVALID": "g_a invalid", "EMAIL_HASH_EXPIRED": "Email hash expired", "EMAIL_UNCONFIRMED": "Email unconfirmed", - "EMAIL_UNCONFIRMED_%d": "The provided email isn't confirmed, % is the length of the verification code that was just sent to the email.", + "EMAIL_UNCONFIRMED_%d": "The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email.", "EMAIL_VERIFY_EXPIRED": "The verification email has expired", "ENCRYPTED_MESSAGE_INVALID": "Encrypted message invalid", "ENCRYPTION_ALREADY_ACCEPTED": "Secret chat already accepted", @@ -1862,9 +2007,11 @@ "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_PART_TOO_BIG": "The uploaded file part is too big", "FILE_PARTS_INVALID": "The number of file parts is invalid", "FILE_REFERENCE_EXPIRED": "File reference expired, it must be refetched as described in https:\/\/core.telegram.org\/api\/file_reference", "FILEREF_UPGRADE_NEEDED": "The client has to be updated in order to support [file references](https:\/\/core.telegram.org\/api\/file_reference)", + "FILTER_ID_INVALID": "The specified filter ID is invalid", "FIRSTNAME_INVALID": "The first name is invalid", "FLOOD_WAIT_666": "Spooky af m8", "FOLDER_ID_INVALID": "Invalid folder ID", @@ -1875,6 +2022,7 @@ "GIF_CONTENT_TYPE_INVALID": "GIF content-type invalid", "GIF_ID_INVALID": "The provided GIF ID is invalid", "GRAPH_INVALID_RELOAD": "Invalid graph token provided, please reload the stats and provide the updated token", + "GRAPH_OUTDATED_RELOAD": "The graph is outdated, please get a new async token using stats.getBroadcastStats", "GROUPED_ID_OCCUPY_FAULED": "Internal error", "GROUPED_MEDIA_INVALID": "Invalid grouped media", "HASH_INVALID": "The provided hash is invalid", @@ -1917,6 +2065,7 @@ "MEDIA_INVALID": "Media invalid", "MEDIA_PREV_INVALID": "Previous media invalid", "MEGAGROUP_ID_INVALID": "Invalid supergroup ID", + "MEGAGROUP_REQUIRED": "You can only use this method on a supergroup", "MEMBER_FETCH_FAILED": "Internal error", "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", @@ -1950,13 +2099,14 @@ "P0NY_FLOODWAIT": "No", "PACK_SHORT_NAME_INVALID": "Short pack name invalid", "PACK_SHORT_NAME_OCCUPIED": "A stickerpack with this name already exists", + "PACK_TITLE_INVALID": "The stickerpack title is invalid", "PARTICIPANT_CALL_FAILED": "Failure while making call", "PARTICIPANT_VERSION_OUTDATED": "The other participant does not use an up to date telegram client with support for calls", "PARTICIPANTS_TOO_FEW": "Not enough participants", "PASSWORD_EMPTY": "The provided password is empty", "PASSWORD_HASH_INVALID": "The provided password hash is invalid", "PASSWORD_MISSING": "You must enable 2FA in order to transfer ownership of a channel", - "PASSWORD_TOO_FRESH_%d": "The password was modified less than 24 hours ago, try again in % seconds", + "PASSWORD_TOO_FRESH_%d": "The password was modified less than 24 hours ago, try again in %d seconds", "PEER_FLOOD": "Too many requests", "PEER_ID_INVALID": "The provided peer id is invalid", "PEER_ID_NOT_SUPPORTED": "The provided peer ID is not supported", @@ -1980,6 +2130,8 @@ "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_FILE_MISSING": "Profile photo file missing", + "PHOTO_ID_INVALID": "Photo ID invalid", "PHOTO_INVALID": "Photo invalid", "PHOTO_INVALID_DIMENSIONS": "The photo dimensions are invalid", "PHOTO_SAVE_FILE_INVALID": "Internal issues, try again later", @@ -1992,10 +2144,12 @@ "POLL_VOTE_REQUIRED": "Cast a vote in the poll before calling this method", "POSTPONED_TIMEOUT": "Internal error", "PRIVACY_KEY_INVALID": "The privacy key is invalid", + "PRIVACY_VALUE_INVALID": "The specified privacy rule combination is invalid", "PTS_CHANGE_EMPTY": "No PTS change", "QUERY_ID_EMPTY": "The query ID is empty", "QUERY_ID_INVALID": "The query ID is invalid", "QUERY_TOO_SHORT": "The query string is too short", + "QUIZ_CORRECT_ANSWER_INVALID": "An invalid value was provided to the correct_answers field", "QUIZ_CORRECT_ANSWERS_EMPTY": "No correct quiz answer was specified", "RANDOM_ID_DUPLICATE": "You provided a random ID that was already used", "RANDOM_ID_EMPTY": "Random ID empty", @@ -2006,9 +2160,11 @@ "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_ID_DUPLICATE": "You provided a duplicate result ID", "RESULT_ID_EMPTY": "Result ID empty", "RESULT_TYPE_INVALID": "Result type invalid", "RESULTS_TOO_MUCH": "Too many results were provided", + "REVOTE_NOT_ALLOWED": "You cannot change your vote", "RIGHT_FORBIDDEN": "Your admin rights do not allow you to do this", "RPC_CALL_FAIL": "Telegram is having internal issues, please try again later.", "RPC_CONNECT_FAILED": "Internal error", @@ -2016,17 +2172,20 @@ "RSA_DECRYPT_FAILED": "Internal RSA decryption failed", "SCHEDULE_BOT_NOT_ALLOWED": "Bots cannot schedule messages", "SCHEDULE_DATE_INVALID": "Invalid schedule date provided", + "SCHEDULE_DATE_TOO_LATE": "You can't schedule a message this far in the future", "SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SEARCH_QUERY_EMPTY": "The search query is empty", "SECONDS_INVALID": "Invalid duration provided", "SEND_MESSAGE_MEDIA_INVALID": "Invalid media provided", "SEND_MESSAGE_TYPE_INVALID": "The message type is invalid", "SESSION_PASSWORD_NEEDED": "2FA is enabled, use a password to login", - "SESSION_TOO_FRESH_%d": "This session was created less than 24 hours ago, try again in % seconds", + "SESSION_TOO_FRESH_%d": "This session was created less than 24 hours ago, try again in %d seconds", "SETTINGS_INVALID": "Invalid settings were provided", "SHA256_HASH_INVALID": "The provided SHA256 hash is invalid", + "SHORTNAME_OCCUPY_FAILED": "An internal error occurred", "SIGN_IN_FAILED": "Failure while signing in", - "SLOWMODE_WAIT_%d": "Slowmode is enabled in this chat: wait % seconds before sending another message to this chat.", + "SLOWMODE_MULTI_MSGS_DISABLED": "Slowmode is enabled, you cannot forward multiple messages to this group.", + "SLOWMODE_WAIT_%d": "Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.", "SMS_CODE_CREATE_FAILED": "An error occurred while creating the SMS code", "SRP_ID_INVALID": "Invalid SRP ID provided", "SRP_PASSWORD_CHANGED": "Password has changed", @@ -2038,11 +2197,12 @@ "STICKER_ID_INVALID": "The provided sticker ID is invalid", "STICKER_INVALID": "The provided sticker is invalid", "STICKER_PNG_DIMENSIONS": "Sticker png dimensions invalid", + "STICKER_PNG_NOPNG": "One of the specified stickers is not a valid PNG file", "STICKERS_EMPTY": "No sticker provided", "STICKERSET_INVALID": "The provided sticker set is invalid", "STORAGE_CHECK_FAILED": "Server storage check failed", "STORE_INVALID_SCALAR_TYPE": "Tried storing an invalid scalar type", - "TAKEOUT_INIT_DELAY_%d": "Wait % seconds before initing takeout", + "TAKEOUT_INIT_DELAY_%d": "Wait %d seconds before initing takeout", "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", @@ -2057,6 +2217,7 @@ "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", + "UPLOAD_NO_VOLUME": "An internal error occurred", "URL_INVALID": "Invalid URL provided", "USER_ADMIN_INVALID": "You're not an admin", "USER_ALREADY_PARTICIPANT": "The user is already in the group", @@ -2085,6 +2246,7 @@ "USERPIC_UPLOAD_REQUIRED": "You must have a profile picture to publish your geolocation", "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)", + "VIDEO_FILE_INVALID": "The specified video file is invalid", "VOLUME_LOC_NOT_FOUND": "Internal error", "WC_CONVERT_URL_INVALID": "WC convert URL invalid", "WEBDOCUMENT_INVALID": "Invalid webdocument URL provided",