Skip to content

Commit 9a54e3f

Browse files
Merge pull request #222 from gotd/feat/update-schema
feat(schema): update documentation to the latest layer
2 parents 5c317f9 + 24a7635 commit 9a54e3f

File tree

2 files changed

+164
-42
lines changed

2 files changed

+164
-42
lines changed

_schema/170.json

Lines changed: 82 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16887,33 +16887,43 @@
1688716887
},
1688816888
"saved_date": {
1688916889
"name": "saved_date",
16890-
"description": " "
16890+
"description": "Only for forwarded messages reforwarded to saved messages »¹, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 1, date will contain 2 and the date of the containing message² will contain 3).",
16891+
"links": [
16892+
"https://core.telegram.org/api/saved-messages",
16893+
"https://core.telegram.org/constructor/message"
16894+
]
1689116895
},
1689216896
"saved_from_id": {
1689316897
"name": "saved_from_id",
16894-
"description": " "
16898+
"description": "Only for forwarded messages reforwarded to saved messages »¹, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user A and from_id will contain the ID of user B).",
16899+
"links": [
16900+
"https://core.telegram.org/api/saved-messages"
16901+
]
1689516902
},
1689616903
"saved_from_msg_id": {
1689716904
"name": "saved_from_msg_id",
16898-
"description": "Only for messages forwarded to saved messages »¹, ID of the message that was forwarded from the original user/channel",
16905+
"description": "Only for messages forwarded to saved messages »¹, contains the original ID of the message in saved_from_peer.",
1689916906
"links": [
1690016907
"https://core.telegram.org/api/saved-messages"
1690116908
]
1690216909
},
1690316910
"saved_from_name": {
1690416911
"name": "saved_from_name",
16905-
"description": " "
16912+
"description": "Only for forwarded messages from users with forward privacy enabled reforwarded to saved messages »¹, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user A and from_id will contain the ID of user B).",
16913+
"links": [
16914+
"https://core.telegram.org/api/saved-messages"
16915+
]
1690616916
},
1690716917
"saved_from_peer": {
1690816918
"name": "saved_from_peer",
16909-
"description": "Only for messages forwarded to saved messages »¹, full info about the user/channel that originally sent the message",
16919+
"description": "Only for messages forwarded to saved messages »¹, contains the dialog where the message was originally sent.",
1691016920
"links": [
1691116921
"https://core.telegram.org/api/saved-messages"
1691216922
]
1691316923
},
1691416924
"saved_out": {
1691516925
"name": "saved_out",
16916-
"description": "Only for messages forwarded to saved messages »¹, set if the original message was outgoing.",
16926+
"description": "Only for messages forwarded to saved messages »¹, set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if from_id points to the current user).",
1691716927
"links": [
1691816928
"https://core.telegram.org/api/saved-messages"
1691916929
]
@@ -16997,7 +17007,7 @@
1699717007
},
1699817008
"round": {
1699917009
"name": "round",
17000-
"description": " "
17010+
"description": "Whether this is a round video."
1700117011
},
1700217012
"spoiler": {
1700317013
"name": "spoiler",
@@ -17009,11 +17019,11 @@
1700917019
},
1701017020
"video": {
1701117021
"name": "video",
17012-
"description": " "
17022+
"description": "Whether this is a video."
1701317023
},
1701417024
"voice": {
1701517025
"name": "voice",
17016-
"description": " "
17026+
"description": "Whether this is a voice message."
1701717027
}
1701817028
}
1701917029
},
@@ -38887,6 +38897,11 @@
3888738897
"type": "FILE_REFERENCE_INVALID",
3888838898
"description": "The specified file reference is invalid."
3888938899
},
38900+
{
38901+
"code": 400,
38902+
"type": "IMAGE_PROCESS_FAILED",
38903+
"description": "Failure while processing image."
38904+
},
3889038905
{
3889138906
"code": 400,
3889238907
"type": "PHOTO_CROP_SIZE_SMALL",
@@ -40270,6 +40285,11 @@
4027040285
"type": "CHANNEL_INVALID",
4027140286
"description": "The provided channel is invalid."
4027240287
},
40288+
{
40289+
"code": 400,
40290+
"type": "CHAT_ADMIN_REQUIRED",
40291+
"description": "You must be an admin in this chat to do this."
40292+
},
4027340293
{
4027440294
"code": 400,
4027540295
"type": "CHAT_ID_INVALID",
@@ -45571,6 +45591,11 @@
4557145591
"code": 400,
4557245592
"type": "PEER_ID_INVALID",
4557345593
"description": "The provided peer id is invalid."
45594+
},
45595+
{
45596+
"code": 400,
45597+
"type": "TAKEOUT_INVALID",
45598+
"description": "The specified takeout ID is invalid."
4557445599
}
4557545600
]
4557645601
},
@@ -50276,7 +50301,8 @@
5027650301
"errors": [
5027750302
{
5027850303
"code": 403,
50279-
"type": "ANONYMOUS_REACTIONS_DISABLED"
50304+
"type": "ANONYMOUS_REACTIONS_DISABLED",
50305+
"description": "Sorry, anonymous administrators cannot leave reactions or participate in polls."
5028050306
},
5028150307
{
5028250308
"code": 400,
@@ -50408,6 +50434,11 @@
5040850434
"type": "PEER_ID_INVALID",
5040950435
"description": "The provided peer id is invalid."
5041050436
},
50437+
{
50438+
"code": 400,
50439+
"type": "REPLY_MESSAGE_ID_INVALID",
50440+
"description": "The specified reply-to message ID is invalid."
50441+
},
5041150442
{
5041250443
"code": 400,
5041350444
"type": "STORY_ID_INVALID",
@@ -52202,6 +52233,21 @@
5220252233
{
5220352234
"code": 406,
5220452235
"type": "GIFTCODE_NOT_ALLOWED"
52236+
},
52237+
{
52238+
"code": 400,
52239+
"type": "GIFT_SLUG_EXPIRED",
52240+
"description": "The specified gift slug has expired."
52241+
},
52242+
{
52243+
"code": 400,
52244+
"type": "GIFT_SLUG_INVALID",
52245+
"description": "The specified slug is invalid."
52246+
},
52247+
{
52248+
"code": 420,
52249+
"type": "PREMIUM_SUB_ACTIVE_UNTIL_%d",
52250+
"description": "You already have an premium subscription active until unxtime %d."
5220552251
}
5220652252
]
5220752253
},
@@ -55060,7 +55106,8 @@
5506055106
},
5506155107
{
5506255108
"code": 400,
55063-
"type": "USER_PUBLIC_MISSING"
55109+
"type": "USER_PUBLIC_MISSING",
55110+
"description": "Cannot generate a link to stories posted by a peer without a username."
5506455111
}
5506555112
]
5506655113
},
@@ -55718,10 +55765,6 @@
5571855765
"type": "MEDIA_TYPE_INVALID",
5571955766
"description": "The specified media type cannot be used in stories."
5572055767
},
55721-
{
55722-
"code": 400,
55723-
"type": "MEDIA_VIDEO_STORY_MISSING"
55724-
},
5572555768
{
5572655769
"code": 400,
5572755770
"type": "PEER_ID_INVALID",
@@ -56569,7 +56612,8 @@
5656956612
},
5657056613
"ANONYMOUS_REACTIONS_DISABLED": {
5657156614
"code": 403,
56572-
"type": "ANONYMOUS_REACTIONS_DISABLED"
56615+
"type": "ANONYMOUS_REACTIONS_DISABLED",
56616+
"description": "Sorry, anonymous administrators cannot leave reactions or participate in polls."
5657356617
},
5657456618
"API_ID_INVALID": {
5657556619
"code": 400,
@@ -57434,6 +57478,11 @@
5743457478
"code": 406,
5743557479
"type": "GIFTCODE_NOT_ALLOWED"
5743657480
},
57481+
"GIFT_SLUG_EXPIRED": {
57482+
"code": 400,
57483+
"type": "GIFT_SLUG_EXPIRED",
57484+
"description": "The specified gift slug has expired."
57485+
},
5743757486
"GIFT_SLUG_INVALID": {
5743857487
"code": 400,
5743957488
"type": "GIFT_SLUG_INVALID",
@@ -57729,10 +57778,6 @@
5772957778
"type": "MEDIA_TYPE_INVALID",
5773057779
"description": "The specified media type cannot be used in stories."
5773157780
},
57732-
"MEDIA_VIDEO_STORY_MISSING": {
57733-
"code": 400,
57734-
"type": "MEDIA_VIDEO_STORY_MISSING"
57735-
},
5773657781
"MEGAGROUP_GEO_REQUIRED": {
5773757782
"code": 400,
5773857783
"type": "MEGAGROUP_GEO_REQUIRED",
@@ -58158,6 +58203,11 @@
5815858203
"type": "PREMIUM_ACCOUNT_REQUIRED",
5815958204
"description": "A premium account is required to execute this action."
5816058205
},
58206+
"PREMIUM_SUB_ACTIVE_UNTIL_%d": {
58207+
"code": 420,
58208+
"type": "PREMIUM_SUB_ACTIVE_UNTIL_%d",
58209+
"description": "You already have an premium subscription active until unxtime %d."
58210+
},
5816158211
"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN": {
5816258212
"code": 406,
5816358213
"type": "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN",
@@ -58283,6 +58333,11 @@
5828358333
"type": "REPLY_MARKUP_TOO_LONG",
5828458334
"description": "The specified reply_markup is too long."
5828558335
},
58336+
"REPLY_MESSAGE_ID_INVALID": {
58337+
"code": 400,
58338+
"type": "REPLY_MESSAGE_ID_INVALID",
58339+
"description": "The specified reply-to message ID is invalid."
58340+
},
5828658341
"REPLY_TO_INVALID": {
5828758342
"code": 400,
5828858343
"type": "REPLY_TO_INVALID",
@@ -58652,6 +58707,11 @@
5865258707
"type": "TAKEOUT_INIT_DELAY_%d",
5865358708
"description": "Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not."
5865458709
},
58710+
"TAKEOUT_INVALID": {
58711+
"code": 400,
58712+
"type": "TAKEOUT_INVALID",
58713+
"description": "The specified takeout ID is invalid."
58714+
},
5865558715
"TAKEOUT_REQUIRED": {
5865658716
"code": 403,
5865758717
"type": "TAKEOUT_REQUIRED",
@@ -58959,7 +59019,8 @@
5895959019
},
5896059020
"USER_PUBLIC_MISSING": {
5896159021
"code": 400,
58962-
"type": "USER_PUBLIC_MISSING"
59022+
"type": "USER_PUBLIC_MISSING",
59023+
"description": "Cannot generate a link to stories posted by a peer without a username."
5896359024
},
5896459025
"USER_RESTRICTED": {
5896559026
"code": 406,

0 commit comments

Comments
 (0)