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 2019-09-13 14:26:36 +00:00
parent 2ad9cc24b1
commit 9d8c5aa6d7
3 changed files with 123 additions and 30 deletions

32
v1.json
View File

@ -130,6 +130,7 @@
"CHAT_ID_INVALID",
"CHAT_RESTRICTED",
"ENTITY_MENTION_USER_INVALID",
"FROM_MESSAGE_BOT_DISABLED",
"INPUT_USER_DEACTIVATED",
"MESSAGE_EMPTY",
"MESSAGE_TOO_LONG",
@ -358,6 +359,12 @@
"CHAT_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.getMessagesViews": [
"CHANNEL_INVALID",
"CHANNEL_PRIVATE",
"CHAT_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.getPeerSettings": [
"CHANNEL_INVALID",
"PEER_ID_INVALID"
@ -366,6 +373,7 @@
"CHANNEL_INVALID",
"CHANNEL_PRIVATE",
"CHAT_ADMIN_REQUIRED",
"CHAT_RESTRICTED",
"EXTERNAL_URL_INVALID",
"FILE_PART_LENGTH_INVALID",
"FILE_PARTS_INVALID",
@ -397,15 +405,12 @@
"updates.getChannelDifference": [
"CHANNEL_INVALID",
"CHANNEL_PRIVATE",
"FROM_MESSAGE_BOT_DISABLED",
"PERSISTENT_TIMESTAMP_EMPTY",
"PERSISTENT_TIMESTAMP_INVALID",
"PINNED_DIALOGS_TOO_MUCH",
"RANGES_INVALID"
],
"messages.getMessagesViews": [
"CHANNEL_PRIVATE",
"CHAT_ID_INVALID",
"PEER_ID_INVALID"
],
"messages.getPeerDialogs": [
"CHANNEL_PRIVATE",
"PEER_ID_INVALID"
@ -1011,11 +1016,17 @@
"CHAT_SEND_MEDIA_FORBIDDEN",
"CHAT_WRITE_FORBIDDEN"
],
"channels.editBanned": [
"CHAT_WRITE_FORBIDDEN"
],
"channels.inviteToChannel": [
"CHAT_WRITE_FORBIDDEN",
"USER_CHANNELS_TOO_MUCH",
"USER_PRIVACY_RESTRICTED"
],
"channels.updateUsername": [
"CHAT_WRITE_FORBIDDEN"
],
"invokeWithLayer": [
"CHAT_WRITE_FORBIDDEN"
],
@ -1290,6 +1301,9 @@
"CHAT_NOT_MODIFIED": [
"The pinned message wasn't modified"
],
"CHAT_OCCUPY_LOC_FAILED": [
"An internal error occurred while creating the chat"
],
"CHAT_RESTRICTED": [
"You can't send messages in this chat, you were restricted"
],
@ -1422,6 +1436,9 @@
"FRESH_RESET_AUTHORISATION_FORBIDDEN": [
"You can't logout other sessions if less than 24 hours have passed since you logged on the current session"
],
"FROM_MESSAGE_BOT_DISABLED": [
"Bots can't use fromMessage min constructors"
],
"GIF_ID_INVALID": [
"The provided GIF ID is invalid"
],
@ -1564,7 +1581,7 @@
"The provided message is too long"
],
"MSG_ID_INVALID": [
"Provided reply_to_msg_id is invalid"
"Invalid message ID provided"
],
"MSG_WAIT_FAILED": [
"A waiting call returned an error"
@ -1683,6 +1700,9 @@
"PHOTO_THUMB_URL_EMPTY": [
"Photo thumbnail URL is empty"
],
"PINNED_DIALOGS_TOO_MUCH": [
""
],
"PRIVACY_KEY_INVALID": [
"The privacy key is invalid"
],

71
v2.json
View File

@ -412,6 +412,11 @@
"error_message": "ENTITY_MENTION_USER_INVALID",
"error_description": "You mentioned an invalid user"
},
{
"error_code": 400,
"error_message": "FROM_MESSAGE_BOT_DISABLED",
"error_description": "Bots can't use fromMessage min constructors"
},
{
"error_code": 400,
"error_message": "INPUT_USER_DEACTIVATED",
@ -430,7 +435,7 @@
{
"error_code": 400,
"error_message": "MSG_ID_INVALID",
"error_description": "Provided reply_to_msg_id is invalid"
"error_description": "Invalid message ID provided"
},
{
"error_code": 400,
@ -494,6 +499,11 @@
"error_message": "CHANNEL_PUBLIC_GROUP_NA",
"error_description": "channel\/supergroup not available"
},
{
"error_code": 400,
"error_message": "FROM_MESSAGE_BOT_DISABLED",
"error_description": "Bots can't use fromMessage min constructors"
},
{
"error_code": 400,
"error_message": "PERSISTENT_TIMESTAMP_EMPTY",
@ -504,6 +514,11 @@
"error_message": "PERSISTENT_TIMESTAMP_INVALID",
"error_description": "Persistent timestamp invalid"
},
{
"error_code": 400,
"error_message": "PINNED_DIALOGS_TOO_MUCH",
"error_description": ""
},
{
"error_code": 400,
"error_message": "RANGES_INVALID",
@ -1127,6 +1142,11 @@
"error_message": "CHAT_ADMIN_REQUIRED",
"error_description": "You must be an admin in this chat to do this"
},
{
"error_code": 403,
"error_message": "CHAT_WRITE_FORBIDDEN",
"error_description": "You can't write in this chat"
},
{
"error_code": 400,
"error_message": "USER_ADMIN_INVALID",
@ -1497,6 +1517,11 @@
"error_message": "CHAT_ADMIN_REQUIRED",
"error_description": "You must be an admin in this chat to do this"
},
{
"error_code": 403,
"error_message": "CHAT_WRITE_FORBIDDEN",
"error_description": "You can't write in this chat"
},
{
"error_code": 400,
"error_message": "USERNAME_INVALID",
@ -1699,6 +1724,28 @@
"error_description": "Timeout while fetching data"
}
],
"messages.getMessagesViews": [
{
"error_code": 400,
"error_message": "CHANNEL_INVALID",
"error_description": "The provided channel is invalid"
},
{
"error_code": 400,
"error_message": "CHANNEL_PRIVATE",
"error_description": "You haven't joined this channel\/supergroup"
},
{
"error_code": 400,
"error_message": "CHAT_ID_INVALID",
"error_description": "The provided chat id is invalid"
},
{
"error_code": 400,
"error_message": "PEER_ID_INVALID",
"error_description": "The provided peer id is invalid"
}
],
"messages.getPeerSettings": [
{
"error_code": 400,
@ -1727,6 +1774,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_RESTRICTED",
"error_description": "You can't send messages in this chat, you were restricted"
},
{
"error_code": 403,
"error_message": "CHAT_SEND_MEDIA_FORBIDDEN",
@ -1875,23 +1927,6 @@
"error_description": "Bots can't send messages to other bots"
}
],
"messages.getMessagesViews": [
{
"error_code": 400,
"error_message": "CHANNEL_PRIVATE",
"error_description": "You haven't joined this channel\/supergroup"
},
{
"error_code": 400,
"error_message": "CHAT_ID_INVALID",
"error_description": "The provided chat id is invalid"
},
{
"error_code": 400,
"error_message": "PEER_ID_INVALID",
"error_description": "The provided peer id is invalid"
}
],
"messages.getPeerDialogs": [
{
"error_code": 400,

50
v3.json
View File

@ -130,6 +130,7 @@
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"CHAT_RESTRICTED": "CHAT_RESTRICTED",
"ENTITY_MENTION_USER_INVALID": "ENTITY_MENTION_USER_INVALID",
"FROM_MESSAGE_BOT_DISABLED": "FROM_MESSAGE_BOT_DISABLED",
"INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED",
"MESSAGE_EMPTY": "MESSAGE_EMPTY",
"MESSAGE_TOO_LONG": "MESSAGE_TOO_LONG",
@ -358,6 +359,12 @@
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.getMessagesViews": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.getPeerSettings": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
@ -366,6 +373,7 @@
"CHANNEL_INVALID": "CHANNEL_INVALID",
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
"CHAT_RESTRICTED": "CHAT_RESTRICTED",
"EXTERNAL_URL_INVALID": "EXTERNAL_URL_INVALID",
"FILE_PART_LENGTH_INVALID": "FILE_PART_LENGTH_INVALID",
"FILE_PARTS_INVALID": "FILE_PARTS_INVALID",
@ -397,15 +405,12 @@
"updates.getChannelDifference": {
"CHANNEL_INVALID": "CHANNEL_INVALID",
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"FROM_MESSAGE_BOT_DISABLED": "FROM_MESSAGE_BOT_DISABLED",
"PERSISTENT_TIMESTAMP_EMPTY": "PERSISTENT_TIMESTAMP_EMPTY",
"PERSISTENT_TIMESTAMP_INVALID": "PERSISTENT_TIMESTAMP_INVALID",
"PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH",
"RANGES_INVALID": "RANGES_INVALID"
},
"messages.getMessagesViews": {
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"CHAT_ID_INVALID": "CHAT_ID_INVALID",
"PEER_ID_INVALID": "PEER_ID_INVALID"
},
"messages.getPeerDialogs": {
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
"PEER_ID_INVALID": "PEER_ID_INVALID"
@ -907,6 +912,9 @@
"phone.acceptCall": {
"CALL_OCCUPY_FAILED": "CALL_OCCUPY_FAILED"
},
"messages.createChat": {
"CHAT_OCCUPY_LOC_FAILED": "CHAT_OCCUPY_LOC_FAILED"
},
"messages.acceptEncryption": {
"ENCRYPTION_OCCUPY_FAILED": "ENCRYPTION_OCCUPY_FAILED"
},
@ -924,6 +932,9 @@
"MEMBER_OCCUPY_PRIMARY_LOC_FAILED": "MEMBER_OCCUPY_PRIMARY_LOC_FAILED",
"REG_ID_GENERATE_FAILED": "REG_ID_GENERATE_FAILED"
},
"channels.createChannel": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"channels.editTitle": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
@ -933,6 +944,9 @@
"channels.getParticipants": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"channels.joinChannel": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"contacts.getStatuses": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
@ -942,6 +956,9 @@
"help.getCdnConfig": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.checkChatInvite": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.forwardMessages": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY",
"NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID",
@ -949,12 +966,21 @@
"RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE",
"WORKER_BUSY_TOO_LONG_RETRY": "WORKER_BUSY_TOO_LONG_RETRY"
},
"messages.getBotCallbackAnswer": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.getDialogs": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.getFullChat": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.getMessagesViews": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.readHistory": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY"
},
"messages.sendMessage": {
"MSGID_DECREASE_RETRY": "MSGID_DECREASE_RETRY",
"NEED_MEMBER_INVALID": "NEED_MEMBER_INVALID",
@ -999,6 +1025,9 @@
"RANDOM_ID_DUPLICATE": "RANDOM_ID_DUPLICATE",
"STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED"
},
"photos.uploadProfilePhoto": {
"STORAGE_CHECK_FAILED": "STORAGE_CHECK_FAILED"
},
"upload.getCdnFile": {
"UNKNOWN_METHOD": "UNKNOWN_METHOD"
}
@ -1120,11 +1149,17 @@
"CHAT_SEND_MEDIA_FORBIDDEN": "CHAT_SEND_MEDIA_FORBIDDEN",
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
},
"channels.editBanned": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
},
"channels.inviteToChannel": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN",
"USER_CHANNELS_TOO_MUCH": "USER_CHANNELS_TOO_MUCH",
"USER_PRIVACY_RESTRICTED": "USER_PRIVACY_RESTRICTED"
},
"channels.updateUsername": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
},
"invokeWithLayer": {
"CHAT_WRITE_FORBIDDEN": "CHAT_WRITE_FORBIDDEN"
},
@ -1307,6 +1342,7 @@
"CHAT_ID_INVALID": "The provided chat id is invalid",
"CHAT_INVALID": "Invalid chat",
"CHAT_NOT_MODIFIED": "The pinned message wasn't modified",
"CHAT_OCCUPY_LOC_FAILED": "An internal error occurred while creating the chat",
"CHAT_RESTRICTED": "You can't send messages in this chat, you were restricted",
"CHAT_SEND_GIFS_FORBIDDEN": "You can't send gifs in this chat",
"CHAT_SEND_MEDIA_FORBIDDEN": "You can't send media in this chat",
@ -1351,6 +1387,7 @@
"FLOOD_WAIT_666": "Spooky af m8",
"FOLDER_ID_INVALID": "Invalid folder ID",
"FRESH_RESET_AUTHORISATION_FORBIDDEN": "You can't logout other sessions if less than 24 hours have passed since you logged on the current session",
"FROM_MESSAGE_BOT_DISABLED": "Bots can't use fromMessage min constructors",
"GIF_ID_INVALID": "The provided GIF ID is invalid",
"GROUPED_MEDIA_INVALID": "Invalid grouped media",
"HASH_INVALID": "The provided hash is invalid",
@ -1398,7 +1435,7 @@
"MESSAGE_IDS_EMPTY": "No message ids were provided",
"MESSAGE_NOT_MODIFIED": "The message text has not changed",
"MESSAGE_TOO_LONG": "The provided message is too long",
"MSG_ID_INVALID": "Provided reply_to_msg_id is invalid",
"MSG_ID_INVALID": "Invalid message ID provided",
"MSG_WAIT_FAILED": "A waiting call returned an error",
"MSGID_DECREASE_RETRY": "IDK TBH",
"NEED_CHAT_INVALID": "The provided chat is invalid",
@ -1438,6 +1475,7 @@
"PHOTO_INVALID_DIMENSIONS": "The photo dimensions are invalid",
"PHOTO_SAVE_FILE_INVALID": "",
"PHOTO_THUMB_URL_EMPTY": "Photo thumbnail URL is empty",
"PINNED_DIALOGS_TOO_MUCH": "",
"PRIVACY_KEY_INVALID": "The privacy key is invalid",
"PTS_CHANGE_EMPTY": "No PTS change",
"QUERY_ID_EMPTY": "The query ID is empty",