@grom.js/bot-api-spec 0.7.1 → 0.8.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.
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../src/types.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AA2wmB1C;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6RjB,CAAA"}
1
+ {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../src/types.gen.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAy2mB1C;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6RjB,CAAA"}
package/dist/types.gen.js CHANGED
@@ -1295,6 +1295,16 @@ const Message = t({
1295
1295
  },
1296
1296
  required: false,
1297
1297
  },
1298
+ {
1299
+ name: 'sender_tag',
1300
+ type: {
1301
+ type: 'str',
1302
+ },
1303
+ description: {
1304
+ markdown: 'Tag or custom title of the sender of the message; for supergroups only',
1305
+ },
1306
+ required: false,
1307
+ },
1298
1308
  {
1299
1309
  name: 'date',
1300
1310
  type: {
@@ -1473,7 +1483,7 @@ const Message = t({
1473
1483
  type: 'str',
1474
1484
  },
1475
1485
  description: {
1476
- markdown: 'The unique identifier of a media message group this message belongs to',
1486
+ markdown: 'The unique identifier inside this chat of a media message group this message belongs to',
1477
1487
  },
1478
1488
  required: false,
1479
1489
  },
@@ -2370,7 +2380,7 @@ const Message = t({
2370
2380
  name: 'InlineKeyboardMarkup',
2371
2381
  },
2372
2382
  description: {
2373
- markdown: 'Inline keyboard attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
2383
+ 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
2384
  },
2375
2385
  required: false,
2376
2386
  },
@@ -2537,10 +2547,14 @@ const MessageEntity = t({
2537
2547
  type: 'str',
2538
2548
  literal: 'custom_emoji',
2539
2549
  },
2550
+ {
2551
+ type: 'str',
2552
+ literal: 'date_time',
2553
+ },
2540
2554
  ],
2541
2555
  },
2542
2556
  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)',
2557
+ 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
2558
  },
2545
2559
  required: true,
2546
2560
  },
@@ -2605,6 +2619,26 @@ const MessageEntity = t({
2605
2619
  },
2606
2620
  required: false,
2607
2621
  },
2622
+ {
2623
+ name: 'unix_time',
2624
+ type: {
2625
+ type: 'int32',
2626
+ },
2627
+ description: {
2628
+ markdown: 'For “date\\_time” only, the Unix time associated with the entity',
2629
+ },
2630
+ required: false,
2631
+ },
2632
+ {
2633
+ name: 'date_time_format',
2634
+ type: {
2635
+ type: 'str',
2636
+ },
2637
+ description: {
2638
+ 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.',
2639
+ },
2640
+ required: false,
2641
+ },
2608
2642
  ],
2609
2643
  });
2610
2644
  const TextQuote = t({
@@ -8043,6 +8077,16 @@ const ChatAdministratorRights = t({
8043
8077
  },
8044
8078
  required: false,
8045
8079
  },
8080
+ {
8081
+ name: 'can_manage_tags',
8082
+ type: {
8083
+ type: 'bool',
8084
+ },
8085
+ description: {
8086
+ 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.',
8087
+ },
8088
+ required: false,
8089
+ },
8046
8090
  ],
8047
8091
  });
8048
8092
  const ChatMemberUpdated = t({
@@ -8418,6 +8462,16 @@ const ChatMemberAdministrator = t({
8418
8462
  },
8419
8463
  required: false,
8420
8464
  },
8465
+ {
8466
+ name: 'can_manage_tags',
8467
+ type: {
8468
+ type: 'bool',
8469
+ },
8470
+ description: {
8471
+ 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.',
8472
+ },
8473
+ required: false,
8474
+ },
8421
8475
  {
8422
8476
  name: 'custom_title',
8423
8477
  type: {
@@ -8447,6 +8501,16 @@ const ChatMemberMember = t({
8447
8501
  },
8448
8502
  required: true,
8449
8503
  },
8504
+ {
8505
+ name: 'tag',
8506
+ type: {
8507
+ type: 'str',
8508
+ },
8509
+ description: {
8510
+ markdown: 'Tag of the member',
8511
+ },
8512
+ required: false,
8513
+ },
8450
8514
  {
8451
8515
  name: 'user',
8452
8516
  type: {
@@ -8487,6 +8551,16 @@ const ChatMemberRestricted = t({
8487
8551
  },
8488
8552
  required: true,
8489
8553
  },
8554
+ {
8555
+ name: 'tag',
8556
+ type: {
8557
+ type: 'str',
8558
+ },
8559
+ description: {
8560
+ markdown: 'Tag of the member',
8561
+ },
8562
+ required: false,
8563
+ },
8490
8564
  {
8491
8565
  name: 'user',
8492
8566
  type: {
@@ -8608,6 +8682,16 @@ const ChatMemberRestricted = t({
8608
8682
  },
8609
8683
  required: true,
8610
8684
  },
8685
+ {
8686
+ name: 'can_edit_tag',
8687
+ type: {
8688
+ type: 'bool',
8689
+ },
8690
+ description: {
8691
+ markdown: '_True_, if the user is allowed to edit their own tag',
8692
+ },
8693
+ required: true,
8694
+ },
8611
8695
  {
8612
8696
  name: 'can_change_info',
8613
8697
  type: {
@@ -8907,6 +8991,16 @@ const ChatPermissions = t({
8907
8991
  },
8908
8992
  required: false,
8909
8993
  },
8994
+ {
8995
+ name: 'can_edit_tag',
8996
+ type: {
8997
+ type: 'bool',
8998
+ },
8999
+ description: {
9000
+ markdown: '_True_, if the user is allowed to edit their own tag',
9001
+ },
9002
+ required: false,
9003
+ },
8910
9004
  {
8911
9005
  name: 'can_change_info',
8912
9006
  type: {
@@ -15052,7 +15146,7 @@ const InlineQueryResultDocument = t({
15052
15146
  name: 'InlineKeyboardMarkup',
15053
15147
  },
15054
15148
  description: {
15055
- markdown: 'Inline keyboard attached to the message',
15149
+ markdown: '[Inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) attached to the message',
15056
15150
  },
15057
15151
  required: false,
15058
15152
  },