1
0
mirror of https://github.com/danog/rpc-db.git synced 2024-11-26 12:04:45 +01:00
This commit is contained in:
Daniil Gentili 2020-11-29 10:05:06 +00:00
parent b8305f477e
commit 92df77c293
4 changed files with 215 additions and 49 deletions

51
v1.json
View File

@ -348,6 +348,7 @@
],
"updates.getDifference": [
"CDN_METHOD_INVALID",
"CONNECTION_DEVICE_MODEL_EMPTY",
"DATE_EMPTY",
"PERSISTENT_TIMESTAMP_EMPTY",
"PERSISTENT_TIMESTAMP_INVALID"
@ -639,7 +640,8 @@
],
"msgs_state_req": [
"CHANNEL_INVALID",
"MSG_ID_INVALID"
"MSG_ID_INVALID",
"USER_IS_BLOCKED"
],
"stats.getMessagePublicForwards": [
"CHANNEL_INVALID",
@ -648,6 +650,7 @@
"updates.getChannelDifference": [
"CHANNEL_INVALID",
"CHANNEL_PRIVATE",
"CONNECTION_DEVICE_MODEL_EMPTY",
"FROM_MESSAGE_BOT_DISABLED",
"MSG_ID_INVALID",
"PERSISTENT_TIMESTAMP_EMPTY",
@ -686,6 +689,13 @@
"SESSION_TOO_FRESH_X",
"USER_ID_INVALID"
],
"messages.deleteHistory": [
"CHANNEL_PRIVATE",
"CHAT_ID_INVALID",
"MESSAGE_ID_INVALID",
"MSG_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.exportChatInvite": [
"CHANNEL_PRIVATE",
"CHAT_ADMIN_REQUIRED",
@ -761,6 +771,9 @@
"PEER_ID_INVALID",
"RANDOM_ID_EMPTY"
],
"stats.getMegagroupStats": [
"CHAT_ADMIN_REQUIRED"
],
"stats.getMessageStats": [
"CHAT_ADMIN_REQUIRED"
],
@ -774,12 +787,6 @@
"ENCRYPTION_ALREADY_ACCEPTED",
"ENCRYPTION_ALREADY_DECLINED"
],
"messages.deleteHistory": [
"CHAT_ID_INVALID",
"MESSAGE_ID_INVALID",
"MSG_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.editChatAdmin": [
"CHAT_ID_INVALID",
"PEER_ID_INVALID",
@ -928,7 +935,8 @@
"NEW_SALT_INVALID",
"NEW_SETTINGS_INVALID",
"PASSWORD_HASH_INVALID",
"SRP_ID_INVALID"
"SRP_ID_INVALID",
"SRP_PASSWORD_CHANGED"
],
"account.verifyEmail": [
"EMAIL_VERIFY_EXPIRED"
@ -939,7 +947,8 @@
"TEMP_AUTH_KEY_EMPTY"
],
"msgs_ack": [
"ENCRYPTED_MESSAGE_INVALID"
"ENCRYPTED_MESSAGE_INVALID",
"USER_IS_BLOCKED"
],
"messages.setBotPrecheckoutResults": [
"ERROR_TEXT_EMPTY"
@ -1294,6 +1303,9 @@
"account.checkUsername": [
"AUTH_KEY_DUPLICATED"
],
"account.deleteAccount": [
"AUTH_KEY_DUPLICATED"
],
"account.getAuthorizations": [
"AUTH_KEY_DUPLICATED"
],
@ -1339,6 +1351,9 @@
"channels.readHistory": [
"AUTH_KEY_DUPLICATED"
],
"channels.readMessageContents": [
"AUTH_KEY_DUPLICATED"
],
"channels.updateUsername": [
"AUTH_KEY_DUPLICATED"
],
@ -1378,6 +1393,9 @@
"messages.forwardMessages": [
"AUTH_KEY_DUPLICATED"
],
"messages.getAllChats": [
"AUTH_KEY_DUPLICATED"
],
"messages.getBotCallbackAnswer": [
"AUTH_KEY_DUPLICATED"
],
@ -1737,6 +1755,9 @@
"account.updateProfile": [
"No workers running"
],
"auth.bindTempAuthKey": [
"No workers running"
],
"auth.sendCode": [
"No workers running"
],
@ -1776,6 +1797,9 @@
"updates.getDifference": [
"No workers running"
],
"upload.getFile": [
"No workers running"
],
"users.getFullUser": [
"No workers running"
]
@ -1849,6 +1873,9 @@
"contacts.deleteContacts": [
"Timeout"
],
"contacts.getContactIDs": [
"Timeout"
],
"contacts.resolveUsername": [
"Timeout"
],
@ -1888,6 +1915,9 @@
"messages.getInlineBotResults": [
"Timeout"
],
"messages.getMessages": [
"Timeout"
],
"messages.getMessagesViews": [
"Timeout"
],
@ -1924,6 +1954,9 @@
"photos.deletePhotos": [
"Timeout"
],
"photos.updateProfilePhoto": [
"Timeout"
],
"photos.uploadProfilePhoto": [
"Timeout"
],

139
v2.json
View File

@ -6,6 +6,11 @@
"error_code": 420,
"error_message": "2FA_CONFIRM_WAIT_X",
"error_description": "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 X seconds."
},
{
"error_code": 406,
"error_message": "AUTH_KEY_DUPLICATED",
"error_description": "An auth key with the same ID was already generated"
}
],
"account.updateProfile": [
@ -933,6 +938,33 @@
"error_description": "Timeout while fetching data"
}
],
"channels.readMessageContents": [
{
"error_code": 406,
"error_message": "AUTH_KEY_DUPLICATED",
"error_description": "An auth key with the same ID was already generated"
},
{
"error_code": 400,
"error_message": "CHANNEL_INVALID",
"error_description": "The provided channel is invalid"
},
{
"error_code": 400,
"error_message": "CHANNEL_PRIVATE",
"error_description": "You haven't joined this channel\/supergroup"
},
{
"error_code": 400,
"error_message": "MSG_ID_INVALID",
"error_description": "Invalid message ID provided"
},
{
"error_code": -503,
"error_message": "Timeout",
"error_description": "Timeout while fetching data"
}
],
"channels.updateUsername": [
{
"error_code": 406,
@ -1207,6 +1239,11 @@
"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_ID_INVALID",
@ -1502,6 +1539,18 @@
"error_description": "You blocked this user"
}
],
"messages.getAllChats": [
{
"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"
}
],
"messages.getBotCallbackAnswer": [
{
"error_code": 406,
@ -2610,6 +2659,11 @@
"error_code": 400,
"error_message": "PHOTO_ID_INVALID",
"error_description": "Photo ID invalid"
},
{
"error_code": -503,
"error_message": "Timeout",
"error_description": "Timeout while fetching data"
}
],
"updates.getChannelDifference": [
@ -2633,6 +2687,11 @@
"error_message": "CHANNEL_PUBLIC_GROUP_NA",
"error_description": "channel\/supergroup not available"
},
{
"error_code": 400,
"error_message": "CONNECTION_DEVICE_MODEL_EMPTY",
"error_description": "Device model empty"
},
{
"error_code": 400,
"error_message": "FROM_MESSAGE_BOT_DISABLED",
@ -2695,6 +2754,11 @@
"error_message": "CDN_METHOD_INVALID",
"error_description": "You can't call this method in a CDN DC"
},
{
"error_code": 400,
"error_message": "CONNECTION_DEVICE_MODEL_EMPTY",
"error_description": "Device model empty"
},
{
"error_code": 400,
"error_message": "DATE_EMPTY",
@ -2804,6 +2868,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": "OFFSET_INVALID",
@ -3771,28 +3840,6 @@
"error_description": "You're not a member of this supergroup\/channel"
}
],
"channels.readMessageContents": [
{
"error_code": 400,
"error_message": "CHANNEL_INVALID",
"error_description": "The provided channel is invalid"
},
{
"error_code": 400,
"error_message": "CHANNEL_PRIVATE",
"error_description": "You haven't joined this channel\/supergroup"
},
{
"error_code": 400,
"error_message": "MSG_ID_INVALID",
"error_description": "Invalid message ID provided"
},
{
"error_code": -503,
"error_message": "Timeout",
"error_description": "Timeout while fetching data"
}
],
"channels.reportSpam": [
{
"error_code": 400,
@ -4103,6 +4150,11 @@
"error_code": 400,
"error_message": "MSG_ID_INVALID",
"error_description": "Invalid message ID provided"
},
{
"error_code": 400,
"error_message": "USER_IS_BLOCKED",
"error_description": "You were blocked by this user"
}
],
"stats.getMessagePublicForwards": [
@ -4386,6 +4438,13 @@
"error_description": "The provided peer id is invalid"
}
],
"stats.getMegagroupStats": [
{
"error_code": 400,
"error_message": "CHAT_ADMIN_REQUIRED",
"error_description": "You must be an admin in this chat to do this"
}
],
"stats.getMessageStats": [
{
"error_code": 400,
@ -4850,6 +4909,11 @@
"error_code": 400,
"error_message": "SRP_ID_INVALID",
"error_description": "Invalid SRP ID provided"
},
{
"error_code": 400,
"error_message": "SRP_PASSWORD_CHANGED",
"error_description": "Password has changed"
}
],
"account.verifyEmail": [
@ -4870,6 +4934,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": "TEMP_AUTH_KEY_EMPTY",
@ -4891,6 +4960,11 @@
"error_code": -500,
"error_message": "Invalid msgs_ack query",
"error_description": "Invalid msgs_ack query"
},
{
"error_code": 400,
"error_message": "USER_IS_BLOCKED",
"error_description": "You were blocked by this user"
}
],
"messages.setBotPrecheckoutResults": [
@ -5664,13 +5738,6 @@
"error_description": "2FA is enabled, use a password to login"
}
],
"messages.getAllChats": [
{
"error_code": 401,
"error_message": "SESSION_PASSWORD_NEEDED",
"error_description": "2FA is enabled, use a password to login"
}
],
"messages.getDocumentByHash": [
{
"error_code": 400,
@ -5774,6 +5841,20 @@
"error_description": "Timeout while fetching data"
}
],
"contacts.getContactIDs": [
{
"error_code": -503,
"error_message": "Timeout",
"error_description": "Timeout while fetching data"
}
],
"messages.getMessages": [
{
"error_code": -503,
"error_message": "Timeout",
"error_description": "Timeout while fetching data"
}
],
"account.registerDevice": [
{
"error_code": 400,

54
v3.json
View File

@ -348,6 +348,7 @@
},
"updates.getDifference": {
"CDN_METHOD_INVALID": "CDN_METHOD_INVALID",
"CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY",
"DATE_EMPTY": "DATE_EMPTY",
"PERSISTENT_TIMESTAMP_EMPTY": "PERSISTENT_TIMESTAMP_EMPTY",
"PERSISTENT_TIMESTAMP_INVALID": "PERSISTENT_TIMESTAMP_INVALID"
@ -639,7 +640,8 @@
},
"msgs_state_req": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
"MSG_ID_INVALID": "MSG_ID_INVALID"
"MSG_ID_INVALID": "MSG_ID_INVALID",
"USER_IS_BLOCKED": "USER_IS_BLOCKED"
},
"stats.getMessagePublicForwards": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
@ -648,6 +650,7 @@
"updates.getChannelDifference": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CONNECTION_DEVICE_MODEL_EMPTY": "CONNECTION_DEVICE_MODEL_EMPTY",
"FROM_MESSAGE_BOT_DISABLED": "FROM_MESSAGE_BOT_DISABLED",
"MSG_ID_INVALID": "MSG_ID_INVALID",
"PERSISTENT_TIMESTAMP_EMPTY": "PERSISTENT_TIMESTAMP_EMPTY",
@ -686,6 +689,13 @@
"SESSION_TOO_FRESH_X": "SESSION_TOO_FRESH_X",
"USER_ID_INVALID": "USER_ID_INVALID"
},
"messages.deleteHistory": {
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID",
"MSG_ID_INVALID": "MSG_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.exportChatInvite": {
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
@ -761,6 +771,9 @@
"PEER_ID_INVALID": "PEER_ID_INVALID",
"RANDOM_ID_EMPTY": "RANDOM_ID_EMPTY"
},
"stats.getMegagroupStats": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
},
"stats.getMessageStats": {
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
},
@ -774,12 +787,6 @@
"ENCRYPTION_ALREADY_ACCEPTED": "ENCRYPTION_ALREADY_ACCEPTED",
"ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED"
},
"messages.deleteHistory": {
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID",
"MSG_ID_INVALID": "MSG_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.editChatAdmin": {
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID",
@ -928,7 +935,8 @@
"NEW_SALT_INVALID": "NEW_SALT_INVALID",
"NEW_SETTINGS_INVALID": "NEW_SETTINGS_INVALID",
"PASSWORD_HASH_INVALID": "PASSWORD_HASH_INVALID",
"SRP_ID_INVALID": "SRP_ID_INVALID"
"SRP_ID_INVALID": "SRP_ID_INVALID",
"SRP_PASSWORD_CHANGED": "SRP_PASSWORD_CHANGED"
},
"account.verifyEmail": {
"EMAIL_VERIFY_EXPIRED": "EMAIL_VERIFY_EXPIRED"
@ -939,7 +947,8 @@
"TEMP_AUTH_KEY_EMPTY": "TEMP_AUTH_KEY_EMPTY"
},
"msgs_ack": {
"ENCRYPTED_MESSAGE_INVALID": "ENCRYPTED_MESSAGE_INVALID"
"ENCRYPTED_MESSAGE_INVALID": "ENCRYPTED_MESSAGE_INVALID",
"USER_IS_BLOCKED": "USER_IS_BLOCKED"
},
"messages.setBotPrecheckoutResults": {
"ERROR_TEXT_EMPTY": "ERROR_TEXT_EMPTY"
@ -1366,6 +1375,9 @@
"STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED",
"UPLOAD_NO_VOLUME": "UPLOAD_NO_VOLUME"
},
"account.updateProfile": {
"MEMBER_FETCH_FAILED": "MEMBER_FETCH_FAILED"
},
"users.getUsers": {
"MEMBER_NO_LOCATION": "MEMBER_NO_LOCATION",
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY",
@ -1535,6 +1547,9 @@
"account.checkUsername": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"account.deleteAccount": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"account.getAuthorizations": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
@ -1580,6 +1595,9 @@
"channels.readHistory": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"channels.readMessageContents": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"channels.updateUsername": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
@ -1619,6 +1637,9 @@
"messages.forwardMessages": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"messages.getAllChats": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
"messages.getBotCallbackAnswer": {
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
},
@ -1978,6 +1999,9 @@
"account.updateProfile": {
"No workers running": "No workers running"
},
"auth.bindTempAuthKey": {
"No workers running": "No workers running"
},
"auth.sendCode": {
"No workers running": "No workers running"
},
@ -2017,6 +2041,9 @@
"updates.getDifference": {
"No workers running": "No workers running"
},
"upload.getFile": {
"No workers running": "No workers running"
},
"users.getFullUser": {
"No workers running": "No workers running"
}
@ -2090,6 +2117,9 @@
"contacts.deleteContacts": {
"Timeout": "Timeout"
},
"contacts.getContactIDs": {
"Timeout": "Timeout"
},
"contacts.resolveUsername": {
"Timeout": "Timeout"
},
@ -2129,6 +2159,9 @@
"messages.getInlineBotResults": {
"Timeout": "Timeout"
},
"messages.getMessages": {
"Timeout": "Timeout"
},
"messages.getMessagesViews": {
"Timeout": "Timeout"
},
@ -2165,6 +2198,9 @@
"photos.deletePhotos": {
"Timeout": "Timeout"
},
"photos.updateProfilePhoto": {
"Timeout": "Timeout"
},
"photos.uploadProfilePhoto": {
"Timeout": "Timeout"
},

20
v4.json
View File

@ -216,6 +216,7 @@
"channels.readMessageContents",
"channels.togglePreHistoryHidden",
"channels.updateUsername",
"messages.deleteHistory",
"messages.editChatAbout",
"messages.editMessage",
"messages.exportChatInvite",
@ -302,6 +303,7 @@
"messages.updatePinnedMessage",
"messages.uploadMedia",
"stats.getBroadcastStats",
"stats.getMegagroupStats",
"stats.getMessageStats"
],
"CHAT_ID_EMPTY": [
@ -390,7 +392,9 @@
"help.getConfig",
"invokeWithLayer",
"messages.getHistory",
"messages.getPeerDialogs"
"messages.getPeerDialogs",
"updates.getChannelDifference",
"updates.getDifference"
],
"CONNECTION_LANG_PACK_INVALID": [
"help.getConfig",
@ -1140,6 +1144,7 @@
"auth.checkPassword"
],
"SRP_PASSWORD_CHANGED": [
"account.updatePasswordSettings",
"auth.checkPassword"
],
"START_PARAM_EMPTY": [
@ -1285,7 +1290,9 @@
"messages.forwardMessages",
"messages.sendMedia",
"messages.sendMessage",
"messages.setTyping"
"messages.setTyping",
"msgs_ack",
"msgs_state_req"
],
"USER_IS_BOT": [
"messages.forwardMessages",
@ -1409,6 +1416,7 @@
"photos.uploadProfilePhoto"
],
"MEMBER_FETCH_FAILED": [
"account.updateProfile",
"photos.updateProfilePhoto",
"photos.uploadProfilePhoto"
],
@ -1560,6 +1568,7 @@
"406": {
"AUTH_KEY_DUPLICATED": [
"account.checkUsername",
"account.deleteAccount",
"account.getAuthorizations",
"account.updateProfile",
"account.updateStatus",
@ -1574,6 +1583,7 @@
"channels.joinChannel",
"channels.leaveChannel",
"channels.readHistory",
"channels.readMessageContents",
"channels.updateUsername",
"contacts.getContacts",
"contacts.importContacts",
@ -1587,6 +1597,7 @@
"messages.deleteHistory",
"messages.editMessage",
"messages.forwardMessages",
"messages.getAllChats",
"messages.getBotCallbackAnswer",
"messages.getDialogs",
"messages.getHistory",
@ -1809,6 +1820,7 @@
],
"No workers running": [
"account.updateProfile",
"auth.bindTempAuthKey",
"auth.sendCode",
"channels.getMessages",
"channels.getParticipants",
@ -1822,6 +1834,7 @@
"photos.updateProfilePhoto",
"updates.getChannelDifference",
"updates.getDifference",
"upload.getFile",
"users.getFullUser"
]
},
@ -1853,6 +1866,7 @@
"channels.readHistory",
"channels.readMessageContents",
"contacts.deleteContacts",
"contacts.getContactIDs",
"contacts.resolveUsername",
"contacts.search",
"help.getCdnConfig",
@ -1866,6 +1880,7 @@
"messages.getDialogs",
"messages.getHistory",
"messages.getInlineBotResults",
"messages.getMessages",
"messages.getMessagesViews",
"messages.getPeerDialogs",
"messages.getUnreadMentions",
@ -1878,6 +1893,7 @@
"messages.setTyping",
"messages.uploadMedia",
"photos.deletePhotos",
"photos.updateProfilePhoto",
"photos.uploadProfilePhoto",
"stats.getBroadcastStats",
"stats.loadAsyncGraph",