You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _schema/170.json
+82-21Lines changed: 82 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -16887,33 +16887,43 @@
16887
16887
},
16888
16888
"saved_date": {
16889
16889
"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
+
]
16891
16895
},
16892
16896
"saved_from_id": {
16893
16897
"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
+
]
16895
16902
},
16896
16903
"saved_from_msg_id": {
16897
16904
"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.",
16899
16906
"links": [
16900
16907
"https://core.telegram.org/api/saved-messages"
16901
16908
]
16902
16909
},
16903
16910
"saved_from_name": {
16904
16911
"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
+
]
16906
16916
},
16907
16917
"saved_from_peer": {
16908
16918
"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.",
16910
16920
"links": [
16911
16921
"https://core.telegram.org/api/saved-messages"
16912
16922
]
16913
16923
},
16914
16924
"saved_out": {
16915
16925
"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).",
16917
16927
"links": [
16918
16928
"https://core.telegram.org/api/saved-messages"
16919
16929
]
@@ -16997,7 +17007,7 @@
16997
17007
},
16998
17008
"round": {
16999
17009
"name": "round",
17000
-
"description": ""
17010
+
"description": "Whether this is a round video."
17001
17011
},
17002
17012
"spoiler": {
17003
17013
"name": "spoiler",
@@ -17009,11 +17019,11 @@
17009
17019
},
17010
17020
"video": {
17011
17021
"name": "video",
17012
-
"description": ""
17022
+
"description": "Whether this is a video."
17013
17023
},
17014
17024
"voice": {
17015
17025
"name": "voice",
17016
-
"description": ""
17026
+
"description": "Whether this is a voice message."
17017
17027
}
17018
17028
}
17019
17029
},
@@ -38887,6 +38897,11 @@
38887
38897
"type": "FILE_REFERENCE_INVALID",
38888
38898
"description": "The specified file reference is invalid."
38889
38899
},
38900
+
{
38901
+
"code": 400,
38902
+
"type": "IMAGE_PROCESS_FAILED",
38903
+
"description": "Failure while processing image."
38904
+
},
38890
38905
{
38891
38906
"code": 400,
38892
38907
"type": "PHOTO_CROP_SIZE_SMALL",
@@ -40270,6 +40285,11 @@
40270
40285
"type": "CHANNEL_INVALID",
40271
40286
"description": "The provided channel is invalid."
40272
40287
},
40288
+
{
40289
+
"code": 400,
40290
+
"type": "CHAT_ADMIN_REQUIRED",
40291
+
"description": "You must be an admin in this chat to do this."
40292
+
},
40273
40293
{
40274
40294
"code": 400,
40275
40295
"type": "CHAT_ID_INVALID",
@@ -45571,6 +45591,11 @@
45571
45591
"code": 400,
45572
45592
"type": "PEER_ID_INVALID",
45573
45593
"description": "The provided peer id is invalid."
45594
+
},
45595
+
{
45596
+
"code": 400,
45597
+
"type": "TAKEOUT_INVALID",
45598
+
"description": "The specified takeout ID is invalid."
45574
45599
}
45575
45600
]
45576
45601
},
@@ -50276,7 +50301,8 @@
50276
50301
"errors": [
50277
50302
{
50278
50303
"code": 403,
50279
-
"type": "ANONYMOUS_REACTIONS_DISABLED"
50304
+
"type": "ANONYMOUS_REACTIONS_DISABLED",
50305
+
"description": "Sorry, anonymous administrators cannot leave reactions or participate in polls."
50280
50306
},
50281
50307
{
50282
50308
"code": 400,
@@ -50408,6 +50434,11 @@
50408
50434
"type": "PEER_ID_INVALID",
50409
50435
"description": "The provided peer id is invalid."
50410
50436
},
50437
+
{
50438
+
"code": 400,
50439
+
"type": "REPLY_MESSAGE_ID_INVALID",
50440
+
"description": "The specified reply-to message ID is invalid."
50441
+
},
50411
50442
{
50412
50443
"code": 400,
50413
50444
"type": "STORY_ID_INVALID",
@@ -52202,6 +52233,21 @@
52202
52233
{
52203
52234
"code": 406,
52204
52235
"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."
52205
52251
}
52206
52252
]
52207
52253
},
@@ -55060,7 +55106,8 @@
55060
55106
},
55061
55107
{
55062
55108
"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."
55064
55111
}
55065
55112
]
55066
55113
},
@@ -55718,10 +55765,6 @@
55718
55765
"type": "MEDIA_TYPE_INVALID",
55719
55766
"description": "The specified media type cannot be used in stories."
55720
55767
},
55721
-
{
55722
-
"code": 400,
55723
-
"type": "MEDIA_VIDEO_STORY_MISSING"
55724
-
},
55725
55768
{
55726
55769
"code": 400,
55727
55770
"type": "PEER_ID_INVALID",
@@ -56569,7 +56612,8 @@
56569
56612
},
56570
56613
"ANONYMOUS_REACTIONS_DISABLED": {
56571
56614
"code": 403,
56572
-
"type": "ANONYMOUS_REACTIONS_DISABLED"
56615
+
"type": "ANONYMOUS_REACTIONS_DISABLED",
56616
+
"description": "Sorry, anonymous administrators cannot leave reactions or participate in polls."
56573
56617
},
56574
56618
"API_ID_INVALID": {
56575
56619
"code": 400,
@@ -57434,6 +57478,11 @@
57434
57478
"code": 406,
57435
57479
"type": "GIFTCODE_NOT_ALLOWED"
57436
57480
},
57481
+
"GIFT_SLUG_EXPIRED": {
57482
+
"code": 400,
57483
+
"type": "GIFT_SLUG_EXPIRED",
57484
+
"description": "The specified gift slug has expired."
57485
+
},
57437
57486
"GIFT_SLUG_INVALID": {
57438
57487
"code": 400,
57439
57488
"type": "GIFT_SLUG_INVALID",
@@ -57729,10 +57778,6 @@
57729
57778
"type": "MEDIA_TYPE_INVALID",
57730
57779
"description": "The specified media type cannot be used in stories."
57731
57780
},
57732
-
"MEDIA_VIDEO_STORY_MISSING": {
57733
-
"code": 400,
57734
-
"type": "MEDIA_VIDEO_STORY_MISSING"
57735
-
},
57736
57781
"MEGAGROUP_GEO_REQUIRED": {
57737
57782
"code": 400,
57738
57783
"type": "MEGAGROUP_GEO_REQUIRED",
@@ -58158,6 +58203,11 @@
58158
58203
"type": "PREMIUM_ACCOUNT_REQUIRED",
58159
58204
"description": "A premium account is required to execute this action."
58160
58205
},
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
+
},
58161
58211
"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN": {
58162
58212
"code": 406,
58163
58213
"type": "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN",
@@ -58283,6 +58333,11 @@
58283
58333
"type": "REPLY_MARKUP_TOO_LONG",
58284
58334
"description": "The specified reply_markup is too long."
58285
58335
},
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
+
},
58286
58341
"REPLY_TO_INVALID": {
58287
58342
"code": 400,
58288
58343
"type": "REPLY_TO_INVALID",
@@ -58652,6 +58707,11 @@
58652
58707
"type": "TAKEOUT_INIT_DELAY_%d",
58653
58708
"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."
58654
58709
},
58710
+
"TAKEOUT_INVALID": {
58711
+
"code": 400,
58712
+
"type": "TAKEOUT_INVALID",
58713
+
"description": "The specified takeout ID is invalid."
58714
+
},
58655
58715
"TAKEOUT_REQUIRED": {
58656
58716
"code": 403,
58657
58717
"type": "TAKEOUT_REQUIRED",
@@ -58959,7 +59019,8 @@
58959
59019
},
58960
59020
"USER_PUBLIC_MISSING": {
58961
59021
"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."
0 commit comments