@grom.js/bot-api-spec 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/methods.gen.d.ts +6 -2
- package/dist/methods.gen.d.ts.map +1 -1
- package/dist/methods.gen.js +335 -119
- package/dist/methods.gen.js.map +1 -1
- package/dist/types.gen.d.ts +8 -2
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/types.gen.js +548 -60
- package/dist/types.gen.js.map +1 -1
- package/package.json +9 -9
- package/src/methods.gen.ts +341 -121
- package/src/types.gen.ts +556 -62
package/src/types.gen.ts
CHANGED
|
@@ -279,6 +279,17 @@ const Update = t({
|
|
|
279
279
|
},
|
|
280
280
|
required: false,
|
|
281
281
|
},
|
|
282
|
+
{
|
|
283
|
+
name: 'managed_bot',
|
|
284
|
+
type: {
|
|
285
|
+
type: 'api-type',
|
|
286
|
+
name: 'ManagedBotUpdated',
|
|
287
|
+
},
|
|
288
|
+
description: {
|
|
289
|
+
markdown: 'A new bot was created to be managed by the bot or token of a bot was changed',
|
|
290
|
+
},
|
|
291
|
+
required: false,
|
|
292
|
+
},
|
|
282
293
|
],
|
|
283
294
|
})
|
|
284
295
|
|
|
@@ -542,6 +553,16 @@ const User = t({
|
|
|
542
553
|
},
|
|
543
554
|
required: false,
|
|
544
555
|
},
|
|
556
|
+
{
|
|
557
|
+
name: 'can_manage_bots',
|
|
558
|
+
type: {
|
|
559
|
+
type: 'bool',
|
|
560
|
+
},
|
|
561
|
+
description: {
|
|
562
|
+
markdown: '_True_, if other bots can be created to be controlled by the bot. Returned only in [getMe](https://core.telegram.org/bots/api#getme).',
|
|
563
|
+
},
|
|
564
|
+
required: false,
|
|
565
|
+
},
|
|
545
566
|
],
|
|
546
567
|
})
|
|
547
568
|
|
|
@@ -1304,6 +1325,16 @@ const Message = t({
|
|
|
1304
1325
|
},
|
|
1305
1326
|
required: false,
|
|
1306
1327
|
},
|
|
1328
|
+
{
|
|
1329
|
+
name: 'sender_tag',
|
|
1330
|
+
type: {
|
|
1331
|
+
type: 'str',
|
|
1332
|
+
},
|
|
1333
|
+
description: {
|
|
1334
|
+
markdown: 'Tag or custom title of the sender of the message; for supergroups only',
|
|
1335
|
+
},
|
|
1336
|
+
required: false,
|
|
1337
|
+
},
|
|
1307
1338
|
{
|
|
1308
1339
|
name: 'date',
|
|
1309
1340
|
type: {
|
|
@@ -1422,6 +1453,16 @@ const Message = t({
|
|
|
1422
1453
|
},
|
|
1423
1454
|
required: false,
|
|
1424
1455
|
},
|
|
1456
|
+
{
|
|
1457
|
+
name: 'reply_to_poll_option_id',
|
|
1458
|
+
type: {
|
|
1459
|
+
type: 'str',
|
|
1460
|
+
},
|
|
1461
|
+
description: {
|
|
1462
|
+
markdown: 'Persistent identifier of the specific poll option that is being replied to',
|
|
1463
|
+
},
|
|
1464
|
+
required: false,
|
|
1465
|
+
},
|
|
1425
1466
|
{
|
|
1426
1467
|
name: 'via_bot',
|
|
1427
1468
|
type: {
|
|
@@ -1482,7 +1523,7 @@ const Message = t({
|
|
|
1482
1523
|
type: 'str',
|
|
1483
1524
|
},
|
|
1484
1525
|
description: {
|
|
1485
|
-
markdown: 'The unique identifier of a media message group this message belongs to',
|
|
1526
|
+
markdown: 'The unique identifier inside this chat of a media message group this message belongs to',
|
|
1486
1527
|
},
|
|
1487
1528
|
required: false,
|
|
1488
1529
|
},
|
|
@@ -2251,6 +2292,17 @@ const Message = t({
|
|
|
2251
2292
|
},
|
|
2252
2293
|
required: false,
|
|
2253
2294
|
},
|
|
2295
|
+
{
|
|
2296
|
+
name: 'managed_bot_created',
|
|
2297
|
+
type: {
|
|
2298
|
+
type: 'api-type',
|
|
2299
|
+
name: 'ManagedBotCreated',
|
|
2300
|
+
},
|
|
2301
|
+
description: {
|
|
2302
|
+
markdown: 'Service message: user created a bot that will be managed by the current bot',
|
|
2303
|
+
},
|
|
2304
|
+
required: false,
|
|
2305
|
+
},
|
|
2254
2306
|
{
|
|
2255
2307
|
name: 'paid_message_price_changed',
|
|
2256
2308
|
type: {
|
|
@@ -2262,6 +2314,28 @@ const Message = t({
|
|
|
2262
2314
|
},
|
|
2263
2315
|
required: false,
|
|
2264
2316
|
},
|
|
2317
|
+
{
|
|
2318
|
+
name: 'poll_option_added',
|
|
2319
|
+
type: {
|
|
2320
|
+
type: 'api-type',
|
|
2321
|
+
name: 'PollOptionAdded',
|
|
2322
|
+
},
|
|
2323
|
+
description: {
|
|
2324
|
+
markdown: 'Service message: answer option was added to a poll',
|
|
2325
|
+
},
|
|
2326
|
+
required: false,
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
name: 'poll_option_deleted',
|
|
2330
|
+
type: {
|
|
2331
|
+
type: 'api-type',
|
|
2332
|
+
name: 'PollOptionDeleted',
|
|
2333
|
+
},
|
|
2334
|
+
description: {
|
|
2335
|
+
markdown: 'Service message: answer option was deleted from a poll',
|
|
2336
|
+
},
|
|
2337
|
+
required: false,
|
|
2338
|
+
},
|
|
2265
2339
|
{
|
|
2266
2340
|
name: 'suggested_post_approved',
|
|
2267
2341
|
type: {
|
|
@@ -2379,7 +2453,7 @@ const Message = t({
|
|
|
2379
2453
|
name: 'InlineKeyboardMarkup',
|
|
2380
2454
|
},
|
|
2381
2455
|
description: {
|
|
2382
|
-
markdown: 'Inline keyboard attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
|
|
2456
|
+
markdown: '[Inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
|
|
2383
2457
|
},
|
|
2384
2458
|
required: false,
|
|
2385
2459
|
},
|
|
@@ -2550,10 +2624,14 @@ const MessageEntity = t({
|
|
|
2550
2624
|
type: 'str',
|
|
2551
2625
|
literal: 'custom_emoji',
|
|
2552
2626
|
},
|
|
2627
|
+
{
|
|
2628
|
+
type: 'str',
|
|
2629
|
+
literal: 'date_time',
|
|
2630
|
+
},
|
|
2553
2631
|
],
|
|
2554
2632
|
},
|
|
2555
2633
|
description: {
|
|
2556
|
-
markdown: 'Type of the entity. Currently, can be “mention” (`@username`), “hashtag” (`#hashtag` or `#hashtag@chatusername`), “cashtag” (`$USD` or `$USD@chatusername`), “bot\\_command” (`/start@jobs_bot`), “url” (`https://telegram.org`), “email” (`do-not-reply@telegram.org`), “phone\\_number” (`+1-212-555-0123`), “bold” (**bold text**), “italic” (_italic text_), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation), “expandable\\_blockquote” (collapsed-by-default block quotation), “code” (monowidth string), “pre” (monowidth block), “text\\_link” (for clickable text URLs), “text\\_mention” (for users [without usernames](https://telegram.org/blog/edit#new-mentions)), “custom\\_emoji” (for inline custom emoji stickers)',
|
|
2634
|
+
markdown: 'Type of the entity. Currently, can be “mention” (`@username`), “hashtag” (`#hashtag` or `#hashtag@chatusername`), “cashtag” (`$USD` or `$USD@chatusername`), “bot\\_command” (`/start@jobs_bot`), “url” (`https://telegram.org`), “email” (`do-not-reply@telegram.org`), “phone\\_number” (`+1-212-555-0123`), “bold” (**bold text**), “italic” (_italic text_), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation), “expandable\\_blockquote” (collapsed-by-default block quotation), “code” (monowidth string), “pre” (monowidth block), “text\\_link” (for clickable text URLs), “text\\_mention” (for users [without usernames](https://telegram.org/blog/edit#new-mentions)), “custom\\_emoji” (for inline custom emoji stickers), or “date\\_time” (for formatted date and time)',
|
|
2557
2635
|
},
|
|
2558
2636
|
required: true,
|
|
2559
2637
|
},
|
|
@@ -2618,6 +2696,26 @@ const MessageEntity = t({
|
|
|
2618
2696
|
},
|
|
2619
2697
|
required: false,
|
|
2620
2698
|
},
|
|
2699
|
+
{
|
|
2700
|
+
name: 'unix_time',
|
|
2701
|
+
type: {
|
|
2702
|
+
type: 'int32',
|
|
2703
|
+
},
|
|
2704
|
+
description: {
|
|
2705
|
+
markdown: 'For “date\\_time” only, the Unix time associated with the entity',
|
|
2706
|
+
},
|
|
2707
|
+
required: false,
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
name: 'date_time_format',
|
|
2711
|
+
type: {
|
|
2712
|
+
type: 'str',
|
|
2713
|
+
},
|
|
2714
|
+
description: {
|
|
2715
|
+
markdown: 'For “date\\_time” only, the string that defines the formatting of the date and time. See [date-time entity formatting](https://core.telegram.org/bots/api#date-time-entity-formatting) for more details.',
|
|
2716
|
+
},
|
|
2717
|
+
required: false,
|
|
2718
|
+
},
|
|
2621
2719
|
],
|
|
2622
2720
|
})
|
|
2623
2721
|
|
|
@@ -2647,7 +2745,7 @@ const TextQuote = t({
|
|
|
2647
2745
|
},
|
|
2648
2746
|
},
|
|
2649
2747
|
description: {
|
|
2650
|
-
markdown: 'Special entities that appear in the quote. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_,
|
|
2748
|
+
markdown: 'Special entities that appear in the quote. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_, _custom\\_emoji_, and _date\\_time_ entities are kept in quotes.',
|
|
2651
2749
|
},
|
|
2652
2750
|
required: false,
|
|
2653
2751
|
},
|
|
@@ -3011,7 +3109,7 @@ const ReplyParameters = t({
|
|
|
3011
3109
|
type: 'str',
|
|
3012
3110
|
},
|
|
3013
3111
|
description: {
|
|
3014
|
-
markdown: 'Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including _bold_, _italic_, _underline_, _strikethrough_, _spoiler_,
|
|
3112
|
+
markdown: 'Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including _bold_, _italic_, _underline_, _strikethrough_, _spoiler_, _custom\\_emoji_, and _date\\_time_ entities. The message will fail to send if the quote isn\'t found in the original message.',
|
|
3015
3113
|
},
|
|
3016
3114
|
required: false,
|
|
3017
3115
|
},
|
|
@@ -3073,6 +3171,16 @@ const ReplyParameters = t({
|
|
|
3073
3171
|
},
|
|
3074
3172
|
required: false,
|
|
3075
3173
|
},
|
|
3174
|
+
{
|
|
3175
|
+
name: 'poll_option_id',
|
|
3176
|
+
type: {
|
|
3177
|
+
type: 'str',
|
|
3178
|
+
},
|
|
3179
|
+
description: {
|
|
3180
|
+
markdown: 'Persistent identifier of the specific poll option to be replied to',
|
|
3181
|
+
},
|
|
3182
|
+
required: false,
|
|
3183
|
+
},
|
|
3076
3184
|
],
|
|
3077
3185
|
})
|
|
3078
3186
|
|
|
@@ -4292,6 +4400,16 @@ const PollOption = t({
|
|
|
4292
4400
|
markdown: 'This object contains information about one answer option in a poll.',
|
|
4293
4401
|
},
|
|
4294
4402
|
fields: [
|
|
4403
|
+
{
|
|
4404
|
+
name: 'persistent_id',
|
|
4405
|
+
type: {
|
|
4406
|
+
type: 'str',
|
|
4407
|
+
},
|
|
4408
|
+
description: {
|
|
4409
|
+
markdown: 'Unique identifier of the option, persistent on option addition and deletion',
|
|
4410
|
+
},
|
|
4411
|
+
required: true,
|
|
4412
|
+
},
|
|
4295
4413
|
{
|
|
4296
4414
|
name: 'text',
|
|
4297
4415
|
type: {
|
|
@@ -4322,10 +4440,42 @@ const PollOption = t({
|
|
|
4322
4440
|
type: 'int32',
|
|
4323
4441
|
},
|
|
4324
4442
|
description: {
|
|
4325
|
-
markdown: 'Number of users
|
|
4443
|
+
markdown: 'Number of users who voted for this option; may be 0 if unknown',
|
|
4326
4444
|
},
|
|
4327
4445
|
required: true,
|
|
4328
4446
|
},
|
|
4447
|
+
{
|
|
4448
|
+
name: 'added_by_user',
|
|
4449
|
+
type: {
|
|
4450
|
+
type: 'api-type',
|
|
4451
|
+
name: 'User',
|
|
4452
|
+
},
|
|
4453
|
+
description: {
|
|
4454
|
+
markdown: 'User who added the option; omitted if the option wasn\'t added by a user after poll creation',
|
|
4455
|
+
},
|
|
4456
|
+
required: false,
|
|
4457
|
+
},
|
|
4458
|
+
{
|
|
4459
|
+
name: 'added_by_chat',
|
|
4460
|
+
type: {
|
|
4461
|
+
type: 'api-type',
|
|
4462
|
+
name: 'Chat',
|
|
4463
|
+
},
|
|
4464
|
+
description: {
|
|
4465
|
+
markdown: 'Chat that added the option; omitted if the option wasn\'t added by a chat after poll creation',
|
|
4466
|
+
},
|
|
4467
|
+
required: false,
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
name: 'addition_date',
|
|
4471
|
+
type: {
|
|
4472
|
+
type: 'int32',
|
|
4473
|
+
},
|
|
4474
|
+
description: {
|
|
4475
|
+
markdown: 'Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll',
|
|
4476
|
+
},
|
|
4477
|
+
required: false,
|
|
4478
|
+
},
|
|
4329
4479
|
],
|
|
4330
4480
|
})
|
|
4331
4481
|
|
|
@@ -4437,6 +4587,19 @@ const PollAnswer = t({
|
|
|
4437
4587
|
},
|
|
4438
4588
|
required: true,
|
|
4439
4589
|
},
|
|
4590
|
+
{
|
|
4591
|
+
name: 'option_persistent_ids',
|
|
4592
|
+
type: {
|
|
4593
|
+
type: 'array',
|
|
4594
|
+
of: {
|
|
4595
|
+
type: 'str',
|
|
4596
|
+
},
|
|
4597
|
+
},
|
|
4598
|
+
description: {
|
|
4599
|
+
markdown: 'Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.',
|
|
4600
|
+
},
|
|
4601
|
+
required: true,
|
|
4602
|
+
},
|
|
4440
4603
|
],
|
|
4441
4604
|
})
|
|
4442
4605
|
|
|
@@ -4555,12 +4718,25 @@ const Poll = t({
|
|
|
4555
4718
|
required: true,
|
|
4556
4719
|
},
|
|
4557
4720
|
{
|
|
4558
|
-
name: '
|
|
4721
|
+
name: 'allows_revoting',
|
|
4559
4722
|
type: {
|
|
4560
|
-
type: '
|
|
4723
|
+
type: 'bool',
|
|
4561
4724
|
},
|
|
4562
4725
|
description: {
|
|
4563
|
-
markdown: '
|
|
4726
|
+
markdown: '_True_, if the poll allows to change the chosen answer options',
|
|
4727
|
+
},
|
|
4728
|
+
required: true,
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
name: 'correct_option_ids',
|
|
4732
|
+
type: {
|
|
4733
|
+
type: 'array',
|
|
4734
|
+
of: {
|
|
4735
|
+
type: 'int32',
|
|
4736
|
+
},
|
|
4737
|
+
},
|
|
4738
|
+
description: {
|
|
4739
|
+
markdown: 'Array of 0-based identifiers of the correct answer options. Available only for polls in quiz mode which are closed or were sent (not forwarded) by the bot or to the private chat with the bot.',
|
|
4564
4740
|
},
|
|
4565
4741
|
required: false,
|
|
4566
4742
|
},
|
|
@@ -4608,6 +4784,30 @@ const Poll = t({
|
|
|
4608
4784
|
},
|
|
4609
4785
|
required: false,
|
|
4610
4786
|
},
|
|
4787
|
+
{
|
|
4788
|
+
name: 'description',
|
|
4789
|
+
type: {
|
|
4790
|
+
type: 'str',
|
|
4791
|
+
},
|
|
4792
|
+
description: {
|
|
4793
|
+
markdown: 'Description of the poll; for polls inside the [Message](https://core.telegram.org/bots/api#message) object only',
|
|
4794
|
+
},
|
|
4795
|
+
required: false,
|
|
4796
|
+
},
|
|
4797
|
+
{
|
|
4798
|
+
name: 'description_entities',
|
|
4799
|
+
type: {
|
|
4800
|
+
type: 'array',
|
|
4801
|
+
of: {
|
|
4802
|
+
type: 'api-type',
|
|
4803
|
+
name: 'MessageEntity',
|
|
4804
|
+
},
|
|
4805
|
+
},
|
|
4806
|
+
description: {
|
|
4807
|
+
markdown: 'Special entities like usernames, URLs, bot commands, etc. that appear in the description',
|
|
4808
|
+
},
|
|
4809
|
+
required: false,
|
|
4810
|
+
},
|
|
4611
4811
|
],
|
|
4612
4812
|
})
|
|
4613
4813
|
|
|
@@ -4815,7 +5015,7 @@ const InputChecklistTask = t({
|
|
|
4815
5015
|
},
|
|
4816
5016
|
},
|
|
4817
5017
|
description: {
|
|
4818
|
-
markdown: 'List of special entities that appear in the text, which can be specified instead of parse\\_mode. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_,
|
|
5018
|
+
markdown: 'List of special entities that appear in the text, which can be specified instead of parse\\_mode. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_, _custom\\_emoji_, and _date\\_time_ entities are allowed.',
|
|
4819
5019
|
},
|
|
4820
5020
|
required: false,
|
|
4821
5021
|
},
|
|
@@ -4872,7 +5072,7 @@ const InputChecklist = t({
|
|
|
4872
5072
|
},
|
|
4873
5073
|
},
|
|
4874
5074
|
description: {
|
|
4875
|
-
markdown: 'List of special entities that appear in the title, which can be specified instead of parse\\_mode. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_,
|
|
5075
|
+
markdown: 'List of special entities that appear in the title, which can be specified instead of parse\\_mode. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_, _custom\\_emoji_, and _date\\_time_ entities are allowed.',
|
|
4876
5076
|
},
|
|
4877
5077
|
required: false,
|
|
4878
5078
|
},
|
|
@@ -5231,6 +5431,165 @@ const MessageAutoDeleteTimerChanged = t({
|
|
|
5231
5431
|
],
|
|
5232
5432
|
})
|
|
5233
5433
|
|
|
5434
|
+
const ManagedBotCreated = t({
|
|
5435
|
+
name: 'ManagedBotCreated',
|
|
5436
|
+
description: {
|
|
5437
|
+
markdown: 'This object contains information about the bot that was created to be managed by the current bot.',
|
|
5438
|
+
},
|
|
5439
|
+
fields: [
|
|
5440
|
+
{
|
|
5441
|
+
name: 'bot',
|
|
5442
|
+
type: {
|
|
5443
|
+
type: 'api-type',
|
|
5444
|
+
name: 'User',
|
|
5445
|
+
},
|
|
5446
|
+
description: {
|
|
5447
|
+
markdown: 'Information about the bot. The bot\'s token can be fetched using the method [getManagedBotToken](https://core.telegram.org/bots/api#getmanagedbottoken).',
|
|
5448
|
+
},
|
|
5449
|
+
required: true,
|
|
5450
|
+
},
|
|
5451
|
+
],
|
|
5452
|
+
})
|
|
5453
|
+
|
|
5454
|
+
const ManagedBotUpdated = t({
|
|
5455
|
+
name: 'ManagedBotUpdated',
|
|
5456
|
+
description: {
|
|
5457
|
+
markdown: 'This object contains information about the creation or token update of a bot that is managed by the current bot.',
|
|
5458
|
+
},
|
|
5459
|
+
fields: [
|
|
5460
|
+
{
|
|
5461
|
+
name: 'user',
|
|
5462
|
+
type: {
|
|
5463
|
+
type: 'api-type',
|
|
5464
|
+
name: 'User',
|
|
5465
|
+
},
|
|
5466
|
+
description: {
|
|
5467
|
+
markdown: 'User that created the bot',
|
|
5468
|
+
},
|
|
5469
|
+
required: true,
|
|
5470
|
+
},
|
|
5471
|
+
{
|
|
5472
|
+
name: 'bot',
|
|
5473
|
+
type: {
|
|
5474
|
+
type: 'api-type',
|
|
5475
|
+
name: 'User',
|
|
5476
|
+
},
|
|
5477
|
+
description: {
|
|
5478
|
+
markdown: 'Information about the bot. Token of the bot can be fetched using the method [getManagedBotToken](https://core.telegram.org/bots/api#getmanagedbottoken).',
|
|
5479
|
+
},
|
|
5480
|
+
required: true,
|
|
5481
|
+
},
|
|
5482
|
+
],
|
|
5483
|
+
})
|
|
5484
|
+
|
|
5485
|
+
const PollOptionAdded = t({
|
|
5486
|
+
name: 'PollOptionAdded',
|
|
5487
|
+
description: {
|
|
5488
|
+
markdown: 'Describes a service message about an option added to a poll.',
|
|
5489
|
+
},
|
|
5490
|
+
fields: [
|
|
5491
|
+
{
|
|
5492
|
+
name: 'poll_message',
|
|
5493
|
+
type: {
|
|
5494
|
+
type: 'api-type',
|
|
5495
|
+
name: 'MaybeInaccessibleMessage',
|
|
5496
|
+
},
|
|
5497
|
+
description: {
|
|
5498
|
+
markdown: 'Message containing the poll to which the option was added, if known. Note that the [Message](https://core.telegram.org/bots/api#message) object in this field will not contain the _reply\\_to\\_message_ field even if it itself is a reply.',
|
|
5499
|
+
},
|
|
5500
|
+
required: false,
|
|
5501
|
+
},
|
|
5502
|
+
{
|
|
5503
|
+
name: 'option_persistent_id',
|
|
5504
|
+
type: {
|
|
5505
|
+
type: 'str',
|
|
5506
|
+
},
|
|
5507
|
+
description: {
|
|
5508
|
+
markdown: 'Unique identifier of the added option',
|
|
5509
|
+
},
|
|
5510
|
+
required: true,
|
|
5511
|
+
},
|
|
5512
|
+
{
|
|
5513
|
+
name: 'option_text',
|
|
5514
|
+
type: {
|
|
5515
|
+
type: 'str',
|
|
5516
|
+
},
|
|
5517
|
+
description: {
|
|
5518
|
+
markdown: 'Option text',
|
|
5519
|
+
},
|
|
5520
|
+
required: true,
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
name: 'option_text_entities',
|
|
5524
|
+
type: {
|
|
5525
|
+
type: 'array',
|
|
5526
|
+
of: {
|
|
5527
|
+
type: 'api-type',
|
|
5528
|
+
name: 'MessageEntity',
|
|
5529
|
+
},
|
|
5530
|
+
},
|
|
5531
|
+
description: {
|
|
5532
|
+
markdown: 'Special entities that appear in the _option\\_text_',
|
|
5533
|
+
},
|
|
5534
|
+
required: false,
|
|
5535
|
+
},
|
|
5536
|
+
],
|
|
5537
|
+
})
|
|
5538
|
+
|
|
5539
|
+
const PollOptionDeleted = t({
|
|
5540
|
+
name: 'PollOptionDeleted',
|
|
5541
|
+
description: {
|
|
5542
|
+
markdown: 'Describes a service message about an option deleted from a poll.',
|
|
5543
|
+
},
|
|
5544
|
+
fields: [
|
|
5545
|
+
{
|
|
5546
|
+
name: 'poll_message',
|
|
5547
|
+
type: {
|
|
5548
|
+
type: 'api-type',
|
|
5549
|
+
name: 'MaybeInaccessibleMessage',
|
|
5550
|
+
},
|
|
5551
|
+
description: {
|
|
5552
|
+
markdown: 'Message containing the poll from which the option was deleted, if known. Note that the [Message](https://core.telegram.org/bots/api#message) object in this field will not contain the _reply\\_to\\_message_ field even if it itself is a reply.',
|
|
5553
|
+
},
|
|
5554
|
+
required: false,
|
|
5555
|
+
},
|
|
5556
|
+
{
|
|
5557
|
+
name: 'option_persistent_id',
|
|
5558
|
+
type: {
|
|
5559
|
+
type: 'str',
|
|
5560
|
+
},
|
|
5561
|
+
description: {
|
|
5562
|
+
markdown: 'Unique identifier of the deleted option',
|
|
5563
|
+
},
|
|
5564
|
+
required: true,
|
|
5565
|
+
},
|
|
5566
|
+
{
|
|
5567
|
+
name: 'option_text',
|
|
5568
|
+
type: {
|
|
5569
|
+
type: 'str',
|
|
5570
|
+
},
|
|
5571
|
+
description: {
|
|
5572
|
+
markdown: 'Option text',
|
|
5573
|
+
},
|
|
5574
|
+
required: true,
|
|
5575
|
+
},
|
|
5576
|
+
{
|
|
5577
|
+
name: 'option_text_entities',
|
|
5578
|
+
type: {
|
|
5579
|
+
type: 'array',
|
|
5580
|
+
of: {
|
|
5581
|
+
type: 'api-type',
|
|
5582
|
+
name: 'MessageEntity',
|
|
5583
|
+
},
|
|
5584
|
+
},
|
|
5585
|
+
description: {
|
|
5586
|
+
markdown: 'Special entities that appear in the _option\\_text_',
|
|
5587
|
+
},
|
|
5588
|
+
required: false,
|
|
5589
|
+
},
|
|
5590
|
+
],
|
|
5591
|
+
})
|
|
5592
|
+
|
|
5234
5593
|
const ChatBoostAdded = t({
|
|
5235
5594
|
name: 'ChatBoostAdded',
|
|
5236
5595
|
description: {
|
|
@@ -7085,6 +7444,17 @@ const KeyboardButton = t({
|
|
|
7085
7444
|
},
|
|
7086
7445
|
required: false,
|
|
7087
7446
|
},
|
|
7447
|
+
{
|
|
7448
|
+
name: 'request_managed_bot',
|
|
7449
|
+
type: {
|
|
7450
|
+
type: 'api-type',
|
|
7451
|
+
name: 'KeyboardButtonRequestManagedBot',
|
|
7452
|
+
},
|
|
7453
|
+
description: {
|
|
7454
|
+
markdown: 'If specified, pressing the button will ask the user to create and share a bot that will be managed by the current bot. Available for bots that enabled management of other bots in the [@BotFather](https://t.me/BotFather) Mini App. Available in private chats only.',
|
|
7455
|
+
},
|
|
7456
|
+
required: false,
|
|
7457
|
+
},
|
|
7088
7458
|
{
|
|
7089
7459
|
name: 'request_contact',
|
|
7090
7460
|
type: {
|
|
@@ -7330,6 +7700,45 @@ const KeyboardButtonRequestChat = t({
|
|
|
7330
7700
|
],
|
|
7331
7701
|
})
|
|
7332
7702
|
|
|
7703
|
+
const KeyboardButtonRequestManagedBot = t({
|
|
7704
|
+
name: 'KeyboardButtonRequestManagedBot',
|
|
7705
|
+
description: {
|
|
7706
|
+
markdown: 'This object defines the parameters for the creation of a managed bot. Information about the created bot will be shared with the bot using the update _managed\\_bot_ and a [Message](https://core.telegram.org/bots/api#message) with the field _managed\\_bot\\_created_.',
|
|
7707
|
+
},
|
|
7708
|
+
fields: [
|
|
7709
|
+
{
|
|
7710
|
+
name: 'request_id',
|
|
7711
|
+
type: {
|
|
7712
|
+
type: 'int32',
|
|
7713
|
+
},
|
|
7714
|
+
description: {
|
|
7715
|
+
markdown: 'Signed 32-bit identifier of the request. Must be unique within the message',
|
|
7716
|
+
},
|
|
7717
|
+
required: true,
|
|
7718
|
+
},
|
|
7719
|
+
{
|
|
7720
|
+
name: 'suggested_name',
|
|
7721
|
+
type: {
|
|
7722
|
+
type: 'str',
|
|
7723
|
+
},
|
|
7724
|
+
description: {
|
|
7725
|
+
markdown: 'Suggested name for the bot',
|
|
7726
|
+
},
|
|
7727
|
+
required: false,
|
|
7728
|
+
},
|
|
7729
|
+
{
|
|
7730
|
+
name: 'suggested_username',
|
|
7731
|
+
type: {
|
|
7732
|
+
type: 'str',
|
|
7733
|
+
},
|
|
7734
|
+
description: {
|
|
7735
|
+
markdown: 'Suggested username for the bot',
|
|
7736
|
+
},
|
|
7737
|
+
required: false,
|
|
7738
|
+
},
|
|
7739
|
+
],
|
|
7740
|
+
})
|
|
7741
|
+
|
|
7333
7742
|
const KeyboardButtonPollType = t({
|
|
7334
7743
|
name: 'KeyboardButtonPollType',
|
|
7335
7744
|
description: {
|
|
@@ -8156,6 +8565,16 @@ const ChatAdministratorRights = t({
|
|
|
8156
8565
|
},
|
|
8157
8566
|
required: false,
|
|
8158
8567
|
},
|
|
8568
|
+
{
|
|
8569
|
+
name: 'can_manage_tags',
|
|
8570
|
+
type: {
|
|
8571
|
+
type: 'bool',
|
|
8572
|
+
},
|
|
8573
|
+
description: {
|
|
8574
|
+
markdown: '_True_, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can\\_pin\\_messages.',
|
|
8575
|
+
},
|
|
8576
|
+
required: false,
|
|
8577
|
+
},
|
|
8159
8578
|
],
|
|
8160
8579
|
})
|
|
8161
8580
|
|
|
@@ -8535,6 +8954,16 @@ const ChatMemberAdministrator = t({
|
|
|
8535
8954
|
},
|
|
8536
8955
|
required: false,
|
|
8537
8956
|
},
|
|
8957
|
+
{
|
|
8958
|
+
name: 'can_manage_tags',
|
|
8959
|
+
type: {
|
|
8960
|
+
type: 'bool',
|
|
8961
|
+
},
|
|
8962
|
+
description: {
|
|
8963
|
+
markdown: '_True_, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can\\_pin\\_messages.',
|
|
8964
|
+
},
|
|
8965
|
+
required: false,
|
|
8966
|
+
},
|
|
8538
8967
|
{
|
|
8539
8968
|
name: 'custom_title',
|
|
8540
8969
|
type: {
|
|
@@ -8565,6 +8994,16 @@ const ChatMemberMember = t({
|
|
|
8565
8994
|
},
|
|
8566
8995
|
required: true,
|
|
8567
8996
|
},
|
|
8997
|
+
{
|
|
8998
|
+
name: 'tag',
|
|
8999
|
+
type: {
|
|
9000
|
+
type: 'str',
|
|
9001
|
+
},
|
|
9002
|
+
description: {
|
|
9003
|
+
markdown: 'Tag of the member',
|
|
9004
|
+
},
|
|
9005
|
+
required: false,
|
|
9006
|
+
},
|
|
8568
9007
|
{
|
|
8569
9008
|
name: 'user',
|
|
8570
9009
|
type: {
|
|
@@ -8606,6 +9045,16 @@ const ChatMemberRestricted = t({
|
|
|
8606
9045
|
},
|
|
8607
9046
|
required: true,
|
|
8608
9047
|
},
|
|
9048
|
+
{
|
|
9049
|
+
name: 'tag',
|
|
9050
|
+
type: {
|
|
9051
|
+
type: 'str',
|
|
9052
|
+
},
|
|
9053
|
+
description: {
|
|
9054
|
+
markdown: 'Tag of the member',
|
|
9055
|
+
},
|
|
9056
|
+
required: false,
|
|
9057
|
+
},
|
|
8609
9058
|
{
|
|
8610
9059
|
name: 'user',
|
|
8611
9060
|
type: {
|
|
@@ -8727,6 +9176,16 @@ const ChatMemberRestricted = t({
|
|
|
8727
9176
|
},
|
|
8728
9177
|
required: true,
|
|
8729
9178
|
},
|
|
9179
|
+
{
|
|
9180
|
+
name: 'can_edit_tag',
|
|
9181
|
+
type: {
|
|
9182
|
+
type: 'bool',
|
|
9183
|
+
},
|
|
9184
|
+
description: {
|
|
9185
|
+
markdown: '_True_, if the user is allowed to edit their own tag',
|
|
9186
|
+
},
|
|
9187
|
+
required: true,
|
|
9188
|
+
},
|
|
8730
9189
|
{
|
|
8731
9190
|
name: 'can_change_info',
|
|
8732
9191
|
type: {
|
|
@@ -9030,6 +9489,16 @@ const ChatPermissions = t({
|
|
|
9030
9489
|
},
|
|
9031
9490
|
required: false,
|
|
9032
9491
|
},
|
|
9492
|
+
{
|
|
9493
|
+
name: 'can_edit_tag',
|
|
9494
|
+
type: {
|
|
9495
|
+
type: 'bool',
|
|
9496
|
+
},
|
|
9497
|
+
description: {
|
|
9498
|
+
markdown: '_True_, if the user is allowed to edit their own tag',
|
|
9499
|
+
},
|
|
9500
|
+
required: false,
|
|
9501
|
+
},
|
|
9033
9502
|
{
|
|
9034
9503
|
name: 'can_change_info',
|
|
9035
9504
|
type: {
|
|
@@ -12361,6 +12830,73 @@ const BusinessMessagesDeleted = t({
|
|
|
12361
12830
|
],
|
|
12362
12831
|
})
|
|
12363
12832
|
|
|
12833
|
+
const SentWebAppMessage = t({
|
|
12834
|
+
name: 'SentWebAppMessage',
|
|
12835
|
+
description: {
|
|
12836
|
+
markdown: 'Describes an inline message sent by a [Web App](https://core.telegram.org/bots/webapps) on behalf of a user.',
|
|
12837
|
+
},
|
|
12838
|
+
fields: [
|
|
12839
|
+
{
|
|
12840
|
+
name: 'inline_message_id',
|
|
12841
|
+
type: {
|
|
12842
|
+
type: 'str',
|
|
12843
|
+
},
|
|
12844
|
+
description: {
|
|
12845
|
+
markdown: 'Identifier of the sent inline message. Available only if there is an [inline keyboard](https://core.telegram.org/bots/api#inlinekeyboardmarkup) attached to the message.',
|
|
12846
|
+
},
|
|
12847
|
+
required: false,
|
|
12848
|
+
},
|
|
12849
|
+
],
|
|
12850
|
+
})
|
|
12851
|
+
|
|
12852
|
+
const PreparedInlineMessage = t({
|
|
12853
|
+
name: 'PreparedInlineMessage',
|
|
12854
|
+
description: {
|
|
12855
|
+
markdown: 'Describes an inline message to be sent by a user of a Mini App.',
|
|
12856
|
+
},
|
|
12857
|
+
fields: [
|
|
12858
|
+
{
|
|
12859
|
+
name: 'id',
|
|
12860
|
+
type: {
|
|
12861
|
+
type: 'str',
|
|
12862
|
+
},
|
|
12863
|
+
description: {
|
|
12864
|
+
markdown: 'Unique identifier of the prepared message',
|
|
12865
|
+
},
|
|
12866
|
+
required: true,
|
|
12867
|
+
},
|
|
12868
|
+
{
|
|
12869
|
+
name: 'expiration_date',
|
|
12870
|
+
type: {
|
|
12871
|
+
type: 'int32',
|
|
12872
|
+
},
|
|
12873
|
+
description: {
|
|
12874
|
+
markdown: 'Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used',
|
|
12875
|
+
},
|
|
12876
|
+
required: true,
|
|
12877
|
+
},
|
|
12878
|
+
],
|
|
12879
|
+
})
|
|
12880
|
+
|
|
12881
|
+
const PreparedKeyboardButton = t({
|
|
12882
|
+
name: 'PreparedKeyboardButton',
|
|
12883
|
+
description: {
|
|
12884
|
+
markdown: 'Describes a keyboard button to be used by a user of a Mini App.',
|
|
12885
|
+
},
|
|
12886
|
+
fields: [
|
|
12887
|
+
{
|
|
12888
|
+
name: 'id',
|
|
12889
|
+
type: {
|
|
12890
|
+
type: 'str',
|
|
12891
|
+
},
|
|
12892
|
+
description: {
|
|
12893
|
+
markdown: 'Unique identifier of the keyboard button',
|
|
12894
|
+
},
|
|
12895
|
+
required: true,
|
|
12896
|
+
},
|
|
12897
|
+
],
|
|
12898
|
+
})
|
|
12899
|
+
|
|
12364
12900
|
const ResponseParameters = t({
|
|
12365
12901
|
name: 'ResponseParameters',
|
|
12366
12902
|
description: {
|
|
@@ -15276,7 +15812,7 @@ const InlineQueryResultDocument = t({
|
|
|
15276
15812
|
name: 'InlineKeyboardMarkup',
|
|
15277
15813
|
},
|
|
15278
15814
|
description: {
|
|
15279
|
-
markdown: 'Inline keyboard attached to the message',
|
|
15815
|
+
markdown: '[Inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) attached to the message',
|
|
15280
15816
|
},
|
|
15281
15817
|
required: false,
|
|
15282
15818
|
},
|
|
@@ -17354,54 +17890,6 @@ const ChosenInlineResult = t({
|
|
|
17354
17890
|
],
|
|
17355
17891
|
})
|
|
17356
17892
|
|
|
17357
|
-
const SentWebAppMessage = t({
|
|
17358
|
-
name: 'SentWebAppMessage',
|
|
17359
|
-
description: {
|
|
17360
|
-
markdown: 'Describes an inline message sent by a [Web App](https://core.telegram.org/bots/webapps) on behalf of a user.',
|
|
17361
|
-
},
|
|
17362
|
-
fields: [
|
|
17363
|
-
{
|
|
17364
|
-
name: 'inline_message_id',
|
|
17365
|
-
type: {
|
|
17366
|
-
type: 'str',
|
|
17367
|
-
},
|
|
17368
|
-
description: {
|
|
17369
|
-
markdown: 'Identifier of the sent inline message. Available only if there is an [inline keyboard](https://core.telegram.org/bots/api#inlinekeyboardmarkup) attached to the message.',
|
|
17370
|
-
},
|
|
17371
|
-
required: false,
|
|
17372
|
-
},
|
|
17373
|
-
],
|
|
17374
|
-
})
|
|
17375
|
-
|
|
17376
|
-
const PreparedInlineMessage = t({
|
|
17377
|
-
name: 'PreparedInlineMessage',
|
|
17378
|
-
description: {
|
|
17379
|
-
markdown: 'Describes an inline message to be sent by a user of a Mini App.',
|
|
17380
|
-
},
|
|
17381
|
-
fields: [
|
|
17382
|
-
{
|
|
17383
|
-
name: 'id',
|
|
17384
|
-
type: {
|
|
17385
|
-
type: 'str',
|
|
17386
|
-
},
|
|
17387
|
-
description: {
|
|
17388
|
-
markdown: 'Unique identifier of the prepared message',
|
|
17389
|
-
},
|
|
17390
|
-
required: true,
|
|
17391
|
-
},
|
|
17392
|
-
{
|
|
17393
|
-
name: 'expiration_date',
|
|
17394
|
-
type: {
|
|
17395
|
-
type: 'int32',
|
|
17396
|
-
},
|
|
17397
|
-
description: {
|
|
17398
|
-
markdown: 'Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used',
|
|
17399
|
-
},
|
|
17400
|
-
required: true,
|
|
17401
|
-
},
|
|
17402
|
-
],
|
|
17403
|
-
})
|
|
17404
|
-
|
|
17405
17893
|
const LabeledPrice = t({
|
|
17406
17894
|
name: 'LabeledPrice',
|
|
17407
17895
|
description: {
|
|
@@ -19783,6 +20271,10 @@ export const types = {
|
|
|
19783
20271
|
WebAppData,
|
|
19784
20272
|
ProximityAlertTriggered,
|
|
19785
20273
|
MessageAutoDeleteTimerChanged,
|
|
20274
|
+
ManagedBotCreated,
|
|
20275
|
+
ManagedBotUpdated,
|
|
20276
|
+
PollOptionAdded,
|
|
20277
|
+
PollOptionDeleted,
|
|
19786
20278
|
ChatBoostAdded,
|
|
19787
20279
|
BackgroundFill,
|
|
19788
20280
|
BackgroundFillSolid,
|
|
@@ -19832,6 +20324,7 @@ export const types = {
|
|
|
19832
20324
|
KeyboardButton,
|
|
19833
20325
|
KeyboardButtonRequestUsers,
|
|
19834
20326
|
KeyboardButtonRequestChat,
|
|
20327
|
+
KeyboardButtonRequestManagedBot,
|
|
19835
20328
|
KeyboardButtonPollType,
|
|
19836
20329
|
ReplyKeyboardRemove,
|
|
19837
20330
|
InlineKeyboardMarkup,
|
|
@@ -19924,6 +20417,9 @@ export const types = {
|
|
|
19924
20417
|
BusinessBotRights,
|
|
19925
20418
|
BusinessConnection,
|
|
19926
20419
|
BusinessMessagesDeleted,
|
|
20420
|
+
SentWebAppMessage,
|
|
20421
|
+
PreparedInlineMessage,
|
|
20422
|
+
PreparedKeyboardButton,
|
|
19927
20423
|
ResponseParameters,
|
|
19928
20424
|
InputMedia,
|
|
19929
20425
|
InputMediaPhoto,
|
|
@@ -19974,8 +20470,6 @@ export const types = {
|
|
|
19974
20470
|
InputContactMessageContent,
|
|
19975
20471
|
InputInvoiceMessageContent,
|
|
19976
20472
|
ChosenInlineResult,
|
|
19977
|
-
SentWebAppMessage,
|
|
19978
|
-
PreparedInlineMessage,
|
|
19979
20473
|
LabeledPrice,
|
|
19980
20474
|
Invoice,
|
|
19981
20475
|
ShippingAddress,
|