You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
markdown: 'Use this method to stream a partial message to a user while the message is being generated; supported only for bots with forum topic mode enabled. Returns _True_ on success.',
4429
+
markdown: 'Use this method to stream a partial message to a user while the message is being generated. Returns _True_ on success.',
markdown: 'Use this method to set a tag for a regular member in a group or a supergroup. The bot must be an administrator in the chat for this to work and must have the _can\\_manage\\_tags_ administrator right. Returns _True_ on success.',
5291
+
},
5292
+
parameters: [
5293
+
{
5294
+
name: 'chat_id',
5295
+
type: {
5296
+
type: 'union',
5297
+
types: [
5298
+
{
5299
+
type: 'int32',
5300
+
},
5301
+
{
5302
+
type: 'str',
5303
+
},
5304
+
],
5305
+
},
5306
+
description: {
5307
+
markdown: 'Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`)',
5308
+
},
5309
+
required: true,
5310
+
},
5311
+
{
5312
+
name: 'user_id',
5313
+
type: {
5314
+
type: 'int32',
5315
+
},
5316
+
description: {
5317
+
markdown: 'Unique identifier of the target user',
5318
+
},
5319
+
required: true,
5320
+
},
5321
+
{
5322
+
name: 'tag',
5323
+
type: {
5324
+
type: 'str',
5325
+
},
5326
+
description: {
5327
+
markdown: 'New tag for the member; 0-16 characters, emoji are not allowed',
Copy file name to clipboardExpand all lines: src/types.gen.ts
+98-4Lines changed: 98 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1304,6 +1304,16 @@ const Message = t({
1304
1304
},
1305
1305
required: false,
1306
1306
},
1307
+
{
1308
+
name: 'sender_tag',
1309
+
type: {
1310
+
type: 'str',
1311
+
},
1312
+
description: {
1313
+
markdown: 'Tag or custom title of the sender of the message; for supergroups only',
1314
+
},
1315
+
required: false,
1316
+
},
1307
1317
{
1308
1318
name: 'date',
1309
1319
type: {
@@ -1482,7 +1492,7 @@ const Message = t({
1482
1492
type: 'str',
1483
1493
},
1484
1494
description: {
1485
-
markdown: 'The unique identifier of a media message group this message belongs to',
1495
+
markdown: 'The unique identifier inside this chat of a media message group this message belongs to',
1486
1496
},
1487
1497
required: false,
1488
1498
},
@@ -2379,7 +2389,7 @@ const Message = t({
2379
2389
name: 'InlineKeyboardMarkup',
2380
2390
},
2381
2391
description: {
2382
-
markdown: 'Inline keyboard attached to the message. `login_url` buttons are represented as ordinary `url` buttons.',
2392
+
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
2393
},
2384
2394
required: false,
2385
2395
},
@@ -2550,10 +2560,14 @@ const MessageEntity = t({
2550
2560
type: 'str',
2551
2561
literal: 'custom_emoji',
2552
2562
},
2563
+
{
2564
+
type: 'str',
2565
+
literal: 'date_time',
2566
+
},
2553
2567
],
2554
2568
},
2555
2569
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)',
2570
+
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
2571
},
2558
2572
required: true,
2559
2573
},
@@ -2618,6 +2632,26 @@ const MessageEntity = t({
2618
2632
},
2619
2633
required: false,
2620
2634
},
2635
+
{
2636
+
name: 'unix_time',
2637
+
type: {
2638
+
type: 'int32',
2639
+
},
2640
+
description: {
2641
+
markdown: 'For “date\\_time” only, the Unix time associated with the entity',
2642
+
},
2643
+
required: false,
2644
+
},
2645
+
{
2646
+
name: 'date_time_format',
2647
+
type: {
2648
+
type: 'str',
2649
+
},
2650
+
description: {
2651
+
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.',
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.',
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.',
0 commit comments