Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(schema): update documentation to the latest layer #226

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 115 additions & 3 deletions _schema/170.json
Original file line number Diff line number Diff line change
Expand Up @@ -34127,7 +34127,14 @@
"name": "value_hashes",
"description": "Types of values sent and their hashes"
}
}
},
"errors": [
{
"code": 400,
"type": "PUBLIC_KEY_REQUIRED",
"description": "A public key is required."
}
]
},
"account.cancelPasswordEmail": {
"name": "account.cancelPasswordEmail",
Expand Down Expand Up @@ -37856,6 +37863,16 @@
"type": "CHAT_ID_INVALID",
"description": "The provided chat id is invalid."
},
{
"code": 400,
"type": "MSG_ID_INVALID",
"description": "Invalid message ID provided."
},
{
"code": 400,
"type": "PEER_ID_INVALID",
"description": "The provided peer id is invalid."
},
{
"code": 400,
"type": "USERNAME_INVALID",
Expand Down Expand Up @@ -38757,6 +38774,11 @@
"type": "CHANNEL_FORUM_MISSING",
"description": "This supergroup is not a forum."
},
{
"code": 400,
"type": "CHANNEL_INVALID",
"description": "The provided channel is invalid."
},
{
"code": 403,
"type": "CHAT_ADMIN_REQUIRED",
Expand Down Expand Up @@ -40711,6 +40733,13 @@
]
}
},
"errors": [
{
"code": 400,
"type": "TOPIC_ID_INVALID",
"description": "The specified topic ID is invalid."
}
],
"bot_can_use": true
},
"channels.updateUsername": {
Expand Down Expand Up @@ -40866,6 +40895,11 @@
"code": 400,
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_NOT_SUPPORTED",
"description": "The specified filter cannot be used in this context."
}
],
"bot_can_use": true
Expand Down Expand Up @@ -40911,6 +40945,11 @@
"code": 400,
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_NOT_SUPPORTED",
"description": "The specified filter cannot be used in this context."
}
],
"bot_can_use": true
Expand Down Expand Up @@ -40985,6 +41024,11 @@
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_NOT_SUPPORTED",
"description": "The specified filter cannot be used in this context."
},
{
"code": 400,
"type": "INPUT_CHATLIST_INVALID",
Expand Down Expand Up @@ -41023,6 +41067,18 @@
"description": "Folder ID"
}
},
"errors": [
{
"code": 400,
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_NOT_SUPPORTED",
"description": "The specified filter cannot be used in this context."
}
],
"bot_can_use": true
},
"chatlists.hideChatlistUpdates": {
Expand All @@ -41039,6 +41095,18 @@
"description": "The folder"
}
},
"errors": [
{
"code": 400,
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_NOT_SUPPORTED",
"description": "The specified filter cannot be used in this context."
}
],
"bot_can_use": true
},
"chatlists.joinChatlistInvite": {
Expand Down Expand Up @@ -41107,6 +41175,18 @@
]
}
},
"errors": [
{
"code": 400,
"type": "FILTER_ID_INVALID",
"description": "The specified filter ID is invalid."
},
{
"code": 400,
"type": "FILTER_INCLUDE_EMPTY",
"description": "The include_peers vector of the filter is empty."
}
],
"bot_can_use": true
},
"chatlists.leaveChatlist": {
Expand Down Expand Up @@ -48269,7 +48349,13 @@
},
{
"code": 400,
"type": "BOT_WEBVIEW_DISABLED"
"type": "BOT_WEBVIEW_DISABLED",
"description": "A webview cannot be opened in the specified conditions: emitted for example if from_bot_menu or url are set and peer is not the chat with the bot."
},
{
"code": 400,
"type": "INPUT_USER_DEACTIVATED",
"description": "The specified user was deleted."
},
{
"code": 400,
Expand Down Expand Up @@ -50905,6 +50991,13 @@
"description": "The new default Time-To-Live of all messages sent in new chats."
}
},
"errors": [
{
"code": 400,
"type": "TTL_PERIOD_INVALID",
"description": "The specified TTL period is invalid."
}
],
"bot_can_use": true
},
"messages.setDefaultReaction": {
Expand Down Expand Up @@ -53870,6 +53963,11 @@
}
},
"errors": [
{
"code": 400,
"type": "CONTACT_MISSING",
"description": "The specified user is not a contact."
},
{
"code": 400,
"type": "USER_ID_INVALID",
Expand Down Expand Up @@ -55793,6 +55891,10 @@
"type": "MEDIA_TYPE_INVALID",
"description": "The specified media type cannot be used in stories."
},
{
"code": 400,
"type": "MEDIA_VIDEO_STORY_MISSING"
},
{
"code": 400,
"type": "PEER_ID_INVALID",
Expand Down Expand Up @@ -56811,7 +56913,8 @@
},
"BOT_WEBVIEW_DISABLED": {
"code": 400,
"type": "BOT_WEBVIEW_DISABLED"
"type": "BOT_WEBVIEW_DISABLED",
"description": "A webview cannot be opened in the specified conditions: emitted for example if from_bot_menu or url are set and peer is not the chat with the bot."
},
"BROADCAST_FORBIDDEN": {
"code": 403,
Expand Down Expand Up @@ -57163,6 +57266,11 @@
"type": "CONTACT_ID_INVALID",
"description": "The provided contact ID is invalid."
},
"CONTACT_MISSING": {
"code": 400,
"type": "CONTACT_MISSING",
"description": "The specified user is not a contact."
},
"CONTACT_NAME_EMPTY": {
"code": 400,
"type": "CONTACT_NAME_EMPTY",
Expand Down Expand Up @@ -57803,6 +57911,10 @@
"type": "MEDIA_TYPE_INVALID",
"description": "The specified media type cannot be used in stories."
},
"MEDIA_VIDEO_STORY_MISSING": {
"code": 400,
"type": "MEDIA_VIDEO_STORY_MISSING"
},
"MEGAGROUP_GEO_REQUIRED": {
"code": 400,
"type": "MEGAGROUP_GEO_REQUIRED",
Expand Down
Loading
Loading