@grammyjs/types 2.5.0 → 2.7.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/LICENSE +1 -1
- package/index.d.ts +2 -1
- package/inline.d.ts +7 -84
- package/manage.d.ts +44 -12
- package/{callback.d.ts → markup.d.ts} +118 -24
- package/{bot-command-scope.d.ts → menu-button.d.ts} +35 -0
- package/message.d.ts +83 -77
- package/package.json +1 -1
- package/passport.d.ts +17 -17
- package/proxied.d.ts +81 -37
- package/update.d.ts +1 -1
package/message.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlineKeyboardMarkup } from "./
|
|
1
|
+
import { InlineKeyboardMarkup } from "./markup";
|
|
2
2
|
import { Chat, User } from "./manage";
|
|
3
3
|
import { PassportData } from "./passport";
|
|
4
4
|
import { Invoice, SuccessfulPayment } from "./payment";
|
|
@@ -72,59 +72,44 @@ export namespace Message {
|
|
|
72
72
|
export type PollMessage = CommonMessage & MsgWith<"poll">;
|
|
73
73
|
export type LocationMessage = CommonMessage & MsgWith<"location">;
|
|
74
74
|
export type VenueMessage = LocationMessage & MsgWith<"venue">;
|
|
75
|
-
export type NewChatMembersMessage =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
& ServiceMessage
|
|
80
|
-
& MsgWith<"left_chat_member">;
|
|
75
|
+
export type NewChatMembersMessage = ServiceMessage &
|
|
76
|
+
MsgWith<"new_chat_members">;
|
|
77
|
+
export type LeftChatMemberMessage = ServiceMessage &
|
|
78
|
+
MsgWith<"left_chat_member">;
|
|
81
79
|
export type NewChatTitleMessage = ServiceMessage & MsgWith<"new_chat_title">;
|
|
82
80
|
export type NewChatPhotoMessage = ServiceMessage & MsgWith<"new_chat_photo">;
|
|
83
|
-
export type DeleteChatPhotoMessage =
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export type
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
export type
|
|
96
|
-
|
|
97
|
-
& MsgWith<"message_auto_delete_timer_changed">;
|
|
98
|
-
export type MigrateToChatIdMessage =
|
|
99
|
-
& ServiceMessage
|
|
100
|
-
& MsgWith<"migrate_to_chat_id">;
|
|
101
|
-
export type MigrateFromChatIdMessage =
|
|
102
|
-
& ServiceMessage
|
|
103
|
-
& MsgWith<"migrate_from_chat_id">;
|
|
81
|
+
export type DeleteChatPhotoMessage = ServiceMessage &
|
|
82
|
+
MsgWith<"delete_chat_photo">;
|
|
83
|
+
export type GroupChatCreatedMessage = ServiceMessage &
|
|
84
|
+
MsgWith<"group_chat_created">;
|
|
85
|
+
export type SupergroupChatCreated = ServiceMessage &
|
|
86
|
+
MsgWith<"supergroup_chat_created">;
|
|
87
|
+
export type ChannelChatCreatedMessage = ServiceMessage &
|
|
88
|
+
MsgWith<"channel_chat_created">;
|
|
89
|
+
export type MessageAutoDeleteTimerChangedMessage = ServiceMessage &
|
|
90
|
+
MsgWith<"message_auto_delete_timer_changed">;
|
|
91
|
+
export type MigrateToChatIdMessage = ServiceMessage &
|
|
92
|
+
MsgWith<"migrate_to_chat_id">;
|
|
93
|
+
export type MigrateFromChatIdMessage = ServiceMessage &
|
|
94
|
+
MsgWith<"migrate_from_chat_id">;
|
|
104
95
|
export type PinnedMessageMessage = ServiceMessage & MsgWith<"pinned_message">;
|
|
105
96
|
export type InvoiceMessage = ServiceMessage & MsgWith<"invoice">;
|
|
106
|
-
export type SuccessfulPaymentMessage =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
& ServiceMessage
|
|
111
|
-
& MsgWith<"connected_website">;
|
|
97
|
+
export type SuccessfulPaymentMessage = ServiceMessage &
|
|
98
|
+
MsgWith<"successful_payment">;
|
|
99
|
+
export type ConnectedWebsiteMessage = ServiceMessage &
|
|
100
|
+
MsgWith<"connected_website">;
|
|
112
101
|
export type PassportDataMessage = ServiceMessage & MsgWith<"passport_data">;
|
|
113
|
-
export type ProximityAlertTriggeredMessage =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
export type
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
& MsgWith<"voice_chat_ended">;
|
|
125
|
-
export type VoiceChatParticipantsInvitedMessage =
|
|
126
|
-
& ServiceMessage
|
|
127
|
-
& MsgWith<"voice_chat_participants_invited">;
|
|
102
|
+
export type ProximityAlertTriggeredMessage = ServiceMessage &
|
|
103
|
+
MsgWith<"proximity_alert_triggered">;
|
|
104
|
+
export type VideoChatScheduledMessage = ServiceMessage &
|
|
105
|
+
MsgWith<"video_chat_scheduled">;
|
|
106
|
+
export type VideoChatStartedMessage = ServiceMessage &
|
|
107
|
+
MsgWith<"video_chat_started">;
|
|
108
|
+
export type VideoChatEndedMessage = ServiceMessage &
|
|
109
|
+
MsgWith<"video_chat_ended">;
|
|
110
|
+
export type VideoChatParticipantsInvitedMessage = ServiceMessage &
|
|
111
|
+
MsgWith<"video_chat_participants_invited">;
|
|
112
|
+
export type WebAppDataMessage = ServiceMessage & MsgWith<"web_app_data">;
|
|
128
113
|
}
|
|
129
114
|
|
|
130
115
|
type ReplyMessage = Message & { reply_to_message: undefined };
|
|
@@ -197,13 +182,16 @@ export interface Message extends Message.MediaMessage {
|
|
|
197
182
|
/** Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. */
|
|
198
183
|
proximity_alert_triggered?: ProximityAlertTriggered;
|
|
199
184
|
/** Service message: voice chat scheduled */
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
185
|
+
/** Service message: video chat scheduled */
|
|
186
|
+
video_chat_scheduled?: VideoChatScheduled;
|
|
187
|
+
/** Service message: video chat started */
|
|
188
|
+
video_chat_started?: VideoChatStarted;
|
|
189
|
+
/** Service message: video chat ended */
|
|
190
|
+
video_chat_ended?: VideoChatEnded;
|
|
191
|
+
/** Service message: new participants invited to a video chat */
|
|
192
|
+
video_chat_participants_invited?: VideoChatParticipantsInvited;
|
|
193
|
+
/** Service message: data sent by a Web App */
|
|
194
|
+
web_app_data?: WebAppData;
|
|
207
195
|
}
|
|
208
196
|
|
|
209
197
|
/** This object represents a unique message identifier. */
|
|
@@ -212,6 +200,12 @@ export interface MessageId {
|
|
|
212
200
|
message_id: number;
|
|
213
201
|
}
|
|
214
202
|
|
|
203
|
+
/** Contains information about an inline message sent by a Web App on behalf of a user. */
|
|
204
|
+
export interface SentWebAppMessage {
|
|
205
|
+
/** Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. */
|
|
206
|
+
inline_message_id: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
215
209
|
/** The Bot API supports basic formatting for messages. You can use bold, italic, underlined, strikethrough, and spoiler text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting.
|
|
216
210
|
|
|
217
211
|
Note that Telegram clients will display an **alert** to the user before opening an inline link ('Open this link?' together with the full URL).
|
|
@@ -262,7 +256,7 @@ To use this mode, pass *HTML* in the *parse_mode* field. The following tags are
|
|
|
262
256
|
<i>italic</i>, <em>italic</em>
|
|
263
257
|
<u>underline</u>, <ins>underline</ins>
|
|
264
258
|
<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>
|
|
265
|
-
<span class="tg-spoiler">spoiler</span>
|
|
259
|
+
<span class="tg-spoiler">spoiler</span>, <tg-spoiler>spoiler</tg-spoiler>
|
|
266
260
|
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
|
|
267
261
|
<a href="http://www.example.com/">inline URL</a>
|
|
268
262
|
<a href="tg://user?id=123456789">inline mention of a user</a>
|
|
@@ -305,7 +299,7 @@ export type ParseMode = "Markdown" | "MarkdownV2" | "HTML";
|
|
|
305
299
|
|
|
306
300
|
export namespace MessageEntity {
|
|
307
301
|
interface AbstractMessageEntity {
|
|
308
|
-
/** Type of the entity. Currently, can be
|
|
302
|
+
/** 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), "code" (monowidth string), "pre" (monowidth block), "text_link" (for clickable text URLs), "text_mention" (for users without usernames) */
|
|
309
303
|
type: string;
|
|
310
304
|
/** Offset in UTF-16 code units to the start of the entity */
|
|
311
305
|
offset: number;
|
|
@@ -330,17 +324,17 @@ export namespace MessageEntity {
|
|
|
330
324
|
}
|
|
331
325
|
export interface TextLinkMessageEntity extends AbstractMessageEntity {
|
|
332
326
|
type: "text_link";
|
|
333
|
-
/** For
|
|
327
|
+
/** For "text_link" only, url that will be opened after user taps on the text */
|
|
334
328
|
url: string;
|
|
335
329
|
}
|
|
336
330
|
export interface TextMentionMessageEntity extends AbstractMessageEntity {
|
|
337
331
|
type: "text_mention";
|
|
338
|
-
/** For
|
|
332
|
+
/** For "text_mention" only, the mentioned user */
|
|
339
333
|
user: User;
|
|
340
334
|
}
|
|
341
335
|
export interface PreMessageEntity extends AbstractMessageEntity {
|
|
342
336
|
type: "pre";
|
|
343
|
-
/** For
|
|
337
|
+
/** For "pre" only, the programming language of the entity text */
|
|
344
338
|
language?: string;
|
|
345
339
|
}
|
|
346
340
|
}
|
|
@@ -496,7 +490,7 @@ export interface Contact {
|
|
|
496
490
|
export interface Dice {
|
|
497
491
|
/** Emoji on which the dice throw animation is based */
|
|
498
492
|
emoji: string;
|
|
499
|
-
/** Value of the dice, 1-6 for
|
|
493
|
+
/** Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji */
|
|
500
494
|
value: number;
|
|
501
495
|
}
|
|
502
496
|
|
|
@@ -532,7 +526,7 @@ export interface Poll {
|
|
|
532
526
|
is_closed: boolean;
|
|
533
527
|
/** True, if the poll is anonymous */
|
|
534
528
|
is_anonymous: boolean;
|
|
535
|
-
/** Poll type, currently can be
|
|
529
|
+
/** Poll type, currently can be "regular" or "quiz" */
|
|
536
530
|
type: "regular" | "quiz";
|
|
537
531
|
/** True, if the poll allows multiple answers */
|
|
538
532
|
allows_multiple_answers: boolean;
|
|
@@ -574,7 +568,7 @@ export interface Venue {
|
|
|
574
568
|
address: string;
|
|
575
569
|
/** Foursquare identifier of the venue */
|
|
576
570
|
foursquare_id?: string;
|
|
577
|
-
/** Foursquare type of the venue. (For example,
|
|
571
|
+
/** Foursquare type of the venue. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".) */
|
|
578
572
|
foursquare_type?: string;
|
|
579
573
|
/** Google Places identifier of the venue */
|
|
580
574
|
google_place_id?: string;
|
|
@@ -598,27 +592,35 @@ export interface MessageAutoDeleteTimerChanged {
|
|
|
598
592
|
message_auto_delete_time: number;
|
|
599
593
|
}
|
|
600
594
|
|
|
601
|
-
/** This object represents a service message about a
|
|
602
|
-
export interface
|
|
603
|
-
/** Point in time (Unix timestamp) when the
|
|
595
|
+
/** This object represents a service message about a video chat scheduled in the chat. */
|
|
596
|
+
export interface VideoChatScheduled {
|
|
597
|
+
/** Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator */
|
|
604
598
|
start_date: number;
|
|
605
599
|
}
|
|
606
600
|
|
|
607
|
-
/** This object represents a service message about a
|
|
608
|
-
export interface
|
|
601
|
+
/** This object represents a service message about a video chat started in the chat. Currently holds no information. */
|
|
602
|
+
export interface VideoChatStarted {}
|
|
609
603
|
|
|
610
|
-
/** This object represents a service message about a
|
|
611
|
-
export interface
|
|
612
|
-
/**
|
|
604
|
+
/** This object represents a service message about a video chat ended in the chat. */
|
|
605
|
+
export interface VideoChatEnded {
|
|
606
|
+
/** Video chat duration in seconds */
|
|
613
607
|
duration: number;
|
|
614
608
|
}
|
|
615
609
|
|
|
616
|
-
/** This object represents a service message about new members invited to a
|
|
617
|
-
export interface
|
|
618
|
-
/** New members that were invited to the
|
|
610
|
+
/** This object represents a service message about new members invited to a video chat. */
|
|
611
|
+
export interface VideoChatParticipantsInvited {
|
|
612
|
+
/** New members that were invited to the video chat */
|
|
619
613
|
users: User[];
|
|
620
614
|
}
|
|
621
615
|
|
|
616
|
+
/** Contains data sent from a Web App to the bot. */
|
|
617
|
+
export interface WebAppData {
|
|
618
|
+
/** The data. Be aware that a bad client can send arbitrary data in this field. */
|
|
619
|
+
data: string;
|
|
620
|
+
/** Text of the web_app keyboard button, from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field. */
|
|
621
|
+
button_text: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
622
624
|
/** This object represents a sticker. */
|
|
623
625
|
export interface Sticker {
|
|
624
626
|
/** Identifier for this file, which can be used to download or reuse the file */
|
|
@@ -631,6 +633,8 @@ export interface Sticker {
|
|
|
631
633
|
height: number;
|
|
632
634
|
/** True, if the sticker is animated */
|
|
633
635
|
is_animated: boolean;
|
|
636
|
+
/** True, if the sticker is a video sticker */
|
|
637
|
+
is_video: boolean;
|
|
634
638
|
/** Sticker thumbnail in the .WEBP or .JPG format */
|
|
635
639
|
thumb?: PhotoSize;
|
|
636
640
|
/** Emoji associated with the sticker */
|
|
@@ -651,17 +655,19 @@ export interface StickerSet {
|
|
|
651
655
|
title: string;
|
|
652
656
|
/** True, if the sticker set contains animated stickers */
|
|
653
657
|
is_animated: boolean;
|
|
658
|
+
/** True, if the sticker set contains video stickers */
|
|
659
|
+
is_video: boolean;
|
|
654
660
|
/** True, if the sticker set contains masks */
|
|
655
661
|
contains_masks: boolean;
|
|
656
662
|
/** List of all set stickers */
|
|
657
663
|
stickers: Sticker[];
|
|
658
|
-
/** Sticker set thumbnail in the .WEBP or .
|
|
664
|
+
/** Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */
|
|
659
665
|
thumb?: PhotoSize;
|
|
660
666
|
}
|
|
661
667
|
|
|
662
668
|
/** This object describes the position on faces where a mask should be placed by default. */
|
|
663
669
|
export interface MaskPosition {
|
|
664
|
-
/** The part of the face relative to which the mask should be placed. One of
|
|
670
|
+
/** The part of the face relative to which the mask should be placed. One of "forehead", "eyes", "mouth", or "chin". */
|
|
665
671
|
point: "forehead" | "eyes" | "mouth" | "chin";
|
|
666
672
|
/** Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position. */
|
|
667
673
|
x_shift: number;
|
package/package.json
CHANGED
package/passport.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface PassportFile {
|
|
|
20
20
|
|
|
21
21
|
/** Contains information about documents or other Telegram Passport elements shared with the bot by the user. */
|
|
22
22
|
export interface EncryptedPassportElement {
|
|
23
|
-
/** Element type. One of
|
|
23
|
+
/** Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email". */
|
|
24
24
|
type:
|
|
25
25
|
| "personal_details"
|
|
26
26
|
| "passport"
|
|
@@ -35,21 +35,21 @@ export interface EncryptedPassportElement {
|
|
|
35
35
|
| "temporary_registration"
|
|
36
36
|
| "phone_number"
|
|
37
37
|
| "email";
|
|
38
|
-
/** Base64-encoded encrypted Telegram Passport element data provided by the user, available for
|
|
38
|
+
/** Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
39
39
|
data?: string;
|
|
40
|
-
/** User's verified phone number, available only for
|
|
40
|
+
/** User's verified phone number, available only for "phone_number" type */
|
|
41
41
|
phone_number?: string;
|
|
42
|
-
/** User's verified email address, available only for
|
|
42
|
+
/** User's verified email address, available only for "email" type */
|
|
43
43
|
email?: string;
|
|
44
|
-
/** Array of encrypted files with documents provided by the user, available for
|
|
44
|
+
/** Array of encrypted files with documents provided by the user, available for "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
45
45
|
files?: PassportFile[];
|
|
46
|
-
/** Encrypted file with the front side of the document, provided by the user. Available for
|
|
46
|
+
/** Encrypted file with the front side of the document, provided by the user. Available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
47
47
|
front_side?: PassportFile;
|
|
48
|
-
/** Encrypted file with the reverse side of the document, provided by the user. Available for
|
|
48
|
+
/** Encrypted file with the reverse side of the document, provided by the user. Available for "driver_license" and "identity_card". The file can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
49
49
|
reverse_side?: PassportFile;
|
|
50
|
-
/** Encrypted file with the selfie of the user holding a document, provided by the user; available for
|
|
50
|
+
/** Encrypted file with the selfie of the user holding a document, provided by the user; available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
51
51
|
selfie?: PassportFile;
|
|
52
|
-
/** Array of encrypted files with translated versions of documents provided by the user. Available if requested for
|
|
52
|
+
/** Array of encrypted files with translated versions of documents provided by the user. Available if requested for "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials. */
|
|
53
53
|
translation?: PassportFile[];
|
|
54
54
|
/** Base64-encoded element hash for using in PassportElementErrorUnspecified */
|
|
55
55
|
hash: string;
|
|
@@ -91,7 +91,7 @@ export type PassportElementError =
|
|
|
91
91
|
export interface PassportElementErrorDataField {
|
|
92
92
|
/** Error source, must be data */
|
|
93
93
|
source: "data";
|
|
94
|
-
/** The section of the user's Telegram Passport which has the error, one of
|
|
94
|
+
/** The section of the user's Telegram Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address" */
|
|
95
95
|
type:
|
|
96
96
|
| "personal_details"
|
|
97
97
|
| "passport"
|
|
@@ -111,7 +111,7 @@ export interface PassportElementErrorDataField {
|
|
|
111
111
|
export interface PassportElementErrorFrontSide {
|
|
112
112
|
/** Error source, must be front_side */
|
|
113
113
|
source: "front_side";
|
|
114
|
-
/** The section of the user's Telegram Passport which has the issue, one of
|
|
114
|
+
/** The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport" */
|
|
115
115
|
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
116
116
|
/** Base64-encoded hash of the file with the front side of the document */
|
|
117
117
|
file_hash: string;
|
|
@@ -123,7 +123,7 @@ export interface PassportElementErrorFrontSide {
|
|
|
123
123
|
export interface PassportElementErrorReverseSide {
|
|
124
124
|
/** Error source, must be reverse_side */
|
|
125
125
|
source: "reverse_side";
|
|
126
|
-
/** The section of the user's Telegram Passport which has the issue, one of
|
|
126
|
+
/** The section of the user's Telegram Passport which has the issue, one of "driver_license", "identity_card" */
|
|
127
127
|
type: "driver_license" | "identity_card";
|
|
128
128
|
/** Base64-encoded hash of the file with the reverse side of the document */
|
|
129
129
|
file_hash: string;
|
|
@@ -135,7 +135,7 @@ export interface PassportElementErrorReverseSide {
|
|
|
135
135
|
export interface PassportElementErrorSelfie {
|
|
136
136
|
/** Error source, must be selfie */
|
|
137
137
|
source: "selfie";
|
|
138
|
-
/** The section of the user's Telegram Passport which has the issue, one of
|
|
138
|
+
/** The section of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport" */
|
|
139
139
|
type: "passport" | "driver_license" | "identity_card" | "internal_passport";
|
|
140
140
|
/** Base64-encoded hash of the file with the selfie */
|
|
141
141
|
file_hash: string;
|
|
@@ -147,7 +147,7 @@ export interface PassportElementErrorSelfie {
|
|
|
147
147
|
export interface PassportElementErrorFile {
|
|
148
148
|
/** Error source, must be file */
|
|
149
149
|
source: "file";
|
|
150
|
-
/** The section of the user's Telegram Passport which has the issue, one of
|
|
150
|
+
/** The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
|
|
151
151
|
type:
|
|
152
152
|
| "utility_bill"
|
|
153
153
|
| "bank_statement"
|
|
@@ -164,7 +164,7 @@ export interface PassportElementErrorFile {
|
|
|
164
164
|
export interface PassportElementErrorFiles {
|
|
165
165
|
/** Error source, must be files */
|
|
166
166
|
source: "files";
|
|
167
|
-
/** The section of the user's Telegram Passport which has the issue, one of
|
|
167
|
+
/** The section of the user's Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
|
|
168
168
|
type:
|
|
169
169
|
| "utility_bill"
|
|
170
170
|
| "bank_statement"
|
|
@@ -181,7 +181,7 @@ export interface PassportElementErrorFiles {
|
|
|
181
181
|
export interface PassportElementErrorTranslationFile {
|
|
182
182
|
/** Error source, must be translation_file */
|
|
183
183
|
source: "translation_file";
|
|
184
|
-
/** Type of element of the user's Telegram Passport which has the issue, one of
|
|
184
|
+
/** Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
|
|
185
185
|
type:
|
|
186
186
|
| "passport"
|
|
187
187
|
| "driver_license"
|
|
@@ -202,7 +202,7 @@ export interface PassportElementErrorTranslationFile {
|
|
|
202
202
|
export interface PassportElementErrorTranslationFiles {
|
|
203
203
|
/** Error source, must be translation_files */
|
|
204
204
|
source: "translation_files";
|
|
205
|
-
/** Type of element of the user's Telegram Passport which has the issue, one of
|
|
205
|
+
/** Type of element of the user's Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration" */
|
|
206
206
|
type:
|
|
207
207
|
| "passport"
|
|
208
208
|
| "driver_license"
|