@mtkruto/browser 0.142.0 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +4 -4
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +4 -4
- package/esm/3_types.d.ts +2 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +2 -0
- package/esm/client/0_params.d.ts +21 -3
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +60 -4
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/2_managed_bot_manager.d.ts +4 -1
- package/esm/client/2_managed_bot_manager.d.ts.map +1 -1
- package/esm/client/2_managed_bot_manager.js +13 -0
- package/esm/client/3_account_manager.d.ts +2 -1
- package/esm/client/3_account_manager.d.ts.map +1 -1
- package/esm/client/3_account_manager.js +17 -2
- package/esm/client/3_filters.d.ts +6 -1
- package/esm/client/3_filters.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts +10 -6
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +67 -13
- package/esm/client/3_sticker_set_manager.d.ts +1 -2
- package/esm/client/3_sticker_set_manager.d.ts.map +1 -1
- package/esm/client/4_context.d.ts +8 -1
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +21 -1
- package/esm/client/4_story_manager.d.ts +1 -2
- package/esm/client/4_story_manager.d.ts.map +1 -1
- package/esm/client/6_client.d.ts +60 -5
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +75 -2
- package/esm/client/6_client_dispatcher.d.ts +60 -5
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +75 -2
- package/esm/connection/1_connection_web_socket.d.ts +1 -1
- package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/async/1.2.0 → esm/deps/jsr.io/@std/async/1.3.0}/delay.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/async/1.2.0 → esm/deps/jsr.io/@std/async/1.3.0}/pool.d.ts +2 -0
- package/esm/deps/jsr.io/@std/async/1.3.0/pool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/pool.js +5 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.js +27 -16
- package/{script/deps/jsr.io/@std/cache/0.2.2 → esm/deps/jsr.io/@std/cache/0.2.3}/lru_cache.d.ts +109 -25
- package/esm/deps/jsr.io/@std/cache/0.2.3/lru_cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/0.2.3/lru_cache.js +299 -0
- package/{script/deps/jsr.io/@std/cache/0.2.2 → esm/deps/jsr.io/@std/cache/0.2.3}/memoize.d.ts +18 -10
- package/esm/deps/jsr.io/@std/cache/0.2.3/memoize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/memoize.js +11 -7
- package/esm/deps/jsr.io/@std/streams/1.1.0/to_array_buffer.d.ts.map +1 -0
- package/esm/tl/1_telegram_api.d.ts +251 -5
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +271 -11
- package/esm/types/1_chat_p.d.ts +2 -0
- package/esm/types/1_chat_p.d.ts.map +1 -1
- package/esm/types/1_chat_p.js +1 -0
- package/esm/types/1_video.d.ts.map +1 -1
- package/esm/types/1_video.js +3 -2
- package/esm/types/2_user.d.ts +2 -0
- package/esm/types/2_user.d.ts.map +1 -1
- package/esm/types/2_user.js +1 -0
- package/esm/types/3_bot_access_settings.d.ts +27 -0
- package/esm/types/3_bot_access_settings.d.ts.map +1 -0
- package/esm/types/3_bot_access_settings.js +27 -0
- package/esm/types/4_poll.d.ts +2 -0
- package/esm/types/4_poll.d.ts.map +1 -1
- package/esm/types/4_poll.js +1 -0
- package/esm/types/6_message.d.ts +12 -1
- package/esm/types/6_message.d.ts.map +1 -1
- package/esm/types/6_message.js +20 -2
- package/esm/types/7_guest_query.d.ts +28 -0
- package/esm/types/7_guest_query.d.ts.map +1 -0
- package/esm/types/7_guest_query.js +20 -0
- package/esm/types/8_update.d.ts +19 -1
- package/esm/types/8_update.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +4 -4
- package/script/3_types.d.ts +2 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +2 -0
- package/script/client/0_params.d.ts +21 -3
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +60 -4
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/2_managed_bot_manager.d.ts +4 -1
- package/script/client/2_managed_bot_manager.d.ts.map +1 -1
- package/script/client/2_managed_bot_manager.js +13 -0
- package/script/client/3_account_manager.d.ts +2 -1
- package/script/client/3_account_manager.d.ts.map +1 -1
- package/script/client/3_account_manager.js +17 -2
- package/script/client/3_filters.d.ts +6 -1
- package/script/client/3_filters.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts +10 -6
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +65 -11
- package/script/client/3_sticker_set_manager.d.ts +1 -2
- package/script/client/3_sticker_set_manager.d.ts.map +1 -1
- package/script/client/4_context.d.ts +8 -1
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +21 -1
- package/script/client/4_story_manager.d.ts +1 -2
- package/script/client/4_story_manager.d.ts.map +1 -1
- package/script/client/6_client.d.ts +60 -5
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +75 -2
- package/script/client/6_client_dispatcher.d.ts +60 -5
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +75 -2
- package/script/connection/1_connection_web_socket.d.ts +1 -1
- package/script/connection/1_connection_web_socket.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/async/1.2.0 → script/deps/jsr.io/@std/async/1.3.0}/delay.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/async/1.2.0 → script/deps/jsr.io/@std/async/1.3.0}/pool.d.ts +2 -0
- package/script/deps/jsr.io/@std/async/1.3.0/pool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/pool.js +5 -1
- package/script/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.js +27 -16
- package/{esm/deps/jsr.io/@std/cache/0.2.2 → script/deps/jsr.io/@std/cache/0.2.3}/lru_cache.d.ts +109 -25
- package/script/deps/jsr.io/@std/cache/0.2.3/lru_cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/lru_cache.js +149 -38
- package/{esm/deps/jsr.io/@std/cache/0.2.2 → script/deps/jsr.io/@std/cache/0.2.3}/memoize.d.ts +18 -10
- package/script/deps/jsr.io/@std/cache/0.2.3/memoize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/memoize.js +11 -7
- package/script/deps/jsr.io/@std/streams/1.1.0/to_array_buffer.d.ts.map +1 -0
- package/script/tl/1_telegram_api.d.ts +251 -5
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +271 -11
- package/script/types/1_chat_p.d.ts +2 -0
- package/script/types/1_chat_p.d.ts.map +1 -1
- package/script/types/1_chat_p.js +1 -0
- package/script/types/1_video.d.ts.map +1 -1
- package/script/types/1_video.js +3 -2
- package/script/types/2_user.d.ts +2 -0
- package/script/types/2_user.d.ts.map +1 -1
- package/script/types/2_user.js +1 -0
- package/script/types/3_bot_access_settings.d.ts +27 -0
- package/script/types/3_bot_access_settings.d.ts.map +1 -0
- package/script/types/3_bot_access_settings.js +30 -0
- package/script/types/4_poll.d.ts +2 -0
- package/script/types/4_poll.d.ts.map +1 -1
- package/script/types/4_poll.js +1 -0
- package/script/types/6_message.d.ts +12 -1
- package/script/types/6_message.d.ts.map +1 -1
- package/script/types/6_message.js +20 -2
- package/script/types/7_guest_query.d.ts +28 -0
- package/script/types/7_guest_query.d.ts.map +1 -0
- package/script/types/7_guest_query.js +21 -0
- package/script/types/8_update.d.ts +19 -1
- package/script/types/8_update.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/cache/0.2.2/lru_cache.js +0 -188
- package/esm/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.2.0/pool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/cache/0.2.2/lru_cache.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/cache/0.2.2/memoize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/streams/1.0.17/to_array_buffer.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/delay.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/delay.js +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/streams/{1.0.17 → 1.1.0}/to_array_buffer.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/streams/{1.0.17 → 1.1.0}/to_array_buffer.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/delay.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.2.0 → 1.3.0}/delay.js +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.2 → 0.2.3}/_serialize_arg_list.d.ts +0 -0
- /package/script/deps/jsr.io/@std/streams/{1.0.17 → 1.1.0}/to_array_buffer.d.ts +0 -0
- /package/script/deps/jsr.io/@std/streams/{1.0.17 → 1.1.0}/to_array_buffer.js +0 -0
|
@@ -674,6 +674,7 @@ exports.schema = Object.freeze({
|
|
|
674
674
|
["bot_forum_view", "flags2.16?true"],
|
|
675
675
|
["bot_forum_can_manage_topics", "flags2.17?true"],
|
|
676
676
|
["bot_can_manage_bots", "flags2.18?true"],
|
|
677
|
+
["bot_guestchat", "flags2.19?true"],
|
|
677
678
|
["id", "long"],
|
|
678
679
|
["access_hash", "flags.0?long"],
|
|
679
680
|
["first_name", "flags.1?string"],
|
|
@@ -1041,7 +1042,7 @@ exports.schema = Object.freeze({
|
|
|
1041
1042
|
"Message",
|
|
1042
1043
|
],
|
|
1043
1044
|
message: [
|
|
1044
|
-
|
|
1045
|
+
0x95EF6F2B,
|
|
1045
1046
|
[
|
|
1046
1047
|
["flags", "#"],
|
|
1047
1048
|
["out", "flags.1?true"],
|
|
@@ -1069,6 +1070,7 @@ exports.schema = Object.freeze({
|
|
|
1069
1070
|
["fwd_from", "flags.2?MessageFwdHeader"],
|
|
1070
1071
|
["via_bot_id", "flags.11?long"],
|
|
1071
1072
|
["via_business_bot_id", "flags2.0?long"],
|
|
1073
|
+
["guestchat_via_from", "flags2.19?Peer"],
|
|
1072
1074
|
["reply_to", "flags.3?MessageReplyHeader"],
|
|
1073
1075
|
["date", "int"],
|
|
1074
1076
|
["message", "string"],
|
|
@@ -2087,12 +2089,13 @@ exports.schema = Object.freeze({
|
|
|
2087
2089
|
"auth.SentCode",
|
|
2088
2090
|
],
|
|
2089
2091
|
"auth.sentCodePaymentRequired": [
|
|
2090
|
-
|
|
2092
|
+
0xF8827EBF,
|
|
2091
2093
|
[
|
|
2092
2094
|
["store_product", "string"],
|
|
2093
2095
|
["phone_code_hash", "string"],
|
|
2094
2096
|
["support_email_address", "string"],
|
|
2095
2097
|
["support_email_subject", "string"],
|
|
2098
|
+
["premium_days", "int"],
|
|
2096
2099
|
["currency", "string"],
|
|
2097
2100
|
["amount", "long"],
|
|
2098
2101
|
],
|
|
@@ -3988,6 +3991,22 @@ exports.schema = Object.freeze({
|
|
|
3988
3991
|
],
|
|
3989
3992
|
"Update",
|
|
3990
3993
|
],
|
|
3994
|
+
updateBotGuestChatQuery: [
|
|
3995
|
+
0xCDD4093D,
|
|
3996
|
+
[
|
|
3997
|
+
["flags", "#"],
|
|
3998
|
+
["query_id", "long"],
|
|
3999
|
+
["message", "Message"],
|
|
4000
|
+
["reference_messages", "flags.0?Vector<Message>"],
|
|
4001
|
+
["qts", "int"],
|
|
4002
|
+
],
|
|
4003
|
+
"Update",
|
|
4004
|
+
],
|
|
4005
|
+
updateAiComposeTones: [
|
|
4006
|
+
0x8C0F91FB,
|
|
4007
|
+
[],
|
|
4008
|
+
"Update",
|
|
4009
|
+
],
|
|
3991
4010
|
"updates.state": [
|
|
3992
4011
|
0xA56C2A3E,
|
|
3993
4012
|
[
|
|
@@ -6654,6 +6673,11 @@ exports.schema = Object.freeze({
|
|
|
6654
6673
|
[],
|
|
6655
6674
|
"TopPeerCategory",
|
|
6656
6675
|
],
|
|
6676
|
+
topPeerCategoryBotsGuestChat: [
|
|
6677
|
+
0x6C24F3DD,
|
|
6678
|
+
[],
|
|
6679
|
+
"TopPeerCategory",
|
|
6680
|
+
],
|
|
6657
6681
|
topPeerCategoryPeers: [
|
|
6658
6682
|
0xFB834291,
|
|
6659
6683
|
[
|
|
@@ -9025,7 +9049,7 @@ exports.schema = Object.freeze({
|
|
|
9025
9049
|
"PollAnswer",
|
|
9026
9050
|
],
|
|
9027
9051
|
poll: [
|
|
9028
|
-
|
|
9052
|
+
0x966E2DBF,
|
|
9029
9053
|
[
|
|
9030
9054
|
["id", "long"],
|
|
9031
9055
|
["flags", "#"],
|
|
@@ -9038,10 +9062,12 @@ exports.schema = Object.freeze({
|
|
|
9038
9062
|
["shuffle_answers", "flags.8?true"],
|
|
9039
9063
|
["hide_results_until_close", "flags.9?true"],
|
|
9040
9064
|
["creator", "flags.10?true"],
|
|
9065
|
+
["subscribers_only", "flags.11?true"],
|
|
9041
9066
|
["question", "TextWithEntities"],
|
|
9042
9067
|
["answers", "Vector<PollAnswer>"],
|
|
9043
9068
|
["close_period", "flags.4?int"],
|
|
9044
9069
|
["close_date", "flags.5?int"],
|
|
9070
|
+
["countries_iso2", "flags.12?Vector<string>"],
|
|
9045
9071
|
["hash", "long"],
|
|
9046
9072
|
],
|
|
9047
9073
|
"Poll",
|
|
@@ -9064,6 +9090,7 @@ exports.schema = Object.freeze({
|
|
|
9064
9090
|
["flags", "#"],
|
|
9065
9091
|
["min", "flags.0?true"],
|
|
9066
9092
|
["has_unread_votes", "flags.6?true"],
|
|
9093
|
+
["can_view_stats", "flags.7?true"],
|
|
9067
9094
|
["results", "flags.1?Vector<PollAnswerVoters>"],
|
|
9068
9095
|
["total_voters", "flags.2?int"],
|
|
9069
9096
|
["recent_voters", "flags.3?Vector<Peer>"],
|
|
@@ -9136,6 +9163,7 @@ exports.schema = Object.freeze({
|
|
|
9136
9163
|
["send_docs", "flags.24?true"],
|
|
9137
9164
|
["send_plain", "flags.25?true"],
|
|
9138
9165
|
["edit_rank", "flags.26?true"],
|
|
9166
|
+
["send_reactions", "flags.27?true"],
|
|
9139
9167
|
["until_date", "int"],
|
|
9140
9168
|
],
|
|
9141
9169
|
"ChatBannedRights",
|
|
@@ -9574,6 +9602,13 @@ exports.schema = Object.freeze({
|
|
|
9574
9602
|
],
|
|
9575
9603
|
"WebPageAttribute",
|
|
9576
9604
|
],
|
|
9605
|
+
webPageAttributeAiComposeTone: [
|
|
9606
|
+
0x7781FE18,
|
|
9607
|
+
[
|
|
9608
|
+
["emoji_id", "long"],
|
|
9609
|
+
],
|
|
9610
|
+
"WebPageAttribute",
|
|
9611
|
+
],
|
|
9577
9612
|
"messages.votesList": [
|
|
9578
9613
|
0x4899484E,
|
|
9579
9614
|
[
|
|
@@ -10988,12 +11023,13 @@ exports.schema = Object.freeze({
|
|
|
10988
11023
|
"InputStorePaymentPurpose",
|
|
10989
11024
|
],
|
|
10990
11025
|
inputStorePaymentAuthCode: [
|
|
10991
|
-
|
|
11026
|
+
0x3FC18057,
|
|
10992
11027
|
[
|
|
10993
11028
|
["flags", "#"],
|
|
10994
11029
|
["restore", "flags.0?true"],
|
|
10995
11030
|
["phone_number", "string"],
|
|
10996
11031
|
["phone_code_hash", "string"],
|
|
11032
|
+
["premium_days", "int"],
|
|
10997
11033
|
["currency", "string"],
|
|
10998
11034
|
["amount", "long"],
|
|
10999
11035
|
],
|
|
@@ -14342,6 +14378,92 @@ exports.schema = Object.freeze({
|
|
|
14342
14378
|
],
|
|
14343
14379
|
"messages.ComposedMessageWithAI",
|
|
14344
14380
|
],
|
|
14381
|
+
"stats.pollStats": [
|
|
14382
|
+
0x2999BEED,
|
|
14383
|
+
[
|
|
14384
|
+
["votes_graph", "StatsGraph"],
|
|
14385
|
+
],
|
|
14386
|
+
"stats.PollStats",
|
|
14387
|
+
],
|
|
14388
|
+
inputAiComposeToneDefault: [
|
|
14389
|
+
0x1FE9A9BF,
|
|
14390
|
+
[
|
|
14391
|
+
["tone", "string"],
|
|
14392
|
+
],
|
|
14393
|
+
"InputAiComposeTone",
|
|
14394
|
+
],
|
|
14395
|
+
inputAiComposeToneID: [
|
|
14396
|
+
0x0773C080,
|
|
14397
|
+
[
|
|
14398
|
+
["id", "long"],
|
|
14399
|
+
["access_hash", "long"],
|
|
14400
|
+
],
|
|
14401
|
+
"InputAiComposeTone",
|
|
14402
|
+
],
|
|
14403
|
+
inputAiComposeToneSlug: [
|
|
14404
|
+
0x1FA01357,
|
|
14405
|
+
[
|
|
14406
|
+
["slug", "string"],
|
|
14407
|
+
],
|
|
14408
|
+
"InputAiComposeTone",
|
|
14409
|
+
],
|
|
14410
|
+
aiComposeTone: [
|
|
14411
|
+
0xCFF63EA9,
|
|
14412
|
+
[
|
|
14413
|
+
["flags", "#"],
|
|
14414
|
+
["creator", "flags.0?true"],
|
|
14415
|
+
["id", "long"],
|
|
14416
|
+
["access_hash", "long"],
|
|
14417
|
+
["slug", "string"],
|
|
14418
|
+
["title", "string"],
|
|
14419
|
+
["emoji_id", "flags.1?long"],
|
|
14420
|
+
["prompt", "flags.4?string"],
|
|
14421
|
+
["installs_count", "flags.2?int"],
|
|
14422
|
+
["author_id", "flags.3?long"],
|
|
14423
|
+
["example_english", "flags.5?AiComposeToneExample"],
|
|
14424
|
+
],
|
|
14425
|
+
"AiComposeTone",
|
|
14426
|
+
],
|
|
14427
|
+
aiComposeToneDefault: [
|
|
14428
|
+
0x9BAD6414,
|
|
14429
|
+
[
|
|
14430
|
+
["tone", "string"],
|
|
14431
|
+
["emoji_id", "long"],
|
|
14432
|
+
["title", "string"],
|
|
14433
|
+
],
|
|
14434
|
+
"AiComposeTone",
|
|
14435
|
+
],
|
|
14436
|
+
"aicompose.tonesNotModified": [
|
|
14437
|
+
0xC1F46103,
|
|
14438
|
+
[],
|
|
14439
|
+
"aicompose.Tones",
|
|
14440
|
+
],
|
|
14441
|
+
"aicompose.tones": [
|
|
14442
|
+
0x6C9D0EFE,
|
|
14443
|
+
[
|
|
14444
|
+
["hash", "long"],
|
|
14445
|
+
["tones", "Vector<AiComposeTone>"],
|
|
14446
|
+
["users", "Vector<User>"],
|
|
14447
|
+
],
|
|
14448
|
+
"aicompose.Tones",
|
|
14449
|
+
],
|
|
14450
|
+
aiComposeToneExample: [
|
|
14451
|
+
0xF1D628EC,
|
|
14452
|
+
[
|
|
14453
|
+
["from", "TextWithEntities"],
|
|
14454
|
+
["to", "TextWithEntities"],
|
|
14455
|
+
],
|
|
14456
|
+
"AiComposeToneExample",
|
|
14457
|
+
],
|
|
14458
|
+
"bots.accessSettings": [
|
|
14459
|
+
0xDD1FBF93,
|
|
14460
|
+
[
|
|
14461
|
+
["flags", "#"],
|
|
14462
|
+
["restricted", "flags.0?true"],
|
|
14463
|
+
["add_users", "flags.1?Vector<User>"],
|
|
14464
|
+
],
|
|
14465
|
+
"bots.AccessSettings",
|
|
14466
|
+
],
|
|
14345
14467
|
invokeWithBusinessConnectionPrefix: [
|
|
14346
14468
|
0xDD289F8E,
|
|
14347
14469
|
[
|
|
@@ -15776,6 +15898,7 @@ exports.schema = Object.freeze({
|
|
|
15776
15898
|
["groups", "flags.10?true"],
|
|
15777
15899
|
["channels", "flags.15?true"],
|
|
15778
15900
|
["bots_app", "flags.16?true"],
|
|
15901
|
+
["bots_guestchat", "flags.17?true"],
|
|
15779
15902
|
["offset", "int"],
|
|
15780
15903
|
["limit", "int"],
|
|
15781
15904
|
["hash", "long"],
|
|
@@ -18250,14 +18373,14 @@ exports.schema = Object.freeze({
|
|
|
18250
18373
|
"Bool",
|
|
18251
18374
|
],
|
|
18252
18375
|
"messages.composeMessageWithAI": [
|
|
18253
|
-
|
|
18376
|
+
0xDAECC589,
|
|
18254
18377
|
[
|
|
18255
18378
|
["flags", "#"],
|
|
18256
18379
|
["proofread", "flags.0?true"],
|
|
18257
18380
|
["emojify", "flags.3?true"],
|
|
18258
18381
|
["text", "TextWithEntities"],
|
|
18259
18382
|
["translate_to_lang", "flags.1?string"],
|
|
18260
|
-
["
|
|
18383
|
+
["tone", "flags.2?InputAiComposeTone"],
|
|
18261
18384
|
],
|
|
18262
18385
|
"messages.ComposedMessageWithAI",
|
|
18263
18386
|
],
|
|
@@ -18318,6 +18441,42 @@ exports.schema = Object.freeze({
|
|
|
18318
18441
|
],
|
|
18319
18442
|
"messages.AffectedHistory",
|
|
18320
18443
|
],
|
|
18444
|
+
"messages.setBotGuestChatResult": [
|
|
18445
|
+
0xB8F106E3,
|
|
18446
|
+
[
|
|
18447
|
+
["query_id", "long"],
|
|
18448
|
+
["result", "InputBotInlineResult"],
|
|
18449
|
+
],
|
|
18450
|
+
"InputBotInlineMessageID",
|
|
18451
|
+
],
|
|
18452
|
+
"messages.deleteParticipantReactions": [
|
|
18453
|
+
0xA0B80CF8,
|
|
18454
|
+
[
|
|
18455
|
+
["peer", "InputPeer"],
|
|
18456
|
+
["participant", "InputPeer"],
|
|
18457
|
+
],
|
|
18458
|
+
"Bool",
|
|
18459
|
+
],
|
|
18460
|
+
"messages.deleteParticipantReaction": [
|
|
18461
|
+
0xE3B7F82C,
|
|
18462
|
+
[
|
|
18463
|
+
["peer", "InputPeer"],
|
|
18464
|
+
["msg_id", "int"],
|
|
18465
|
+
["participant", "InputPeer"],
|
|
18466
|
+
],
|
|
18467
|
+
"Updates",
|
|
18468
|
+
],
|
|
18469
|
+
"messages.getPersonalChannelHistory": [
|
|
18470
|
+
0x55FB0996,
|
|
18471
|
+
[
|
|
18472
|
+
["user_id", "InputUser"],
|
|
18473
|
+
["limit", "int"],
|
|
18474
|
+
["max_id", "int"],
|
|
18475
|
+
["min_id", "int"],
|
|
18476
|
+
["hash", "long"],
|
|
18477
|
+
],
|
|
18478
|
+
"messages.Messages",
|
|
18479
|
+
],
|
|
18321
18480
|
"updates.getState": [
|
|
18322
18481
|
0xEDD4882A,
|
|
18323
18482
|
[],
|
|
@@ -19425,6 +19584,23 @@ exports.schema = Object.freeze({
|
|
|
19425
19584
|
],
|
|
19426
19585
|
"KeyboardButton",
|
|
19427
19586
|
],
|
|
19587
|
+
"bots.getAccessSettings": [
|
|
19588
|
+
0x213853A3,
|
|
19589
|
+
[
|
|
19590
|
+
["bot", "InputUser"],
|
|
19591
|
+
],
|
|
19592
|
+
"bots.AccessSettings",
|
|
19593
|
+
],
|
|
19594
|
+
"bots.editAccessSettings": [
|
|
19595
|
+
0x31813CD8,
|
|
19596
|
+
[
|
|
19597
|
+
["flags", "#"],
|
|
19598
|
+
["restricted", "flags.0?true"],
|
|
19599
|
+
["bot", "InputUser"],
|
|
19600
|
+
["add_users", "flags.1?Vector<InputUser>"],
|
|
19601
|
+
],
|
|
19602
|
+
"Bool",
|
|
19603
|
+
],
|
|
19428
19604
|
"payments.getPaymentForm": [
|
|
19429
19605
|
0x37148DBB,
|
|
19430
19606
|
[
|
|
@@ -20608,6 +20784,16 @@ exports.schema = Object.freeze({
|
|
|
20608
20784
|
],
|
|
20609
20785
|
"stats.PublicForwards",
|
|
20610
20786
|
],
|
|
20787
|
+
"stats.getPollStats": [
|
|
20788
|
+
0xC27DFA68,
|
|
20789
|
+
[
|
|
20790
|
+
["flags", "#"],
|
|
20791
|
+
["dark", "flags.0?true"],
|
|
20792
|
+
["peer", "InputPeer"],
|
|
20793
|
+
["msg_id", "int"],
|
|
20794
|
+
],
|
|
20795
|
+
"stats.PollStats",
|
|
20796
|
+
],
|
|
20611
20797
|
"chatlists.exportChatlistInvite": [
|
|
20612
20798
|
0x8472478E,
|
|
20613
20799
|
[
|
|
@@ -21105,6 +21291,66 @@ exports.schema = Object.freeze({
|
|
|
21105
21291
|
],
|
|
21106
21292
|
"fragment.CollectibleInfo",
|
|
21107
21293
|
],
|
|
21294
|
+
"aicompose.createTone": [
|
|
21295
|
+
0x4AA83913,
|
|
21296
|
+
[
|
|
21297
|
+
["flags", "#"],
|
|
21298
|
+
["display_author", "flags.0?true"],
|
|
21299
|
+
["emoji_id", "long"],
|
|
21300
|
+
["title", "string"],
|
|
21301
|
+
["prompt", "string"],
|
|
21302
|
+
],
|
|
21303
|
+
"AiComposeTone",
|
|
21304
|
+
],
|
|
21305
|
+
"aicompose.updateTone": [
|
|
21306
|
+
0x903BCF59,
|
|
21307
|
+
[
|
|
21308
|
+
["flags", "#"],
|
|
21309
|
+
["tone", "InputAiComposeTone"],
|
|
21310
|
+
["display_author", "flags.0?Bool"],
|
|
21311
|
+
["emoji_id", "flags.1?long"],
|
|
21312
|
+
["title", "flags.2?string"],
|
|
21313
|
+
["prompt", "flags.3?string"],
|
|
21314
|
+
],
|
|
21315
|
+
"AiComposeTone",
|
|
21316
|
+
],
|
|
21317
|
+
"aicompose.saveTone": [
|
|
21318
|
+
0x1782CBB1,
|
|
21319
|
+
[
|
|
21320
|
+
["tone", "InputAiComposeTone"],
|
|
21321
|
+
["unsave", "Bool"],
|
|
21322
|
+
],
|
|
21323
|
+
"Bool",
|
|
21324
|
+
],
|
|
21325
|
+
"aicompose.deleteTone": [
|
|
21326
|
+
0xDD39316A,
|
|
21327
|
+
[
|
|
21328
|
+
["tone", "InputAiComposeTone"],
|
|
21329
|
+
],
|
|
21330
|
+
"Bool",
|
|
21331
|
+
],
|
|
21332
|
+
"aicompose.getTone": [
|
|
21333
|
+
0xB2E8BA03,
|
|
21334
|
+
[
|
|
21335
|
+
["tone", "InputAiComposeTone"],
|
|
21336
|
+
],
|
|
21337
|
+
"aicompose.Tones",
|
|
21338
|
+
],
|
|
21339
|
+
"aicompose.getTones": [
|
|
21340
|
+
0xABD59201,
|
|
21341
|
+
[
|
|
21342
|
+
["hash", "long"],
|
|
21343
|
+
],
|
|
21344
|
+
"aicompose.Tones",
|
|
21345
|
+
],
|
|
21346
|
+
"aicompose.getToneExample": [
|
|
21347
|
+
0xD1B4AB14,
|
|
21348
|
+
[
|
|
21349
|
+
["tone", "InputAiComposeTone"],
|
|
21350
|
+
["num", "int"],
|
|
21351
|
+
],
|
|
21352
|
+
"AiComposeToneExample",
|
|
21353
|
+
],
|
|
21108
21354
|
},
|
|
21109
21355
|
identifierToName: {
|
|
21110
21356
|
[0x3FEDD339]: "true",
|
|
@@ -21205,7 +21451,7 @@ exports.schema = Object.freeze({
|
|
|
21205
21451
|
[0x37C1011C]: "chatPhotoEmpty",
|
|
21206
21452
|
[0x1C6E1C11]: "chatPhoto",
|
|
21207
21453
|
[0x90A6CA84]: "messageEmpty",
|
|
21208
|
-
[
|
|
21454
|
+
[0x95EF6F2B]: "message",
|
|
21209
21455
|
[0x7A800E0A]: "messageService",
|
|
21210
21456
|
[0x3DED6320]: "messageMediaEmpty",
|
|
21211
21457
|
[0xE216EB63]: "messageMediaPhoto",
|
|
@@ -21307,7 +21553,7 @@ exports.schema = Object.freeze({
|
|
|
21307
21553
|
[0xB2A2F663]: "geoPoint",
|
|
21308
21554
|
[0x5E002502]: "auth.sentCode",
|
|
21309
21555
|
[0x2390FE44]: "auth.sentCodeSuccess",
|
|
21310
|
-
[
|
|
21556
|
+
[0xF8827EBF]: "auth.sentCodePaymentRequired",
|
|
21311
21557
|
[0x2EA2C0D4]: "auth.authorization",
|
|
21312
21558
|
[0x44747E9A]: "auth.authorizationSignUpRequired",
|
|
21313
21559
|
[0xB434E2B8]: "auth.exportedAuthorization",
|
|
@@ -21523,6 +21769,8 @@ exports.schema = Object.freeze({
|
|
|
21523
21769
|
[0xAC072444]: "updateStarGiftCraftFail",
|
|
21524
21770
|
[0xBD8367B9]: "updateChatParticipantRank",
|
|
21525
21771
|
[0x4880ED9A]: "updateManagedBot",
|
|
21772
|
+
[0xCDD4093D]: "updateBotGuestChatQuery",
|
|
21773
|
+
[0x8C0F91FB]: "updateAiComposeTones",
|
|
21526
21774
|
[0xA56C2A3E]: "updates.state",
|
|
21527
21775
|
[0x5D75A138]: "updates.differenceEmpty",
|
|
21528
21776
|
[0x00F49CA0]: "updates.difference",
|
|
@@ -21829,6 +22077,7 @@ exports.schema = Object.freeze({
|
|
|
21829
22077
|
[0xA8406CA9]: "topPeerCategoryForwardUsers",
|
|
21830
22078
|
[0xFBEEC0F0]: "topPeerCategoryForwardChats",
|
|
21831
22079
|
[0xFD9E7BEC]: "topPeerCategoryBotsApp",
|
|
22080
|
+
[0x6C24F3DD]: "topPeerCategoryBotsGuestChat",
|
|
21832
22081
|
[0xFB834291]: "topPeerCategoryPeers",
|
|
21833
22082
|
[0xDE266EF5]: "contacts.topPeersNotModified",
|
|
21834
22083
|
[0x70B772A8]: "contacts.topPeers",
|
|
@@ -22108,7 +22357,7 @@ exports.schema = Object.freeze({
|
|
|
22108
22357
|
[0x01EB3758]: "help.userInfo",
|
|
22109
22358
|
[0x4B7D786A]: "pollAnswer",
|
|
22110
22359
|
[0x199FED96]: "inputPollAnswer",
|
|
22111
|
-
[
|
|
22360
|
+
[0x966E2DBF]: "poll",
|
|
22112
22361
|
[0x3645230A]: "pollAnswerVoters",
|
|
22113
22362
|
[0xBA7BB15E]: "pollResults",
|
|
22114
22363
|
[0xF041E250]: "chatOnlines",
|
|
@@ -22164,6 +22413,7 @@ exports.schema = Object.freeze({
|
|
|
22164
22413
|
[0xCF6F6DB8]: "webPageAttributeUniqueStarGift",
|
|
22165
22414
|
[0x31CAD303]: "webPageAttributeStarGiftCollection",
|
|
22166
22415
|
[0x01C641C2]: "webPageAttributeStarGiftAuction",
|
|
22416
|
+
[0x7781FE18]: "webPageAttributeAiComposeTone",
|
|
22167
22417
|
[0x4899484E]: "messages.votesList",
|
|
22168
22418
|
[0xF568028A]: "bankCardOpenUrl",
|
|
22169
22419
|
[0x3E24E573]: "payments.bankCardData",
|
|
@@ -22314,7 +22564,7 @@ exports.schema = Object.freeze({
|
|
|
22314
22564
|
[0xF9A2A6CB]: "inputStorePaymentStarsTopup",
|
|
22315
22565
|
[0x1D741EF7]: "inputStorePaymentStarsGift",
|
|
22316
22566
|
[0x751F08FA]: "inputStorePaymentStarsGiveaway",
|
|
22317
|
-
[
|
|
22567
|
+
[0x3FC18057]: "inputStorePaymentAuthCode",
|
|
22318
22568
|
[0x88F8F21B]: "paymentFormMethod",
|
|
22319
22569
|
[0x2DE11AAE]: "emojiStatusEmpty",
|
|
22320
22570
|
[0xE7FF068A]: "emojiStatus",
|
|
@@ -22669,6 +22919,16 @@ exports.schema = Object.freeze({
|
|
|
22669
22919
|
[0x3C60B621]: "bots.exportedBotToken",
|
|
22670
22920
|
[0xF13BBCD7]: "bots.requestedButton",
|
|
22671
22921
|
[0x90D7ADFA]: "messages.composedMessageWithAI",
|
|
22922
|
+
[0x2999BEED]: "stats.pollStats",
|
|
22923
|
+
[0x1FE9A9BF]: "inputAiComposeToneDefault",
|
|
22924
|
+
[0x0773C080]: "inputAiComposeToneID",
|
|
22925
|
+
[0x1FA01357]: "inputAiComposeToneSlug",
|
|
22926
|
+
[0xCFF63EA9]: "aiComposeTone",
|
|
22927
|
+
[0x9BAD6414]: "aiComposeToneDefault",
|
|
22928
|
+
[0xC1F46103]: "aicompose.tonesNotModified",
|
|
22929
|
+
[0x6C9D0EFE]: "aicompose.tones",
|
|
22930
|
+
[0xF1D628EC]: "aiComposeToneExample",
|
|
22931
|
+
[0xDD1FBF93]: "bots.accessSettings",
|
|
22672
22932
|
},
|
|
22673
22933
|
});
|
|
22674
|
-
exports.LAYER =
|
|
22934
|
+
exports.LAYER = 225;
|
|
@@ -84,6 +84,8 @@ export interface ChatPPrivate extends _ChatPBase {
|
|
|
84
84
|
isAddedToAttachmentsMenu?: boolean;
|
|
85
85
|
/** Whether the user is a bot that has been added to the attachment menu by the current user. */
|
|
86
86
|
hasMainMiniApp?: boolean;
|
|
87
|
+
/** Whether the user is a bot that supports guest queries. */
|
|
88
|
+
isGuestQuerySupported?: boolean;
|
|
87
89
|
}
|
|
88
90
|
/** @unlisted */
|
|
89
91
|
export interface ChatPGroup extends _ChatPBase {
|
|
@@ -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,EAAE,KAAK,SAAS,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT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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/script/types/1_chat_p.js
CHANGED
|
@@ -61,6 +61,7 @@ function constructChatP(chat) {
|
|
|
61
61
|
restrictionReason: chat.restriction_reason?.map((v) => (0, _0_restriction_reason_js_1.constructRestrictionReason)(v)),
|
|
62
62
|
isAddedToAttachmentsMenu: chat.bot ? chat.attach_menu_enabled || false : undefined,
|
|
63
63
|
hasMainMiniApp: chat.bot ? chat.attach_menu_enabled || false : undefined,
|
|
64
|
+
isGuestQuerySupported: chat.bot ? chat.bot_guestchat || false : undefined,
|
|
64
65
|
};
|
|
65
66
|
if (_2_tl_js_1.Api.is("userProfilePhoto", chat.photo)) {
|
|
66
67
|
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1_video.d.ts","sourceRoot":"","sources":["../../src/types/1_video.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"1_video.d.ts","sourceRoot":"","sources":["../../src/types/1_video.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEtE,oBAAoB;AACpB,MAAM,WAAW,KAAK;IACpB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,CAAC,sBAAsB,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,KAAK,CAY5K"}
|
package/script/types/1_video.js
CHANGED
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructVideo = constructVideo;
|
|
23
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
23
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
25
|
const _0_thumbnail_js_1 = require("./0_thumbnail.js");
|
|
25
26
|
function constructVideo(document, videoAttribute, fileName, fileId, fileUniqueId) {
|
|
26
|
-
return {
|
|
27
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
27
28
|
fileId,
|
|
28
29
|
fileUniqueId,
|
|
29
30
|
width: videoAttribute.w,
|
|
@@ -33,5 +34,5 @@ function constructVideo(document, videoAttribute, fileName, fileId, fileUniqueId
|
|
|
33
34
|
fileName,
|
|
34
35
|
mimeType: document.mime_type,
|
|
35
36
|
fileSize: Number(document.size),
|
|
36
|
-
};
|
|
37
|
+
});
|
|
37
38
|
}
|
package/script/types/2_user.d.ts
CHANGED
|
@@ -77,6 +77,8 @@ export interface User {
|
|
|
77
77
|
isAddedToAttachmentsMenu?: boolean;
|
|
78
78
|
/** Whether the user is a bot that has a main mini app. */
|
|
79
79
|
hasMainMiniApp?: boolean;
|
|
80
|
+
/** Whether the user is a bot that supports guest queries. */
|
|
81
|
+
isGuestQuerySupported?: boolean;
|
|
80
82
|
}
|
|
81
83
|
export declare function constructUser(user_: Api.user): User;
|
|
82
84
|
export declare function constructUser2(chatP: ChatPPrivate): User;
|
|
@@ -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,EAAwB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1E,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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AC1C,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,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6DAA6D;IAC7D,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAqCnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CA8BxD"}
|
package/script/types/2_user.js
CHANGED
|
@@ -57,6 +57,7 @@ function constructUser(user_) {
|
|
|
57
57
|
restrictionReason: user_.restriction_reason?.map((v) => (0, _0_restriction_reason_js_1.constructRestrictionReason)(v)),
|
|
58
58
|
isAddedToAttachmentsMenu: user_.bot ? user_.attach_menu_enabled || false : undefined,
|
|
59
59
|
hasMainMiniApp: user_.bot ? user_.bot_has_main_app || false : undefined,
|
|
60
|
+
isGuestQuerySupported: user_.bot ? user_.bot_guestchat || false : undefined,
|
|
60
61
|
};
|
|
61
62
|
if (_2_tl_js_1.Api.is("userProfilePhoto", user_.photo)) {
|
|
62
63
|
user.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(user_.photo, user.id, user_.access_hash ?? 0n);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import type { bots_accessSettings } from "../tl/1_telegram_api.js";
|
|
21
|
+
import { type User } from "./2_user.js";
|
|
22
|
+
export interface BotAccessSettings {
|
|
23
|
+
isAccessRestricted: boolean;
|
|
24
|
+
usersWithAccess: User[];
|
|
25
|
+
}
|
|
26
|
+
export declare function constructBotAccessSettings(accessSettings: bots_accessSettings): BotAccessSettings;
|
|
27
|
+
//# sourceMappingURL=3_bot_access_settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3_bot_access_settings.d.ts","sourceRoot":"","sources":["../../src/types/3_bot_access_settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,IAAI,EAAE,CAAC;CACzB;AAED,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,mBAAmB,GAAG,iBAAiB,CAKjG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
+
* Copyright (C) 2023-2026 Roj <https://roj.im/>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of MTKruto.
|
|
7
|
+
*
|
|
8
|
+
* This program is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.constructBotAccessSettings = constructBotAccessSettings;
|
|
23
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
24
|
+
const _2_user_js_1 = require("./2_user.js");
|
|
25
|
+
function constructBotAccessSettings(accessSettings) {
|
|
26
|
+
return {
|
|
27
|
+
isAccessRestricted: accessSettings.restricted || false,
|
|
28
|
+
usersWithAccess: accessSettings.add_users?.map((v) => (0, _2_user_js_1.constructUser)(_2_tl_js_1.Api.as("user", v))) ?? [],
|
|
29
|
+
};
|
|
30
|
+
}
|
package/script/types/4_poll.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export interface Poll {
|
|
|
50
50
|
openPeriod?: number;
|
|
51
51
|
/** The time when the poll will be closed. */
|
|
52
52
|
closeDate?: number;
|
|
53
|
+
/** The codes of the countries where the poll is available. */
|
|
54
|
+
countries?: string[];
|
|
53
55
|
}
|
|
54
56
|
export declare function constructPoll(media_: Api.messageMediaPoll): Poll;
|
|
55
57
|
//# sourceMappingURL=4_poll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4_poll.d.ts","sourceRoot":"","sources":["../../src/types/4_poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,cAAc;AACd,MAAM,WAAW,IAAI;IACnB,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,gBAAgB,EAAE,aAAa,EAAE,CAAC;IAClC,0BAA0B;IAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,4BAA4B;IAC5B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,gDAAgD;IAChD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sCAAsC;IACtC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IACtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"4_poll.d.ts","sourceRoot":"","sources":["../../src/types/4_poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,cAAc;AACd,MAAM,WAAW,IAAI;IACnB,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,gBAAgB,EAAE,aAAa,EAAE,CAAC;IAClC,0BAA0B;IAC1B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,4BAA4B;IAC5B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,gDAAgD;IAChD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sCAAsC;IACtC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IACtC,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAqBhE"}
|
package/script/types/4_poll.js
CHANGED
|
@@ -44,5 +44,6 @@ function constructPoll(media_) {
|
|
|
44
44
|
explanationEntities: media_.results.solution_entities?.map(_2_message_entity_js_1.constructMessageEntity).filter((v) => v !== null),
|
|
45
45
|
openPeriod: poll.close_period,
|
|
46
46
|
closeDate: poll.close_date,
|
|
47
|
+
countries: poll.countries_iso2,
|
|
47
48
|
});
|
|
48
49
|
}
|