1
0
mirror of https://github.com/danog/rpc-db.git synced 2024-12-02 09:27:55 +01:00
This commit is contained in:
Github Actions 2021-11-30 18:59:34 +01:00
parent 65922884f7
commit 0fe2fc2b5c
4 changed files with 293 additions and 61 deletions

60
v1.json
View File

@ -36,6 +36,10 @@
"API_ID_INVALID", "API_ID_INVALID",
"API_ID_PUBLISHED_FLOOD" "API_ID_PUBLISHED_FLOOD"
], ],
"messages.getExportedChatInvites": [
"ADMIN_ID_INVALID",
"CHAT_ADMIN_REQUIRED"
],
"channels.editAdmin": [ "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",
"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",
"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",
"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",
"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",
"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",
"MSG_ID_INVALID", "MSG_ID_INVALID",
"PEER_ID_INVALID", "PEER_ID_INVALID",
"USER_ALREADY_PARTICIPANT", "USER_ALREADY_PARTICIPANT",
@ -904,6 +914,7 @@
], ],
"messages.getOnlines": [ "messages.getOnlines": [
"CHANNEL_PRIVATE", "CHANNEL_PRIVATE",
"CHAT_ID_INVALID",
"PEER_ID_INVALID" "PEER_ID_INVALID"
], ],
"messages.readHistory": [ "messages.readHistory": [
@ -981,6 +992,12 @@
"USER_ID_INVALID", "USER_ID_INVALID",
"USER_NOT_PARTICIPANT" "USER_NOT_PARTICIPANT"
], ],
"messages.getAdminsWithInvites": [
"CHAT_ADMIN_REQUIRED"
],
"messages.getChatInviteImporters": [
"CHAT_ADMIN_REQUIRED"
],
"messages.getMessageEditData": [ "messages.getMessageEditData": [
"CHAT_ADMIN_REQUIRED", "CHAT_ADMIN_REQUIRED",
"MESSAGE_ID_INVALID", "MESSAGE_ID_INVALID",
@ -996,6 +1013,7 @@
], ],
"phone.createGroupCall": [ "phone.createGroupCall": [
"CHAT_ADMIN_REQUIRED", "CHAT_ADMIN_REQUIRED",
"PEER_ID_INVALID",
"SCHEDULE_DATE_INVALID" "SCHEDULE_DATE_INVALID"
], ],
"messages.discardEncryption": [ "messages.discardEncryption": [
@ -1008,6 +1026,10 @@
"ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_ACCEPTED",
"ENCRYPTION_ALREADY_DECLINED" "ENCRYPTION_ALREADY_DECLINED"
], ],
"messages.deleteChat": [
"CHAT_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.editChatAdmin": [ "messages.editChatAdmin": [
"CHAT_ID_INVALID", "CHAT_ID_INVALID",
"PEER_ID_INVALID", "PEER_ID_INVALID",
@ -1049,6 +1071,7 @@
"messages.sendEncrypted": [ "messages.sendEncrypted": [
"CHAT_ID_INVALID", "CHAT_ID_INVALID",
"DATA_INVALID", "DATA_INVALID",
"DATA_TOO_LONG",
"ENCRYPTION_DECLINED", "ENCRYPTION_DECLINED",
"MSG_WAIT_FAILED" "MSG_WAIT_FAILED"
], ],
@ -1438,9 +1461,6 @@
"contacts.resetTopPeerRating": [ "contacts.resetTopPeerRating": [
"PEER_ID_INVALID" "PEER_ID_INVALID"
], ],
"messages.deleteChat": [
"PEER_ID_INVALID"
],
"messages.editExportedChatInvite": [ "messages.editExportedChatInvite": [
"PEER_ID_INVALID" "PEER_ID_INVALID"
], ],
@ -1448,7 +1468,8 @@
"PEER_ID_INVALID" "PEER_ID_INVALID"
], ],
"messages.getStatsURL": [ "messages.getStatsURL": [
"PEER_ID_INVALID" "PEER_ID_INVALID",
"UNKNOWN_ERROR"
], ],
"messages.hideReportSpam": [ "messages.hideReportSpam": [
"PEER_ID_INVALID" "PEER_ID_INVALID"
@ -1465,6 +1486,7 @@
], ],
"account.changePhone": [ "account.changePhone": [
"PHONE_CODE_EMPTY", "PHONE_CODE_EMPTY",
"PHONE_CODE_EXPIRED",
"PHONE_NUMBER_INVALID", "PHONE_NUMBER_INVALID",
"PHONE_NUMBER_OCCUPIED" "PHONE_NUMBER_OCCUPIED"
], ],
@ -1787,7 +1809,8 @@
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
], ],
"channels.joinChannel": [ "channels.joinChannel": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED"
], ],
"channels.leaveChannel": [ "channels.leaveChannel": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
@ -1835,7 +1858,8 @@
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
], ],
"messages.checkChatInvite": [ "messages.checkChatInvite": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED"
], ],
"messages.deleteHistory": [ "messages.deleteHistory": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
@ -1843,6 +1867,9 @@
"messages.editMessage": [ "messages.editMessage": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
], ],
"messages.exportChatInvite": [
"AUTH_KEY_DUPLICATED"
],
"messages.forwardMessages": [ "messages.forwardMessages": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
], ],
@ -1871,7 +1898,8 @@
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
], ],
"messages.importChatInvite": [ "messages.importChatInvite": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED"
], ],
"messages.readHistory": [ "messages.readHistory": [
"AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED"
@ -1973,7 +2001,8 @@
"SEND_CODE_UNAVAILABLE" "SEND_CODE_UNAVAILABLE"
], ],
"auth.signIn": [ "auth.signIn": [
"PHONE_NUMBER_INVALID" "PHONE_NUMBER_INVALID",
"UPDATE_APP_TO_LOGIN"
], ],
"auth.signUp": [ "auth.signUp": [
"PHONE_NUMBER_INVALID" "PHONE_NUMBER_INVALID"
@ -2215,6 +2244,9 @@
"messages.exportChatInvite": [ "messages.exportChatInvite": [
"CHAT_WRITE_FORBIDDEN" "CHAT_WRITE_FORBIDDEN"
], ],
"messages.getAdminsWithInvites": [
"CHAT_WRITE_FORBIDDEN"
],
"messages.sendMessage": [ "messages.sendMessage": [
"CHAT_WRITE_FORBIDDEN", "CHAT_WRITE_FORBIDDEN",
"USER_IS_BLOCKED" "USER_IS_BLOCKED"
@ -2617,6 +2649,9 @@
"ACTIVE_USER_REQUIRED": [ "ACTIVE_USER_REQUIRED": [
"The method is only available to already activated users" "The method is only available to already activated users"
], ],
"ADMIN_ID_INVALID": [
"The specified admin ID is invalid"
],
"ADMIN_RANK_EMOJI_NOT_ALLOWED": [ "ADMIN_RANK_EMOJI_NOT_ALLOWED": [
"An admin rank cannot contain emojis" "An admin rank cannot contain emojis"
], ],
@ -3235,6 +3270,9 @@
"INVITE_HASH_INVALID": [ "INVITE_HASH_INVALID": [
"The invite hash is invalid" "The invite hash is invalid"
], ],
"INVITE_REQUEST_SENT": [
""
],
"LANG_CODE_INVALID": [ "LANG_CODE_INVALID": [
"The specified language code is invalid" "The specified language code is invalid"
], ],
@ -3676,6 +3714,9 @@
"SECONDS_INVALID": [ "SECONDS_INVALID": [
"Invalid duration provided" "Invalid duration provided"
], ],
"SEND_AS_PEER_INVALID": [
"You can't send messages as the specified peer"
],
"SEND_CODE_UNAVAILABLE": [ "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)" "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": [ "UNTIL_DATE_INVALID": [
"Invalid until date provided" "Invalid until date provided"
], ],
"UPDATE_APP_TO_LOGIN": [
"Please update to the latest version of MadelineProto to login."
],
"UPLOAD_NO_VOLUME": [ "UPLOAD_NO_VOLUME": [
"An internal error occurred" "An internal error occurred"
], ],

204
v2.json
View File

@ -82,6 +82,18 @@
"error_description": "Auth key invalid" "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": [ "channels.editAdmin": [
{ {
"error_code": 400, "error_code": 400,
@ -537,11 +549,21 @@
"error_message": "INVITE_HASH_EXPIRED", "error_message": "INVITE_HASH_EXPIRED",
"error_description": "The invite link has 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_code": 400,
"error_message": "INVITE_HASH_INVALID", "error_message": "INVITE_HASH_INVALID",
"error_description": "The invite hash is invalid" "error_description": "The invite hash is invalid"
}, },
{
"error_code": 400,
"error_message": "INVITE_REQUEST_SENT",
"error_description": ""
},
{ {
"error_code": 400, "error_code": 400,
"error_message": "MSG_ID_INVALID", "error_message": "MSG_ID_INVALID",
@ -859,6 +881,11 @@
"error_message": "INVITE_HASH_EXPIRED", "error_message": "INVITE_HASH_EXPIRED",
"error_description": "The invite link has 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_code": 400,
"error_message": "INVITE_HASH_INVALID", "error_message": "INVITE_HASH_INVALID",
@ -1043,6 +1070,11 @@
"error_message": "SCHEDULE_TOO_MUCH", "error_message": "SCHEDULE_TOO_MUCH",
"error_description": "There are too many scheduled messages" "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_code": 400,
"error_message": "SLOWMODE_MULTI_MSGS_DISABLED", "error_message": "SLOWMODE_MULTI_MSGS_DISABLED",
@ -1402,11 +1434,21 @@
"error_message": "INVITE_HASH_EXPIRED", "error_message": "INVITE_HASH_EXPIRED",
"error_description": "The invite link has 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_code": 400,
"error_message": "INVITE_HASH_INVALID", "error_message": "INVITE_HASH_INVALID",
"error_description": "The invite hash is invalid" "error_description": "The invite hash is invalid"
}, },
{
"error_code": 400,
"error_message": "INVITE_REQUEST_SENT",
"error_description": ""
},
{ {
"error_code": 400, "error_code": 400,
"error_message": "MSG_ID_INVALID", "error_message": "MSG_ID_INVALID",
@ -1646,6 +1688,11 @@
"error_message": "SCHEDULE_TOO_MUCH", "error_message": "SCHEDULE_TOO_MUCH",
"error_description": "There are too many scheduled messages" "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_code": 420,
"error_message": "SLOWMODE_WAIT_X", "error_message": "SLOWMODE_WAIT_X",
@ -2282,6 +2329,11 @@
"error_message": "STICKER_DOCUMENT_INVALID", "error_message": "STICKER_DOCUMENT_INVALID",
"error_description": "The specified sticker document is 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_code": 400,
"error_message": "USER_BOT_INVALID", "error_message": "USER_BOT_INVALID",
@ -3137,6 +3189,48 @@
"error_description": "You're banned from sending messages in supergroups\/channels" "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": [ "messages.getMessages": [
{ {
"error_code": 406, "error_code": 406,
@ -3551,6 +3645,11 @@
"error_message": "SCHEDULE_TOO_MUCH", "error_message": "SCHEDULE_TOO_MUCH",
"error_description": "There are too many scheduled messages" "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_code": 420,
"error_message": "SLOWMODE_WAIT_X", "error_message": "SLOWMODE_WAIT_X",
@ -5512,49 +5611,17 @@
"error_description": "The provided peer id is invalid" "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": [ "messages.getOnlines": [
{ {
"error_code": 400, "error_code": 400,
"error_message": "CHANNEL_PRIVATE", "error_message": "CHANNEL_PRIVATE",
"error_description": "You haven't joined this channel\/supergroup" "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_code": 400,
"error_message": "PEER_ID_INVALID", "error_message": "PEER_ID_INVALID",
@ -5745,6 +5812,25 @@
"error_description": "You're not a member of this supergroup\/channel" "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": [ "messages.getMessageEditData": [
{ {
"error_code": 400, "error_code": 400,
@ -5797,6 +5883,11 @@
"error_message": "CHAT_ADMIN_REQUIRED", "error_message": "CHAT_ADMIN_REQUIRED",
"error_description": "You must be an admin in this chat to do this" "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_code": 400,
"error_message": "SCHEDULE_DATE_INVALID", "error_message": "SCHEDULE_DATE_INVALID",
@ -5837,6 +5928,18 @@
"error_description": "The secret chat was already declined" "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": [ "messages.editChatAdmin": [
{ {
"error_code": 400, "error_code": 400,
@ -5992,6 +6095,11 @@
"error_message": "DATA_INVALID", "error_message": "DATA_INVALID",
"error_description": "Encrypted data invalid" "error_description": "Encrypted data invalid"
}, },
{
"error_code": 400,
"error_message": "DATA_TOO_LONG",
"error_description": "Data too long"
},
{ {
"error_code": 400, "error_code": 400,
"error_message": "ENCRYPTION_DECLINED", "error_message": "ENCRYPTION_DECLINED",
@ -7126,13 +7234,6 @@
"error_description": "The provided peer id is invalid" "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": [ "messages.editExportedChatInvite": [
{ {
"error_code": 400, "error_code": 400,
@ -7152,6 +7253,11 @@
"error_code": 400, "error_code": 400,
"error_message": "PEER_ID_INVALID", "error_message": "PEER_ID_INVALID",
"error_description": "The provided peer id is invalid" "error_description": "The provided peer id is invalid"
},
{
"error_code": 400,
"error_message": "UNKNOWN_ERROR",
"error_description": "Internal error"
} }
], ],
"messages.hideReportSpam": [ "messages.hideReportSpam": [
@ -7193,6 +7299,11 @@
"error_message": "PHONE_CODE_EMPTY", "error_message": "PHONE_CODE_EMPTY",
"error_description": "phone_code is missing" "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_code": 400,
"error_message": "PHONE_NUMBER_INVALID", "error_message": "PHONE_NUMBER_INVALID",
@ -7261,6 +7372,11 @@
"error_code": 401, "error_code": 401,
"error_message": "SESSION_PASSWORD_NEEDED", "error_message": "SESSION_PASSWORD_NEEDED",
"error_description": "2FA is enabled, use a password to login" "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": [ "auth.cancelCode": [

52
v3.json
View File

@ -36,6 +36,10 @@
"API_ID_INVALID": "API_ID_INVALID", "API_ID_INVALID": "API_ID_INVALID",
"API_ID_PUBLISHED_FLOOD": "API_ID_PUBLISHED_FLOOD" "API_ID_PUBLISHED_FLOOD": "API_ID_PUBLISHED_FLOOD"
}, },
"messages.getExportedChatInvites": {
"ADMIN_ID_INVALID": "ADMIN_ID_INVALID",
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
},
"channels.editAdmin": { "channels.editAdmin": {
"ADMIN_RANK_EMOJI_NOT_ALLOWED": "ADMIN_RANK_EMOJI_NOT_ALLOWED", "ADMIN_RANK_EMOJI_NOT_ALLOWED": "ADMIN_RANK_EMOJI_NOT_ALLOWED",
"ADMIN_RANK_INVALID": "ADMIN_RANK_INVALID", "ADMIN_RANK_INVALID": "ADMIN_RANK_INVALID",
@ -115,6 +119,7 @@
"SEND_MESSAGE_TYPE_INVALID": "SEND_MESSAGE_TYPE_INVALID", "SEND_MESSAGE_TYPE_INVALID": "SEND_MESSAGE_TYPE_INVALID",
"START_PARAM_INVALID": "START_PARAM_INVALID", "START_PARAM_INVALID": "START_PARAM_INVALID",
"STICKER_DOCUMENT_INVALID": "STICKER_DOCUMENT_INVALID", "STICKER_DOCUMENT_INVALID": "STICKER_DOCUMENT_INVALID",
"URL_INVALID": "URL_INVALID",
"USER_BOT_INVALID": "USER_BOT_INVALID", "USER_BOT_INVALID": "USER_BOT_INVALID",
"VIDEO_TITLE_EMPTY": "VIDEO_TITLE_EMPTY", "VIDEO_TITLE_EMPTY": "VIDEO_TITLE_EMPTY",
"WEBDOCUMENT_INVALID": "WEBDOCUMENT_INVALID", "WEBDOCUMENT_INVALID": "WEBDOCUMENT_INVALID",
@ -194,6 +199,7 @@
"SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE",
"SCHEDULE_STATUS_PRIVATE": "SCHEDULE_STATUS_PRIVATE", "SCHEDULE_STATUS_PRIVATE": "SCHEDULE_STATUS_PRIVATE",
"SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH",
"SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID",
"USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL",
"USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BLOCKED": "USER_IS_BLOCKED",
"USER_IS_BOT": "USER_IS_BOT", "USER_IS_BOT": "USER_IS_BOT",
@ -342,6 +348,7 @@
"SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_BOT_NOT_ALLOWED": "SCHEDULE_BOT_NOT_ALLOWED",
"SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE",
"SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH",
"SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID",
"TTL_MEDIA_INVALID": "TTL_MEDIA_INVALID", "TTL_MEDIA_INVALID": "TTL_MEDIA_INVALID",
"USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL",
"USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BLOCKED": "USER_IS_BLOCKED",
@ -392,6 +399,7 @@
"RANDOM_ID_INVALID": "RANDOM_ID_INVALID", "RANDOM_ID_INVALID": "RANDOM_ID_INVALID",
"SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_DATE_TOO_LATE": "SCHEDULE_DATE_TOO_LATE",
"SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH", "SCHEDULE_TOO_MUCH": "SCHEDULE_TOO_MUCH",
"SEND_AS_PEER_INVALID": "SEND_AS_PEER_INVALID",
"SLOWMODE_MULTI_MSGS_DISABLED": "SLOWMODE_MULTI_MSGS_DISABLED", "SLOWMODE_MULTI_MSGS_DISABLED": "SLOWMODE_MULTI_MSGS_DISABLED",
"USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL", "USER_BANNED_IN_CHANNEL": "USER_BANNED_IN_CHANNEL",
"USER_IS_BLOCKED": "USER_IS_BLOCKED", "USER_IS_BLOCKED": "USER_IS_BLOCKED",
@ -608,6 +616,7 @@
"INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY",
"INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED",
"INVITE_HASH_INVALID": "INVITE_HASH_INVALID", "INVITE_HASH_INVALID": "INVITE_HASH_INVALID",
"INVITE_REQUEST_SENT": "INVITE_REQUEST_SENT",
"MSG_ID_INVALID": "MSG_ID_INVALID", "MSG_ID_INVALID": "MSG_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID",
"USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT", "USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT",
@ -732,6 +741,7 @@
"INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY", "INVITE_HASH_EMPTY": "INVITE_HASH_EMPTY",
"INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED", "INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED",
"INVITE_HASH_INVALID": "INVITE_HASH_INVALID", "INVITE_HASH_INVALID": "INVITE_HASH_INVALID",
"INVITE_REQUEST_SENT": "INVITE_REQUEST_SENT",
"MSG_ID_INVALID": "MSG_ID_INVALID", "MSG_ID_INVALID": "MSG_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID",
"USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT", "USER_ALREADY_PARTICIPANT": "USER_ALREADY_PARTICIPANT",
@ -904,6 +914,7 @@
}, },
"messages.getOnlines": { "messages.getOnlines": {
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE", "CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID"
}, },
"messages.readHistory": { "messages.readHistory": {
@ -981,6 +992,12 @@
"USER_ID_INVALID": "USER_ID_INVALID", "USER_ID_INVALID": "USER_ID_INVALID",
"USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT" "USER_NOT_PARTICIPANT": "USER_NOT_PARTICIPANT"
}, },
"messages.getAdminsWithInvites": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
},
"messages.getChatInviteImporters": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
},
"messages.getMessageEditData": { "messages.getMessageEditData": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
"MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID", "MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID",
@ -996,6 +1013,7 @@
}, },
"phone.createGroupCall": { "phone.createGroupCall": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED", "CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
"PEER_ID_INVALID": "PEER_ID_INVALID",
"SCHEDULE_DATE_INVALID": "SCHEDULE_DATE_INVALID" "SCHEDULE_DATE_INVALID": "SCHEDULE_DATE_INVALID"
}, },
"messages.discardEncryption": { "messages.discardEncryption": {
@ -1008,6 +1026,10 @@
"ENCRYPTION_ALREADY_ACCEPTED": "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_ACCEPTED": "ENCRYPTION_ALREADY_ACCEPTED",
"ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED" "ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED"
}, },
"messages.deleteChat": {
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.editChatAdmin": { "messages.editChatAdmin": {
"CHAT_ID_INVALID": "CHAT_ID_INVALID", "CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID", "PEER_ID_INVALID": "PEER_ID_INVALID",
@ -1049,6 +1071,7 @@
"messages.sendEncrypted": { "messages.sendEncrypted": {
"CHAT_ID_INVALID": "CHAT_ID_INVALID", "CHAT_ID_INVALID": "CHAT_ID_INVALID",
"DATA_INVALID": "DATA_INVALID", "DATA_INVALID": "DATA_INVALID",
"DATA_TOO_LONG": "DATA_TOO_LONG",
"ENCRYPTION_DECLINED": "ENCRYPTION_DECLINED", "ENCRYPTION_DECLINED": "ENCRYPTION_DECLINED",
"MSG_WAIT_FAILED": "MSG_WAIT_FAILED" "MSG_WAIT_FAILED": "MSG_WAIT_FAILED"
}, },
@ -1438,9 +1461,6 @@
"contacts.resetTopPeerRating": { "contacts.resetTopPeerRating": {
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID"
}, },
"messages.deleteChat": {
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.editExportedChatInvite": { "messages.editExportedChatInvite": {
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID"
}, },
@ -1448,7 +1468,8 @@
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID"
}, },
"messages.getStatsURL": { "messages.getStatsURL": {
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID",
"UNKNOWN_ERROR": "UNKNOWN_ERROR"
}, },
"messages.hideReportSpam": { "messages.hideReportSpam": {
"PEER_ID_INVALID": "PEER_ID_INVALID" "PEER_ID_INVALID": "PEER_ID_INVALID"
@ -1465,6 +1486,7 @@
}, },
"account.changePhone": { "account.changePhone": {
"PHONE_CODE_EMPTY": "PHONE_CODE_EMPTY", "PHONE_CODE_EMPTY": "PHONE_CODE_EMPTY",
"PHONE_CODE_EXPIRED": "PHONE_CODE_EXPIRED",
"PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID", "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID",
"PHONE_NUMBER_OCCUPIED": "PHONE_NUMBER_OCCUPIED" "PHONE_NUMBER_OCCUPIED": "PHONE_NUMBER_OCCUPIED"
}, },
@ -2084,7 +2106,8 @@
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
}, },
"channels.joinChannel": { "channels.joinChannel": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED"
}, },
"channels.leaveChannel": { "channels.leaveChannel": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
@ -2132,7 +2155,8 @@
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
}, },
"messages.checkChatInvite": { "messages.checkChatInvite": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED"
}, },
"messages.deleteHistory": { "messages.deleteHistory": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
@ -2140,6 +2164,9 @@
"messages.editMessage": { "messages.editMessage": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
}, },
"messages.exportChatInvite": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"messages.forwardMessages": { "messages.forwardMessages": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
}, },
@ -2168,7 +2195,8 @@
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
}, },
"messages.importChatInvite": { "messages.importChatInvite": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED",
"INVITE_HASH_EXPIRED": "INVITE_HASH_EXPIRED"
}, },
"messages.readHistory": { "messages.readHistory": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED" "AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
@ -2270,7 +2298,8 @@
"SEND_CODE_UNAVAILABLE": "SEND_CODE_UNAVAILABLE" "SEND_CODE_UNAVAILABLE": "SEND_CODE_UNAVAILABLE"
}, },
"auth.signIn": { "auth.signIn": {
"PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID" "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID",
"UPDATE_APP_TO_LOGIN": "UPDATE_APP_TO_LOGIN"
}, },
"auth.signUp": { "auth.signUp": {
"PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID" "PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID"
@ -2512,6 +2541,9 @@
"messages.exportChatInvite": { "messages.exportChatInvite": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN" "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
}, },
"messages.getAdminsWithInvites": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
},
"messages.sendMessage": { "messages.sendMessage": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN", "CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN",
"USER_IS_BLOCKED": "USER_IS_BLOCKED" "USER_IS_BLOCKED": "USER_IS_BLOCKED"
@ -2902,6 +2934,7 @@
"ACCESS_TOKEN_EXPIRED": "Access token expired", "ACCESS_TOKEN_EXPIRED": "Access token expired",
"ACCESS_TOKEN_INVALID": "Access token invalid", "ACCESS_TOKEN_INVALID": "Access token invalid",
"ACTIVE_USER_REQUIRED": "The method is only available to already activated users", "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_EMOJI_NOT_ALLOWED": "An admin rank cannot contain emojis",
"ADMIN_RANK_INVALID": "The specified admin rank is invalid.", "ADMIN_RANK_INVALID": "The specified admin rank is invalid.",
"ADMINS_TOO_MUCH": "There are too many admins", "ADMINS_TOO_MUCH": "There are too many admins",
@ -3108,6 +3141,7 @@
"INVITE_HASH_EMPTY": "The invite hash is empty", "INVITE_HASH_EMPTY": "The invite hash is empty",
"INVITE_HASH_EXPIRED": "The invite link has expired", "INVITE_HASH_EXPIRED": "The invite link has expired",
"INVITE_HASH_INVALID": "The invite hash is invalid", "INVITE_HASH_INVALID": "The invite hash is invalid",
"INVITE_REQUEST_SENT": "",
"LANG_CODE_INVALID": "The specified language code is invalid", "LANG_CODE_INVALID": "The specified language code is invalid",
"LANG_PACK_INVALID": "The provided language pack is invalid", "LANG_PACK_INVALID": "The provided language pack is invalid",
"LASTNAME_INVALID": "The last name is invalid", "LASTNAME_INVALID": "The last name is invalid",
@ -3255,6 +3289,7 @@
"SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SCHEDULE_TOO_MUCH": "There are too many scheduled messages",
"SEARCH_QUERY_EMPTY": "The search query is empty", "SEARCH_QUERY_EMPTY": "The search query is empty",
"SECONDS_INVALID": "Invalid duration provided", "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_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_MEDIA_INVALID": "Invalid media provided",
"SEND_MESSAGE_TYPE_INVALID": "The message type is invalid", "SEND_MESSAGE_TYPE_INVALID": "The message type is invalid",
@ -3312,6 +3347,7 @@
"UNKNOWN_ERROR": "Internal error", "UNKNOWN_ERROR": "Internal error",
"UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs", "UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs",
"UNTIL_DATE_INVALID": "Invalid until date provided", "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", "UPLOAD_NO_VOLUME": "An internal error occurred",
"URL_INVALID": "Invalid URL provided", "URL_INVALID": "Invalid URL provided",
"USAGE_LIMIT_INVALID": "The specified usage limit is invalid", "USAGE_LIMIT_INVALID": "The specified usage limit is invalid",

38
v4.json
View File

@ -26,6 +26,9 @@
"ACCESS_TOKEN_INVALID": [ "ACCESS_TOKEN_INVALID": [
"auth.importBotAuthorization" "auth.importBotAuthorization"
], ],
"ADMIN_ID_INVALID": [
"messages.getExportedChatInvites"
],
"ADMIN_RANK_EMOJI_NOT_ALLOWED": [ "ADMIN_RANK_EMOJI_NOT_ALLOWED": [
"channels.editAdmin" "channels.editAdmin"
], ],
@ -364,6 +367,9 @@
"messages.editMessage", "messages.editMessage",
"messages.exportChatInvite", "messages.exportChatInvite",
"messages.forwardMessages", "messages.forwardMessages",
"messages.getAdminsWithInvites",
"messages.getChatInviteImporters",
"messages.getExportedChatInvites",
"messages.getMessageEditData", "messages.getMessageEditData",
"messages.getScheduledHistory", "messages.getScheduledHistory",
"messages.getScheduledMessages", "messages.getScheduledMessages",
@ -393,6 +399,7 @@
"channels.updatePinnedMessage", "channels.updatePinnedMessage",
"messages.acceptEncryption", "messages.acceptEncryption",
"messages.addChatUser", "messages.addChatUser",
"messages.deleteChat",
"messages.deleteChatUser", "messages.deleteChatUser",
"messages.deleteHistory", "messages.deleteHistory",
"messages.editChatAbout", "messages.editChatAbout",
@ -406,6 +413,7 @@
"messages.getFullChat", "messages.getFullChat",
"messages.getHistory", "messages.getHistory",
"messages.getMessagesViews", "messages.getMessagesViews",
"messages.getOnlines",
"messages.migrateChat", "messages.migrateChat",
"messages.readHistory", "messages.readHistory",
"messages.reportEncryptedSpam", "messages.reportEncryptedSpam",
@ -542,6 +550,7 @@
"phone.saveCallDebug" "phone.saveCallDebug"
], ],
"DATA_TOO_LONG": [ "DATA_TOO_LONG": [
"messages.sendEncrypted",
"messages.sendEncryptedFile" "messages.sendEncryptedFile"
], ],
"DATE_EMPTY": [ "DATE_EMPTY": [
@ -859,6 +868,10 @@
"messages.checkChatInvite", "messages.checkChatInvite",
"messages.importChatInvite" "messages.importChatInvite"
], ],
"INVITE_REQUEST_SENT": [
"channels.joinChannel",
"messages.importChatInvite"
],
"LANG_CODE_INVALID": [ "LANG_CODE_INVALID": [
"bots.setBotCommands" "bots.setBotCommands"
], ],
@ -1180,6 +1193,7 @@
"messages.toggleDialogPin", "messages.toggleDialogPin",
"messages.updatePinnedMessage", "messages.updatePinnedMessage",
"messages.uploadMedia", "messages.uploadMedia",
"phone.createGroupCall",
"stickers.createStickerSet", "stickers.createStickerSet",
"upload.getFile" "upload.getFile"
], ],
@ -1202,6 +1216,7 @@
"auth.signUp" "auth.signUp"
], ],
"PHONE_CODE_EXPIRED": [ "PHONE_CODE_EXPIRED": [
"account.changePhone",
"account.verifyPhone", "account.verifyPhone",
"auth.cancelCode", "auth.cancelCode",
"auth.resendCode", "auth.resendCode",
@ -1440,6 +1455,11 @@
"SECONDS_INVALID": [ "SECONDS_INVALID": [
"channels.toggleSlowMode" "channels.toggleSlowMode"
], ],
"SEND_AS_PEER_INVALID": [
"messages.forwardMessages",
"messages.sendMedia",
"messages.sendMessage"
],
"SEND_MESSAGE_MEDIA_INVALID": [ "SEND_MESSAGE_MEDIA_INVALID": [
"messages.setInlineBotResults" "messages.setInlineBotResults"
], ],
@ -1581,6 +1601,7 @@
], ],
"UNKNOWN_ERROR": [ "UNKNOWN_ERROR": [
"channels.viewSponsoredMessage", "channels.viewSponsoredMessage",
"messages.getStatsURL",
"req_DH_params", "req_DH_params",
"req_pq_multi", "req_pq_multi",
"set_client_DH_params" "set_client_DH_params"
@ -1589,7 +1610,8 @@
"messages.editChatDefaultBannedRights" "messages.editChatDefaultBannedRights"
], ],
"URL_INVALID": [ "URL_INVALID": [
"messages.setBotCallbackAnswer" "messages.setBotCallbackAnswer",
"messages.setInlineBotResults"
], ],
"USAGE_LIMIT_INVALID": [ "USAGE_LIMIT_INVALID": [
"messages.exportChatInvite" "messages.exportChatInvite"
@ -2108,6 +2130,7 @@
"messages.checkChatInvite", "messages.checkChatInvite",
"messages.deleteHistory", "messages.deleteHistory",
"messages.editMessage", "messages.editMessage",
"messages.exportChatInvite",
"messages.forwardMessages", "messages.forwardMessages",
"messages.getAllChats", "messages.getAllChats",
"messages.getBotCallbackAnswer", "messages.getBotCallbackAnswer",
@ -2158,6 +2181,11 @@
"account.resetAuthorization", "account.resetAuthorization",
"auth.resetAuthorizations" "auth.resetAuthorizations"
], ],
"INVITE_HASH_EXPIRED": [
"channels.joinChannel",
"messages.checkChatInvite",
"messages.importChatInvite"
],
"PHONE_NUMBER_INVALID": [ "PHONE_NUMBER_INVALID": [
"account.changePhone", "account.changePhone",
"account.sendChangePhoneCode", "account.sendChangePhoneCode",
@ -2180,6 +2208,9 @@
"STICKERSET_OWNER_ANONYMOUS": [ "STICKERSET_OWNER_ANONYMOUS": [
"channels.setStickers" "channels.setStickers"
], ],
"UPDATE_APP_TO_LOGIN": [
"auth.signIn"
],
"USER_RESTRICTED": [ "USER_RESTRICTED": [
"channels.createChannel" "channels.createChannel"
], ],
@ -2301,6 +2332,7 @@
"messages.editMessage", "messages.editMessage",
"messages.exportChatInvite", "messages.exportChatInvite",
"messages.forwardMessages", "messages.forwardMessages",
"messages.getAdminsWithInvites",
"messages.sendInlineBotResult", "messages.sendInlineBotResult",
"messages.sendMedia", "messages.sendMedia",
"messages.sendMessage", "messages.sendMessage",
@ -2512,6 +2544,7 @@
"ACCESS_TOKEN_EXPIRED": "Access token expired", "ACCESS_TOKEN_EXPIRED": "Access token expired",
"ACCESS_TOKEN_INVALID": "Access token invalid", "ACCESS_TOKEN_INVALID": "Access token invalid",
"ACTIVE_USER_REQUIRED": "The method is only available to already activated users", "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_EMOJI_NOT_ALLOWED": "An admin rank cannot contain emojis",
"ADMIN_RANK_INVALID": "The specified admin rank is invalid.", "ADMIN_RANK_INVALID": "The specified admin rank is invalid.",
"ADMINS_TOO_MUCH": "There are too many admins", "ADMINS_TOO_MUCH": "There are too many admins",
@ -2718,6 +2751,7 @@
"INVITE_HASH_EMPTY": "The invite hash is empty", "INVITE_HASH_EMPTY": "The invite hash is empty",
"INVITE_HASH_EXPIRED": "The invite link has expired", "INVITE_HASH_EXPIRED": "The invite link has expired",
"INVITE_HASH_INVALID": "The invite hash is invalid", "INVITE_HASH_INVALID": "The invite hash is invalid",
"INVITE_REQUEST_SENT": "",
"LANG_CODE_INVALID": "The specified language code is invalid", "LANG_CODE_INVALID": "The specified language code is invalid",
"LANG_PACK_INVALID": "The provided language pack is invalid", "LANG_PACK_INVALID": "The provided language pack is invalid",
"LASTNAME_INVALID": "The last name is invalid", "LASTNAME_INVALID": "The last name is invalid",
@ -2865,6 +2899,7 @@
"SCHEDULE_TOO_MUCH": "There are too many scheduled messages", "SCHEDULE_TOO_MUCH": "There are too many scheduled messages",
"SEARCH_QUERY_EMPTY": "The search query is empty", "SEARCH_QUERY_EMPTY": "The search query is empty",
"SECONDS_INVALID": "Invalid duration provided", "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_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_MEDIA_INVALID": "Invalid media provided",
"SEND_MESSAGE_TYPE_INVALID": "The message type is invalid", "SEND_MESSAGE_TYPE_INVALID": "The message type is invalid",
@ -2922,6 +2957,7 @@
"UNKNOWN_ERROR": "Internal error", "UNKNOWN_ERROR": "Internal error",
"UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs", "UNKNOWN_METHOD": "The method you tried to call cannot be called on non-CDN DCs",
"UNTIL_DATE_INVALID": "Invalid until date provided", "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", "UPLOAD_NO_VOLUME": "An internal error occurred",
"URL_INVALID": "Invalid URL provided", "URL_INVALID": "Invalid URL provided",
"USAGE_LIMIT_INVALID": "The specified usage limit is invalid", "USAGE_LIMIT_INVALID": "The specified usage limit is invalid",