mirror of
https://github.com/danog/rpc-db.git
synced 2024-11-26 20:14:40 +01:00
Fixes
This commit is contained in:
parent
8b3ad2d81f
commit
faba4cc8a6
17
v1.json
17
v1.json
@ -409,6 +409,7 @@
|
|||||||
"INPUT_USER_DEACTIVATED",
|
"INPUT_USER_DEACTIVATED",
|
||||||
"MSG_ID_INVALID",
|
"MSG_ID_INVALID",
|
||||||
"PARTICIPANT_ID_INVALID",
|
"PARTICIPANT_ID_INVALID",
|
||||||
|
"PEER_ID_INVALID",
|
||||||
"PINNED_DIALOGS_TOO_MUCH",
|
"PINNED_DIALOGS_TOO_MUCH",
|
||||||
"USER_ADMIN_INVALID",
|
"USER_ADMIN_INVALID",
|
||||||
"USER_ID_INVALID"
|
"USER_ID_INVALID"
|
||||||
@ -736,6 +737,10 @@
|
|||||||
"CHAT_ADMIN_REQUIRED",
|
"CHAT_ADMIN_REQUIRED",
|
||||||
"MESSAGE_ID_INVALID"
|
"MESSAGE_ID_INVALID"
|
||||||
],
|
],
|
||||||
|
"stats.getMessageStats": [
|
||||||
|
"CHANNEL_INVALID",
|
||||||
|
"CHAT_ADMIN_REQUIRED"
|
||||||
|
],
|
||||||
"updates.getChannelDifference": [
|
"updates.getChannelDifference": [
|
||||||
"CHANNEL_INVALID",
|
"CHANNEL_INVALID",
|
||||||
"CHANNEL_PRIVATE",
|
"CHANNEL_PRIVATE",
|
||||||
@ -914,9 +919,6 @@
|
|||||||
"CHAT_ADMIN_REQUIRED",
|
"CHAT_ADMIN_REQUIRED",
|
||||||
"MEGAGROUP_REQUIRED"
|
"MEGAGROUP_REQUIRED"
|
||||||
],
|
],
|
||||||
"stats.getMessageStats": [
|
|
||||||
"CHAT_ADMIN_REQUIRED"
|
|
||||||
],
|
|
||||||
"messages.discardEncryption": [
|
"messages.discardEncryption": [
|
||||||
"CHAT_ID_EMPTY",
|
"CHAT_ID_EMPTY",
|
||||||
"ENCRYPTION_ALREADY_DECLINED",
|
"ENCRYPTION_ALREADY_DECLINED",
|
||||||
@ -1588,6 +1590,9 @@
|
|||||||
"AUTH_KEY_DUPLICATED",
|
"AUTH_KEY_DUPLICATED",
|
||||||
"USER_RESTRICTED"
|
"USER_RESTRICTED"
|
||||||
],
|
],
|
||||||
|
"channels.deleteMessages": [
|
||||||
|
"AUTH_KEY_DUPLICATED"
|
||||||
|
],
|
||||||
"channels.getChannels": [
|
"channels.getChannels": [
|
||||||
"AUTH_KEY_DUPLICATED"
|
"AUTH_KEY_DUPLICATED"
|
||||||
],
|
],
|
||||||
@ -1778,6 +1783,9 @@
|
|||||||
"auth.checkPhone": [
|
"auth.checkPhone": [
|
||||||
"PHONE_NUMBER_INVALID"
|
"PHONE_NUMBER_INVALID"
|
||||||
],
|
],
|
||||||
|
"auth.resendCode": [
|
||||||
|
"SEND_CODE_UNAVAILABLE"
|
||||||
|
],
|
||||||
"contacts.getLocated": [
|
"contacts.getLocated": [
|
||||||
"USERPIC_PRIVACY_REQUIRED",
|
"USERPIC_PRIVACY_REQUIRED",
|
||||||
"USERPIC_UPLOAD_REQUIRED"
|
"USERPIC_UPLOAD_REQUIRED"
|
||||||
@ -3272,6 +3280,9 @@
|
|||||||
"SECONDS_INVALID": [
|
"SECONDS_INVALID": [
|
||||||
"Invalid duration provided"
|
"Invalid duration provided"
|
||||||
],
|
],
|
||||||
|
"SEND_CODE_UNAVAILABLE": [
|
||||||
|
""
|
||||||
|
],
|
||||||
"SEND_MESSAGE_MEDIA_INVALID": [
|
"SEND_MESSAGE_MEDIA_INVALID": [
|
||||||
"Invalid media provided"
|
"Invalid media provided"
|
||||||
],
|
],
|
||||||
|
88
v2.json
88
v2.json
@ -2380,6 +2380,38 @@
|
|||||||
"error_description": "You're spamreported, you can't create channels or chats."
|
"error_description": "You're spamreported, you can't create channels or chats."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"channels.deleteMessages": [
|
||||||
|
{
|
||||||
|
"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": 403,
|
||||||
|
"error_message": "MESSAGE_DELETE_FORBIDDEN",
|
||||||
|
"error_description": "You can't delete one of the messages you tried to delete, most likely because it is a service message."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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.getMessages": [
|
"channels.getMessages": [
|
||||||
{
|
{
|
||||||
"error_code": 406,
|
"error_code": 406,
|
||||||
@ -4306,6 +4338,11 @@
|
|||||||
"error_message": "PARTICIPANT_ID_INVALID",
|
"error_message": "PARTICIPANT_ID_INVALID",
|
||||||
"error_description": "The specified participant ID is invalid"
|
"error_description": "The specified participant ID is invalid"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"error_code": 400,
|
||||||
|
"error_message": "PEER_ID_INVALID",
|
||||||
|
"error_description": "The provided peer id is invalid"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"error_code": 400,
|
"error_code": 400,
|
||||||
"error_message": "PINNED_DIALOGS_TOO_MUCH",
|
"error_message": "PINNED_DIALOGS_TOO_MUCH",
|
||||||
@ -4420,33 +4457,6 @@
|
|||||||
"error_description": "You haven't joined this channel\/supergroup"
|
"error_description": "You haven't joined this channel\/supergroup"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"channels.deleteMessages": [
|
|
||||||
{
|
|
||||||
"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": 403,
|
|
||||||
"error_message": "MESSAGE_DELETE_FORBIDDEN",
|
|
||||||
"error_description": "You can't delete one of the messages you tried to delete, most likely because it is a service message."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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.deleteUserHistory": [
|
"channels.deleteUserHistory": [
|
||||||
{
|
{
|
||||||
"error_code": 400,
|
"error_code": 400,
|
||||||
@ -5010,6 +5020,18 @@
|
|||||||
"error_description": "The provided message id is invalid"
|
"error_description": "The provided message id is invalid"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"stats.getMessageStats": [
|
||||||
|
{
|
||||||
|
"error_code": 400,
|
||||||
|
"error_message": "CHANNEL_INVALID",
|
||||||
|
"error_description": "The provided channel is invalid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"error_code": 400,
|
||||||
|
"error_message": "CHAT_ADMIN_REQUIRED",
|
||||||
|
"error_description": "You must be an admin in this chat to do this"
|
||||||
|
}
|
||||||
|
],
|
||||||
"account.reportPeer": [
|
"account.reportPeer": [
|
||||||
{
|
{
|
||||||
"error_code": 400,
|
"error_code": 400,
|
||||||
@ -5364,13 +5386,6 @@
|
|||||||
"error_description": "You can only use this method on a supergroup"
|
"error_description": "You can only use this method on a supergroup"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stats.getMessageStats": [
|
|
||||||
{
|
|
||||||
"error_code": 400,
|
|
||||||
"error_message": "CHAT_ADMIN_REQUIRED",
|
|
||||||
"error_description": "You must be an admin in this chat to do this"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"messages.discardEncryption": [
|
"messages.discardEncryption": [
|
||||||
{
|
{
|
||||||
"error_code": 400,
|
"error_code": 400,
|
||||||
@ -6674,6 +6689,11 @@
|
|||||||
"error_code": 400,
|
"error_code": 400,
|
||||||
"error_message": "PHONE_NUMBER_INVALID",
|
"error_message": "PHONE_NUMBER_INVALID",
|
||||||
"error_description": "The phone number is invalid"
|
"error_description": "The phone number is invalid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"error_code": 406,
|
||||||
|
"error_message": "SEND_CODE_UNAVAILABLE",
|
||||||
|
"error_description": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"account.sendChangePhoneCode": [
|
"account.sendChangePhoneCode": [
|
||||||
|
15
v3.json
15
v3.json
@ -409,6 +409,7 @@
|
|||||||
"INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED",
|
"INPUT_USER_DEACTIVATED": "INPUT_USER_DEACTIVATED",
|
||||||
"MSG_ID_INVALID": "MSG_ID_INVALID",
|
"MSG_ID_INVALID": "MSG_ID_INVALID",
|
||||||
"PARTICIPANT_ID_INVALID": "PARTICIPANT_ID_INVALID",
|
"PARTICIPANT_ID_INVALID": "PARTICIPANT_ID_INVALID",
|
||||||
|
"PEER_ID_INVALID": "PEER_ID_INVALID",
|
||||||
"PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH",
|
"PINNED_DIALOGS_TOO_MUCH": "PINNED_DIALOGS_TOO_MUCH",
|
||||||
"USER_ADMIN_INVALID": "USER_ADMIN_INVALID",
|
"USER_ADMIN_INVALID": "USER_ADMIN_INVALID",
|
||||||
"USER_ID_INVALID": "USER_ID_INVALID"
|
"USER_ID_INVALID": "USER_ID_INVALID"
|
||||||
@ -736,6 +737,10 @@
|
|||||||
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
|
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
|
||||||
"MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID"
|
"MESSAGE_ID_INVALID": "MESSAGE_ID_INVALID"
|
||||||
},
|
},
|
||||||
|
"stats.getMessageStats": {
|
||||||
|
"CHANNEL_INVALID": "CHANNEL_INVALID",
|
||||||
|
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
|
||||||
|
},
|
||||||
"updates.getChannelDifference": {
|
"updates.getChannelDifference": {
|
||||||
"CHANNEL_INVALID": "CHANNEL_INVALID",
|
"CHANNEL_INVALID": "CHANNEL_INVALID",
|
||||||
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
|
"CHANNEL_PRIVATE": "CHANNEL_PRIVATE",
|
||||||
@ -914,9 +919,6 @@
|
|||||||
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
|
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED",
|
||||||
"MEGAGROUP_REQUIRED": "MEGAGROUP_REQUIRED"
|
"MEGAGROUP_REQUIRED": "MEGAGROUP_REQUIRED"
|
||||||
},
|
},
|
||||||
"stats.getMessageStats": {
|
|
||||||
"CHAT_ADMIN_REQUIRED": "CHAT_ADMIN_REQUIRED"
|
|
||||||
},
|
|
||||||
"messages.discardEncryption": {
|
"messages.discardEncryption": {
|
||||||
"CHAT_ID_EMPTY": "CHAT_ID_EMPTY",
|
"CHAT_ID_EMPTY": "CHAT_ID_EMPTY",
|
||||||
"ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED",
|
"ENCRYPTION_ALREADY_DECLINED": "ENCRYPTION_ALREADY_DECLINED",
|
||||||
@ -1885,6 +1887,9 @@
|
|||||||
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED",
|
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED",
|
||||||
"USER_RESTRICTED": "USER_RESTRICTED"
|
"USER_RESTRICTED": "USER_RESTRICTED"
|
||||||
},
|
},
|
||||||
|
"channels.deleteMessages": {
|
||||||
|
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
|
||||||
|
},
|
||||||
"channels.getChannels": {
|
"channels.getChannels": {
|
||||||
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
|
"AUTH_KEY_DUPLICATED": "AUTH_KEY_DUPLICATED"
|
||||||
},
|
},
|
||||||
@ -2075,6 +2080,9 @@
|
|||||||
"auth.checkPhone": {
|
"auth.checkPhone": {
|
||||||
"PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID"
|
"PHONE_NUMBER_INVALID": "PHONE_NUMBER_INVALID"
|
||||||
},
|
},
|
||||||
|
"auth.resendCode": {
|
||||||
|
"SEND_CODE_UNAVAILABLE": "SEND_CODE_UNAVAILABLE"
|
||||||
|
},
|
||||||
"contacts.getLocated": {
|
"contacts.getLocated": {
|
||||||
"USERPIC_PRIVACY_REQUIRED": "USERPIC_PRIVACY_REQUIRED",
|
"USERPIC_PRIVACY_REQUIRED": "USERPIC_PRIVACY_REQUIRED",
|
||||||
"USERPIC_UPLOAD_REQUIRED": "USERPIC_UPLOAD_REQUIRED"
|
"USERPIC_UPLOAD_REQUIRED": "USERPIC_UPLOAD_REQUIRED"
|
||||||
@ -2961,6 +2969,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_CODE_UNAVAILABLE": "",
|
||||||
"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",
|
||||||
"SENSITIVE_CHANGE_FORBIDDEN": "You can't change your sensitive content settings.",
|
"SENSITIVE_CHANGE_FORBIDDEN": "You can't change your sensitive content settings.",
|
||||||
|
Loading…
Reference in New Issue
Block a user