Skip to content

Commit 8d31145

Browse files
committed
feat(schema): update documentation to the latest layer
1 parent 274c009 commit 8d31145

File tree

2 files changed

+116
-32
lines changed

2 files changed

+116
-32
lines changed

_schema/158.json

Lines changed: 58 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,11 +3228,14 @@
32283228
},
32293229
"reset_available_period": {
32303230
"name": "reset_available_period",
3231-
"description": " "
3231+
"description": "The login email can be reset by invoking auth.resetLoginEmail¹ and waiting for the specified amount of seconds.",
3232+
"links": [
3233+
"https://core.telegram.org/method/auth.resetLoginEmail"
3234+
]
32323235
},
32333236
"reset_pending_date": {
32343237
"name": "reset_pending_date",
3235-
"description": " "
3238+
"description": "An email reset was already requested, and will occur at the specified date."
32363239
}
32373240
}
32383241
},
@@ -6947,7 +6950,7 @@
69476950
},
69486951
"emoticon": {
69496952
"name": "emoticon",
6950-
"description": " "
6953+
"description": "Emoji to use as icon for the folder."
69516954
},
69526955
"flags": {
69536956
"name": "flags",
@@ -7783,10 +7786,7 @@
77837786
},
77847787
"emoticon": {
77857788
"name": "emoticon",
7786-
"description": "Folder¹ emoticon",
7787-
"links": [
7788-
"https://core.telegram.org/api/folders"
7789-
]
7789+
"description": "Emoji to use as icon for the folder."
77907790
},
77917791
"exclude_archived": {
77927792
"name": "exclude_archived",
@@ -7878,7 +7878,7 @@
78787878
"fields": {
78797879
"emoticon": {
78807880
"name": "emoticon",
7881-
"description": " "
7881+
"description": "Emoji to use as icon for the folder."
78827882
},
78837883
"flags": {
78847884
"name": "flags",
@@ -7889,19 +7889,25 @@
78897889
},
78907890
"has_my_invites": {
78917891
"name": "has_my_invites",
7892-
"description": " "
7892+
"description": "Whether the current user has created some chat folder deep links »¹ to share the folder as well.",
7893+
"links": [
7894+
"https://core.telegram.org/api/links#chat-folder-links"
7895+
]
78937896
},
78947897
"id": {
78957898
"name": "id",
78967899
"description": "ID of the folder"
78977900
},
78987901
"include_peers": {
78997902
"name": "include_peers",
7900-
"description": " "
7903+
"description": "Chats to include in the folder"
79017904
},
79027905
"pinned_peers": {
79037906
"name": "pinned_peers",
7904-
"description": " "
7907+
"description": "Pinned chats, folders¹ can have unlimited pinned chats",
7908+
"links": [
7909+
"https://core.telegram.org/api/folders"
7910+
]
79057911
},
79067912
"title": {
79077913
"name": "title",
@@ -15816,6 +15822,10 @@
1581615822
"https://core.telegram.org/mtproto/TL-combinators#conditional-fields"
1581715823
]
1581815824
},
15825+
"my": {
15826+
"name": "my",
15827+
"description": " "
15828+
},
1581915829
"peer_id": {
1582015830
"name": "peer_id",
1582115831
"description": "Peer that reacted to the message"
@@ -32773,6 +32783,11 @@
3277332783
}
3277432784
},
3277532785
"errors": [
32786+
{
32787+
"code": 400,
32788+
"type": "PHONE_CODE_EMPTY",
32789+
"description": "phone_code is missing."
32790+
},
3277632791
{
3277732792
"code": 400,
3277832793
"type": "PHONE_CODE_EXPIRED",
@@ -36244,6 +36259,11 @@
3624436259
"type": "FILTER_NOT_SUPPORTED",
3624536260
"description": "The specified filter cannot be used in this context."
3624636261
},
36262+
{
36263+
"code": 400,
36264+
"type": "INVITES_TOO_MUCH",
36265+
"description": "The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters » was reached."
36266+
},
3624736267
{
3624836268
"code": 400,
3624936269
"type": "PEERS_LIST_EMPTY",
@@ -36286,10 +36306,16 @@
3628636306
},
3628736307
"chatlists.getLeaveChatlistSuggestions": {
3628836308
"name": "chatlists.getLeaveChatlistSuggestions",
36309+
"description": [
36310+
"Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link »¹, which are suggested to be left when the chat folder is deleted."
36311+
],
36312+
"links": [
36313+
"https://core.telegram.org/api/links#chat-folder-links"
36314+
],
3628936315
"parameters": {
3629036316
"chatlist": {
3629136317
"name": "chatlist",
36292-
"description": " "
36318+
"description": "Folder ID"
3629336319
}
3629436320
},
3629536321
"bot_can_use": true
@@ -36324,7 +36350,7 @@
3632436350
"description": "List of new chats to join, fetched using chatlists.checkChatlistInvite¹ and filtered as specified in the documentation »².",
3632536351
"links": [
3632636352
"https://core.telegram.org/method/chatlists.checkChatlistInvite",
36327-
"https://core.telegram.org/api/folders#sharing-folders"
36353+
"https://core.telegram.org/api/folders#shared-folders"
3632836354
]
3632936355
},
3633036356
"slug": {
@@ -36362,22 +36388,28 @@
3636236388
"description": "List of new chats to join, fetched using chatlists.getChatlistUpdates¹ and filtered as specified in the documentation »².",
3636336389
"links": [
3636436390
"https://core.telegram.org/method/chatlists.getChatlistUpdates",
36365-
"https://core.telegram.org/api/folders#sharing-folders"
36391+
"https://core.telegram.org/api/folders#shared-folders"
3636636392
]
3636736393
}
3636836394
},
3636936395
"bot_can_use": true
3637036396
},
3637136397
"chatlists.leaveChatlist": {
3637236398
"name": "chatlists.leaveChatlist",
36399+
"description": [
36400+
"Delete a folder imported using a chat folder deep link »¹"
36401+
],
36402+
"links": [
36403+
"https://core.telegram.org/api/links#chat-folder-links"
36404+
],
3637336405
"parameters": {
3637436406
"chatlist": {
3637536407
"name": "chatlist",
36376-
"description": " "
36408+
"description": "Folder ID"
3637736409
},
3637836410
"peers": {
3637936411
"name": "peers",
36380-
"description": " "
36412+
"description": "Also leave the specified channels and groups"
3638136413
}
3638236414
},
3638336415
"bot_can_use": true
@@ -39315,6 +39347,11 @@
3931539347
"type": "CHAT_SEND_VIDEOS_FORBIDDEN",
3931639348
"description": "You can't send videos in this chat."
3931739349
},
39350+
{
39351+
"code": 403,
39352+
"type": "CHAT_SEND_VOICES_FORBIDDEN",
39353+
"description": "You can't send voice recordings in this chat."
39354+
},
3931839355
{
3931939356
"code": 403,
3932039357
"type": "CHAT_WRITE_FORBIDDEN",
@@ -50595,6 +50632,11 @@
5059550632
"type": "INPUT_USER_DEACTIVATED",
5059650633
"description": "The specified user was deleted."
5059750634
},
50635+
"INVITES_TOO_MUCH": {
50636+
"code": 400,
50637+
"type": "INVITES_TOO_MUCH",
50638+
"description": "The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters » was reached."
50639+
},
5059850640
"INVITE_FORBIDDEN_WITH_JOINAS": {
5059950641
"code": 400,
5060050642
"type": "INVITE_FORBIDDEN_WITH_JOINAS",

_schema/latest.json

Lines changed: 58 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,11 +3228,14 @@
32283228
},
32293229
"reset_available_period": {
32303230
"name": "reset_available_period",
3231-
"description": " "
3231+
"description": "The login email can be reset by invoking auth.resetLoginEmail¹ and waiting for the specified amount of seconds.",
3232+
"links": [
3233+
"https://core.telegram.org/method/auth.resetLoginEmail"
3234+
]
32323235
},
32333236
"reset_pending_date": {
32343237
"name": "reset_pending_date",
3235-
"description": " "
3238+
"description": "An email reset was already requested, and will occur at the specified date."
32363239
}
32373240
}
32383241
},
@@ -6947,7 +6950,7 @@
69476950
},
69486951
"emoticon": {
69496952
"name": "emoticon",
6950-
"description": " "
6953+
"description": "Emoji to use as icon for the folder."
69516954
},
69526955
"flags": {
69536956
"name": "flags",
@@ -7783,10 +7786,7 @@
77837786
},
77847787
"emoticon": {
77857788
"name": "emoticon",
7786-
"description": "Folder¹ emoticon",
7787-
"links": [
7788-
"https://core.telegram.org/api/folders"
7789-
]
7789+
"description": "Emoji to use as icon for the folder."
77907790
},
77917791
"exclude_archived": {
77927792
"name": "exclude_archived",
@@ -7878,7 +7878,7 @@
78787878
"fields": {
78797879
"emoticon": {
78807880
"name": "emoticon",
7881-
"description": " "
7881+
"description": "Emoji to use as icon for the folder."
78827882
},
78837883
"flags": {
78847884
"name": "flags",
@@ -7889,19 +7889,25 @@
78897889
},
78907890
"has_my_invites": {
78917891
"name": "has_my_invites",
7892-
"description": " "
7892+
"description": "Whether the current user has created some chat folder deep links »¹ to share the folder as well.",
7893+
"links": [
7894+
"https://core.telegram.org/api/links#chat-folder-links"
7895+
]
78937896
},
78947897
"id": {
78957898
"name": "id",
78967899
"description": "ID of the folder"
78977900
},
78987901
"include_peers": {
78997902
"name": "include_peers",
7900-
"description": " "
7903+
"description": "Chats to include in the folder"
79017904
},
79027905
"pinned_peers": {
79037906
"name": "pinned_peers",
7904-
"description": " "
7907+
"description": "Pinned chats, folders¹ can have unlimited pinned chats",
7908+
"links": [
7909+
"https://core.telegram.org/api/folders"
7910+
]
79057911
},
79067912
"title": {
79077913
"name": "title",
@@ -15816,6 +15822,10 @@
1581615822
"https://core.telegram.org/mtproto/TL-combinators#conditional-fields"
1581715823
]
1581815824
},
15825+
"my": {
15826+
"name": "my",
15827+
"description": " "
15828+
},
1581915829
"peer_id": {
1582015830
"name": "peer_id",
1582115831
"description": "Peer that reacted to the message"
@@ -32773,6 +32783,11 @@
3277332783
}
3277432784
},
3277532785
"errors": [
32786+
{
32787+
"code": 400,
32788+
"type": "PHONE_CODE_EMPTY",
32789+
"description": "phone_code is missing."
32790+
},
3277632791
{
3277732792
"code": 400,
3277832793
"type": "PHONE_CODE_EXPIRED",
@@ -36244,6 +36259,11 @@
3624436259
"type": "FILTER_NOT_SUPPORTED",
3624536260
"description": "The specified filter cannot be used in this context."
3624636261
},
36262+
{
36263+
"code": 400,
36264+
"type": "INVITES_TOO_MUCH",
36265+
"description": "The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters » was reached."
36266+
},
3624736267
{
3624836268
"code": 400,
3624936269
"type": "PEERS_LIST_EMPTY",
@@ -36286,10 +36306,16 @@
3628636306
},
3628736307
"chatlists.getLeaveChatlistSuggestions": {
3628836308
"name": "chatlists.getLeaveChatlistSuggestions",
36309+
"description": [
36310+
"Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link »¹, which are suggested to be left when the chat folder is deleted."
36311+
],
36312+
"links": [
36313+
"https://core.telegram.org/api/links#chat-folder-links"
36314+
],
3628936315
"parameters": {
3629036316
"chatlist": {
3629136317
"name": "chatlist",
36292-
"description": " "
36318+
"description": "Folder ID"
3629336319
}
3629436320
},
3629536321
"bot_can_use": true
@@ -36324,7 +36350,7 @@
3632436350
"description": "List of new chats to join, fetched using chatlists.checkChatlistInvite¹ and filtered as specified in the documentation »².",
3632536351
"links": [
3632636352
"https://core.telegram.org/method/chatlists.checkChatlistInvite",
36327-
"https://core.telegram.org/api/folders#sharing-folders"
36353+
"https://core.telegram.org/api/folders#shared-folders"
3632836354
]
3632936355
},
3633036356
"slug": {
@@ -36362,22 +36388,28 @@
3636236388
"description": "List of new chats to join, fetched using chatlists.getChatlistUpdates¹ and filtered as specified in the documentation »².",
3636336389
"links": [
3636436390
"https://core.telegram.org/method/chatlists.getChatlistUpdates",
36365-
"https://core.telegram.org/api/folders#sharing-folders"
36391+
"https://core.telegram.org/api/folders#shared-folders"
3636636392
]
3636736393
}
3636836394
},
3636936395
"bot_can_use": true
3637036396
},
3637136397
"chatlists.leaveChatlist": {
3637236398
"name": "chatlists.leaveChatlist",
36399+
"description": [
36400+
"Delete a folder imported using a chat folder deep link »¹"
36401+
],
36402+
"links": [
36403+
"https://core.telegram.org/api/links#chat-folder-links"
36404+
],
3637336405
"parameters": {
3637436406
"chatlist": {
3637536407
"name": "chatlist",
36376-
"description": " "
36408+
"description": "Folder ID"
3637736409
},
3637836410
"peers": {
3637936411
"name": "peers",
36380-
"description": " "
36412+
"description": "Also leave the specified channels and groups"
3638136413
}
3638236414
},
3638336415
"bot_can_use": true
@@ -39315,6 +39347,11 @@
3931539347
"type": "CHAT_SEND_VIDEOS_FORBIDDEN",
3931639348
"description": "You can't send videos in this chat."
3931739349
},
39350+
{
39351+
"code": 403,
39352+
"type": "CHAT_SEND_VOICES_FORBIDDEN",
39353+
"description": "You can't send voice recordings in this chat."
39354+
},
3931839355
{
3931939356
"code": 403,
3932039357
"type": "CHAT_WRITE_FORBIDDEN",
@@ -50595,6 +50632,11 @@
5059550632
"type": "INPUT_USER_DEACTIVATED",
5059650633
"description": "The specified user was deleted."
5059750634
},
50635+
"INVITES_TOO_MUCH": {
50636+
"code": 400,
50637+
"type": "INVITES_TOO_MUCH",
50638+
"description": "The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters » was reached."
50639+
},
5059850640
"INVITE_FORBIDDEN_WITH_JOINAS": {
5059950641
"code": 400,
5060050642
"type": "INVITE_FORBIDDEN_WITH_JOINAS",

0 commit comments

Comments
 (0)