Skip to content

Commit 71ce08f

Browse files
Merge pull request #85 from gotd/feat/update-schema
feat(schema): update documentation to the latest layer
2 parents b51c4a0 + 2949c22 commit 71ce08f

File tree

2 files changed

+126
-76
lines changed

2 files changed

+126
-76
lines changed

_schema/144.json

Lines changed: 63 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@
23992399
"Represents a bot web app that can be launched from the attachment menu »¹"
24002400
],
24012401
"links": [
2402-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2402+
"https://core.telegram.org/api/bots/attach"
24032403
],
24042404
"fields": {
24052405
"bot_id": {
@@ -2415,7 +2415,10 @@
24152415
},
24162416
"has_settings": {
24172417
"name": "has_settings",
2418-
"description": "True, if the bot supports the \"settings_button_pressed\" event"
2418+
"description": "True, if the bot supports the \"settings_button_pressed\" event »¹",
2419+
"links": [
2420+
"https://core.telegram.org/api/bots/webapps#settings_button_pressed"
2421+
]
24192422
},
24202423
"icons": {
24212424
"name": "icons",
@@ -2444,7 +2447,7 @@
24442447
"Represents an attachment menu icon for bot web apps »¹"
24452448
],
24462449
"links": [
2447-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2450+
"https://core.telegram.org/api/bots/attach"
24482451
],
24492452
"fields": {
24502453
"colors": {
@@ -2474,7 +2477,7 @@
24742477
"Represents an attachment menu icon color for bot web apps »¹"
24752478
],
24762479
"links": [
2477-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2480+
"https://core.telegram.org/api/bots/attach"
24782481
],
24792482
"fields": {
24802483
"color": {
@@ -2493,14 +2496,14 @@
24932496
"Represents a list of bot web apps that can be launched from the attachment menu »¹"
24942497
],
24952498
"links": [
2496-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2499+
"https://core.telegram.org/api/bots/attach"
24972500
],
24982501
"fields": {
24992502
"bots": {
25002503
"name": "bots",
25012504
"description": "List of bot web apps that can be launched from the attachment menu »¹",
25022505
"links": [
2503-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2506+
"https://core.telegram.org/api/bots/attach"
25042507
]
25052508
},
25062509
"hash": {
@@ -2522,14 +2525,14 @@
25222525
"Represents a bot web app that can be launched from the attachment menu »¹"
25232526
],
25242527
"links": [
2525-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2528+
"https://core.telegram.org/api/bots/attach"
25262529
],
25272530
"fields": {
25282531
"bot": {
25292532
"name": "bot",
25302533
"description": "Represents a bot web app that can be launched from the attachment menu »¹",
25312534
"links": [
2532-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
2535+
"https://core.telegram.org/api/bots/attach"
25332536
]
25342537
},
25352538
"users": {
@@ -3594,7 +3597,7 @@
35943597
],
35953598
"links": [
35963599
"https://core.telegram.org/api/bots/menu",
3597-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-menu-button"
3600+
"https://core.telegram.org/api/bots/webapps"
35983601
],
35993602
"fields": {
36003603
"text": {
@@ -3605,7 +3608,7 @@
36053608
"name": "url",
36063609
"description": "URL of a web app¹ to open when the user clicks on the button",
36073610
"links": [
3608-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-menu-button"
3611+
"https://core.telegram.org/api/bots/webapps"
36093612
]
36103613
}
36113614
}
@@ -9918,7 +9921,11 @@
99189921
},
99199922
"start_param": {
99209923
"name": "start_param",
9921-
"description": "Start parameter"
9924+
"description": "Unique bot deep links start parameter¹. If present, forwarded copies of the sent message will have a URL button with a deep link² to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.",
9925+
"links": [
9926+
"https://core.telegram.org/api/links#not-invoice",
9927+
"https://core.telegram.org/api/links#bot-links"
9928+
]
99229929
},
99239930
"title": {
99249931
"name": "title",
@@ -11894,7 +11901,7 @@
1189411901
"Can only be sent or received as part of a reply keyboard, use keyboardButtonWebView¹ for inline keyboards."
1189511902
],
1189611903
"links": [
11897-
"https://core.telegram.org/bots/webapps",
11904+
"https://core.telegram.org/api/bots/webapps",
1189811905
"https://core.telegram.org/method/messages.requestSimpleWebView",
1189911906
"https://core.telegram.org/constructor/keyboardButtonWebView"
1190011907
],
@@ -11907,7 +11914,7 @@
1190711914
"name": "url",
1190811915
"description": "Web app URL¹",
1190911916
"links": [
11910-
"https://core.telegram.org/bots/webapps"
11917+
"https://core.telegram.org/api/bots/webapps"
1191111918
]
1191211919
}
1191311920
}
@@ -12024,7 +12031,7 @@
1202412031
"Can only be sent or received as part of an inline keyboard, use keyboardButtonSimpleWebView¹ for reply keyboards."
1202512032
],
1202612033
"links": [
12027-
"https://core.telegram.org/bots/webapps",
12034+
"https://core.telegram.org/api/bots/webapps",
1202812035
"https://core.telegram.org/method/messages.requestWebView",
1202912036
"https://core.telegram.org/constructor/keyboardButtonSimpleWebView"
1203012037
],
@@ -12037,7 +12044,7 @@
1203712044
"name": "url",
1203812045
"description": "Web app url¹",
1203912046
"links": [
12040-
"https://core.telegram.org/bots/webapps"
12047+
"https://core.telegram.org/api/bots/webapps"
1204112048
]
1204212049
}
1204312050
}
@@ -12907,7 +12914,7 @@
1290712914
"Data from an opened reply keyboard bot web app¹ was relayed to the bot that owns it (user side service message)."
1290812915
],
1290912916
"links": [
12910-
"https://core.telegram.org/bots/webapps"
12917+
"https://core.telegram.org/api/bots/webapps"
1291112918
],
1291212919
"fields": {
1291312920
"text": {
@@ -12925,7 +12932,7 @@
1292512932
"Data from an opened reply keyboard bot web app¹ was relayed to the bot that owns it (bot side service message)."
1292612933
],
1292712934
"links": [
12928-
"https://core.telegram.org/bots/webapps"
12935+
"https://core.telegram.org/api/bots/webapps"
1292912936
],
1293012937
"fields": {
1293112938
"data": {
@@ -16531,12 +16538,18 @@
1653116538
"payments.exportedInvoice": {
1653216539
"name": "payments.exportedInvoice",
1653316540
"description": [
16534-
"Exported invoice"
16541+
"Exported invoice deep link¹"
16542+
],
16543+
"links": [
16544+
"https://core.telegram.org/api/links#invoice-links"
1653516545
],
1653616546
"fields": {
1653716547
"url": {
1653816548
"name": "url",
16539-
"description": "Exported invoice URL"
16549+
"description": "Exported invoice deep link¹",
16550+
"links": [
16551+
"https://core.telegram.org/api/links#invoice-link"
16552+
]
1654016553
}
1654116554
}
1654216555
},
@@ -20356,10 +20369,10 @@
2035620369
"updateAttachMenuBots": {
2035720370
"name": "updateAttachMenuBots",
2035820371
"description": [
20359-
"The list of added bot web apps »¹ has changed, use messages.getAttachMenuBots² to fetch the updated list."
20372+
"The list of installed attachment menu entries »¹ has changed, use messages.getAttachMenuBots² to fetch the updated list."
2036020373
],
2036120374
"links": [
20362-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu",
20375+
"https://core.telegram.org/api/bots/attach",
2036320376
"https://core.telegram.org/method/messages.getAttachMenuBots"
2036420377
]
2036520378
},
@@ -23468,7 +23481,7 @@
2346823481
"name": "attach_menu_enabled",
2346923482
"description": "Whether we installed the attachment menu web app¹ offered by this bot",
2347023483
"links": [
23471-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
23484+
"https://core.telegram.org/api/bots/attach"
2347223485
]
2347323486
},
2347423487
"bot": {
@@ -23479,7 +23492,7 @@
2347923492
"name": "bot_attach_menu",
2348023493
"description": "Whether this bot offers an attachment menu web app¹",
2348123494
"links": [
23482-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
23495+
"https://core.telegram.org/api/bots/attach"
2348323496
]
2348423497
},
2348523498
"bot_chat_history": {
@@ -23996,9 +24009,10 @@
2399624009
"fields": {
2399724010
"background_color": {
2399824011
"name": "background_color",
23999-
"description": "Used for solid »¹, [gradient »]/api/wallpapers#gradient-fill) and freeform gradient »² fills.",
24012+
"description": "Used for solid »¹, gradient »² and freeform gradient »³ fills.",
2400024013
"links": [
2400124014
"https://core.telegram.org/api/wallpapers#solid-fill",
24015+
"https://core.telegram.org/api/wallpapers#gradient-fill",
2400224016
"https://core.telegram.org/api/wallpapers#freeform-gradient-fill"
2400324017
]
2400424018
},
@@ -34768,7 +34782,7 @@
3476834782
"Returns attachment menu entry for a bot web app that can be launched from the attachment menu »¹"
3476934783
],
3477034784
"links": [
34771-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
34785+
"https://core.telegram.org/api/bots/attach"
3477234786
],
3477334787
"parameters": {
3477434788
"bot": {
@@ -34790,7 +34804,7 @@
3479034804
"Returns installed attachment menu bot web apps »¹"
3479134805
],
3479234806
"links": [
34793-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
34807+
"https://core.telegram.org/api/bots/attach"
3479434808
],
3479534809
"parameters": {
3479634810
"hash": {
@@ -37106,7 +37120,7 @@
3710637120
"name": "bot",
3710737121
"description": "Bot that owns the web app¹",
3710837122
"links": [
37109-
"https://core.telegram.org/bots/webapps"
37123+
"https://core.telegram.org/api/bots/webapps"
3711037124
]
3711137125
},
3711237126
"flags": {
@@ -37579,7 +37593,7 @@
3757937593
"Open a bot web app¹."
3758037594
],
3758137595
"links": [
37582-
"https://core.telegram.org/bots/webapps"
37596+
"https://core.telegram.org/api/bots/webapps"
3758337597
],
3758437598
"parameters": {
3758537599
"bot": {
@@ -37655,7 +37669,7 @@
3765537669
"name": "bot",
3765637670
"description": "Bot that owns the web app¹",
3765737671
"links": [
37658-
"https://core.telegram.org/bots/webapps"
37672+
"https://core.telegram.org/api/bots/webapps"
3765937673
]
3766037674
},
3766137675
"flags": {
@@ -37667,11 +37681,17 @@
3766737681
},
3766837682
"from_bot_menu": {
3766937683
"name": "from_bot_menu",
37670-
"description": "Whether the webview was opened after clicking on the bot's menu button."
37684+
"description": "Whether the webview was opened by clicking on the bot's menu button »¹.",
37685+
"links": [
37686+
"https://core.telegram.org/api/bots/menu"
37687+
]
3767137688
},
3767237689
"peer": {
3767337690
"name": "peer",
37674-
"description": "Dialog where the web app is being opened"
37691+
"description": "Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info »¹).",
37692+
"links": [
37693+
"https://core.telegram.org/api/bots/webapps"
37694+
]
3767537695
},
3767637696
"reply_to_msg_id": {
3767737697
"name": "reply_to_msg_id",
@@ -37682,7 +37702,7 @@
3768237702
},
3768337703
"send_as": {
3768437704
"name": "send_as",
37685-
"description": "Open the web app as the specified peer"
37705+
"description": "Open the web app as the specified peer, sending the resulting the message as the specified peer."
3768637706
},
3768737707
"silent": {
3768837708
"name": "silent",
@@ -37706,7 +37726,7 @@
3770637726
"name": "url",
3770737727
"description": "Web app URL¹",
3770837728
"links": [
37709-
"https://core.telegram.org/bots/webapps"
37729+
"https://core.telegram.org/api/bots/webapps"
3771037730
]
3771137731
}
3771237732
}
@@ -39429,7 +39449,8 @@
3942939449
},
3943039450
{
3943139451
"code": 400,
39432-
"type": "REACTIONS_TOO_MANY"
39452+
"type": "REACTIONS_TOO_MANY",
39453+
"description": "The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info »."
3943339454
},
3943439455
{
3943539456
"code": 400,
@@ -39584,7 +39605,7 @@
3958439605
"Used by the user to relay data from an opened reply keyboard bot web app¹ to the bot that owns it."
3958539606
],
3958639607
"links": [
39587-
"https://core.telegram.org/bots/webapps"
39608+
"https://core.telegram.org/api/bots/webapps"
3958839609
],
3958939610
"parameters": {
3959039611
"bot": {
@@ -40467,7 +40488,7 @@
4046740488
"Enable or disable web bot attachment menu »¹"
4046840489
],
4046940490
"links": [
40470-
"https://core.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu"
40491+
"https://core.telegram.org/api/bots/attach"
4047140492
],
4047240493
"parameters": {
4047340494
"bot": {
@@ -41075,7 +41096,10 @@
4107541096
"payments.exportInvoice": {
4107641097
"name": "payments.exportInvoice",
4107741098
"description": [
41078-
"Export invoice"
41099+
"Generate an invoice deep link¹"
41100+
],
41101+
"links": [
41102+
"https://core.telegram.org/api/links#invoice-links"
4107941103
],
4108041104
"parameters": {
4108141105
"invoice_media": {
@@ -45167,7 +45191,8 @@
4516745191
},
4516845192
"REACTIONS_TOO_MANY": {
4516945193
"code": 400,
45170-
"type": "REACTIONS_TOO_MANY"
45194+
"type": "REACTIONS_TOO_MANY",
45195+
"description": "The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info »."
4517145196
},
4517245197
"REACTION_EMPTY": {
4517345198
"code": 400,

0 commit comments

Comments
 (0)