@mtkruto/node 0.109.0 → 0.110.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/esm/client/0_client_abstract.d.ts +3 -3
- package/esm/client/0_client_abstract.d.ts.map +1 -1
- package/esm/client/0_client_abstract.js +6 -6
- package/esm/client/0_html.js +4 -4
- package/esm/client/0_params.d.ts +20 -19
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/1_client_plain.js +1 -1
- package/esm/client/1_types.d.ts +1 -1
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +6 -6
- package/esm/client/2_client_encrypted.js +2 -2
- package/esm/client/2_context.js +19 -19
- package/esm/client/2_file_manager.js +5 -5
- package/esm/client/2_network_statistics_manager.d.ts +1 -1
- package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
- package/esm/client/2_network_statistics_manager.js +3 -3
- package/esm/client/2_sign_in.js +6 -6
- package/esm/client/2_update_manager.js +2 -2
- package/esm/client/3_message_manager.js +38 -38
- package/esm/client/3_video_chat_manager.js +3 -3
- package/esm/client/4_callback_query_manager.js +1 -1
- package/esm/client/4_chat_list_manager.js +1 -1
- package/esm/client/4_chat_manager.js +6 -6
- package/esm/client/4_gift_manager.js +1 -1
- package/esm/client/4_story_manager.js +1 -1
- package/esm/client/5_client.d.ts +2 -2
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +33 -33
- package/esm/connection/0_connection.d.ts +2 -2
- package/esm/connection/0_connection.d.ts.map +1 -1
- package/esm/connection/1_connection_tcp.node.d.ts +1 -1
- package/esm/connection/1_connection_tcp.node.d.ts.map +1 -1
- package/esm/connection/1_connection_tcp.node.js +4 -4
- package/esm/connection/1_connection_web_socket.d.ts +1 -1
- package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
- package/esm/connection/1_connection_web_socket.js +3 -3
- package/esm/session/1_session.d.ts +4 -4
- package/esm/session/1_session.d.ts.map +1 -1
- package/esm/session/1_session.js +21 -21
- package/esm/session/2_session_encrypted.js +5 -5
- package/esm/session/2_session_plain.js +2 -2
- package/esm/transport/1_transport_provider.d.ts +2 -2
- package/esm/transport/1_transport_provider.d.ts.map +1 -1
- package/esm/transport/1_transport_provider.js +2 -2
- package/esm/transport/2_transport_provider_tcp.js +1 -1
- package/esm/transport/2_transport_provider_web_socket.js +3 -3
- package/esm/types/0_bot_token_check_result.d.ts +2 -2
- package/esm/types/0_bot_token_check_result.d.ts.map +1 -1
- package/esm/types/0_code_check_result.d.ts +3 -3
- package/esm/types/0_code_check_result.d.ts.map +1 -1
- package/esm/types/0_password_check_result.d.ts +3 -3
- package/esm/types/0_password_check_result.d.ts.map +1 -1
- package/esm/types/0_video_chat.d.ts +1 -1
- package/esm/types/0_video_chat.d.ts.map +1 -1
- package/esm/types/0_video_chat.js +1 -1
- package/esm/types/0_voice_transcription.d.ts +1 -1
- package/esm/types/0_voice_transcription.d.ts.map +1 -1
- package/esm/types/0_voice_transcription.js +1 -1
- package/esm/types/1_chat_p.d.ts +1 -1
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +1 -1
- package/esm/types/1_input_story_content.d.ts +1 -1
- package/esm/types/1_input_story_content.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.d.ts +7 -7
- package/esm/types/1_keyboard_button.d.ts.map +1 -1
- package/esm/types/1_keyboard_button.js +12 -12
- package/esm/types/1_message_reaction.d.ts +1 -1
- package/esm/types/1_message_reaction.d.ts.map +1 -1
- package/esm/types/1_message_reaction.js +1 -1
- package/esm/types/2_message_reaction_list_item.d.ts +2 -2
- package/esm/types/2_message_reaction_list_item.d.ts.map +1 -1
- package/esm/types/2_message_reaction_list_item.js +4 -4
- package/esm/types/2_reply_markup.d.ts +5 -5
- package/esm/types/2_reply_markup.d.ts.map +1 -1
- package/esm/types/2_reply_markup.js +7 -7
- package/esm/types/2_user.d.ts +1 -1
- package/esm/types/2_user.d.ts.map +1 -1
- package/esm/types/2_user.js +2 -2
- package/esm/types/3_chat_settings.d.ts +9 -9
- package/esm/types/3_chat_settings.d.ts.map +1 -1
- package/esm/types/3_chat_settings.js +9 -9
- package/esm/types/3_story.d.ts +3 -3
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/3_story.js +4 -4
- package/esm/types/5_claimed_gift.d.ts +1 -1
- package/esm/types/5_claimed_gift.d.ts.map +1 -1
- package/esm/types/5_claimed_gift.js +2 -2
- package/esm/types/5_link_preview.d.ts +1 -1
- package/esm/types/5_link_preview.d.ts.map +1 -1
- package/esm/types/6_message.d.ts +2 -2
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +2 -2
- package/esm/types/7_inline_query_result.d.ts +1 -1
- package/esm/types/7_inline_query_result.d.ts.map +1 -1
- package/esm/types/7_inline_query_result.js +1 -1
- package/esm/utilities/0_part_stream.d.ts +1 -1
- package/esm/utilities/0_part_stream.d.ts.map +1 -1
- package/esm/utilities/0_part_stream.js +2 -2
- package/package.json +1 -1
- package/script/client/0_client_abstract.d.ts +3 -3
- package/script/client/0_client_abstract.d.ts.map +1 -1
- package/script/client/0_client_abstract.js +6 -6
- package/script/client/0_html.js +4 -4
- package/script/client/0_params.d.ts +20 -19
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/1_client_plain.js +1 -1
- package/script/client/1_types.d.ts +1 -1
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.js +6 -6
- package/script/client/2_client_encrypted.js +2 -2
- package/script/client/2_context.js +19 -19
- package/script/client/2_file_manager.js +5 -5
- package/script/client/2_network_statistics_manager.d.ts +1 -1
- package/script/client/2_network_statistics_manager.d.ts.map +1 -1
- package/script/client/2_network_statistics_manager.js +3 -3
- package/script/client/2_sign_in.js +6 -6
- package/script/client/2_update_manager.js +2 -2
- package/script/client/3_message_manager.js +38 -38
- package/script/client/3_video_chat_manager.js +3 -3
- package/script/client/4_callback_query_manager.js +1 -1
- package/script/client/4_chat_list_manager.js +1 -1
- package/script/client/4_chat_manager.js +6 -6
- package/script/client/4_gift_manager.js +1 -1
- package/script/client/4_story_manager.js +1 -1
- package/script/client/5_client.d.ts +2 -2
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +33 -33
- package/script/connection/0_connection.d.ts +2 -2
- package/script/connection/0_connection.d.ts.map +1 -1
- package/script/connection/1_connection_tcp.node.d.ts +1 -1
- package/script/connection/1_connection_tcp.node.d.ts.map +1 -1
- package/script/connection/1_connection_tcp.node.js +4 -4
- package/script/connection/1_connection_web_socket.d.ts +1 -1
- package/script/connection/1_connection_web_socket.d.ts.map +1 -1
- package/script/connection/1_connection_web_socket.js +3 -3
- package/script/session/1_session.d.ts +4 -4
- package/script/session/1_session.d.ts.map +1 -1
- package/script/session/1_session.js +21 -21
- package/script/session/2_session_encrypted.js +5 -5
- package/script/session/2_session_plain.js +2 -2
- package/script/transport/1_transport_provider.d.ts +2 -2
- package/script/transport/1_transport_provider.d.ts.map +1 -1
- package/script/transport/1_transport_provider.js +2 -2
- package/script/transport/2_transport_provider_tcp.js +1 -1
- package/script/transport/2_transport_provider_web_socket.js +3 -3
- package/script/types/0_bot_token_check_result.d.ts +2 -2
- package/script/types/0_bot_token_check_result.d.ts.map +1 -1
- package/script/types/0_code_check_result.d.ts +3 -3
- package/script/types/0_code_check_result.d.ts.map +1 -1
- package/script/types/0_password_check_result.d.ts +3 -3
- package/script/types/0_password_check_result.d.ts.map +1 -1
- package/script/types/0_video_chat.d.ts +1 -1
- package/script/types/0_video_chat.d.ts.map +1 -1
- package/script/types/0_video_chat.js +1 -1
- package/script/types/0_voice_transcription.d.ts +1 -1
- package/script/types/0_voice_transcription.d.ts.map +1 -1
- package/script/types/0_voice_transcription.js +1 -1
- package/script/types/1_chat_p.d.ts +1 -1
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +1 -1
- package/script/types/1_input_story_content.d.ts +1 -1
- package/script/types/1_input_story_content.d.ts.map +1 -1
- package/script/types/1_keyboard_button.d.ts +7 -7
- package/script/types/1_keyboard_button.d.ts.map +1 -1
- package/script/types/1_keyboard_button.js +12 -12
- package/script/types/1_message_reaction.d.ts +1 -1
- package/script/types/1_message_reaction.d.ts.map +1 -1
- package/script/types/1_message_reaction.js +1 -1
- package/script/types/2_message_reaction_list_item.d.ts +2 -2
- package/script/types/2_message_reaction_list_item.d.ts.map +1 -1
- package/script/types/2_message_reaction_list_item.js +4 -4
- package/script/types/2_reply_markup.d.ts +5 -5
- package/script/types/2_reply_markup.d.ts.map +1 -1
- package/script/types/2_reply_markup.js +7 -7
- package/script/types/2_user.d.ts +1 -1
- package/script/types/2_user.d.ts.map +1 -1
- package/script/types/2_user.js +2 -2
- package/script/types/3_chat_settings.d.ts +9 -9
- package/script/types/3_chat_settings.d.ts.map +1 -1
- package/script/types/3_chat_settings.js +9 -9
- package/script/types/3_story.d.ts +3 -3
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/3_story.js +4 -4
- package/script/types/5_claimed_gift.d.ts +1 -1
- package/script/types/5_claimed_gift.d.ts.map +1 -1
- package/script/types/5_claimed_gift.js +2 -2
- package/script/types/5_link_preview.d.ts +1 -1
- package/script/types/5_link_preview.d.ts.map +1 -1
- package/script/types/6_message.d.ts +2 -2
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +2 -2
- package/script/types/7_inline_query_result.d.ts +1 -1
- package/script/types/7_inline_query_result.d.ts.map +1 -1
- package/script/types/7_inline_query_result.js +1 -1
- package/script/utilities/0_part_stream.d.ts +1 -1
- package/script/utilities/0_part_stream.d.ts.map +1 -1
- package/script/utilities/0_part_stream.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB;IACrB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,qBAAqB;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
export interface PasswordCheckResultInvalidPassword {
|
|
25
25
|
/** @discriminator */
|
|
26
|
-
type: "
|
|
26
|
+
type: "invalidPassword";
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* The password was correct. The user was signed in.
|
|
@@ -31,9 +31,9 @@ export interface PasswordCheckResultInvalidPassword {
|
|
|
31
31
|
*/
|
|
32
32
|
export interface PasswordCheckResultSignedIn {
|
|
33
33
|
/** @discriminator */
|
|
34
|
-
type: "
|
|
34
|
+
type: "signedIn";
|
|
35
35
|
userId: number;
|
|
36
36
|
}
|
|
37
|
-
/** A result after checking a
|
|
37
|
+
/** A result after checking a password. */
|
|
38
38
|
export type PasswordCheckResult = PasswordCheckResultInvalidPassword | PasswordCheckResultSignedIn;
|
|
39
39
|
//# sourceMappingURL=0_password_check_result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,qBAAqB;IACrB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,qBAAqB;IACrB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,0CAA0C;AAC1C,MAAM,MAAM,mBAAmB,GAAG,kCAAkC,GAAG,2BAA2B,CAAC"}
|
|
@@ -39,7 +39,7 @@ export interface _VideoChatNotEndedCommon {
|
|
|
39
39
|
export interface VideoChatActive extends _VideoChatCommon, _VideoChatNotEndedCommon {
|
|
40
40
|
type: "active";
|
|
41
41
|
/** Whether the video chat is being recorded. */
|
|
42
|
-
|
|
42
|
+
isRecording: boolean;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* A scheduled video chat.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_video_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_video_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,wBAAwB;IACjF,IAAI,EAAE,QAAQ,CAAC;IACf,gDAAgD;IAChD,
|
|
1
|
+
{"version":3,"file":"0_video_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_video_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,wBAAwB;IACjF,IAAI,EAAE,QAAQ,CAAC;IACf,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,EAAE,wBAAwB;IACpF,IAAI,EAAE,WAAW,CAAC;IAClB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oBAAoB;AACpB,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE9E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,SAAS,CAgCjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_voice_transcription.d.ts","sourceRoot":"","sources":["../../src/types/0_voice_transcription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,
|
|
1
|
+
{"version":3,"file":"0_voice_transcription.d.ts","sourceRoot":"","sources":["../../src/types/0_voice_transcription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,8BAA8B;AAC9B,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,GAAG,CAAC,yBAAyB,GAAG,GAAG,CAAC,sBAAsB,GAAG,kBAAkB,CAM5I"}
|
package/esm/types/1_chat_p.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export interface ChatPPrivate extends _ChatPBase {
|
|
|
64
64
|
/** The reason why the user has been restricted. */
|
|
65
65
|
restrictionReason?: RestrictionReason[];
|
|
66
66
|
/** Whether the user is a bot that has been added to the attachment menu by the current user. */
|
|
67
|
-
|
|
67
|
+
isAddedToAttachmentMenu?: boolean;
|
|
68
68
|
/** Whether the user is a bot that has been added to the attachment menu by the current user. */
|
|
69
69
|
hasMainMiniApp?: boolean;
|
|
70
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_chat_p.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_p.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,E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BAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,GAAG,UAAU,CAAC;AAC/E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,eAAe,GAAG,YAAY,CAAC;AACzG,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC;AA+GjE,gBAAgB;AAChB,MAAM,WAAW,UAAU;IACzB,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACpD,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD,CAAC,IAAI,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,YAAY,GAAG,eAAe,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACzE,CAAC,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,YAAY,CAE/D"}
|
package/esm/types/1_chat_p.js
CHANGED
|
@@ -45,7 +45,7 @@ export function constructChatP(chat) {
|
|
|
45
45
|
isSupport: chat.support || false,
|
|
46
46
|
isRestricted: chat.restricted || false,
|
|
47
47
|
restrictionReason: chat.restriction_reason,
|
|
48
|
-
|
|
48
|
+
isAddedToAttachmentMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
|
|
49
49
|
hasMainMiniApp: chat.bot ? chat.attach_menu_enabled || false : undefined,
|
|
50
50
|
};
|
|
51
51
|
if (Api.is("userProfilePhoto", chat.photo)) {
|
|
@@ -30,7 +30,7 @@ export interface InputStoryContentVideo {
|
|
|
30
30
|
video: FileSource;
|
|
31
31
|
attachedStickerFileIds?: string[];
|
|
32
32
|
duration: number;
|
|
33
|
-
|
|
33
|
+
isAnimation?: boolean;
|
|
34
34
|
}
|
|
35
35
|
/** A story content when provided as an input. */
|
|
36
36
|
export type InputStoryContent = InputStoryContentPhoto | InputStoryContentVideo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_input_story_content.d.ts","sourceRoot":"","sources":["../../src/types/1_input_story_content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"1_input_story_content.d.ts","sourceRoot":"","sources":["../../src/types/1_input_story_content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC"}
|
|
@@ -33,8 +33,8 @@ export interface KeyboardButtonRequestUser extends KeyboardButtonText {
|
|
|
33
33
|
/** @discriminator */
|
|
34
34
|
requestUser: {
|
|
35
35
|
requestId: number;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
isBot?: boolean;
|
|
37
|
+
isPremium?: boolean;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
/** @unlisted */
|
|
@@ -42,13 +42,13 @@ export interface KeyboardButtonRequestChat extends KeyboardButtonText {
|
|
|
42
42
|
/** @discriminator */
|
|
43
43
|
requestChat: {
|
|
44
44
|
requestId: number;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
isChannel: boolean;
|
|
46
|
+
isForum?: boolean;
|
|
47
|
+
hasUsername?: boolean;
|
|
48
|
+
isOwner?: boolean;
|
|
49
49
|
userAdministratorRights?: ChatAdministratorRights;
|
|
50
50
|
botAdministratorRights?: ChatAdministratorRights;
|
|
51
|
-
|
|
51
|
+
isBotMember?: boolean;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
/** @unlisted */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_keyboard_button.d.ts","sourceRoot":"","sources":["../../src/types/1_keyboard_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,WAAW,EAA+C,MAAM,qBAAqB,CAAC;AACpG,OAAO,EAAE,KAAK,uBAAuB,EAAuE,MAAM,kCAAkC,CAAC;AACrJ,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,gBAAgB;AAChB,MAAM,WAAW,kBAAkB;IACjC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,qBAAqB;IACrB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,
|
|
1
|
+
{"version":3,"file":"1_keyboard_button.d.ts","sourceRoot":"","sources":["../../src/types/1_keyboard_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,WAAW,EAA+C,MAAM,qBAAqB,CAAC;AACpG,OAAO,EAAE,KAAK,uBAAuB,EAAuE,MAAM,kCAAkC,CAAC;AACrJ,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,gBAAgB;AAChB,MAAM,WAAW,kBAAkB;IACjC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,qBAAqB;IACrB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,qBAAqB;IACrB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;QAClD,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;QACjD,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB;IACtE,qBAAqB;IACrB,cAAc,EAAE,IAAI,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACvE,qBAAqB;IACrB,eAAe,EAAE,IAAI,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,qBAAqB;IACrB,WAAW,EAAE,sBAAsB,CAAC;CACrC;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,qBAAqB;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,qCAAqC;AACrC,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,yBAAyB,GACzB,yBAAyB,GACzB,4BAA4B,GAC5B,6BAA6B,GAC7B,yBAAyB,GACzB,qBAAqB,CAAC;AAE1B,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,GAAG,cAAc,CAgFnF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,cAAc,GAAG,GAAG,CAAC,cAAc,CA4DnF"}
|
|
@@ -44,11 +44,11 @@ export function constructKeyboardButton(button_) {
|
|
|
44
44
|
text: button_.text,
|
|
45
45
|
requestChat: {
|
|
46
46
|
requestId: button_.button_id,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
isChannel: false, // GUESS
|
|
48
|
+
isForum: button_.peer_type.forum || false,
|
|
49
|
+
hasUsername: button_.peer_type.has_username || false,
|
|
50
|
+
isOwner: button_.peer_type.creator || false,
|
|
51
|
+
isBotMember: button_.peer_type.bot_participant || false,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
if (button_.peer_type.bot_admin_rights) {
|
|
@@ -67,9 +67,9 @@ export function constructKeyboardButton(button_) {
|
|
|
67
67
|
text: button_.text,
|
|
68
68
|
requestChat: {
|
|
69
69
|
requestId: button_.button_id,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
isChannel: true, // GUESS
|
|
71
|
+
isOwner: button_.peer_type.creator || false,
|
|
72
|
+
hasUsername: button_.peer_type.has_username || false,
|
|
73
73
|
},
|
|
74
74
|
};
|
|
75
75
|
if (button_.peer_type.bot_admin_rights) {
|
|
@@ -117,18 +117,18 @@ export function keyboardButtonToTlObject(button) {
|
|
|
117
117
|
_: "keyboardButtonRequestPeer",
|
|
118
118
|
text: button.text,
|
|
119
119
|
button_id: button.requestUser.requestId,
|
|
120
|
-
peer_type: { _: "requestPeerTypeUser", bot: button.requestUser.
|
|
120
|
+
peer_type: { _: "requestPeerTypeUser", bot: button.requestUser.isBot, premium: button.requestUser.isPremium },
|
|
121
121
|
max_quantity: 1,
|
|
122
122
|
style,
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
else if ("requestChat" in button) {
|
|
126
|
-
if (!button.requestChat.
|
|
126
|
+
if (!button.requestChat.isChannel) { // GUESS
|
|
127
127
|
return {
|
|
128
128
|
_: "keyboardButtonRequestPeer",
|
|
129
129
|
text: button.text,
|
|
130
130
|
button_id: button.requestChat.requestId,
|
|
131
|
-
peer_type: { _: "requestPeerTypeChat", forum: button.requestChat.
|
|
131
|
+
peer_type: { _: "requestPeerTypeChat", forum: button.requestChat.isForum, has_username: button.requestChat.hasUsername, creator: button.requestChat.isOwner || undefined, bot_participant: button.requestChat.isBotMember || undefined, bot_admin_rights: button.requestChat.botAdministratorRights ? chatAdministratorRightsToTlObject(button.requestChat.botAdministratorRights) : undefined, user_admin_rights: button.requestChat.userAdministratorRights ? chatAdministratorRightsToTlObject(button.requestChat.userAdministratorRights) : undefined },
|
|
132
132
|
max_quantity: 1,
|
|
133
133
|
style,
|
|
134
134
|
};
|
|
@@ -138,7 +138,7 @@ export function keyboardButtonToTlObject(button) {
|
|
|
138
138
|
_: "keyboardButtonRequestPeer",
|
|
139
139
|
text: button.text,
|
|
140
140
|
button_id: button.requestChat.requestId,
|
|
141
|
-
peer_type: { _: "requestPeerTypeBroadcast", has_username: button.requestChat.
|
|
141
|
+
peer_type: { _: "requestPeerTypeBroadcast", has_username: button.requestChat.hasUsername, creator: button.requestChat.isOwner || undefined, bot_admin_rights: button.requestChat.botAdministratorRights ? chatAdministratorRightsToTlObject(button.requestChat.botAdministratorRights) : undefined, user_admin_rights: button.requestChat.userAdministratorRights ? chatAdministratorRightsToTlObject(button.requestChat.userAdministratorRights) : undefined },
|
|
142
142
|
max_quantity: 1,
|
|
143
143
|
style,
|
|
144
144
|
};
|
|
@@ -28,7 +28,7 @@ export interface MessageReaction {
|
|
|
28
28
|
/** A list of identifiers of users who recently made this reaction. */
|
|
29
29
|
choosers: number[];
|
|
30
30
|
/** Whether the current user made this reaction. */
|
|
31
|
-
|
|
31
|
+
isChosen: boolean;
|
|
32
32
|
}
|
|
33
33
|
export declare function constructMessageReaction(reaction_: Api.reactionCount, recentReactions: Api.messagePeerReaction[]): MessageReaction;
|
|
34
34
|
//# sourceMappingURL=1_message_reaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_message_reaction.d.ts","sourceRoot":"","sources":["../../src/types/1_message_reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnE,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,gCAAgC;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mDAAmD;IACnD,
|
|
1
|
+
{"version":3,"file":"1_message_reaction.d.ts","sourceRoot":"","sources":["../../src/types/1_message_reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnE,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,gCAAgC;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,GAAG,CAAC,aAAa,EAAE,eAAe,EAAE,GAAG,CAAC,mBAAmB,EAAE,GAAG,eAAe,CAgBlI"}
|
|
@@ -37,5 +37,5 @@ export function constructMessageReaction(reaction_, recentReactions) {
|
|
|
37
37
|
const reaction = constructReaction(reaction_.reaction);
|
|
38
38
|
const count = reaction_.count;
|
|
39
39
|
const chosen = reaction_.chosen_order !== undefined ? true : false;
|
|
40
|
-
return { reaction, count, choosers, chosen };
|
|
40
|
+
return { reaction, count, choosers, isChosen: chosen };
|
|
41
41
|
}
|
|
@@ -29,9 +29,9 @@ export interface MessageReactionListItem {
|
|
|
29
29
|
/** The reaction that was made. */
|
|
30
30
|
reaction: Reaction;
|
|
31
31
|
/** Whether this is a big reaction. */
|
|
32
|
-
|
|
32
|
+
isBig: boolean;
|
|
33
33
|
/** Whether the reaction is unread. */
|
|
34
|
-
|
|
34
|
+
isUnread: boolean;
|
|
35
35
|
/** Whether the current user made this reaction. */
|
|
36
36
|
isCreator: boolean;
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_message_reaction_list_item.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_list_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,kCAAkC;AAClC,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC;IACZ,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,sCAAsC;IACtC,
|
|
1
|
+
{"version":3,"file":"2_message_reaction_list_item.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_list_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,kCAAkC;AAClC,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC;IACZ,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,gCAAgC,CAAC,mBAAmB,EAAE,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,GAAG,CAAC,6BAA6B,GAAG,uBAAuB,CAwB/J"}
|
|
@@ -36,15 +36,15 @@ export function constructMessageReactionListItem(messagePeerReaction, list) {
|
|
|
36
36
|
const chat = constructChatP(chat_);
|
|
37
37
|
const date = messagePeerReaction.date;
|
|
38
38
|
const reaction = constructReaction(messagePeerReaction.reaction);
|
|
39
|
-
const
|
|
39
|
+
const isBig = !!messagePeerReaction.big;
|
|
40
40
|
const isCreator = !!messagePeerReaction.my;
|
|
41
|
-
const
|
|
41
|
+
const isUnread = !!messagePeerReaction.unread;
|
|
42
42
|
return {
|
|
43
43
|
chat,
|
|
44
44
|
date,
|
|
45
45
|
reaction,
|
|
46
|
-
|
|
46
|
+
isBig,
|
|
47
47
|
isCreator,
|
|
48
|
-
|
|
48
|
+
isUnread,
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -31,10 +31,10 @@ export interface ReplyMarkupKeyboard {
|
|
|
31
31
|
/** @discriminator */
|
|
32
32
|
keyboard: KeyboardButton[][];
|
|
33
33
|
isPersistent?: boolean;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
isResized?: boolean;
|
|
35
|
+
isOneTime?: boolean;
|
|
36
36
|
inputFieldPlaceholder?: string;
|
|
37
|
-
|
|
37
|
+
isSelective?: boolean;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Makes the user's client hide the current custom keyboard.
|
|
@@ -47,7 +47,7 @@ export interface ReplyMarkupRemoveKeyboard {
|
|
|
47
47
|
*/
|
|
48
48
|
removeKeyboard: true;
|
|
49
49
|
/** Whether to only affect specific users. If true, only users that were mentioned will be affected along with the author of the replied message if any. */
|
|
50
|
-
|
|
50
|
+
isSelective?: boolean;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Forces the user's client to select the message as the one that is to be replied.
|
|
@@ -62,7 +62,7 @@ export interface ReplyMarkupForceReply {
|
|
|
62
62
|
/** A placeholder to be shown in the client's message box. */
|
|
63
63
|
inputFieldPlaceholder?: string;
|
|
64
64
|
/** Whether to only affect specific users. If true, only users that were mentioned will be affected along with the author of the replied message if any. */
|
|
65
|
-
|
|
65
|
+
isSelective?: boolean;
|
|
66
66
|
}
|
|
67
67
|
/** A message's reply markup. */
|
|
68
68
|
export type ReplyMarkup = ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_reply_markup.d.ts","sourceRoot":"","sources":["../../src/types/2_reply_markup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAiC,KAAK,oBAAoB,EAAkC,MAAM,+BAA+B,CAAC;AACzI,OAAO,EAA2B,KAAK,cAAc,EAA4B,MAAM,wBAAwB,CAAC;AAIhH,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,qBAAqB;IACrB,cAAc,EAAE,oBAAoB,EAAE,EAAE,CAAC;CAC1C;AA4BD,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,EAAE,cAAc,EAAE,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,
|
|
1
|
+
{"version":3,"file":"2_reply_markup.d.ts","sourceRoot":"","sources":["../../src/types/2_reply_markup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAiC,KAAK,oBAAoB,EAAkC,MAAM,+BAA+B,CAAC;AACzI,OAAO,EAA2B,KAAK,cAAc,EAA4B,MAAM,wBAAwB,CAAC;AAIhH,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,qBAAqB;IACrB,cAAc,EAAE,oBAAoB,EAAE,EAAE,CAAC;CAC1C;AA4BD,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,EAAE,cAAc,EAAE,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAkCD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB,2JAA2J;IAC3J,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAYD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB,6DAA6D;IAC7D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2JAA2J;IAC3J,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAmBD,gCAAgC;AAChC,MAAM,MAAM,WAAW,GAAG,yBAAyB,GAAG,mBAAmB,GAAG,yBAAyB,GAAG,qBAAqB,CAAC;AAE9H,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,GAAG,WAAW,CAY9E;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAYlI"}
|
|
@@ -54,9 +54,9 @@ function constructReplyKeyboardMarkup(keyboard_) {
|
|
|
54
54
|
rows.push(row);
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
isResized: keyboard_.resize || false,
|
|
58
|
+
isOneTime: keyboard_.single_use || false,
|
|
59
|
+
isSelective: keyboard_.selective || false,
|
|
60
60
|
isPersistent: keyboard_.persistent || false,
|
|
61
61
|
keyboard: rows,
|
|
62
62
|
};
|
|
@@ -70,13 +70,13 @@ function replyKeyboardMarkupToTlObject(replyMarkup) {
|
|
|
70
70
|
}
|
|
71
71
|
rows_.push({ _: "keyboardButtonRow", buttons: row_ });
|
|
72
72
|
}
|
|
73
|
-
return { _: "replyKeyboardMarkup", resize: replyMarkup.
|
|
73
|
+
return { _: "replyKeyboardMarkup", resize: replyMarkup.isResized || undefined, single_use: replyMarkup.isOneTime || undefined, selective: replyMarkup.isSelective || undefined, persistent: replyMarkup.isPersistent || undefined, rows: rows_, placeholder: replyMarkup.inputFieldPlaceholder };
|
|
74
74
|
}
|
|
75
75
|
function constructReplyKeyboardRemove(replyMarkup_) {
|
|
76
76
|
return cleanObject({ removeKeyboard: true, selective: replyMarkup_.selective });
|
|
77
77
|
}
|
|
78
78
|
function replyKeyboardRemoveToTlObject(replyMarkup) {
|
|
79
|
-
return { _: "replyKeyboardHide", selective: replyMarkup.
|
|
79
|
+
return { _: "replyKeyboardHide", selective: replyMarkup.isSelective || undefined };
|
|
80
80
|
}
|
|
81
81
|
function constructForceReply(replyMarkup_) {
|
|
82
82
|
const replyMarkup = { forceReply: true };
|
|
@@ -84,12 +84,12 @@ function constructForceReply(replyMarkup_) {
|
|
|
84
84
|
replyMarkup.inputFieldPlaceholder = replyMarkup_.placeholder;
|
|
85
85
|
}
|
|
86
86
|
if (replyMarkup_.selective) {
|
|
87
|
-
replyMarkup.
|
|
87
|
+
replyMarkup.isSelective = true;
|
|
88
88
|
}
|
|
89
89
|
return replyMarkup;
|
|
90
90
|
}
|
|
91
91
|
function forceReplyToTlObject(replyMarkup) {
|
|
92
|
-
return { _: "replyKeyboardForceReply", selective: replyMarkup.
|
|
92
|
+
return { _: "replyKeyboardForceReply", selective: replyMarkup.isSelective || undefined, placeholder: replyMarkup.inputFieldPlaceholder };
|
|
93
93
|
}
|
|
94
94
|
export function constructReplyMarkup(replyMarkup) {
|
|
95
95
|
if (Api.is("replyKeyboardMarkup", replyMarkup)) {
|
package/esm/types/2_user.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface User {
|
|
|
56
56
|
/** The reason why the user has been restricted. */
|
|
57
57
|
restrictionReason?: RestrictionReason[];
|
|
58
58
|
/** Whether the user is a bot that has been added to the attachment menu by the current user. */
|
|
59
|
-
|
|
59
|
+
isAddedToAttachmentMenu?: boolean;
|
|
60
60
|
/** Whether the user is a bot that has a main mini app. */
|
|
61
61
|
hasMainMiniApp?: boolean;
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_user.d.ts","sourceRoot":"","sources":["../../src/types/2_user.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,cAAc;AACd,MAAM,WAAW,IAAI;IACnB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uFAAuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IA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AAC;IACnB,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,gGAAgG;IAChG,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CA4BnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAsBxD"}
|
package/esm/types/2_user.js
CHANGED
|
@@ -40,7 +40,7 @@ export function constructUser(user_) {
|
|
|
40
40
|
isSupport: user_.support || false,
|
|
41
41
|
isRestricted: user_.restricted || false,
|
|
42
42
|
restrictionReason: user_.restriction_reason,
|
|
43
|
-
|
|
43
|
+
isAddedToAttachmentMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
|
|
44
44
|
hasMainMiniApp: user_.bot ? user_.bot_has_main_app || false : undefined,
|
|
45
45
|
};
|
|
46
46
|
if (Api.is("userProfilePhoto", user_.photo)) {
|
|
@@ -66,7 +66,7 @@ export function constructUser2(chatP) {
|
|
|
66
66
|
isSupport: chatP.isSupport,
|
|
67
67
|
isRestricted: chatP.isRestricted,
|
|
68
68
|
restrictionReason: chatP.restrictionReason,
|
|
69
|
-
|
|
69
|
+
isAddedToAttachmentMenu: chatP.isAddedToAttachmentMenu,
|
|
70
70
|
hasMainMiniApp: chatP.hasMainMiniApp,
|
|
71
71
|
};
|
|
72
72
|
return cleanObject(user);
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import { type User } from "./2_user.js";
|
|
22
22
|
export interface ChatSettings {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
canReport: boolean;
|
|
24
|
+
canAddToContacts: boolean;
|
|
25
|
+
canBlock: boolean;
|
|
26
|
+
canShare: boolean;
|
|
27
|
+
isContactsException: boolean;
|
|
28
|
+
canReportLocation: boolean;
|
|
29
|
+
canUnarchive: boolean;
|
|
30
|
+
canInviteMembers: boolean;
|
|
31
31
|
channelJoinRequest: boolean;
|
|
32
|
-
|
|
32
|
+
isBusinessBotPaused: boolean;
|
|
33
33
|
businessBotCanReply: boolean;
|
|
34
34
|
distance?: number;
|
|
35
35
|
joinRequestChatTitle?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_chat_settings.d.ts","sourceRoot":"","sources":["../../src/types/3_chat_settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,
|
|
1
|
+
{"version":3,"file":"3_chat_settings.d.ts","sourceRoot":"","sources":["../../src/types/3_chat_settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,qBAAqB,GAAG,YAAY,CA4BxF"}
|
|
@@ -22,16 +22,16 @@ import { Api } from "../2_tl.js";
|
|
|
22
22
|
import { constructUser } from "./2_user.js";
|
|
23
23
|
export function constructChatSettings(settings_) {
|
|
24
24
|
const settings = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
canReport: settings_.settings.report_spam || false,
|
|
26
|
+
canAddToContacts: settings_.settings.add_contact || false,
|
|
27
|
+
canBlock: settings_.settings.block_contact || false,
|
|
28
|
+
canShare: settings_.settings.share_contact || false,
|
|
29
|
+
isContactsException: settings_.settings.need_contacts_exception || false,
|
|
30
|
+
canReportLocation: settings_.settings.report_geo || false,
|
|
31
|
+
canUnarchive: settings_.settings.autoarchived || false,
|
|
32
|
+
canInviteMembers: settings_.settings.invite_members || false,
|
|
33
33
|
channelJoinRequest: settings_.settings.request_chat_broadcast || false,
|
|
34
|
-
|
|
34
|
+
isBusinessBotPaused: settings_.settings.business_bot_paused || false,
|
|
35
35
|
businessBotCanReply: settings_.settings.business_bot_can_reply || false,
|
|
36
36
|
distance: settings_.settings.geo_distance,
|
|
37
37
|
joinRequestChatTitle: settings_.settings.request_chat_title,
|
package/esm/types/3_story.d.ts
CHANGED
|
@@ -26,14 +26,14 @@ import { type StoryInteractiveArea } from "./2_story_interactive_area.js";
|
|
|
26
26
|
import { type StoryPrivacy } from "./2_story_privacy.js";
|
|
27
27
|
/** A story. */
|
|
28
28
|
export interface Story {
|
|
29
|
-
|
|
29
|
+
isOutgoing: boolean;
|
|
30
30
|
id: number;
|
|
31
31
|
chat: ChatP;
|
|
32
32
|
date: number;
|
|
33
|
-
|
|
33
|
+
isEdited: boolean;
|
|
34
34
|
content: StoryContent;
|
|
35
35
|
interactiveAreas: StoryInteractiveArea[];
|
|
36
|
-
|
|
36
|
+
isHighlighted: boolean;
|
|
37
37
|
interactions?: StoryInteractions;
|
|
38
38
|
privacy?: StoryPrivacy;
|
|
39
39
|
caption?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_story.d.ts","sourceRoot":"","sources":["../../src/types/3_story.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAiC,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhF,eAAe;AACf,MAAM,WAAW,KAAK;IACpB,
|
|
1
|
+
{"version":3,"file":"3_story.d.ts","sourceRoot":"","sources":["../../src/types/3_story.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAiC,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACzG,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhF,eAAe;AACf,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;CACnC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,KAAK,CA8BpI"}
|
package/esm/types/3_story.js
CHANGED
|
@@ -33,21 +33,21 @@ export function constructStory(story, peer, getPeer) {
|
|
|
33
33
|
const chat = peer_[0];
|
|
34
34
|
const date = story.date;
|
|
35
35
|
const interactiveAreas = (story.media_areas ?? []).map(constructStoryInteractiveArea);
|
|
36
|
-
const
|
|
36
|
+
const isHighlighted = story.pinned ? true : false;
|
|
37
37
|
const content = constructStoryContent(story.media);
|
|
38
38
|
const caption = story.caption;
|
|
39
39
|
const captionEntities = story.entities?.map(constructMessageEntity).filter((v) => !!v);
|
|
40
40
|
const privacy = story.privacy ? constructStoryPrivacy(story.privacy) : undefined;
|
|
41
41
|
const interactions = story.views ? constructStoryInteractions(story.views) : undefined;
|
|
42
42
|
return cleanObject({
|
|
43
|
-
|
|
43
|
+
isOutgoing: story.out ? true : false,
|
|
44
44
|
id,
|
|
45
45
|
chat,
|
|
46
46
|
date,
|
|
47
47
|
content,
|
|
48
|
-
|
|
48
|
+
isEdited: story.edited ? true : false,
|
|
49
49
|
interactiveAreas,
|
|
50
|
-
|
|
50
|
+
isHighlighted,
|
|
51
51
|
interactions,
|
|
52
52
|
privacy,
|
|
53
53
|
caption,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5_claimed_gift.d.ts","sourceRoot":"","sources":["../../src/types/5_claimed_gift.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAkB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,6CAA6C;AAC7C,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,4CAA4C;IAC5C,
|
|
1
|
+
{"version":3,"file":"5_claimed_gift.d.ts","sourceRoot":"","sources":["../../src/types/5_claimed_gift.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAkB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,6CAA6C;AAC7C,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,4CAA4C;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,UAAU,GAAG,WAAW,CAmBlJ"}
|
|
@@ -24,7 +24,7 @@ import { constructGift } from "./4_gift.js";
|
|
|
24
24
|
export function constructClaimedGift(savedStarGift, fromPeer, getPeer) {
|
|
25
25
|
const gift = constructGift(savedStarGift.gift, getPeer);
|
|
26
26
|
const date = savedStarGift.date;
|
|
27
|
-
const
|
|
27
|
+
const isPublic = !!savedStarGift.unsaved;
|
|
28
28
|
const sender = fromPeer ? constructChatP(fromPeer) : undefined;
|
|
29
29
|
const message = savedStarGift.message?.text;
|
|
30
30
|
const entities = savedStarGift.message ? savedStarGift.message.entities.map(constructMessageEntity).filter((v) => !!v) : undefined;
|
|
@@ -33,7 +33,7 @@ export function constructClaimedGift(savedStarGift, fromPeer, getPeer) {
|
|
|
33
33
|
return cleanObject({
|
|
34
34
|
date,
|
|
35
35
|
gift,
|
|
36
|
-
|
|
36
|
+
isPublic,
|
|
37
37
|
sender,
|
|
38
38
|
message,
|
|
39
39
|
entities,
|
|
@@ -32,7 +32,7 @@ export interface InputLinkPreview {
|
|
|
32
32
|
/** @discriminator */
|
|
33
33
|
type: "input";
|
|
34
34
|
/** Whether link preview is disabled. */
|
|
35
|
-
|
|
35
|
+
isDisabled?: boolean;
|
|
36
36
|
/** The URL of the preview. */
|
|
37
37
|
url?: string;
|
|
38
38
|
/** The size of the media that will potentially be shown. */
|