@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/dist/types.gen.js CHANGED
@@ -275,6 +275,17 @@ const Update = t({
275
275
  },
276
276
  required: false,
277
277
  },
278
+ {
279
+ name: 'managed_bot',
280
+ type: {
281
+ type: 'api-type',
282
+ name: 'ManagedBotUpdated',
283
+ },
284
+ description: {
285
+ markdown: 'A new bot was created to be managed by the bot or token of a bot was changed',
286
+ },
287
+ required: false,
288
+ },
278
289
  ],
279
290
  });
280
291
  const WebhookInfo = t({
@@ -536,6 +547,16 @@ const User = t({
536
547
  },
537
548
  required: false,
538
549
  },
550
+ {
551
+ name: 'can_manage_bots',
552
+ type: {
553
+ type: 'bool',
554
+ },
555
+ description: {
556
+ 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).',
557
+ },
558
+ required: false,
559
+ },
539
560
  ],
540
561
  });
541
562
  const Chat = t({
@@ -1295,6 +1316,16 @@ const Message = t({
1295
1316
  },
1296
1317
  required: false,
1297
1318
  },
1319
+ {
1320
+ name: 'sender_tag',
1321
+ type: {
1322
+ type: 'str',
1323
+ },
1324
+ description: {
1325
+ markdown: 'Tag or custom title of the sender of the message; for supergroups only',
1326
+ },
1327
+ required: false,
1328
+ },
1298
1329
  {
1299
1330
  name: 'date',
1300
1331
  type: {
@@ -1413,6 +1444,16 @@ const Message = t({
1413
1444
  },
1414
1445
  required: false,
1415
1446
  },
1447
+ {
1448
+ name: 'reply_to_poll_option_id',
1449
+ type: {
1450
+ type: 'str',
1451
+ },
1452
+ description: {
1453
+ markdown: 'Persistent identifier of the specific poll option that is being replied to',
1454
+ },
1455
+ required: false,
1456
+ },
1416
1457
  {
1417
1458
  name: 'via_bot',
1418
1459
  type: {
@@ -1473,7 +1514,7 @@ const Message = t({
1473
1514
  type: 'str',
1474
1515
  },
1475
1516
  description: {
1476
- markdown: 'The unique identifier of a media message group this message belongs to',
1517
+ markdown: 'The unique identifier inside this chat of a media message group this message belongs to',
1477
1518
  },
1478
1519
  required: false,
1479
1520
  },
@@ -2242,6 +2283,17 @@ const Message = t({
2242
2283
  },
2243
2284
  required: false,
2244
2285
  },
2286
+ {
2287
+ name: 'managed_bot_created',
2288
+ type: {
2289
+ type: 'api-type',
2290
+ name: 'ManagedBotCreated',
2291
+ },
2292
+ description: {
2293
+ markdown: 'Service message: user created a bot that will be managed by the current bot',
2294
+ },
2295
+ required: false,
2296
+ },
2245
2297
  {
2246
2298
  name: 'paid_message_price_changed',
2247
2299
  type: {
@@ -2253,6 +2305,28 @@ const Message = t({
2253
2305
  },
2254
2306
  required: false,
2255
2307
  },
2308
+ {
2309
+ name: 'poll_option_added',
2310
+ type: {
2311
+ type: 'api-type',
2312
+ name: 'PollOptionAdded',
2313
+ },
2314
+ description: {
2315
+ markdown: 'Service message: answer option was added to a poll',
2316
+ },
2317
+ required: false,
2318
+ },
2319
+ {
2320
+ name: 'poll_option_deleted',
2321
+ type: {
2322
+ type: 'api-type',
2323
+ name: 'PollOptionDeleted',
2324
+ },
2325
+ description: {
2326
+ markdown: 'Service message: answer option was deleted from a poll',
2327
+ },
2328
+ required: false,
2329
+ },
2256
2330
  {
2257
2331
  name: 'suggested_post_approved',
2258
2332
  type: {
@@ -2370,7 +2444,7 @@ const Message = t({
2370
2444
  name: 'InlineKeyboardMarkup',
2371
2445
  },
2372
2446
  description: {
2373
- markdown: 'Inline keyboard attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
2447
+ markdown: '[Inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
2374
2448
  },
2375
2449
  required: false,
2376
2450
  },
@@ -2537,10 +2611,14 @@ const MessageEntity = t({
2537
2611
  type: 'str',
2538
2612
  literal: 'custom_emoji',
2539
2613
  },
2614
+ {
2615
+ type: 'str',
2616
+ literal: 'date_time',
2617
+ },
2540
2618
  ],
2541
2619
  },
2542
2620
  description: {
2543
- 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)',
2621
+ 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)',
2544
2622
  },
2545
2623
  required: true,
2546
2624
  },
@@ -2605,6 +2683,26 @@ const MessageEntity = t({
2605
2683
  },
2606
2684
  required: false,
2607
2685
  },
2686
+ {
2687
+ name: 'unix_time',
2688
+ type: {
2689
+ type: 'int32',
2690
+ },
2691
+ description: {
2692
+ markdown: 'For “date\\_time” only, the Unix time associated with the entity',
2693
+ },
2694
+ required: false,
2695
+ },
2696
+ {
2697
+ name: 'date_time_format',
2698
+ type: {
2699
+ type: 'str',
2700
+ },
2701
+ description: {
2702
+ 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.',
2703
+ },
2704
+ required: false,
2705
+ },
2608
2706
  ],
2609
2707
  });
2610
2708
  const TextQuote = t({
@@ -2633,7 +2731,7 @@ const TextQuote = t({
2633
2731
  },
2634
2732
  },
2635
2733
  description: {
2636
- markdown: 'Special entities that appear in the quote. Currently, only _bold_, _italic_, _underline_, _strikethrough_, _spoiler_, and _custom\\_emoji_ entities are kept in quotes.',
2734
+ 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.',
2637
2735
  },
2638
2736
  required: false,
2639
2737
  },
@@ -2995,7 +3093,7 @@ const ReplyParameters = t({
2995
3093
  type: 'str',
2996
3094
  },
2997
3095
  description: {
2998
- 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_, and _custom\\_emoji_ entities. The message will fail to send if the quote isn\'t found in the original message.',
3096
+ 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.',
2999
3097
  },
3000
3098
  required: false,
3001
3099
  },
@@ -3057,6 +3155,16 @@ const ReplyParameters = t({
3057
3155
  },
3058
3156
  required: false,
3059
3157
  },
3158
+ {
3159
+ name: 'poll_option_id',
3160
+ type: {
3161
+ type: 'str',
3162
+ },
3163
+ description: {
3164
+ markdown: 'Persistent identifier of the specific poll option to be replied to',
3165
+ },
3166
+ required: false,
3167
+ },
3060
3168
  ],
3061
3169
  });
3062
3170
  const MessageOrigin = t({
@@ -4254,6 +4362,16 @@ const PollOption = t({
4254
4362
  markdown: 'This object contains information about one answer option in a poll.',
4255
4363
  },
4256
4364
  fields: [
4365
+ {
4366
+ name: 'persistent_id',
4367
+ type: {
4368
+ type: 'str',
4369
+ },
4370
+ description: {
4371
+ markdown: 'Unique identifier of the option, persistent on option addition and deletion',
4372
+ },
4373
+ required: true,
4374
+ },
4257
4375
  {
4258
4376
  name: 'text',
4259
4377
  type: {
@@ -4284,10 +4402,42 @@ const PollOption = t({
4284
4402
  type: 'int32',
4285
4403
  },
4286
4404
  description: {
4287
- markdown: 'Number of users that voted for this option',
4405
+ markdown: 'Number of users who voted for this option; may be 0 if unknown',
4288
4406
  },
4289
4407
  required: true,
4290
4408
  },
4409
+ {
4410
+ name: 'added_by_user',
4411
+ type: {
4412
+ type: 'api-type',
4413
+ name: 'User',
4414
+ },
4415
+ description: {
4416
+ markdown: 'User who added the option; omitted if the option wasn\'t added by a user after poll creation',
4417
+ },
4418
+ required: false,
4419
+ },
4420
+ {
4421
+ name: 'added_by_chat',
4422
+ type: {
4423
+ type: 'api-type',
4424
+ name: 'Chat',
4425
+ },
4426
+ description: {
4427
+ markdown: 'Chat that added the option; omitted if the option wasn\'t added by a chat after poll creation',
4428
+ },
4429
+ required: false,
4430
+ },
4431
+ {
4432
+ name: 'addition_date',
4433
+ type: {
4434
+ type: 'int32',
4435
+ },
4436
+ description: {
4437
+ markdown: 'Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll',
4438
+ },
4439
+ required: false,
4440
+ },
4291
4441
  ],
4292
4442
  });
4293
4443
  const InputPollOption = t({
@@ -4397,6 +4547,19 @@ const PollAnswer = t({
4397
4547
  },
4398
4548
  required: true,
4399
4549
  },
4550
+ {
4551
+ name: 'option_persistent_ids',
4552
+ type: {
4553
+ type: 'array',
4554
+ of: {
4555
+ type: 'str',
4556
+ },
4557
+ },
4558
+ description: {
4559
+ markdown: 'Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.',
4560
+ },
4561
+ required: true,
4562
+ },
4400
4563
  ],
4401
4564
  });
4402
4565
  const Poll = t({
@@ -4514,12 +4677,25 @@ const Poll = t({
4514
4677
  required: true,
4515
4678
  },
4516
4679
  {
4517
- name: 'correct_option_id',
4680
+ name: 'allows_revoting',
4518
4681
  type: {
4519
- type: 'int32',
4682
+ type: 'bool',
4683
+ },
4684
+ description: {
4685
+ markdown: '_True_, if the poll allows to change the chosen answer options',
4686
+ },
4687
+ required: true,
4688
+ },
4689
+ {
4690
+ name: 'correct_option_ids',
4691
+ type: {
4692
+ type: 'array',
4693
+ of: {
4694
+ type: 'int32',
4695
+ },
4520
4696
  },
4521
4697
  description: {
4522
- markdown: '0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.',
4698
+ 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.',
4523
4699
  },
4524
4700
  required: false,
4525
4701
  },
@@ -4567,6 +4743,30 @@ const Poll = t({
4567
4743
  },
4568
4744
  required: false,
4569
4745
  },
4746
+ {
4747
+ name: 'description',
4748
+ type: {
4749
+ type: 'str',
4750
+ },
4751
+ description: {
4752
+ markdown: 'Description of the poll; for polls inside the [Message](https://core.telegram.org/bots/api#message) object only',
4753
+ },
4754
+ required: false,
4755
+ },
4756
+ {
4757
+ name: 'description_entities',
4758
+ type: {
4759
+ type: 'array',
4760
+ of: {
4761
+ type: 'api-type',
4762
+ name: 'MessageEntity',
4763
+ },
4764
+ },
4765
+ description: {
4766
+ markdown: 'Special entities like usernames, URLs, bot commands, etc. that appear in the description',
4767
+ },
4768
+ required: false,
4769
+ },
4570
4770
  ],
4571
4771
  });
4572
4772
  const ChecklistTask = t({
@@ -4771,7 +4971,7 @@ const InputChecklistTask = t({
4771
4971
  },
4772
4972
  },
4773
4973
  description: {
4774
- 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_, and _custom\\_emoji_ entities are allowed.',
4974
+ 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.',
4775
4975
  },
4776
4976
  required: false,
4777
4977
  },
@@ -4827,7 +5027,7 @@ const InputChecklist = t({
4827
5027
  },
4828
5028
  },
4829
5029
  description: {
4830
- 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_, and _custom\\_emoji_ entities are allowed.',
5030
+ 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.',
4831
5031
  },
4832
5032
  required: false,
4833
5033
  },
@@ -5178,6 +5378,161 @@ const MessageAutoDeleteTimerChanged = t({
5178
5378
  },
5179
5379
  ],
5180
5380
  });
5381
+ const ManagedBotCreated = t({
5382
+ name: 'ManagedBotCreated',
5383
+ description: {
5384
+ markdown: 'This object contains information about the bot that was created to be managed by the current bot.',
5385
+ },
5386
+ fields: [
5387
+ {
5388
+ name: 'bot',
5389
+ type: {
5390
+ type: 'api-type',
5391
+ name: 'User',
5392
+ },
5393
+ description: {
5394
+ markdown: 'Information about the bot. The bot\'s token can be fetched using the method [getManagedBotToken](https://core.telegram.org/bots/api#getmanagedbottoken).',
5395
+ },
5396
+ required: true,
5397
+ },
5398
+ ],
5399
+ });
5400
+ const ManagedBotUpdated = t({
5401
+ name: 'ManagedBotUpdated',
5402
+ description: {
5403
+ markdown: 'This object contains information about the creation or token update of a bot that is managed by the current bot.',
5404
+ },
5405
+ fields: [
5406
+ {
5407
+ name: 'user',
5408
+ type: {
5409
+ type: 'api-type',
5410
+ name: 'User',
5411
+ },
5412
+ description: {
5413
+ markdown: 'User that created the bot',
5414
+ },
5415
+ required: true,
5416
+ },
5417
+ {
5418
+ name: 'bot',
5419
+ type: {
5420
+ type: 'api-type',
5421
+ name: 'User',
5422
+ },
5423
+ description: {
5424
+ markdown: 'Information about the bot. Token of the bot can be fetched using the method [getManagedBotToken](https://core.telegram.org/bots/api#getmanagedbottoken).',
5425
+ },
5426
+ required: true,
5427
+ },
5428
+ ],
5429
+ });
5430
+ const PollOptionAdded = t({
5431
+ name: 'PollOptionAdded',
5432
+ description: {
5433
+ markdown: 'Describes a service message about an option added to a poll.',
5434
+ },
5435
+ fields: [
5436
+ {
5437
+ name: 'poll_message',
5438
+ type: {
5439
+ type: 'api-type',
5440
+ name: 'MaybeInaccessibleMessage',
5441
+ },
5442
+ description: {
5443
+ 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.',
5444
+ },
5445
+ required: false,
5446
+ },
5447
+ {
5448
+ name: 'option_persistent_id',
5449
+ type: {
5450
+ type: 'str',
5451
+ },
5452
+ description: {
5453
+ markdown: 'Unique identifier of the added option',
5454
+ },
5455
+ required: true,
5456
+ },
5457
+ {
5458
+ name: 'option_text',
5459
+ type: {
5460
+ type: 'str',
5461
+ },
5462
+ description: {
5463
+ markdown: 'Option text',
5464
+ },
5465
+ required: true,
5466
+ },
5467
+ {
5468
+ name: 'option_text_entities',
5469
+ type: {
5470
+ type: 'array',
5471
+ of: {
5472
+ type: 'api-type',
5473
+ name: 'MessageEntity',
5474
+ },
5475
+ },
5476
+ description: {
5477
+ markdown: 'Special entities that appear in the _option\\_text_',
5478
+ },
5479
+ required: false,
5480
+ },
5481
+ ],
5482
+ });
5483
+ const PollOptionDeleted = t({
5484
+ name: 'PollOptionDeleted',
5485
+ description: {
5486
+ markdown: 'Describes a service message about an option deleted from a poll.',
5487
+ },
5488
+ fields: [
5489
+ {
5490
+ name: 'poll_message',
5491
+ type: {
5492
+ type: 'api-type',
5493
+ name: 'MaybeInaccessibleMessage',
5494
+ },
5495
+ description: {
5496
+ 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.',
5497
+ },
5498
+ required: false,
5499
+ },
5500
+ {
5501
+ name: 'option_persistent_id',
5502
+ type: {
5503
+ type: 'str',
5504
+ },
5505
+ description: {
5506
+ markdown: 'Unique identifier of the deleted option',
5507
+ },
5508
+ required: true,
5509
+ },
5510
+ {
5511
+ name: 'option_text',
5512
+ type: {
5513
+ type: 'str',
5514
+ },
5515
+ description: {
5516
+ markdown: 'Option text',
5517
+ },
5518
+ required: true,
5519
+ },
5520
+ {
5521
+ name: 'option_text_entities',
5522
+ type: {
5523
+ type: 'array',
5524
+ of: {
5525
+ type: 'api-type',
5526
+ name: 'MessageEntity',
5527
+ },
5528
+ },
5529
+ description: {
5530
+ markdown: 'Special entities that appear in the _option\\_text_',
5531
+ },
5532
+ required: false,
5533
+ },
5534
+ ],
5535
+ });
5181
5536
  const ChatBoostAdded = t({
5182
5537
  name: 'ChatBoostAdded',
5183
5538
  description: {
@@ -6986,6 +7341,17 @@ const KeyboardButton = t({
6986
7341
  },
6987
7342
  required: false,
6988
7343
  },
7344
+ {
7345
+ name: 'request_managed_bot',
7346
+ type: {
7347
+ type: 'api-type',
7348
+ name: 'KeyboardButtonRequestManagedBot',
7349
+ },
7350
+ description: {
7351
+ 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.',
7352
+ },
7353
+ required: false,
7354
+ },
6989
7355
  {
6990
7356
  name: 'request_contact',
6991
7357
  type: {
@@ -7228,6 +7594,44 @@ const KeyboardButtonRequestChat = t({
7228
7594
  },
7229
7595
  ],
7230
7596
  });
7597
+ const KeyboardButtonRequestManagedBot = t({
7598
+ name: 'KeyboardButtonRequestManagedBot',
7599
+ description: {
7600
+ 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_.',
7601
+ },
7602
+ fields: [
7603
+ {
7604
+ name: 'request_id',
7605
+ type: {
7606
+ type: 'int32',
7607
+ },
7608
+ description: {
7609
+ markdown: 'Signed 32-bit identifier of the request. Must be unique within the message',
7610
+ },
7611
+ required: true,
7612
+ },
7613
+ {
7614
+ name: 'suggested_name',
7615
+ type: {
7616
+ type: 'str',
7617
+ },
7618
+ description: {
7619
+ markdown: 'Suggested name for the bot',
7620
+ },
7621
+ required: false,
7622
+ },
7623
+ {
7624
+ name: 'suggested_username',
7625
+ type: {
7626
+ type: 'str',
7627
+ },
7628
+ description: {
7629
+ markdown: 'Suggested username for the bot',
7630
+ },
7631
+ required: false,
7632
+ },
7633
+ ],
7634
+ });
7231
7635
  const KeyboardButtonPollType = t({
7232
7636
  name: 'KeyboardButtonPollType',
7233
7637
  description: {
@@ -8043,6 +8447,16 @@ const ChatAdministratorRights = t({
8043
8447
  },
8044
8448
  required: false,
8045
8449
  },
8450
+ {
8451
+ name: 'can_manage_tags',
8452
+ type: {
8453
+ type: 'bool',
8454
+ },
8455
+ description: {
8456
+ 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.',
8457
+ },
8458
+ required: false,
8459
+ },
8046
8460
  ],
8047
8461
  });
8048
8462
  const ChatMemberUpdated = t({
@@ -8418,6 +8832,16 @@ const ChatMemberAdministrator = t({
8418
8832
  },
8419
8833
  required: false,
8420
8834
  },
8835
+ {
8836
+ name: 'can_manage_tags',
8837
+ type: {
8838
+ type: 'bool',
8839
+ },
8840
+ description: {
8841
+ 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.',
8842
+ },
8843
+ required: false,
8844
+ },
8421
8845
  {
8422
8846
  name: 'custom_title',
8423
8847
  type: {
@@ -8447,6 +8871,16 @@ const ChatMemberMember = t({
8447
8871
  },
8448
8872
  required: true,
8449
8873
  },
8874
+ {
8875
+ name: 'tag',
8876
+ type: {
8877
+ type: 'str',
8878
+ },
8879
+ description: {
8880
+ markdown: 'Tag of the member',
8881
+ },
8882
+ required: false,
8883
+ },
8450
8884
  {
8451
8885
  name: 'user',
8452
8886
  type: {
@@ -8487,6 +8921,16 @@ const ChatMemberRestricted = t({
8487
8921
  },
8488
8922
  required: true,
8489
8923
  },
8924
+ {
8925
+ name: 'tag',
8926
+ type: {
8927
+ type: 'str',
8928
+ },
8929
+ description: {
8930
+ markdown: 'Tag of the member',
8931
+ },
8932
+ required: false,
8933
+ },
8490
8934
  {
8491
8935
  name: 'user',
8492
8936
  type: {
@@ -8608,6 +9052,16 @@ const ChatMemberRestricted = t({
8608
9052
  },
8609
9053
  required: true,
8610
9054
  },
9055
+ {
9056
+ name: 'can_edit_tag',
9057
+ type: {
9058
+ type: 'bool',
9059
+ },
9060
+ description: {
9061
+ markdown: '_True_, if the user is allowed to edit their own tag',
9062
+ },
9063
+ required: true,
9064
+ },
8611
9065
  {
8612
9066
  name: 'can_change_info',
8613
9067
  type: {
@@ -8907,6 +9361,16 @@ const ChatPermissions = t({
8907
9361
  },
8908
9362
  required: false,
8909
9363
  },
9364
+ {
9365
+ name: 'can_edit_tag',
9366
+ type: {
9367
+ type: 'bool',
9368
+ },
9369
+ description: {
9370
+ markdown: '_True_, if the user is allowed to edit their own tag',
9371
+ },
9372
+ required: false,
9373
+ },
8910
9374
  {
8911
9375
  name: 'can_change_info',
8912
9376
  type: {
@@ -12167,6 +12631,70 @@ const BusinessMessagesDeleted = t({
12167
12631
  },
12168
12632
  ],
12169
12633
  });
12634
+ const SentWebAppMessage = t({
12635
+ name: 'SentWebAppMessage',
12636
+ description: {
12637
+ markdown: 'Describes an inline message sent by a [Web App](https://core.telegram.org/bots/webapps) on behalf of a user.',
12638
+ },
12639
+ fields: [
12640
+ {
12641
+ name: 'inline_message_id',
12642
+ type: {
12643
+ type: 'str',
12644
+ },
12645
+ description: {
12646
+ 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.',
12647
+ },
12648
+ required: false,
12649
+ },
12650
+ ],
12651
+ });
12652
+ const PreparedInlineMessage = t({
12653
+ name: 'PreparedInlineMessage',
12654
+ description: {
12655
+ markdown: 'Describes an inline message to be sent by a user of a Mini App.',
12656
+ },
12657
+ fields: [
12658
+ {
12659
+ name: 'id',
12660
+ type: {
12661
+ type: 'str',
12662
+ },
12663
+ description: {
12664
+ markdown: 'Unique identifier of the prepared message',
12665
+ },
12666
+ required: true,
12667
+ },
12668
+ {
12669
+ name: 'expiration_date',
12670
+ type: {
12671
+ type: 'int32',
12672
+ },
12673
+ description: {
12674
+ markdown: 'Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used',
12675
+ },
12676
+ required: true,
12677
+ },
12678
+ ],
12679
+ });
12680
+ const PreparedKeyboardButton = t({
12681
+ name: 'PreparedKeyboardButton',
12682
+ description: {
12683
+ markdown: 'Describes a keyboard button to be used by a user of a Mini App.',
12684
+ },
12685
+ fields: [
12686
+ {
12687
+ name: 'id',
12688
+ type: {
12689
+ type: 'str',
12690
+ },
12691
+ description: {
12692
+ markdown: 'Unique identifier of the keyboard button',
12693
+ },
12694
+ required: true,
12695
+ },
12696
+ ],
12697
+ });
12170
12698
  const ResponseParameters = t({
12171
12699
  name: 'ResponseParameters',
12172
12700
  description: {
@@ -15052,7 +15580,7 @@ const InlineQueryResultDocument = t({
15052
15580
  name: 'InlineKeyboardMarkup',
15053
15581
  },
15054
15582
  description: {
15055
- markdown: 'Inline keyboard attached to the message',
15583
+ markdown: '[Inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) attached to the message',
15056
15584
  },
15057
15585
  required: false,
15058
15586
  },
@@ -17110,52 +17638,6 @@ const ChosenInlineResult = t({
17110
17638
  },
17111
17639
  ],
17112
17640
  });
17113
- const SentWebAppMessage = t({
17114
- name: 'SentWebAppMessage',
17115
- description: {
17116
- markdown: 'Describes an inline message sent by a [Web App](https://core.telegram.org/bots/webapps) on behalf of a user.',
17117
- },
17118
- fields: [
17119
- {
17120
- name: 'inline_message_id',
17121
- type: {
17122
- type: 'str',
17123
- },
17124
- description: {
17125
- 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.',
17126
- },
17127
- required: false,
17128
- },
17129
- ],
17130
- });
17131
- const PreparedInlineMessage = t({
17132
- name: 'PreparedInlineMessage',
17133
- description: {
17134
- markdown: 'Describes an inline message to be sent by a user of a Mini App.',
17135
- },
17136
- fields: [
17137
- {
17138
- name: 'id',
17139
- type: {
17140
- type: 'str',
17141
- },
17142
- description: {
17143
- markdown: 'Unique identifier of the prepared message',
17144
- },
17145
- required: true,
17146
- },
17147
- {
17148
- name: 'expiration_date',
17149
- type: {
17150
- type: 'int32',
17151
- },
17152
- description: {
17153
- markdown: 'Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used',
17154
- },
17155
- required: true,
17156
- },
17157
- ],
17158
- });
17159
17641
  const LabeledPrice = t({
17160
17642
  name: 'LabeledPrice',
17161
17643
  description: {
@@ -19495,6 +19977,10 @@ export const types = {
19495
19977
  WebAppData,
19496
19978
  ProximityAlertTriggered,
19497
19979
  MessageAutoDeleteTimerChanged,
19980
+ ManagedBotCreated,
19981
+ ManagedBotUpdated,
19982
+ PollOptionAdded,
19983
+ PollOptionDeleted,
19498
19984
  ChatBoostAdded,
19499
19985
  BackgroundFill,
19500
19986
  BackgroundFillSolid,
@@ -19544,6 +20030,7 @@ export const types = {
19544
20030
  KeyboardButton,
19545
20031
  KeyboardButtonRequestUsers,
19546
20032
  KeyboardButtonRequestChat,
20033
+ KeyboardButtonRequestManagedBot,
19547
20034
  KeyboardButtonPollType,
19548
20035
  ReplyKeyboardRemove,
19549
20036
  InlineKeyboardMarkup,
@@ -19636,6 +20123,9 @@ export const types = {
19636
20123
  BusinessBotRights,
19637
20124
  BusinessConnection,
19638
20125
  BusinessMessagesDeleted,
20126
+ SentWebAppMessage,
20127
+ PreparedInlineMessage,
20128
+ PreparedKeyboardButton,
19639
20129
  ResponseParameters,
19640
20130
  InputMedia,
19641
20131
  InputMediaPhoto,
@@ -19686,8 +20176,6 @@ export const types = {
19686
20176
  InputContactMessageContent,
19687
20177
  InputInvoiceMessageContent,
19688
20178
  ChosenInlineResult,
19689
- SentWebAppMessage,
19690
- PreparedInlineMessage,
19691
20179
  LabeledPrice,
19692
20180
  Invoice,
19693
20181
  ShippingAddress,