@telegram.ts/types 1.16.0 → 1.17.1
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/package.json +1 -1
- package/src/apiMethodsTypes.d.ts +40 -2
- package/src/invoiceTypes.d.ts +10 -0
- package/src/markupTypes.d.ts +11 -0
- package/src/messageTypes.d.ts +4 -5
package/package.json
CHANGED
package/src/apiMethodsTypes.d.ts
CHANGED
|
@@ -146,6 +146,8 @@ export type ApiMethods = {
|
|
|
146
146
|
disable_notification?: boolean;
|
|
147
147
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
148
148
|
protect_content?: boolean;
|
|
149
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
150
|
+
allow_paid_broadcast?: boolean;
|
|
149
151
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
150
152
|
message_effect_id?: string;
|
|
151
153
|
/** Description of the message to reply to */
|
|
@@ -210,6 +212,8 @@ export type ApiMethods = {
|
|
|
210
212
|
show_caption_above_media?: boolean;
|
|
211
213
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
212
214
|
disable_notification?: boolean;
|
|
215
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
216
|
+
allow_paid_broadcast?: boolean;
|
|
213
217
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
214
218
|
protect_content?: boolean;
|
|
215
219
|
/** Description of the message to reply to */
|
|
@@ -264,6 +268,8 @@ export type ApiMethods = {
|
|
|
264
268
|
disable_notification?: boolean;
|
|
265
269
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
266
270
|
protect_content?: boolean;
|
|
271
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
272
|
+
allow_paid_broadcast?: boolean;
|
|
267
273
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
268
274
|
message_effect_id?: string;
|
|
269
275
|
/** Description of the message to reply to */
|
|
@@ -306,6 +312,8 @@ export type ApiMethods = {
|
|
|
306
312
|
disable_notification?: boolean;
|
|
307
313
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
308
314
|
protect_content?: boolean;
|
|
315
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
316
|
+
allow_paid_broadcast?: boolean;
|
|
309
317
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
310
318
|
message_effect_id?: string;
|
|
311
319
|
/** Description of the message to reply to */
|
|
@@ -342,6 +350,8 @@ export type ApiMethods = {
|
|
|
342
350
|
disable_notification?: boolean;
|
|
343
351
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
344
352
|
protect_content?: boolean;
|
|
353
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
354
|
+
allow_paid_broadcast?: boolean;
|
|
345
355
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
346
356
|
message_effect_id?: string;
|
|
347
357
|
/** Description of the message to reply to */
|
|
@@ -388,6 +398,8 @@ export type ApiMethods = {
|
|
|
388
398
|
disable_notification?: boolean;
|
|
389
399
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
390
400
|
protect_content?: boolean;
|
|
401
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
402
|
+
allow_paid_broadcast?: boolean;
|
|
391
403
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
392
404
|
message_effect_id?: string;
|
|
393
405
|
/** Description of the message to reply to */
|
|
@@ -432,6 +444,8 @@ export type ApiMethods = {
|
|
|
432
444
|
disable_notification?: boolean;
|
|
433
445
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
434
446
|
protect_content?: boolean;
|
|
447
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
448
|
+
allow_paid_broadcast?: boolean;
|
|
435
449
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
436
450
|
message_effect_id?: string;
|
|
437
451
|
/** Description of the message to reply to */
|
|
@@ -466,6 +480,8 @@ export type ApiMethods = {
|
|
|
466
480
|
disable_notification?: boolean;
|
|
467
481
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
468
482
|
protect_content?: boolean;
|
|
483
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
484
|
+
allow_paid_broadcast?: boolean;
|
|
469
485
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
470
486
|
message_effect_id?: string;
|
|
471
487
|
/** Description of the message to reply to */
|
|
@@ -499,6 +515,8 @@ export type ApiMethods = {
|
|
|
499
515
|
disable_notification?: boolean;
|
|
500
516
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
501
517
|
protect_content?: boolean;
|
|
518
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
519
|
+
allow_paid_broadcast?: boolean;
|
|
502
520
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
503
521
|
message_effect_id?: string;
|
|
504
522
|
/** Description of the message to reply to */
|
|
@@ -517,9 +535,9 @@ export type ApiMethods = {
|
|
|
517
535
|
business_connection_id?: string;
|
|
518
536
|
/** Unique identifier for the target chat or username of the target channel (in the format @channelusername) */
|
|
519
537
|
chat_id: number | string;
|
|
520
|
-
/** An array describing messages to be sent, must include 2-10 items */
|
|
521
538
|
/** Unique identifier for the target message thread (topic) of the forum; for forum supergroups only */
|
|
522
539
|
message_thread_id?: number;
|
|
540
|
+
/** An array describing messages to be sent, must include 2-10 items */
|
|
523
541
|
media: ReadonlyArray<
|
|
524
542
|
InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo
|
|
525
543
|
>;
|
|
@@ -527,6 +545,8 @@ export type ApiMethods = {
|
|
|
527
545
|
disable_notification?: boolean;
|
|
528
546
|
/** Protects the contents of the sent messages from forwarding and saving */
|
|
529
547
|
protect_content?: boolean;
|
|
548
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
549
|
+
allow_paid_broadcast?: boolean;
|
|
530
550
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
531
551
|
message_effect_id?: string;
|
|
532
552
|
/** Description of the message to reply to */
|
|
@@ -562,6 +582,8 @@ export type ApiMethods = {
|
|
|
562
582
|
disable_notification?: boolean;
|
|
563
583
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
564
584
|
protect_content?: boolean;
|
|
585
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
586
|
+
allow_paid_broadcast?: boolean;
|
|
565
587
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
566
588
|
message_effect_id?: string;
|
|
567
589
|
/** Description of the message to reply to */
|
|
@@ -636,6 +658,8 @@ export type ApiMethods = {
|
|
|
636
658
|
show_caption_above_media?: boolean;
|
|
637
659
|
/** Sends the message silently. Users will receive a notification with no sound. */
|
|
638
660
|
disable_notification?: boolean;
|
|
661
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
662
|
+
allow_paid_broadcast?: boolean;
|
|
639
663
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
640
664
|
protect_content?: boolean;
|
|
641
665
|
/** Description of the message to reply to */
|
|
@@ -676,6 +700,8 @@ export type ApiMethods = {
|
|
|
676
700
|
disable_notification?: boolean;
|
|
677
701
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
678
702
|
protect_content?: boolean;
|
|
703
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
704
|
+
allow_paid_broadcast?: boolean;
|
|
679
705
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
680
706
|
message_effect_id?: string;
|
|
681
707
|
/** Description of the message to reply to */
|
|
@@ -708,6 +734,8 @@ export type ApiMethods = {
|
|
|
708
734
|
disable_notification?: boolean;
|
|
709
735
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
710
736
|
protect_content?: boolean;
|
|
737
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
738
|
+
allow_paid_broadcast?: boolean;
|
|
711
739
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
712
740
|
message_effect_id?: string;
|
|
713
741
|
/** Description of the message to reply to */
|
|
@@ -760,6 +788,8 @@ export type ApiMethods = {
|
|
|
760
788
|
disable_notification?: boolean;
|
|
761
789
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
762
790
|
protect_content?: boolean;
|
|
791
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
792
|
+
allow_paid_broadcast?: boolean;
|
|
763
793
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
764
794
|
message_effect_id?: string;
|
|
765
795
|
/** Description of the message to reply to */
|
|
@@ -786,6 +816,8 @@ export type ApiMethods = {
|
|
|
786
816
|
disable_notification?: boolean;
|
|
787
817
|
/** Protects the contents of the sent message from forwarding */
|
|
788
818
|
protect_content?: boolean;
|
|
819
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
820
|
+
allow_paid_broadcast?: boolean;
|
|
789
821
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
790
822
|
message_effect_id?: string;
|
|
791
823
|
/** Description of the message to reply to */
|
|
@@ -1430,7 +1462,7 @@ export type ApiMethods = {
|
|
|
1430
1462
|
reply_markup?: InlineKeyboardMarkup;
|
|
1431
1463
|
}): (Update.Edited & Message.CaptionableMessage) | true;
|
|
1432
1464
|
|
|
1433
|
-
/** 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 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. */
|
|
1465
|
+
/** Use this method to edit animation, audio, document, photo, or video messages, or to add media to text 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 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. */
|
|
1434
1466
|
editMessageMedia(args: {
|
|
1435
1467
|
/** Unique identifier of the business connection on behalf of which the message to be edited was sent */
|
|
1436
1468
|
business_connection_id?: string;
|
|
@@ -1513,6 +1545,8 @@ export type ApiMethods = {
|
|
|
1513
1545
|
disable_notification?: boolean;
|
|
1514
1546
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
1515
1547
|
protect_content?: boolean;
|
|
1548
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
1549
|
+
allow_paid_broadcast?: boolean;
|
|
1516
1550
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
1517
1551
|
message_effect_id?: string;
|
|
1518
1552
|
/** Description of the message to reply to */
|
|
@@ -1736,6 +1770,8 @@ export type ApiMethods = {
|
|
|
1736
1770
|
disable_notification?: boolean;
|
|
1737
1771
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
1738
1772
|
protect_content?: boolean;
|
|
1773
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
1774
|
+
allow_paid_broadcast?: boolean;
|
|
1739
1775
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
1740
1776
|
message_effect_id?: string;
|
|
1741
1777
|
/** Description of the message to reply to */
|
|
@@ -1850,6 +1886,8 @@ export type ApiMethods = {
|
|
|
1850
1886
|
disable_notification?: boolean;
|
|
1851
1887
|
/** Protects the contents of the sent message from forwarding and saving */
|
|
1852
1888
|
protect_content?: boolean;
|
|
1889
|
+
/** Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance */
|
|
1890
|
+
allow_paid_broadcast?: boolean;
|
|
1853
1891
|
/** Unique identifier of the message effect to be added to the message; for private chats only */
|
|
1854
1892
|
message_effect_id?: string;
|
|
1855
1893
|
/** Description of the message to reply to */
|
package/src/invoiceTypes.d.ts
CHANGED
|
@@ -160,11 +160,13 @@ export interface RevenueWithdrawalStateFailed {
|
|
|
160
160
|
- TransactionPartnerUser
|
|
161
161
|
- TransactionPartnerFragment
|
|
162
162
|
- TransactionPartnerTelegramAds
|
|
163
|
+
- TransactionPartnerTelegramApi
|
|
163
164
|
- TransactionPartnerOther */
|
|
164
165
|
export type TransactionPartner =
|
|
165
166
|
| TransactionPartnerUser
|
|
166
167
|
| TransactionPartnerFragment
|
|
167
168
|
| TransactionPartnerTelegramAds
|
|
169
|
+
| TransactionPartnerTelegramApi
|
|
168
170
|
| TransactionPartnerOther;
|
|
169
171
|
|
|
170
172
|
/** Describes a transaction with a user. */
|
|
@@ -189,6 +191,14 @@ export interface TransactionPartnerFragment {
|
|
|
189
191
|
withdrawal_state?: RevenueWithdrawalState;
|
|
190
192
|
}
|
|
191
193
|
|
|
194
|
+
/** Describes a transaction with payment for paid broadcasting. */
|
|
195
|
+
export interface TransactionPartnerTelegramApi {
|
|
196
|
+
/** Type of the transaction partner, always “telegram_api” */
|
|
197
|
+
type: "telegram_api";
|
|
198
|
+
/** The number of successful requests that exceeded regular limits and were therefore billed */
|
|
199
|
+
request_count: number;
|
|
200
|
+
}
|
|
201
|
+
|
|
192
202
|
/** Describes a withdrawal transaction to the Telegram Ads platform. */
|
|
193
203
|
export interface TransactionPartnerTelegramAds {
|
|
194
204
|
/** Type of the transaction partner, always “telegram_ads” */
|
package/src/markupTypes.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export declare namespace InlineKeyboardButton {
|
|
|
44
44
|
/** If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account. */
|
|
45
45
|
switch_inline_query_chosen_chat: SwitchInlineQueryChosenChat;
|
|
46
46
|
}
|
|
47
|
+
export interface CopyTextButton extends AbstractInlineKeyboardButton {
|
|
48
|
+
/** Description of the button that copies the specified text to the clipboard. */
|
|
49
|
+
copy_text: CopyTextButton;
|
|
50
|
+
}
|
|
47
51
|
export interface GameButton extends AbstractInlineKeyboardButton {
|
|
48
52
|
/** Description of the game that will be launched when the user presses the button.
|
|
49
53
|
|
|
@@ -67,6 +71,7 @@ export type InlineKeyboardButton =
|
|
|
67
71
|
| InlineKeyboardButton.SwitchInlineButton
|
|
68
72
|
| InlineKeyboardButton.SwitchInlineCurrentChatButton
|
|
69
73
|
| InlineKeyboardButton.SwitchInlineChosenChatButton
|
|
74
|
+
| InlineKeyboardButton.CopyTextButton
|
|
70
75
|
| InlineKeyboardButton.UrlButton
|
|
71
76
|
| InlineKeyboardButton.WebAppButton;
|
|
72
77
|
|
|
@@ -216,6 +221,12 @@ export interface ForceReply {
|
|
|
216
221
|
selective?: boolean;
|
|
217
222
|
}
|
|
218
223
|
|
|
224
|
+
/** This object represents an inline keyboard button that copies specified text to the clipboard. */
|
|
225
|
+
export interface CopyTextButton {
|
|
226
|
+
/** The text to be copied to the clipboard; 1-256 characters */
|
|
227
|
+
text: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
219
230
|
/** Describes a Web App. */
|
|
220
231
|
export interface WebAppInfo {
|
|
221
232
|
/** An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps */
|
package/src/messageTypes.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Chat, User } from "./manageTypes";
|
|
2
|
-
import type { LanguageCode } from "./languageTypes";
|
|
3
2
|
import type { InlineKeyboardMarkup } from "./markupTypes";
|
|
4
3
|
import type { PassportData } from "./passportTypes";
|
|
5
4
|
import type {
|
|
@@ -12,7 +11,7 @@ type MsgWith<P extends keyof Message> = Record<P, NonNullable<Message[P]>>;
|
|
|
12
11
|
|
|
13
12
|
export declare namespace Message {
|
|
14
13
|
interface ServiceMessage {
|
|
15
|
-
/** Unique message identifier inside this chat */
|
|
14
|
+
/** Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent */
|
|
16
15
|
message_id: number;
|
|
17
16
|
/** Unique identifier of a message thread or a forum topic to which the message belongs; for supergroups only */
|
|
18
17
|
message_thread_id?: number;
|
|
@@ -282,7 +281,7 @@ export interface Message extends Message.MediaMessage {
|
|
|
282
281
|
|
|
283
282
|
/** This object represents a unique message identifier. */
|
|
284
283
|
export interface MessageId {
|
|
285
|
-
/** Unique message identifier */
|
|
284
|
+
/** Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent */
|
|
286
285
|
message_id: number;
|
|
287
286
|
}
|
|
288
287
|
|
|
@@ -431,7 +430,7 @@ export type ParseMode = "Markdown" | "MarkdownV2" | "HTML";
|
|
|
431
430
|
|
|
432
431
|
export declare namespace MessageEntity {
|
|
433
432
|
interface AbstractMessageEntity {
|
|
434
|
-
/** Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “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), “custom_emoji” (for inline custom emoji stickers) */
|
|
433
|
+
/** 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), “custom_emoji” (for inline custom emoji stickers) */
|
|
435
434
|
type: string;
|
|
436
435
|
/** Offset in UTF-16 code units to the start of the entity */
|
|
437
436
|
offset: number;
|
|
@@ -459,7 +458,7 @@ export declare namespace MessageEntity {
|
|
|
459
458
|
export interface PreMessageEntity extends AbstractMessageEntity {
|
|
460
459
|
type: "pre";
|
|
461
460
|
/** For “pre” only, the programming language of the entity text */
|
|
462
|
-
language?:
|
|
461
|
+
language?: string;
|
|
463
462
|
}
|
|
464
463
|
export interface TextLinkMessageEntity extends AbstractMessageEntity {
|
|
465
464
|
type: "text_link";
|