-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.json
15605 lines (15605 loc) · 582 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.3",
"info": {
"title": "Telegram Bot API",
"description": "API for Telegram bots",
"termsOfService": "https://telegram.org/tos",
"version": "7.5"
},
"servers": [
{
"url": "https://api.telegram.org/bot{token}/",
"description": "production",
"variables": {
"token": {
"default": "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
"description": "Telegram Bot API token"
}
}
},
{
"url": "https://api.telegram.org/bot{token}/test",
"description": "test",
"variables": {
"token": {
"default": "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
"description": "Telegram Bot API token"
}
}
}
],
"paths": {
"/addStickerToSet": {
"post": {
"description": "Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#addstickertoset"
},
"operationId": "addStickerToSet",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/addStickerToSet"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/answerCallbackQuery": {
"post": {
"description": "Use this method to send answers to callback queries sent from [inline keyboards](https://core.telegram.org/bots/features#inline-keyboards). The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, _True_ is returned.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#answercallbackquery"
},
"operationId": "answerCallbackQuery",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/answerCallbackQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/answerInlineQuery": {
"post": {
"description": "Use this method to send answers to an inline query. On success, _True_ is returned.No more than **50** results per query are allowed.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#answerinlinequery"
},
"operationId": "answerInlineQuery",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/answerInlineQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/answerPreCheckoutQuery": {
"post": {
"description": "Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an [Update](https://core.telegram.org/bots/api#update) with the field _pre_checkout_query_. Use this method to respond to such pre-checkout queries. On success, _True_ is returned. **Note:** The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#answerprecheckoutquery"
},
"operationId": "answerPreCheckoutQuery",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/answerPreCheckoutQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/answerShippingQuery": {
"post": {
"description": "If you sent an invoice requesting a shipping address and the parameter _is_flexible_ was specified, the Bot API will send an [Update](https://core.telegram.org/bots/api#update) with a _shipping_query_ field to the bot. Use this method to reply to shipping queries. On success, _True_ is returned.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#answershippingquery"
},
"operationId": "answerShippingQuery",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/answerShippingQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/answerWebAppQuery": {
"post": {
"description": "Use this method to set the result of an interaction with a [Web App](https://core.telegram.org/bots/webapps) and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a [SentWebAppMessage](https://core.telegram.org/bots/api#sentwebappmessage) object is returned.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#answerwebappquery"
},
"operationId": "answerWebAppQuery",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/answerWebAppQuery"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/approveChatJoinRequest": {
"post": {
"description": "Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the _can_invite_users_ administrator right. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#approvechatjoinrequest"
},
"operationId": "approveChatJoinRequest",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/approveChatJoinRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/banChatMember": {
"post": {
"description": "Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless [unbanned](https://core.telegram.org/bots/api#unbanchatmember) first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#banchatmember"
},
"operationId": "banChatMember",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/banChatMember"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/banChatSenderChat": {
"post": {
"description": "Use this method to ban a channel chat in a supergroup or a channel. Until the chat is [unbanned](https://core.telegram.org/bots/api#unbanchatsenderchat), the owner of the banned chat won't be able to send messages on behalf of **any of their channels**. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#banchatsenderchat"
},
"operationId": "banChatSenderChat",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/banChatSenderChat"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/close": {
"post": {
"description": "Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns _True_ on success. Requires no parameters.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#close"
},
"operationId": "close",
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/closeForumTopic": {
"post": {
"description": "Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can_manage_topics_ administrator rights, unless it is the creator of the topic. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#closeforumtopic"
},
"operationId": "closeForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/closeForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/closeGeneralForumTopic": {
"post": {
"description": "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can_manage_topics_ administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#closegeneralforumtopic"
},
"operationId": "closeGeneralForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/closeGeneralForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/copyMessage": {
"post": {
"description": "Use this method to copy messages of any kind. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz [poll](https://core.telegram.org/bots/api#poll) can be copied only if the value of the field _correct_option_id_ is known to the bot. The method is analogous to the method [forwardMessage](https://core.telegram.org/bots/api#forwardmessage), but the copied message doesn't have a link to the original message. Returns the [MessageId](https://core.telegram.org/bots/api#messageid) of the sent message on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#copymessage"
},
"operationId": "copyMessage",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/copyMessage"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageId"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/copyMessages": {
"post": {
"description": "Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz [poll](https://core.telegram.org/bots/api#poll) can be copied only if the value of the field _correct_option_id_ is known to the bot. The method is analogous to the method [forwardMessages](https://core.telegram.org/bots/api#forwardmessages), but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of [MessageId](https://core.telegram.org/bots/api#messageid) of the sent messages is returned.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#copymessages"
},
"operationId": "copyMessages",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/copyMessages"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultArrayOfMessageId"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/createChatInviteLink": {
"post": {
"description": "Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method [revokeChatInviteLink](https://core.telegram.org/bots/api#revokechatinvitelink). Returns the new invite link as [ChatInviteLink](https://core.telegram.org/bots/api#chatinvitelink) object.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#createchatinvitelink"
},
"operationId": "createChatInviteLink",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/createChatInviteLink"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultChatInviteLink"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/createForumTopic": {
"post": {
"description": "Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can_manage_topics_ administrator rights. Returns information about the created topic as a [ForumTopic](https://core.telegram.org/bots/api#forumtopic) object.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#createforumtopic"
},
"operationId": "createForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/createForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/createInvoiceLink": {
"post": {
"description": "Use this method to create a link for an invoice. Returns the created invoice link as _String_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#createinvoicelink"
},
"operationId": "createInvoiceLink",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/createInvoiceLink"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultString"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/createNewStickerSet": {
"post": {
"description": "Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#createnewstickerset"
},
"operationId": "createNewStickerSet",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/createNewStickerSet"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/declineChatJoinRequest": {
"post": {
"description": "Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the _can_invite_users_ administrator right. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#declinechatjoinrequest"
},
"operationId": "declineChatJoinRequest",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/declineChatJoinRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteChatPhoto": {
"post": {
"description": "Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletechatphoto"
},
"operationId": "deleteChatPhoto",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteChatPhoto"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteChatStickerSet": {
"post": {
"description": "Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field _can_set_sticker_set_ optionally returned in [getChat](https://core.telegram.org/bots/api#getchat) requests to check if the bot can use this method. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletechatstickerset"
},
"operationId": "deleteChatStickerSet",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteChatStickerSet"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteForumTopic": {
"post": {
"description": "Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the _can_delete_messages_ administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deleteforumtopic"
},
"operationId": "deleteForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteMessage": {
"post": {
"description": "Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- Service messages about a supergroup, channel, or forum topic creation can't be deleted.- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted _can_post_messages_ permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has _can_delete_messages_ permission in a supergroup or a channel, it can delete any message there.Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletemessage"
},
"operationId": "deleteMessage",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteMessage"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteMessages": {
"post": {
"description": "Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletemessages"
},
"operationId": "deleteMessages",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteMessages"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteMyCommands": {
"post": {
"description": "Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, [higher level commands](https://core.telegram.org/bots/api#determining-list-of-commands) will be shown to affected users. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletemycommands"
},
"operationId": "deleteMyCommands",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteMyCommands"
}
}
}
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteStickerFromSet": {
"post": {
"description": "Use this method to delete a sticker from a set created by the bot. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletestickerfromset"
},
"operationId": "deleteStickerFromSet",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteStickerFromSet"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteStickerSet": {
"post": {
"description": "Use this method to delete a sticker set that was created by the bot. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletestickerset"
},
"operationId": "deleteStickerSet",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteStickerSet"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/deleteWebhook": {
"post": {
"description": "Use this method to remove webhook integration if you decide to switch back to [getUpdates](https://core.telegram.org/bots/api#getupdates). Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#deletewebhook"
},
"operationId": "deleteWebhook",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/deleteWebhook"
}
}
}
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editChatInviteLink": {
"post": {
"description": "Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a [ChatInviteLink](https://core.telegram.org/bots/api#chatinvitelink) object.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editchatinvitelink"
},
"operationId": "editChatInviteLink",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editChatInviteLink"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultChatInviteLink"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editForumTopic": {
"post": {
"description": "Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have _can_manage_topics_ administrator rights, unless it is the creator of the topic. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editforumtopic"
},
"operationId": "editForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editGeneralForumTopic": {
"post": {
"description": "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have _can_manage_topics_ administrator rights. Returns _True_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editgeneralforumtopic"
},
"operationId": "editGeneralForumTopic",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editGeneralForumTopic"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/Result"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editMessageCaption": {
"post": {
"description": "Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api#message) is returned, otherwise _True_ is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editmessagecaption"
},
"operationId": "editMessageCaption",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editMessageCaption"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageOrBoolean"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editMessageLiveLocation": {
"post": {
"description": "Use this method to edit live location messages. A location can be edited until its _live_period_ expires or editing is explicitly disabled by a call to [stopMessageLiveLocation](https://core.telegram.org/bots/api#stopmessagelivelocation). On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api#message) is returned, otherwise _True_ is returned.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editmessagelivelocation"
},
"operationId": "editMessageLiveLocation",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editMessageLiveLocation"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageOrBoolean"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editMessageMedia": {
"post": {
"description": "Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api#message) is returned, otherwise _True_ is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editmessagemedia"
},
"operationId": "editMessageMedia",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editMessageMedia"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageOrBoolean"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editMessageReplyMarkup": {
"post": {
"description": "Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api#message) is returned, otherwise _True_ is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editmessagereplymarkup"
},
"operationId": "editMessageReplyMarkup",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editMessageReplyMarkup"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageOrBoolean"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/editMessageText": {
"post": {
"description": "Use this method to edit text and [game](https://core.telegram.org/bots/api#games) messages. On success, if the edited message is not an inline message, the edited [Message](https://core.telegram.org/bots/api#message) is returned, otherwise _True_ is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within **48 hours** from the time they were sent.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#editmessagetext"
},
"operationId": "editMessageText",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/editMessageText"
}
}
},
"required": true
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultMessageOrBoolean"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/exportChatInviteLink": {
"post": {
"description": "Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as _String_ on success.",
"externalDocs": {
"url": "https://core.telegram.org/bots/api#exportchatinvitelink"
},
"operationId": "exportChatInviteLink",
"requestBody": {
"content": {