@mtkruto/node 0.67.1 → 0.67.2
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/3_transport.d.ts +3 -3
- package/esm/3_transport.js +3 -3
- package/esm/3_types.d.ts +7 -7
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +7 -7
- package/esm/client/5_client.js +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/esm/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/format.d.ts +29 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/format.js +70 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +1 -0
- package/esm/tl/2_telegram.d.ts +9 -10
- package/esm/tl/2_telegram.d.ts.map +1 -1
- package/esm/tl/2_telegram.js +10 -10
- package/{script/transport/2_transport_provider.d.ts → esm/transport/1_transport_provider.d.ts} +1 -1
- package/esm/transport/{2_transport_provider.d.ts.map → 1_transport_provider.d.ts.map} +1 -1
- package/{script/transport/3_transport_provider_tcp.d.ts → esm/transport/2_transport_provider_tcp.d.ts} +2 -2
- package/esm/transport/{3_transport_provider_tcp.d.ts.map → 2_transport_provider_tcp.d.ts.map} +1 -1
- package/esm/transport/{3_transport_provider_tcp.js → 2_transport_provider_tcp.js} +1 -1
- package/esm/transport/{3_transport_provider_web_socket.d.ts → 2_transport_provider_web_socket.d.ts} +2 -2
- package/esm/transport/{3_transport_provider_web_socket.d.ts.map → 2_transport_provider_web_socket.d.ts.map} +1 -1
- package/esm/transport/{3_transport_provider_web_socket.js → 2_transport_provider_web_socket.js} +1 -1
- package/esm/types/{2_inline_keyboard_button.d.ts → 1_inline_keyboard_button.d.ts} +1 -1
- package/esm/types/{2_inline_keyboard_button.d.ts.map → 1_inline_keyboard_button.d.ts.map} +1 -1
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_pre_checkout_query.d.ts.map +1 -1
- package/esm/types/{3_reply_markup.d.ts → 2_reply_markup.d.ts} +2 -2
- package/esm/types/{3_reply_markup.d.ts.map → 2_reply_markup.d.ts.map} +1 -1
- package/esm/types/{3_reply_markup.js → 2_reply_markup.js} +1 -1
- package/esm/types/2_story_interactive_area.d.ts.map +1 -1
- package/esm/types/3_chat_member_updated.d.ts.map +1 -1
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/5_message.d.ts +1 -1
- package/esm/types/5_message.d.ts.map +1 -1
- package/esm/types/5_message.js +1 -1
- package/esm/types/6_inline_query_result.d.ts +1 -1
- package/esm/types/6_inline_query_result.js +1 -1
- package/package.json +1 -1
- package/script/3_transport.d.ts +3 -3
- package/script/3_transport.js +3 -3
- package/script/3_types.d.ts +7 -7
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +7 -7
- package/script/client/5_client.js +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/script/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/format.d.ts +29 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/format.js +38 -5
- package/script/deps/jsr.io/@std/internal/1.0.10/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +1 -0
- package/script/tl/2_telegram.d.ts +9 -10
- package/script/tl/2_telegram.d.ts.map +1 -1
- package/script/tl/2_telegram.js +22 -10
- package/{esm/transport/2_transport_provider.d.ts → script/transport/1_transport_provider.d.ts} +1 -1
- package/script/transport/{2_transport_provider.d.ts.map → 1_transport_provider.d.ts.map} +1 -1
- package/{esm/transport/3_transport_provider_tcp.d.ts → script/transport/2_transport_provider_tcp.d.ts} +2 -2
- package/script/transport/{3_transport_provider_tcp.d.ts.map → 2_transport_provider_tcp.d.ts.map} +1 -1
- package/script/transport/{3_transport_provider_tcp.js → 2_transport_provider_tcp.js} +3 -3
- package/script/transport/{3_transport_provider_web_socket.d.ts → 2_transport_provider_web_socket.d.ts} +2 -2
- package/script/transport/{3_transport_provider_web_socket.d.ts.map → 2_transport_provider_web_socket.d.ts.map} +1 -1
- package/script/transport/{3_transport_provider_web_socket.js → 2_transport_provider_web_socket.js} +2 -2
- package/script/types/{2_inline_keyboard_button.d.ts → 1_inline_keyboard_button.d.ts} +1 -1
- package/script/types/{2_inline_keyboard_button.d.ts.map → 1_inline_keyboard_button.d.ts.map} +1 -1
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_pre_checkout_query.d.ts.map +1 -1
- package/script/types/{3_reply_markup.d.ts → 2_reply_markup.d.ts} +2 -2
- package/script/types/{3_reply_markup.d.ts.map → 2_reply_markup.d.ts.map} +1 -1
- package/script/types/{3_reply_markup.js → 2_reply_markup.js} +3 -3
- package/script/types/2_story_interactive_area.d.ts.map +1 -1
- package/script/types/3_chat_member_updated.d.ts.map +1 -1
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/5_message.d.ts +1 -1
- package/script/types/5_message.d.ts.map +1 -1
- package/script/types/5_message.js +2 -2
- package/script/types/6_inline_query_result.d.ts +1 -1
- package/script/types/6_inline_query_result.js +4 -4
- package/esm/deps/jsr.io/@std/internal/1.0.9/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.9/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.9/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.9/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.9/types.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/types.js +0 -0
- /package/esm/transport/{2_transport_provider.js → 1_transport_provider.js} +0 -0
- /package/esm/types/{2_inline_keyboard_button.js → 1_inline_keyboard_button.js} +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.9 → 1.0.10}/types.js +0 -0
- /package/script/transport/{2_transport_provider.js → 1_transport_provider.js} +0 -0
- /package/script/types/{2_inline_keyboard_button.js → 1_inline_keyboard_button.js} +0 -0
package/esm/3_transport.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
export * from "./transport/0_transport.js";
|
|
21
21
|
export * from "./transport/1_transport_abridged.js";
|
|
22
22
|
export * from "./transport/1_transport_intermediate.js";
|
|
23
|
-
export * from "./transport/
|
|
24
|
-
export * from "./transport/
|
|
25
|
-
export * from "./transport/
|
|
23
|
+
export * from "./transport/1_transport_provider.js";
|
|
24
|
+
export * from "./transport/2_transport_provider_tcp.js";
|
|
25
|
+
export * from "./transport/2_transport_provider_web_socket.js";
|
|
26
26
|
//# sourceMappingURL=3_transport.d.ts.map
|
package/esm/3_transport.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
export * from "./transport/0_transport.js";
|
|
21
21
|
export * from "./transport/1_transport_abridged.js";
|
|
22
22
|
export * from "./transport/1_transport_intermediate.js";
|
|
23
|
-
export * from "./transport/
|
|
24
|
-
export * from "./transport/
|
|
25
|
-
export * from "./transport/
|
|
23
|
+
export * from "./transport/1_transport_provider.js";
|
|
24
|
+
export * from "./transport/2_transport_provider_tcp.js";
|
|
25
|
+
export * from "./transport/2_transport_provider_web_socket.js";
|
package/esm/3_types.d.ts
CHANGED
|
@@ -61,14 +61,15 @@ export * from "./types/0_switch_inline_query_chosen_chats.js";
|
|
|
61
61
|
export * from "./types/0_thumbnail.js";
|
|
62
62
|
export * from "./types/0_translation.js";
|
|
63
63
|
export * from "./types/0_video_chat.js";
|
|
64
|
-
export * from "./types/0_voice.js";
|
|
65
64
|
export * from "./types/0_voice_transcription.js";
|
|
65
|
+
export * from "./types/0_voice.js";
|
|
66
66
|
export * from "./types/1_animation.js";
|
|
67
67
|
export * from "./types/1_audio.js";
|
|
68
68
|
export * from "./types/1_bot_command_scope.js";
|
|
69
69
|
export * from "./types/1_chat_p.js";
|
|
70
70
|
export * from "./types/1_document.js";
|
|
71
71
|
export * from "./types/1_giveaway.js";
|
|
72
|
+
export * from "./types/1_inline_keyboard_button.js";
|
|
72
73
|
export * from "./types/1_inline_query_result_button.js";
|
|
73
74
|
export * from "./types/1_input_media.js";
|
|
74
75
|
export * from "./types/1_input_story_content.js";
|
|
@@ -86,26 +87,26 @@ export * from "./types/1_story_privacy.js";
|
|
|
86
87
|
export * from "./types/1_story_reaction.js";
|
|
87
88
|
export * from "./types/1_user.js";
|
|
88
89
|
export * from "./types/1_venue.js";
|
|
89
|
-
export * from "./types/1_video.js";
|
|
90
90
|
export * from "./types/1_video_note.js";
|
|
91
|
+
export * from "./types/1_video.js";
|
|
91
92
|
export * from "./types/2_business_connection.js";
|
|
92
|
-
export * from "./types/2_chat.js";
|
|
93
93
|
export * from "./types/2_chat_member.js";
|
|
94
94
|
export * from "./types/2_chat_settings.js";
|
|
95
|
+
export * from "./types/2_chat.js";
|
|
95
96
|
export * from "./types/2_chosen_inline_result.js";
|
|
96
97
|
export * from "./types/2_forward_header.js";
|
|
97
98
|
export * from "./types/2_game.js";
|
|
98
99
|
export * from "./types/2_gift_upgraded_component.js";
|
|
99
100
|
export * from "./types/2_inactive_chat.js";
|
|
100
|
-
export * from "./types/2_inline_keyboard_button.js";
|
|
101
101
|
export * from "./types/2_inline_query.js";
|
|
102
102
|
export * from "./types/2_invite_link.js";
|
|
103
103
|
export * from "./types/2_message_interactions.js";
|
|
104
104
|
export * from "./types/2_message_reaction_count.js";
|
|
105
105
|
export * from "./types/2_message_reactions.js";
|
|
106
|
-
export * from "./types/2_poll.js";
|
|
107
106
|
export * from "./types/2_poll_answer.js";
|
|
107
|
+
export * from "./types/2_poll.js";
|
|
108
108
|
export * from "./types/2_pre_checkout_query.js";
|
|
109
|
+
export * from "./types/2_reply_markup.js";
|
|
109
110
|
export * from "./types/2_reply_to.js";
|
|
110
111
|
export * from "./types/2_story_content.js";
|
|
111
112
|
export * from "./types/2_story_interactions.js";
|
|
@@ -114,13 +115,12 @@ export * from "./types/2_successful_payment.js";
|
|
|
114
115
|
export * from "./types/3_chat_member_updated.js";
|
|
115
116
|
export * from "./types/3_gift.js";
|
|
116
117
|
export * from "./types/3_join_request.js";
|
|
117
|
-
export * from "./types/3_reply_markup.js";
|
|
118
118
|
export * from "./types/3_story.js";
|
|
119
119
|
export * from "./types/4_claimed_gift.js";
|
|
120
120
|
export * from "./types/4_link_preview.js";
|
|
121
121
|
export * from "./types/5_claimed_gifts.js";
|
|
122
|
-
export * from "./types/5_message.js";
|
|
123
122
|
export * from "./types/5_message_content.js";
|
|
123
|
+
export * from "./types/5_message.js";
|
|
124
124
|
export * from "./types/6_callback_query.js";
|
|
125
125
|
export * from "./types/6_chat_list_item.js";
|
|
126
126
|
export * from "./types/6_inline_query_result.js";
|
package/esm/3_types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_types.d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c,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC"}
|
package/esm/3_types.js
CHANGED
|
@@ -61,14 +61,15 @@ export * from "./types/0_switch_inline_query_chosen_chats.js";
|
|
|
61
61
|
export * from "./types/0_thumbnail.js";
|
|
62
62
|
export * from "./types/0_translation.js";
|
|
63
63
|
export * from "./types/0_video_chat.js";
|
|
64
|
-
export * from "./types/0_voice.js";
|
|
65
64
|
export * from "./types/0_voice_transcription.js";
|
|
65
|
+
export * from "./types/0_voice.js";
|
|
66
66
|
export * from "./types/1_animation.js";
|
|
67
67
|
export * from "./types/1_audio.js";
|
|
68
68
|
export * from "./types/1_bot_command_scope.js";
|
|
69
69
|
export * from "./types/1_chat_p.js";
|
|
70
70
|
export * from "./types/1_document.js";
|
|
71
71
|
export * from "./types/1_giveaway.js";
|
|
72
|
+
export * from "./types/1_inline_keyboard_button.js";
|
|
72
73
|
export * from "./types/1_inline_query_result_button.js";
|
|
73
74
|
export * from "./types/1_input_media.js";
|
|
74
75
|
export * from "./types/1_input_story_content.js";
|
|
@@ -86,26 +87,26 @@ export * from "./types/1_story_privacy.js";
|
|
|
86
87
|
export * from "./types/1_story_reaction.js";
|
|
87
88
|
export * from "./types/1_user.js";
|
|
88
89
|
export * from "./types/1_venue.js";
|
|
89
|
-
export * from "./types/1_video.js";
|
|
90
90
|
export * from "./types/1_video_note.js";
|
|
91
|
+
export * from "./types/1_video.js";
|
|
91
92
|
export * from "./types/2_business_connection.js";
|
|
92
|
-
export * from "./types/2_chat.js";
|
|
93
93
|
export * from "./types/2_chat_member.js";
|
|
94
94
|
export * from "./types/2_chat_settings.js";
|
|
95
|
+
export * from "./types/2_chat.js";
|
|
95
96
|
export * from "./types/2_chosen_inline_result.js";
|
|
96
97
|
export * from "./types/2_forward_header.js";
|
|
97
98
|
export * from "./types/2_game.js";
|
|
98
99
|
export * from "./types/2_gift_upgraded_component.js";
|
|
99
100
|
export * from "./types/2_inactive_chat.js";
|
|
100
|
-
export * from "./types/2_inline_keyboard_button.js";
|
|
101
101
|
export * from "./types/2_inline_query.js";
|
|
102
102
|
export * from "./types/2_invite_link.js";
|
|
103
103
|
export * from "./types/2_message_interactions.js";
|
|
104
104
|
export * from "./types/2_message_reaction_count.js";
|
|
105
105
|
export * from "./types/2_message_reactions.js";
|
|
106
|
-
export * from "./types/2_poll.js";
|
|
107
106
|
export * from "./types/2_poll_answer.js";
|
|
107
|
+
export * from "./types/2_poll.js";
|
|
108
108
|
export * from "./types/2_pre_checkout_query.js";
|
|
109
|
+
export * from "./types/2_reply_markup.js";
|
|
109
110
|
export * from "./types/2_reply_to.js";
|
|
110
111
|
export * from "./types/2_story_content.js";
|
|
111
112
|
export * from "./types/2_story_interactions.js";
|
|
@@ -114,13 +115,12 @@ export * from "./types/2_successful_payment.js";
|
|
|
114
115
|
export * from "./types/3_chat_member_updated.js";
|
|
115
116
|
export * from "./types/3_gift.js";
|
|
116
117
|
export * from "./types/3_join_request.js";
|
|
117
|
-
export * from "./types/3_reply_markup.js";
|
|
118
118
|
export * from "./types/3_story.js";
|
|
119
119
|
export * from "./types/4_claimed_gift.js";
|
|
120
120
|
export * from "./types/4_link_preview.js";
|
|
121
121
|
export * from "./types/5_claimed_gifts.js";
|
|
122
|
-
export * from "./types/5_message.js";
|
|
123
122
|
export * from "./types/5_message_content.js";
|
|
123
|
+
export * from "./types/5_message.js";
|
|
124
124
|
export * from "./types/6_callback_query.js";
|
|
125
125
|
export * from "./types/6_chat_list_item.js";
|
|
126
126
|
export * from "./types/6_inline_query_result.js";
|
package/esm/client/5_client.js
CHANGED
|
@@ -1084,7 +1084,7 @@ export class Client extends Composer {
|
|
|
1084
1084
|
return { _: "inputPeerSelf" };
|
|
1085
1085
|
}
|
|
1086
1086
|
const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
|
|
1087
|
-
if (((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "
|
|
1087
|
+
if (((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "bot") {
|
|
1088
1088
|
if ("channel_id" in inputPeer) {
|
|
1089
1089
|
inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
|
|
1090
1090
|
}
|
|
@@ -1092,7 +1092,7 @@ export class Client extends Composer {
|
|
|
1092
1092
|
inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getUserAccessHash).call(this, inputPeer.user_id);
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
if ((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n
|
|
1095
|
+
if ((Api.is("inputPeerUser", inputPeer) || Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) {
|
|
1096
1096
|
throw new AccessError(`Cannot access the chat ${id} because there is no access hash for it.`);
|
|
1097
1097
|
}
|
|
1098
1098
|
return inputPeer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { equal } from "./equal.js";
|
|
4
|
-
import { buildMessage } from "../../internal/1.0.
|
|
5
|
-
import { diff } from "../../internal/1.0.
|
|
6
|
-
import { diffStr } from "../../internal/1.0.
|
|
7
|
-
import { format } from "../../internal/1.0.
|
|
4
|
+
import { buildMessage } from "../../internal/1.0.10/build_message.js";
|
|
5
|
+
import { diff } from "../../internal/1.0.10/diff.js";
|
|
6
|
+
import { diffStr } from "../../internal/1.0.10/diff_str.js";
|
|
7
|
+
import { format } from "../../internal/1.0.10/format.js";
|
|
8
8
|
import { AssertionError } from "./assertion_error.js";
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,C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aAAa,EACrB,IAAI,CAAC,EAAE,aAAa,GACnB,aAAa,CAsBf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAwEvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type InspectFn = (v: unknown, options: {
|
|
2
|
+
depth: number;
|
|
3
|
+
sorted: boolean;
|
|
4
|
+
trailingComma: boolean;
|
|
5
|
+
compact: boolean;
|
|
6
|
+
iterableLimit: number;
|
|
7
|
+
getters: boolean;
|
|
8
|
+
strAbbreviateSize: number;
|
|
9
|
+
}) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Converts the input into a string. Objects, Sets and Maps are sorted so as to
|
|
12
|
+
* make tests less flaky.
|
|
13
|
+
*
|
|
14
|
+
* @param v Value to be formatted
|
|
15
|
+
*
|
|
16
|
+
* @returns The formatted string
|
|
17
|
+
*
|
|
18
|
+
* @example Usage
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { format } from "@std/internal/format";
|
|
21
|
+
* import { assertEquals } from "@std/assert";
|
|
22
|
+
*
|
|
23
|
+
* assertEquals(format({ a: 1, b: 2 }), "{\n a: 1,\n b: 2,\n}");
|
|
24
|
+
* assertEquals(format(new Set([1, 2])), "Set(2) {\n 1,\n 2,\n}");
|
|
25
|
+
* assertEquals(format(new Map([[1, 2]])), "Map(1) {\n 1 => 2,\n}");
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function format(v: unknown): string;
|
|
29
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/format.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GAAG,CACtB,CAAC,EAAE,OAAO,EACV,OAAO,EAAE;IACP,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,KACE,MAAM,CAAC;AAEZ;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAmBzC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
/** An inspect function conforming to the shape of `Deno.inspect` and `node:util`'s `inspect` */
|
|
4
|
+
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
5
|
+
/**
|
|
6
|
+
* Converts the input into a string. Objects, Sets and Maps are sorted so as to
|
|
7
|
+
* make tests less flaky.
|
|
8
|
+
*
|
|
9
|
+
* @param v Value to be formatted
|
|
10
|
+
*
|
|
11
|
+
* @returns The formatted string
|
|
12
|
+
*
|
|
13
|
+
* @example Usage
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { format } from "@std/internal/format";
|
|
16
|
+
* import { assertEquals } from "@std/assert";
|
|
17
|
+
*
|
|
18
|
+
* assertEquals(format({ a: 1, b: 2 }), "{\n a: 1,\n b: 2,\n}");
|
|
19
|
+
* assertEquals(format(new Set([1, 2])), "Set(2) {\n 1,\n 2,\n}");
|
|
20
|
+
* assertEquals(format(new Map([[1, 2]])), "Map(1) {\n 1 => 2,\n}");
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export function format(v) {
|
|
24
|
+
// deno-lint-ignore no-explicit-any
|
|
25
|
+
const { Deno, process } = dntShim.dntGlobalThis;
|
|
26
|
+
const inspect = Deno?.inspect ??
|
|
27
|
+
process?.getBuiltinModule?.("node:util")?.inspect;
|
|
28
|
+
return typeof inspect === "function"
|
|
29
|
+
? inspect(v, {
|
|
30
|
+
depth: Infinity,
|
|
31
|
+
sorted: true,
|
|
32
|
+
trailingComma: true,
|
|
33
|
+
compact: false,
|
|
34
|
+
iterableLimit: Infinity,
|
|
35
|
+
// getters should be true in assertEquals.
|
|
36
|
+
getters: true,
|
|
37
|
+
strAbbreviateSize: Infinity,
|
|
38
|
+
})
|
|
39
|
+
: basicInspect(v);
|
|
40
|
+
}
|
|
41
|
+
const formatters = [
|
|
42
|
+
(v) => {
|
|
43
|
+
if (typeof v === "undefined")
|
|
44
|
+
return "undefined";
|
|
45
|
+
if (typeof v === "bigint")
|
|
46
|
+
return `${v}n`;
|
|
47
|
+
if (typeof v === "string" ||
|
|
48
|
+
typeof v === "number" ||
|
|
49
|
+
typeof v === "boolean" ||
|
|
50
|
+
v === null ||
|
|
51
|
+
Array.isArray(v) ||
|
|
52
|
+
[null, Object.prototype].includes(Object.getPrototypeOf(v))) {
|
|
53
|
+
return JSON.stringify(v, null, 2);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
(v) => String(v),
|
|
57
|
+
(v) => Object.prototype.toString.call(v),
|
|
58
|
+
];
|
|
59
|
+
// for environments lacking both `Deno.inspect` and `process.inspect`
|
|
60
|
+
function basicInspect(v) {
|
|
61
|
+
for (const fmt of formatters) {
|
|
62
|
+
try {
|
|
63
|
+
const result = fmt(v);
|
|
64
|
+
if (typeof result === "string")
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
catch { /* try the next one */ }
|
|
68
|
+
}
|
|
69
|
+
return "[[Unable to format value]]";
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
package/esm/tl/2_telegram.d.ts
CHANGED
|
@@ -17,19 +17,18 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
import { AnyObject, AnyType, Enums, Functions, Types } from "./1_telegram_api.js";
|
|
21
20
|
import { TLReader } from "./1_tl_reader.js";
|
|
22
21
|
import * as Api from "./1_telegram_api.js";
|
|
23
22
|
export * from "./1_telegram_api.js";
|
|
24
|
-
export type DeserializedType = boolean | number | bigint | string | Uint8Array | AnyType | Array<DeserializedType>;
|
|
25
|
-
export declare function deserializeType<T extends (keyof Types) | "X" | string>(name: T, bufferOrReader: TLReader | Uint8Array): Promise<T extends keyof Types ? Types[T] : DeserializedType>;
|
|
26
|
-
export declare function serializeObject(object: AnyObject): Uint8Array;
|
|
27
|
-
export declare function isValidObject(object: any): object is AnyType;
|
|
28
|
-
export declare function assertIsValidObject(object: any): asserts object is AnyType;
|
|
29
|
-
export declare function is<S extends keyof (Types & Functions)>(name: S, value: unknown): value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never;
|
|
30
|
-
export declare function isOneOf<S extends keyof (Types & Functions)>(names: S[] | readonly S[], value: unknown): value is S extends keyof Types ? Types[S] : S extends keyof Functions ? Functions[S] : never;
|
|
31
|
-
export declare function isOfEnum<S extends keyof Enums>(name: S, value: unknown): value is Enums[S];
|
|
32
|
-
export declare function as<S extends keyof Types>(name: S, value: unknown): Types[S];
|
|
23
|
+
export type DeserializedType = boolean | number | bigint | string | Uint8Array | Api.AnyType | Array<DeserializedType>;
|
|
24
|
+
export declare function deserializeType<T extends (keyof Api.Types) | "X" | string>(name: T, bufferOrReader: TLReader | Uint8Array): Promise<T extends keyof Api.Types ? Api.Types[T] : DeserializedType>;
|
|
25
|
+
export declare function serializeObject(object: Api.AnyObject): Uint8Array;
|
|
26
|
+
export declare function isValidObject(object: any): object is Api.AnyType;
|
|
27
|
+
export declare function assertIsValidObject(object: any): asserts object is Api.AnyType;
|
|
28
|
+
export declare function is<S extends keyof (Api.Types & Api.Functions)>(name: S, value: unknown): value is S extends keyof Api.Types ? Api.Types[S] : S extends keyof Api.Functions ? Api.Functions[S] : never;
|
|
29
|
+
export declare function isOneOf<S extends keyof (Api.Types & Api.Functions)>(names: S[] | readonly S[], value: unknown): value is S extends keyof Api.Types ? Api.Types[S] : S extends keyof Api.Functions ? Api.Functions[S] : never;
|
|
30
|
+
export declare function isOfEnum<S extends keyof Api.Enums>(name: S, value: unknown): value is Api.Enums[S];
|
|
31
|
+
export declare function as<S extends keyof Api.Types>(name: S, value: unknown): Api.Types[S];
|
|
33
32
|
export declare function mustGetReturnType(name: string): string;
|
|
34
33
|
export declare function isGenericFunction(value: unknown): value is Api.AnyGenericFunction<Api.AnyFunction>;
|
|
35
34
|
export declare function getChannelChatId(channelId: bigint): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_telegram.d.ts","sourceRoot":"","sources":["../../src/tl/2_telegram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"2_telegram.d.ts","sourceRoot":"","sources":["../../src/tl/2_telegram.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAG3C,cAAc,qBAAqB,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAEvH,wBAAsB,eAAe,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAGtM;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,GAAG,UAAU,CAEjE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,GAAG,CAAC,OAAO,CAEhE;AACD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,OAAO,CAE9E;AA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;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D;AAGD,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC;AAErG,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC,2BAA2B,CAAC;AAEpK,MAAM,MAAM,mBAAmB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAErG,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,uBAAuB,GAAG,GAAG,CAAC,IAAI,GAAG,mBAAmB,GAAG,MAAM,CAU/G;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,IAAI,CAQrD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,IAAI,CAUlE"}
|
package/esm/tl/2_telegram.js
CHANGED
|
@@ -18,40 +18,40 @@
|
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
// deno-lint-ignore-file no-explicit-any
|
|
21
|
-
import { schema } from "./1_telegram_api.js";
|
|
22
21
|
import { TLReader } from "./1_tl_reader.js";
|
|
23
22
|
import { TLWriter } from "./1_tl_writer.js";
|
|
24
23
|
import { unreachable } from "../0_deps.js";
|
|
25
24
|
import { ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
25
|
+
import * as Api from "./1_telegram_api.js";
|
|
26
26
|
import { as as as_, assertIsValidObject as assertIsValidObject_, is as is_, isOfEnum as isOfEnum_, isOneOf as isOneOf_, isValidObject as isValidObject_, mustGetReturnType as mustGetReturnType_ } from "./1_utilities.js";
|
|
27
27
|
export * from "./1_telegram_api.js";
|
|
28
28
|
export async function deserializeType(name, bufferOrReader) {
|
|
29
29
|
const reader = bufferOrReader instanceof Uint8Array ? new TLReader(bufferOrReader) : bufferOrReader;
|
|
30
|
-
return await reader.readType(name, schema);
|
|
30
|
+
return await reader.readType(name, Api.schema);
|
|
31
31
|
}
|
|
32
32
|
export function serializeObject(object) {
|
|
33
|
-
return new TLWriter().writeObject(object, schema).buffer;
|
|
33
|
+
return new TLWriter().writeObject(object, Api.schema).buffer;
|
|
34
34
|
}
|
|
35
35
|
export function isValidObject(object) {
|
|
36
|
-
return isValidObject_(object, schema);
|
|
36
|
+
return isValidObject_(object, Api.schema);
|
|
37
37
|
}
|
|
38
38
|
export function assertIsValidObject(object) {
|
|
39
|
-
return assertIsValidObject_(object, schema);
|
|
39
|
+
return assertIsValidObject_(object, Api.schema);
|
|
40
40
|
}
|
|
41
41
|
export function is(name, value) {
|
|
42
|
-
return is_(name, value, schema);
|
|
42
|
+
return is_(name, value, Api.schema);
|
|
43
43
|
}
|
|
44
44
|
export function isOneOf(names, value) {
|
|
45
|
-
return isOneOf_(names, value, schema);
|
|
45
|
+
return isOneOf_(names, value, Api.schema);
|
|
46
46
|
}
|
|
47
47
|
export function isOfEnum(name, value) {
|
|
48
|
-
return isOfEnum_(name, value, schema);
|
|
48
|
+
return isOfEnum_(name, value, Api.schema);
|
|
49
49
|
}
|
|
50
50
|
export function as(name, value) {
|
|
51
|
-
return as_(name, value, schema);
|
|
51
|
+
return as_(name, value, Api.schema);
|
|
52
52
|
}
|
|
53
53
|
export function mustGetReturnType(name) {
|
|
54
|
-
return mustGetReturnType_(name, schema);
|
|
54
|
+
return mustGetReturnType_(name, Api.schema);
|
|
55
55
|
}
|
|
56
56
|
const GENERIC_FUNCTIONS = [
|
|
57
57
|
"invokeAfterMsg",
|
package/{script/transport/2_transport_provider.d.ts → esm/transport/1_transport_provider.d.ts}
RENAMED
|
@@ -32,4 +32,4 @@ export type TransportProvider = (params: TransportProviderParams) => {
|
|
|
32
32
|
};
|
|
33
33
|
export declare function getDcId(dc: DC, cdn: boolean): number;
|
|
34
34
|
export declare function getDc(dcId: number): DC;
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=1_transport_provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"1_transport_provider.d.ts","sourceRoot":"","sources":["../../src/transport/1_transport_provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC9E,wBAAgB,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAiDhF;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,EAAE,CAAC;IACP,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,uBAAuB,KAAK;IAAE,UAAU,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpI,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAEpD;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,EAAE,CAOtC"}
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
import { TransportProvider } from "./
|
|
20
|
+
import { TransportProvider } from "./1_transport_provider.js";
|
|
21
21
|
export declare function transportProviderTcp(params?: {
|
|
22
22
|
ipv6?: boolean;
|
|
23
23
|
obfuscated?: boolean;
|
|
24
24
|
}): TransportProvider;
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=2_transport_provider_tcp.d.ts.map
|
package/esm/transport/{3_transport_provider_tcp.d.ts.map → 2_transport_provider_tcp.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"2_transport_provider_tcp.d.ts","sourceRoot":"","sources":["../../src/transport/2_transport_provider_tcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAqB,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEjF,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,iBAAiB,CAMpB"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { ConnectionTCP } from "../connection/1_connection_tcp.node.js";
|
|
21
21
|
import { TransportAbridged } from "./1_transport_abridged.js";
|
|
22
|
-
import { getDcId, getDcIps } from "./
|
|
22
|
+
import { getDcId, getDcIps } from "./1_transport_provider.js";
|
|
23
23
|
export function transportProviderTcp(params) {
|
|
24
24
|
return ({ dc, cdn }) => {
|
|
25
25
|
const connection = new ConnectionTCP(getDcIps(dc, params?.ipv6 ? "ipv6" : "ipv4")[0], 80);
|
package/esm/transport/{3_transport_provider_web_socket.d.ts → 2_transport_provider_web_socket.d.ts}
RENAMED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* You should have received a copy of the GNU Lesser General Public License
|
|
18
18
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
|
-
import { TransportProvider } from "./
|
|
20
|
+
import { TransportProvider } from "./1_transport_provider.js";
|
|
21
21
|
export declare const transportProviderWebSocket: (params?: {
|
|
22
22
|
wss?: boolean;
|
|
23
23
|
}) => TransportProvider;
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=2_transport_provider_web_socket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"2_transport_provider_web_socket.d.ts","sourceRoot":"","sources":["../../src/transport/2_transport_provider_web_socket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAe,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAY3E,eAAO,MAAM,0BAA0B,YAAa;IAAE,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,KAAG,iBAUvE,CAAC"}
|
package/esm/transport/{3_transport_provider_web_socket.js → 2_transport_provider_web_socket.js}
RENAMED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { ConnectionWebSocket } from "../2_connection.js";
|
|
21
21
|
import { TransportIntermediate } from "./1_transport_intermediate.js";
|
|
22
|
-
import { getDcId } from "./
|
|
22
|
+
import { getDcId } from "./1_transport_provider.js";
|
|
23
23
|
const dcToNameMap = {
|
|
24
24
|
"1": "pluto",
|
|
25
25
|
"1-test": "pluto",
|
|
@@ -135,4 +135,4 @@ export interface InlineKeyboardButtonCopy extends _InlineKeyboardButtonBase {
|
|
|
135
135
|
export type InlineKeyboardButton = InlineKeyboardButtonURL | InlineKeyboardButtonCallback | InlineKeyboardButtonMiniApp | InlineKeyboardButtonLogin | InlineKeyboardButtonSwitchInline | InlineKeyboardButtonSwitchInlineCurrent | InlineKeyboardButtonSwitchInlineChosen | InlineKeyboardButtonGame | InlineKeyboardButtonPay | InlineKeyboardButtonCopy;
|
|
136
136
|
export declare function constructInlineKeyboardButton(button_: Api.KeyboardButton): InlineKeyboardButton;
|
|
137
137
|
export declare function inlineKeyboardButtonToTlObject(button: InlineKeyboardButton, usernameResolver: UsernameResolver): Promise<Api.KeyboardButton>;
|
|
138
|
-
//# sourceMappingURL=
|
|
138
|
+
//# sourceMappingURL=1_inline_keyboard_button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"1_inline_keyboard_button.d.ts","sourceRoot":"","sources":["../../src/types/1_inline_keyboard_button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAA8B,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE5F,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB;IAC7E;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,gBAAgB;AAChB,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E;;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AC,cAAc,GAAG,oBAAoB,CAgC/F;AAED,wBAAsB,8BAA8B,CAAC,MAAM,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAuClJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAqB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"2_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAqB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAC;AACxG,OAAO,EAAkB,KAAK,EAAE,MAAM,cAAc,CAAC;AAErD,gBAAgB;AAChB,MAAM,WAAW,QAAQ;IACvB,wBAAwB;IACxB,KAAK,CAAC,EAA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,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"2_pre_checkout_query.d.ts","sourceRoot":"","sources":["../../src/types/2_pre_checkout_query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAsB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAsB,yBAAyB,CAAC,KAAK,EAAE,GAAG,CAAC,yBAAyB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAexI"}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import { UsernameResolver } from "./_getters.js";
|
|
22
|
+
import { InlineKeyboardButton } from "./1_inline_keyboard_button.js";
|
|
22
23
|
import { KeyboardButton } from "./1_keyboard_button.js";
|
|
23
|
-
import { InlineKeyboardButton } from "./2_inline_keyboard_button.js";
|
|
24
24
|
/** @unlisted */
|
|
25
25
|
export interface ReplyMarkupInlineKeyboard {
|
|
26
26
|
/** @discriminator */
|
|
@@ -68,4 +68,4 @@ export interface ReplyMarkupForceReply {
|
|
|
68
68
|
export type ReplyMarkup = ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply;
|
|
69
69
|
export declare function constructReplyMarkup(replyMarkup: Api.ReplyMarkup): ReplyMarkup;
|
|
70
70
|
export declare function replyMarkupToTlObject(replyMarkup: ReplyMarkup, usernameResolver: UsernameResolver): Promise<Api.ReplyMarkup>;
|
|
71
|
-
//# sourceMappingURL=
|
|
71
|
+
//# sourceMappingURL=2_reply_markup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
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,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAiC,oBAAoB,EAAkC,MAAM,+BAA+B,CAAC;AACpI,OAAO,EAA2B,cAAc,EAA4B,MAAM,wBAAwB,CAAC;AAI3G,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,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAkCD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB,2JAA2J;IAC3J,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;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,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;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"}
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
import { unreachable } from "../0_deps.js";
|
|
21
21
|
import { cleanObject } from "../1_utilities.js";
|
|
22
22
|
import { Api } from "../2_tl.js";
|
|
23
|
+
import { constructInlineKeyboardButton, inlineKeyboardButtonToTlObject } from "./1_inline_keyboard_button.js";
|
|
23
24
|
import { constructKeyboardButton, keyboardButtonToTlObject } from "./1_keyboard_button.js";
|
|
24
|
-
import { constructInlineKeyboardButton, inlineKeyboardButtonToTlObject } from "./2_inline_keyboard_button.js";
|
|
25
25
|
function constructInlineKeyboardMarkup(keyboard_) {
|
|
26
26
|
const rows = new Array();
|
|
27
27
|
for (const row_ of keyboard_.rows) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_story_interactive_area.d.ts","sourceRoot":"","sources":["../../src/types/2_story_interactive_area.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"2_story_interactive_area.d.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zB,4BAA4B,GAC5B,2BAA2B,CAAC;AAWhC,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,oBAAoB,CA+BvF;AAKD,wBAAsB,8BAA8B,CAAC,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CA8BhI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_chat_member_updated.d.ts","sourceRoot":"","sources":["../../src/types/3_chat_member_updated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"3_chat_member_updated.d.ts","sourceRoot":"","sources":["../../src/types/3_chat_member_updated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAuB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErE,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,IAAI,EAAE,KAAK,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,aAAa,EAAE,UAAU,CAAC;IAC1B,yCAAyC;IACzC,aAAa,EAAE,UAAU,CAAC;IAC1B,oCAAoC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oDAAoD;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAsB,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC,qBAAqB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA0BtK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3_story.d.ts","sourceRoot":"","sources":["../../src/types/3_story.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"3_story.d.ts","sourceRoot":"","sources":["../../src/types/3_story.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAA8B,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAiC,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAEpG,eAAe;AACf,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAA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