From 0fe2fc2b5c9a13ed4b646540549ebe04456c62ae Mon Sep 17 00:00:00 2001 From: Github Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Nov 2021 18:59:34 +0100 Subject: [PATCH] update --- v1.json | 60 ++++++++++++++--- v2.json | 204 ++++++++++++++++++++++++++++++++++++++++++++------------ v3.json | 52 ++++++++++++--- v4.json | 38 ++++++++++- 4 files changed, 293 insertions(+), 61 deletions(-) diff --git a/v1.json b/v1.json index 3030e5d..1679981 100644 --- a/v1.json +++ b/v1.json @@ -36,6 +36,10 @@ "API_ID_INVALID", "API_ID_PUBLISHED_FLOOD" ], + "messages.getExportedChatInvites": [ + "ADMIN_ID_INVALID", + "CHAT_ADMIN_REQUIRED" + ], "channels.editAdmin": [ "ADMIN_RANK_EMOJI_NOT_ALLOWED", "ADMIN_RANK_INVALID", @@ -115,6 +119,7 @@ "SEND_MESSAGE_TYPE_INVALID", "START_PARAM_INVALID", "STICKER_DOCUMENT_INVALID", + "URL_INVALID", "USER_BOT_INVALID", "VIDEO_TITLE_EMPTY", "WEBDOCUMENT_INVALID", @@ -194,6 +199,7 @@ "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_STATUS_PRIVATE", "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", "USER_IS_BOT", @@ -342,6 +348,7 @@ "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID", "TTL_MEDIA_INVALID", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", @@ -392,6 +399,7 @@ "RANDOM_ID_INVALID", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID", "SLOWMODE_MULTI_MSGS_DISABLED", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", @@ -608,6 +616,7 @@ "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID", + "INVITE_REQUEST_SENT", "MSG_ID_INVALID", "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT", @@ -732,6 +741,7 @@ "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID", + "INVITE_REQUEST_SENT", "MSG_ID_INVALID", "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT", @@ -904,6 +914,7 @@ ], "messages.getOnlines": [ "CHANNEL_PRIVATE", + "CHAT_ID_INVALID", "PEER_ID_INVALID" ], "messages.readHistory": [ @@ -981,6 +992,12 @@ "USER_ID_INVALID", "USER_NOT_PARTICIPANT" ], + "messages.getAdminsWithInvites": [ + "CHAT_ADMIN_REQUIRED" + ], + "messages.getChatInviteImporters": [ + "CHAT_ADMIN_REQUIRED" + ], "messages.getMessageEditData": [ "CHAT_ADMIN_REQUIRED", "MESSAGE_ID_INVALID", @@ -996,6 +1013,7 @@ ], "phone.createGroupCall": [ "CHAT_ADMIN_REQUIRED", + "PEER_ID_INVALID", "SCHEDULE_DATE_INVALID" ], "messages.discardEncryption": [ @@ -1008,6 +1026,10 @@ "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED" ], + "messages.deleteChat": [ + "CHAT_ID_INVALID", + "PEER_ID_INVALID" + ], "messages.editChatAdmin": [ "CHAT_ID_INVALID", "PEER_ID_INVALID", @@ -1049,6 +1071,7 @@ "messages.sendEncrypted": [ "CHAT_ID_INVALID", "DATA_INVALID", + "DATA_TOO_LONG", "ENCRYPTION_DECLINED", "MSG_WAIT_FAILED" ], @@ -1438,9 +1461,6 @@ "contacts.resetTopPeerRating": [ "PEER_ID_INVALID" ], - "messages.deleteChat": [ - "PEER_ID_INVALID" - ], "messages.editExportedChatInvite": [ "PEER_ID_INVALID" ], @@ -1448,7 +1468,8 @@ "PEER_ID_INVALID" ], "messages.getStatsURL": [ - "PEER_ID_INVALID" + "PEER_ID_INVALID", + "UNKNOWN_ERROR" ], "messages.hideReportSpam": [ "PEER_ID_INVALID" @@ -1465,6 +1486,7 @@ ], "account.changePhone": [ "PHONE_CODE_EMPTY", + "PHONE_CODE_EXPIRED", "PHONE_NUMBER_INVALID", "PHONE_NUMBER_OCCUPIED" ], @@ -1787,7 +1809,8 @@ "AUTH_KEY_DUPLICATED" ], "channels.joinChannel": [ - "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED" ], "channels.leaveChannel": [ "AUTH_KEY_DUPLICATED" @@ -1835,7 +1858,8 @@ "AUTH_KEY_DUPLICATED" ], "messages.checkChatInvite": [ - "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED" ], "messages.deleteHistory": [ "AUTH_KEY_DUPLICATED" @@ -1843,6 +1867,9 @@ "messages.editMessage": [ "AUTH_KEY_DUPLICATED" ], + "messages.exportChatInvite": [ + "AUTH_KEY_DUPLICATED" + ], "messages.forwardMessages": [ "AUTH_KEY_DUPLICATED" ], @@ -1871,7 +1898,8 @@ "AUTH_KEY_DUPLICATED" ], "messages.importChatInvite": [ - "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED" ], "messages.readHistory": [ "AUTH_KEY_DUPLICATED" @@ -1973,7 +2001,8 @@ "SEND_CODE_UNAVAILABLE" ], "auth.signIn": [ - "PHONE_NUMBER_INVALID" + "PHONE_NUMBER_INVALID", + "UPDATE_APP_TO_LOGIN" ], "auth.signUp": [ "PHONE_NUMBER_INVALID" @@ -2215,6 +2244,9 @@ "messages.exportChatInvite": [ "CHAT_WRITE_FORBIDDEN" ], + "messages.getAdminsWithInvites": [ + "CHAT_WRITE_FORBIDDEN" + ], "messages.sendMessage": [ "CHAT_WRITE_FORBIDDEN", "USER_IS_BLOCKED" @@ -2617,6 +2649,9 @@ "ACTIVE_USER_REQUIRED": [ "The method is only available to already activated users" ], + "ADMIN_ID_INVALID": [ + "The specified admin ID is invalid" + ], "ADMIN_RANK_EMOJI_NOT_ALLOWED": [ "An admin rank cannot contain emojis" ], @@ -3235,6 +3270,9 @@ "INVITE_HASH_INVALID": [ "The invite hash is invalid" ], + "INVITE_REQUEST_SENT": [ + "" + ], "LANG_CODE_INVALID": [ "The specified language code is invalid" ], @@ -3676,6 +3714,9 @@ "SECONDS_INVALID": [ "Invalid duration provided" ], + "SEND_AS_PEER_INVALID": [ + "You can't send messages as the specified peer" + ], "SEND_CODE_UNAVAILABLE": [ "Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)" ], @@ -3847,6 +3888,9 @@ "UNTIL_DATE_INVALID": [ "Invalid until date provided" ], + "UPDATE_APP_TO_LOGIN": [ + "Please update to the latest version of MadelineProto to login." + ], "UPLOAD_NO_VOLUME": [ "An internal error occurred" ], diff --git a/v2.json b/v2.json index bd7de68..cee3c29 100644 --- a/v2.json +++ b/v2.json @@ -82,6 +82,18 @@ "error_description": "Auth key invalid" } ], + "messages.getExportedChatInvites": [ + { + "error_code": 400, + "error_message": "ADMIN_ID_INVALID", + "error_description": "The specified admin ID is invalid" + }, + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + } + ], "channels.editAdmin": [ { "error_code": 400, @@ -537,11 +549,21 @@ "error_message": "INVITE_HASH_EXPIRED", "error_description": "The invite link has expired" }, + { + "error_code": 406, + "error_message": "INVITE_HASH_EXPIRED", + "error_description": "The invite link has expired" + }, { "error_code": 400, "error_message": "INVITE_HASH_INVALID", "error_description": "The invite hash is invalid" }, + { + "error_code": 400, + "error_message": "INVITE_REQUEST_SENT", + "error_description": "" + }, { "error_code": 400, "error_message": "MSG_ID_INVALID", @@ -859,6 +881,11 @@ "error_message": "INVITE_HASH_EXPIRED", "error_description": "The invite link has expired" }, + { + "error_code": 406, + "error_message": "INVITE_HASH_EXPIRED", + "error_description": "The invite link has expired" + }, { "error_code": 400, "error_message": "INVITE_HASH_INVALID", @@ -1043,6 +1070,11 @@ "error_message": "SCHEDULE_TOO_MUCH", "error_description": "There are too many scheduled messages" }, + { + "error_code": 400, + "error_message": "SEND_AS_PEER_INVALID", + "error_description": "You can't send messages as the specified peer" + }, { "error_code": 400, "error_message": "SLOWMODE_MULTI_MSGS_DISABLED", @@ -1402,11 +1434,21 @@ "error_message": "INVITE_HASH_EXPIRED", "error_description": "The invite link has expired" }, + { + "error_code": 406, + "error_message": "INVITE_HASH_EXPIRED", + "error_description": "The invite link has expired" + }, { "error_code": 400, "error_message": "INVITE_HASH_INVALID", "error_description": "The invite hash is invalid" }, + { + "error_code": 400, + "error_message": "INVITE_REQUEST_SENT", + "error_description": "" + }, { "error_code": 400, "error_message": "MSG_ID_INVALID", @@ -1646,6 +1688,11 @@ "error_message": "SCHEDULE_TOO_MUCH", "error_description": "There are too many scheduled messages" }, + { + "error_code": 400, + "error_message": "SEND_AS_PEER_INVALID", + "error_description": "You can't send messages as the specified peer" + }, { "error_code": 420, "error_message": "SLOWMODE_WAIT_X", @@ -2282,6 +2329,11 @@ "error_message": "STICKER_DOCUMENT_INVALID", "error_description": "The specified sticker document is invalid" }, + { + "error_code": 400, + "error_message": "URL_INVALID", + "error_description": "Invalid URL provided" + }, { "error_code": 400, "error_message": "USER_BOT_INVALID", @@ -3137,6 +3189,48 @@ "error_description": "You're banned from sending messages in supergroups\/channels" } ], + "messages.exportChatInvite": [ + { + "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_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": "EXPIRE_DATE_INVALID", + "error_description": "The specified expiration date is invalid" + }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "USAGE_LIMIT_INVALID", + "error_description": "The specified usage limit is invalid" + } + ], "messages.getMessages": [ { "error_code": 406, @@ -3551,6 +3645,11 @@ "error_message": "SCHEDULE_TOO_MUCH", "error_description": "There are too many scheduled messages" }, + { + "error_code": 400, + "error_message": "SEND_AS_PEER_INVALID", + "error_description": "You can't send messages as the specified peer" + }, { "error_code": 420, "error_message": "SLOWMODE_WAIT_X", @@ -5512,49 +5611,17 @@ "error_description": "The provided peer id is invalid" } ], - "messages.exportChatInvite": [ - { - "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_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": "EXPIRE_DATE_INVALID", - "error_description": "The specified expiration date is invalid" - }, - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - }, - { - "error_code": 400, - "error_message": "USAGE_LIMIT_INVALID", - "error_description": "The specified usage limit is invalid" - } - ], "messages.getOnlines": [ { "error_code": 400, "error_message": "CHANNEL_PRIVATE", "error_description": "You haven't joined this channel\/supergroup" }, + { + "error_code": 400, + "error_message": "CHAT_ID_INVALID", + "error_description": "The provided chat id is invalid" + }, { "error_code": 400, "error_message": "PEER_ID_INVALID", @@ -5745,6 +5812,25 @@ "error_description": "You're not a member of this supergroup\/channel" } ], + "messages.getAdminsWithInvites": [ + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + }, + { + "error_code": 403, + "error_message": "CHAT_WRITE_FORBIDDEN", + "error_description": "You can't write in this chat" + } + ], + "messages.getChatInviteImporters": [ + { + "error_code": 400, + "error_message": "CHAT_ADMIN_REQUIRED", + "error_description": "You must be an admin in this chat to do this" + } + ], "messages.getMessageEditData": [ { "error_code": 400, @@ -5797,6 +5883,11 @@ "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" + }, { "error_code": 400, "error_message": "SCHEDULE_DATE_INVALID", @@ -5837,6 +5928,18 @@ "error_description": "The secret chat was already declined" } ], + "messages.deleteChat": [ + { + "error_code": 400, + "error_message": "CHAT_ID_INVALID", + "error_description": "The provided chat id is invalid" + }, + { + "error_code": 400, + "error_message": "PEER_ID_INVALID", + "error_description": "The provided peer id is invalid" + } + ], "messages.editChatAdmin": [ { "error_code": 400, @@ -5992,6 +6095,11 @@ "error_message": "DATA_INVALID", "error_description": "Encrypted data invalid" }, + { + "error_code": 400, + "error_message": "DATA_TOO_LONG", + "error_description": "Data too long" + }, { "error_code": 400, "error_message": "ENCRYPTION_DECLINED", @@ -7126,13 +7234,6 @@ "error_description": "The provided peer id is invalid" } ], - "messages.deleteChat": [ - { - "error_code": 400, - "error_message": "PEER_ID_INVALID", - "error_description": "The provided peer id is invalid" - } - ], "messages.editExportedChatInvite": [ { "error_code": 400, @@ -7152,6 +7253,11 @@ "error_code": 400, "error_message": "PEER_ID_INVALID", "error_description": "The provided peer id is invalid" + }, + { + "error_code": 400, + "error_message": "UNKNOWN_ERROR", + "error_description": "Internal error" } ], "messages.hideReportSpam": [ @@ -7193,6 +7299,11 @@ "error_message": "PHONE_CODE_EMPTY", "error_description": "phone_code is missing" }, + { + "error_code": 400, + "error_message": "PHONE_CODE_EXPIRED", + "error_description": "The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)" + }, { "error_code": 400, "error_message": "PHONE_NUMBER_INVALID", @@ -7261,6 +7372,11 @@ "error_code": 401, "error_message": "SESSION_PASSWORD_NEEDED", "error_description": "2FA is enabled, use a password to login" + }, + { + "error_code": 406, + "error_message": "UPDATE_APP_TO_LOGIN", + "error_description": "Please update to the latest version of MadelineProto to login." } ], "auth.cancelCode": [ diff --git a/v3.json b/v3.json index 56aa57a..0fbfdd7 100644 --- a/v3.json +++ b/v3.json @@ -36,6 +36,10 @@ "API_ID_INVALID": "API_ID_INVALID", "API_ID_PUBLISHED_FLOOD": "API_ID_PUBLISHED_FLOOD" }, + "messages.getExportedChatInvites": { + "ADMIN_ID_INVALID": "ADMIN_ID_INVALID", + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + }, "channels.editAdmin": { "ADMIN_RANK_EMOJI_NOT_ALLOWED": "ADMIN_RANK_EMOJI_NOT_ALLOWED", "ADMIN_RANK_INVALID": "ADMIN_RANK_INVALID", @@ -115,6 +119,7 @@ "SEND_MESSAGE_TYPE_INVALID": "SEND_MESSAGE_TYPE_INVALID", "START_PARAM_INVALID": "START_PARAM_INVALID", "STICKER_DOCUMENT_INVALID": "STICKER_DOCUMENT_INVALID", + "URL_INVALID": "URL_INVALID", "USER_BOT_INVALID": "USER_BOT_INVALID", "VIDEO_TITLE_EMPTY": "VIDEO_TITLE_EMPTY", "WEBDOCUMENT_INVALID": "WEBDOCUMENT_INVALID", @@ -194,6 +199,7 @@ "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_STATUS_PRIVATE": "SCHEDULE_STATUS_PRIVATE", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BOT": "USER_IS_BOT", @@ -342,6 +348,7 @@ "SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID", "TTL_MEDIA_INVALID": "TTL_MEDIA_INVALID", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", @@ -392,6 +399,7 @@ "RANDOM_ID_INVALID": "RANDOM_ID_INVALID", "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", + "SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID", "SLOWMODE_MULTI_MSGS_DISABLED": "SLOWMODE_MULTI_MSGS_DISABLED", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED": "USER_IS_BLOCKED", @@ -608,6 +616,7 @@ "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID": "INVITE_HASH_INVALID", + "INVITE_REQUEST_SENT": "INVITE_REQUEST_SENT", "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT", @@ -732,6 +741,7 @@ "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID": "INVITE_HASH_INVALID", + "INVITE_REQUEST_SENT": "INVITE_REQUEST_SENT", "MSG_ID_INVALID": "MSG_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT", @@ -904,6 +914,7 @@ }, "messages.getOnlines": { "CHANNEL_PRIVATE": "CHANNEL_PRIVATE", + "CHAT_ID_INVALID": "CHAT_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID" }, "messages.readHistory": { @@ -981,6 +992,12 @@ "USER_ID_INVALID": "USER_ID_INVALID", "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" }, + "messages.getAdminsWithInvites": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + }, + "messages.getChatInviteImporters": { + "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED" + }, "messages.getMessageEditData": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", @@ -996,6 +1013,7 @@ }, "phone.createGroupCall": { "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", + "PEER_ID_INVALID": "PEER_ID_INVALID", "SCHEDULE_DATE_INVALID": "SCHEDULE_DATE_INVALID" }, "messages.discardEncryption": { @@ -1008,6 +1026,10 @@ "ENCRYPTION_ALREADY_ACCEPTED": "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED" }, + "messages.deleteChat": { + "CHAT_ID_INVALID": "CHAT_ID_INVALID", + "PEER_ID_INVALID": "PEER_ID_INVALID" + }, "messages.editChatAdmin": { "CHAT_ID_INVALID": "CHAT_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID", @@ -1049,6 +1071,7 @@ "messages.sendEncrypted": { "CHAT_ID_INVALID": "CHAT_ID_INVALID", "DATA_INVALID": "DATA_INVALID", + "DATA_TOO_LONG": "DATA_TOO_LONG", "ENCRYPTION_DECLINED": "ENCRYPTION_DECLINED", "MSG_WAIT_FAILED": "MSG_WAIT_FAILED" }, @@ -1438,9 +1461,6 @@ "contacts.resetTopPeerRating": { "PEER_ID_INVALID": "PEER_ID_INVALID" }, - "messages.deleteChat": { - "PEER_ID_INVALID": "PEER_ID_INVALID" - }, "messages.editExportedChatInvite": { "PEER_ID_INVALID": "PEER_ID_INVALID" }, @@ -1448,7 +1468,8 @@ "PEER_ID_INVALID": "PEER_ID_INVALID" }, "messages.getStatsURL": { - "PEER_ID_INVALID": "PEER_ID_INVALID" + "PEER_ID_INVALID": "PEER_ID_INVALID", + "UNKNOWN_ERROR": "UNKNOWN_ERROR" }, "messages.hideReportSpam": { "PEER_ID_INVALID": "PEER_ID_INVALID" @@ -1465,6 +1486,7 @@ }, "account.changePhone": { "PHONE_CODE_EMPTY": "PHONE_CODE_EMPTY", + "PHONE_CODE_EXPIRED": "PHONE_CODE_EXPIRED", "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID", "PHONE_NUMBER_OCCUPIED": "PHONE_NUMBER_OCCUPIED" }, @@ -2084,7 +2106,8 @@ "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, "channels.joinChannel": { - "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED" }, "channels.leaveChannel": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" @@ -2132,7 +2155,8 @@ "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, "messages.checkChatInvite": { - "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED" }, "messages.deleteHistory": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" @@ -2140,6 +2164,9 @@ "messages.editMessage": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, + "messages.exportChatInvite": { + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + }, "messages.forwardMessages": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, @@ -2168,7 +2195,8 @@ "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" }, "messages.importChatInvite": { - "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" + "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED", + "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED" }, "messages.readHistory": { "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" @@ -2270,7 +2298,8 @@ "SEND_CODE_UNAVAILABLE": "SEND_CODE_UNAVAILABLE" }, "auth.signIn": { - "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID" + "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID", + "UPDATE_APP_TO_LOGIN": "UPDATE_APP_TO_LOGIN" }, "auth.signUp": { "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID" @@ -2512,6 +2541,9 @@ "messages.exportChatInvite": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" }, + "messages.getAdminsWithInvites": { + "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" + }, "messages.sendMessage": { "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", "USER_IS_BLOCKED": "USER_IS_BLOCKED" @@ -2902,6 +2934,7 @@ "ACCESS_TOKEN_EXPIRED": "Access token expired", "ACCESS_TOKEN_INVALID": "Access token invalid", "ACTIVE_USER_REQUIRED": "The method is only available to already activated users", + "ADMIN_ID_INVALID": "The specified admin ID is invalid", "ADMIN_RANK_EMOJI_NOT_ALLOWED": "An admin rank cannot contain emojis", "ADMIN_RANK_INVALID": "The specified admin rank is invalid.", "ADMINS_TOO_MUCH": "There are too many admins", @@ -3108,6 +3141,7 @@ "INVITE_HASH_EMPTY": "The invite hash is empty", "INVITE_HASH_EXPIRED": "The invite link has expired", "INVITE_HASH_INVALID": "The invite hash is invalid", + "INVITE_REQUEST_SENT": "", "LANG_CODE_INVALID": "The specified language code is invalid", "LANG_PACK_INVALID": "The provided language pack is invalid", "LASTNAME_INVALID": "The last name is invalid", @@ -3255,6 +3289,7 @@ "SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SEARCH_QUERY_EMPTY": "The search query is empty", "SECONDS_INVALID": "Invalid duration provided", + "SEND_AS_PEER_INVALID": "You can't send messages as the specified peer", "SEND_CODE_UNAVAILABLE": "Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)", "SEND_MESSAGE_MEDIA_INVALID": "Invalid media provided", "SEND_MESSAGE_TYPE_INVALID": "The message type is invalid", @@ -3312,6 +3347,7 @@ "UNKNOWN_ERROR": "Internal error", "UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs", "UNTIL_DATE_INVALID": "Invalid until date provided", + "UPDATE_APP_TO_LOGIN": "Please update to the latest version of MadelineProto to login.", "UPLOAD_NO_VOLUME": "An internal error occurred", "URL_INVALID": "Invalid URL provided", "USAGE_LIMIT_INVALID": "The specified usage limit is invalid", diff --git a/v4.json b/v4.json index 9a1b4f3..06bb83d 100644 --- a/v4.json +++ b/v4.json @@ -26,6 +26,9 @@ "ACCESS_TOKEN_INVALID": [ "auth.importBotAuthorization" ], + "ADMIN_ID_INVALID": [ + "messages.getExportedChatInvites" + ], "ADMIN_RANK_EMOJI_NOT_ALLOWED": [ "channels.editAdmin" ], @@ -364,6 +367,9 @@ "messages.editMessage", "messages.exportChatInvite", "messages.forwardMessages", + "messages.getAdminsWithInvites", + "messages.getChatInviteImporters", + "messages.getExportedChatInvites", "messages.getMessageEditData", "messages.getScheduledHistory", "messages.getScheduledMessages", @@ -393,6 +399,7 @@ "channels.updatePinnedMessage", "messages.acceptEncryption", "messages.addChatUser", + "messages.deleteChat", "messages.deleteChatUser", "messages.deleteHistory", "messages.editChatAbout", @@ -406,6 +413,7 @@ "messages.getFullChat", "messages.getHistory", "messages.getMessagesViews", + "messages.getOnlines", "messages.migrateChat", "messages.readHistory", "messages.reportEncryptedSpam", @@ -542,6 +550,7 @@ "phone.saveCallDebug" ], "DATA_TOO_LONG": [ + "messages.sendEncrypted", "messages.sendEncryptedFile" ], "DATE_EMPTY": [ @@ -859,6 +868,10 @@ "messages.checkChatInvite", "messages.importChatInvite" ], + "INVITE_REQUEST_SENT": [ + "channels.joinChannel", + "messages.importChatInvite" + ], "LANG_CODE_INVALID": [ "bots.setBotCommands" ], @@ -1180,6 +1193,7 @@ "messages.toggleDialogPin", "messages.updatePinnedMessage", "messages.uploadMedia", + "phone.createGroupCall", "stickers.createStickerSet", "upload.getFile" ], @@ -1202,6 +1216,7 @@ "auth.signUp" ], "PHONE_CODE_EXPIRED": [ + "account.changePhone", "account.verifyPhone", "auth.cancelCode", "auth.resendCode", @@ -1440,6 +1455,11 @@ "SECONDS_INVALID": [ "channels.toggleSlowMode" ], + "SEND_AS_PEER_INVALID": [ + "messages.forwardMessages", + "messages.sendMedia", + "messages.sendMessage" + ], "SEND_MESSAGE_MEDIA_INVALID": [ "messages.setInlineBotResults" ], @@ -1581,6 +1601,7 @@ ], "UNKNOWN_ERROR": [ "channels.viewSponsoredMessage", + "messages.getStatsURL", "req_DH_params", "req_pq_multi", "set_client_DH_params" @@ -1589,7 +1610,8 @@ "messages.editChatDefaultBannedRights" ], "URL_INVALID": [ - "messages.setBotCallbackAnswer" + "messages.setBotCallbackAnswer", + "messages.setInlineBotResults" ], "USAGE_LIMIT_INVALID": [ "messages.exportChatInvite" @@ -2108,6 +2130,7 @@ "messages.checkChatInvite", "messages.deleteHistory", "messages.editMessage", + "messages.exportChatInvite", "messages.forwardMessages", "messages.getAllChats", "messages.getBotCallbackAnswer", @@ -2158,6 +2181,11 @@ "account.resetAuthorization", "auth.resetAuthorizations" ], + "INVITE_HASH_EXPIRED": [ + "channels.joinChannel", + "messages.checkChatInvite", + "messages.importChatInvite" + ], "PHONE_NUMBER_INVALID": [ "account.changePhone", "account.sendChangePhoneCode", @@ -2180,6 +2208,9 @@ "STICKERSET_OWNER_ANONYMOUS": [ "channels.setStickers" ], + "UPDATE_APP_TO_LOGIN": [ + "auth.signIn" + ], "USER_RESTRICTED": [ "channels.createChannel" ], @@ -2301,6 +2332,7 @@ "messages.editMessage", "messages.exportChatInvite", "messages.forwardMessages", + "messages.getAdminsWithInvites", "messages.sendInlineBotResult", "messages.sendMedia", "messages.sendMessage", @@ -2512,6 +2544,7 @@ "ACCESS_TOKEN_EXPIRED": "Access token expired", "ACCESS_TOKEN_INVALID": "Access token invalid", "ACTIVE_USER_REQUIRED": "The method is only available to already activated users", + "ADMIN_ID_INVALID": "The specified admin ID is invalid", "ADMIN_RANK_EMOJI_NOT_ALLOWED": "An admin rank cannot contain emojis", "ADMIN_RANK_INVALID": "The specified admin rank is invalid.", "ADMINS_TOO_MUCH": "There are too many admins", @@ -2718,6 +2751,7 @@ "INVITE_HASH_EMPTY": "The invite hash is empty", "INVITE_HASH_EXPIRED": "The invite link has expired", "INVITE_HASH_INVALID": "The invite hash is invalid", + "INVITE_REQUEST_SENT": "", "LANG_CODE_INVALID": "The specified language code is invalid", "LANG_PACK_INVALID": "The provided language pack is invalid", "LASTNAME_INVALID": "The last name is invalid", @@ -2865,6 +2899,7 @@ "SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SEARCH_QUERY_EMPTY": "The search query is empty", "SECONDS_INVALID": "Invalid duration provided", + "SEND_AS_PEER_INVALID": "You can't send messages as the specified peer", "SEND_CODE_UNAVAILABLE": "Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)", "SEND_MESSAGE_MEDIA_INVALID": "Invalid media provided", "SEND_MESSAGE_TYPE_INVALID": "The message type is invalid", @@ -2922,6 +2957,7 @@ "UNKNOWN_ERROR": "Internal error", "UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs", "UNTIL_DATE_INVALID": "Invalid until date provided", + "UPDATE_APP_TO_LOGIN": "Please update to the latest version of MadelineProto to login.", "UPLOAD_NO_VOLUME": "An internal error occurred", "URL_INVALID": "Invalid URL provided", "USAGE_LIMIT_INVALID": "The specified usage limit is invalid",