@mtkruto/node 0.66.9 → 0.67.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/1_utilities.d.ts +0 -1
- package/esm/1_utilities.d.ts.map +1 -1
- package/esm/1_utilities.js +0 -1
- package/esm/client/0_params.d.ts +8 -8
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +2 -3
- package/esm/client/3_message_manager.js +11 -11
- package/esm/client/3_video_chat_manager.d.ts +1 -1
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +2 -2
- package/esm/client/4_chat_list_manager.js +6 -6
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +5 -6
- package/esm/client/5_client.d.ts +2 -1
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/{script/deps/jsr.io/@std/internal/1.0.8 → esm/deps/jsr.io/@std/internal/1.0.9}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.d.ts.map +1 -1
- package/esm/types/0_chat_member_rights.d.ts +1 -1
- package/esm/types/0_chat_member_rights.d.ts.map +1 -1
- package/esm/types/0_chat_member_rights.js +3 -3
- package/esm/types/0_giveaway_parameters.d.ts +1 -1
- package/esm/types/0_giveaway_parameters.d.ts.map +1 -1
- package/esm/types/0_giveaway_parameters.js +1 -2
- 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 -2
- package/esm/types/2_business_connection.d.ts +1 -1
- package/esm/types/2_business_connection.d.ts.map +1 -1
- package/esm/types/2_business_connection.js +1 -2
- package/esm/types/2_chat_member.d.ts +3 -3
- package/esm/types/2_chat_member.d.ts.map +1 -1
- package/esm/types/2_chat_member.js +6 -6
- package/esm/types/2_chat_settings.d.ts +3 -3
- package/esm/types/2_chat_settings.d.ts.map +1 -1
- package/esm/types/2_chat_settings.js +4 -4
- package/esm/types/2_forward_header.d.ts +1 -1
- package/esm/types/2_forward_header.d.ts.map +1 -1
- package/esm/types/2_forward_header.js +6 -6
- package/esm/types/2_gift_upgraded_component.d.ts +1 -1
- package/esm/types/2_gift_upgraded_component.d.ts.map +1 -1
- package/esm/types/2_gift_upgraded_component.js +2 -2
- package/esm/types/2_inactive_chat.d.ts +1 -1
- package/esm/types/2_inactive_chat.d.ts.map +1 -1
- package/esm/types/2_inactive_chat.js +1 -2
- package/esm/types/2_invite_link.d.ts +1 -1
- package/esm/types/2_invite_link.d.ts.map +1 -1
- package/esm/types/2_invite_link.js +2 -2
- package/esm/types/2_message_reaction_count.d.ts +1 -1
- package/esm/types/2_message_reaction_count.d.ts.map +1 -1
- package/esm/types/2_message_reaction_count.js +1 -2
- package/esm/types/2_message_reactions.d.ts +1 -1
- package/esm/types/2_message_reactions.d.ts.map +1 -1
- package/esm/types/2_message_reactions.js +2 -2
- package/esm/types/2_poll.d.ts +1 -1
- package/esm/types/2_poll.d.ts.map +1 -1
- package/esm/types/2_poll.js +1 -1
- package/esm/types/3_chat_member_updated.d.ts +1 -1
- package/esm/types/3_chat_member_updated.d.ts.map +1 -1
- package/esm/types/3_chat_member_updated.js +2 -2
- package/esm/types/3_gift.d.ts +2 -2
- package/esm/types/3_gift.d.ts.map +1 -1
- package/esm/types/3_gift.js +3 -3
- package/esm/types/3_join_request.d.ts +1 -1
- package/esm/types/3_join_request.d.ts.map +1 -1
- package/esm/types/3_join_request.js +3 -3
- package/esm/types/3_story.d.ts +1 -1
- package/esm/types/3_story.d.ts.map +1 -1
- package/esm/types/3_story.js +2 -2
- package/esm/types/4_claimed_gift.d.ts +1 -1
- package/esm/types/4_claimed_gift.d.ts.map +1 -1
- package/esm/types/4_claimed_gift.js +2 -2
- package/esm/types/4_link_preview.d.ts +1 -1
- package/esm/types/4_link_preview.d.ts.map +1 -1
- package/esm/types/4_link_preview.js +2 -2
- package/esm/types/5_message.d.ts +3 -3
- package/esm/types/5_message.d.ts.map +1 -1
- package/esm/types/5_message.js +6 -6
- package/esm/types/6_chat_list_item.js +1 -1
- package/esm/types/6_topic.d.ts +1 -1
- package/esm/types/6_topic.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/1_utilities.d.ts +0 -1
- package/script/1_utilities.d.ts.map +1 -1
- package/script/1_utilities.js +0 -1
- package/script/client/0_params.d.ts +8 -8
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +2 -3
- package/script/client/3_message_manager.js +10 -10
- package/script/client/3_video_chat_manager.d.ts +1 -1
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +1 -1
- package/script/client/4_chat_list_manager.js +5 -5
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +5 -6
- package/script/client/5_client.d.ts +2 -1
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +3 -3
- package/script/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/{esm/deps/jsr.io/@std/internal/1.0.8 → script/deps/jsr.io/@std/internal/1.0.9}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.d.ts.map +1 -1
- package/script/types/0_chat_member_rights.d.ts +1 -1
- package/script/types/0_chat_member_rights.d.ts.map +1 -1
- package/script/types/0_chat_member_rights.js +2 -2
- package/script/types/0_giveaway_parameters.d.ts +1 -1
- package/script/types/0_giveaway_parameters.d.ts.map +1 -1
- package/script/types/0_giveaway_parameters.js +1 -2
- 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 -2
- package/script/types/2_business_connection.d.ts +1 -1
- package/script/types/2_business_connection.d.ts.map +1 -1
- package/script/types/2_business_connection.js +1 -2
- package/script/types/2_chat_member.d.ts +3 -3
- package/script/types/2_chat_member.d.ts.map +1 -1
- package/script/types/2_chat_member.js +5 -5
- package/script/types/2_chat_settings.d.ts +3 -3
- package/script/types/2_chat_settings.d.ts.map +1 -1
- package/script/types/2_chat_settings.js +3 -3
- package/script/types/2_forward_header.d.ts +1 -1
- package/script/types/2_forward_header.d.ts.map +1 -1
- package/script/types/2_forward_header.js +5 -5
- package/script/types/2_gift_upgraded_component.d.ts +1 -1
- package/script/types/2_gift_upgraded_component.d.ts.map +1 -1
- package/script/types/2_gift_upgraded_component.js +1 -1
- package/script/types/2_inactive_chat.d.ts +1 -1
- package/script/types/2_inactive_chat.d.ts.map +1 -1
- package/script/types/2_inactive_chat.js +1 -2
- package/script/types/2_invite_link.d.ts +1 -1
- package/script/types/2_invite_link.d.ts.map +1 -1
- package/script/types/2_invite_link.js +1 -1
- package/script/types/2_message_reaction_count.d.ts +1 -1
- package/script/types/2_message_reaction_count.d.ts.map +1 -1
- package/script/types/2_message_reaction_count.js +1 -2
- package/script/types/2_message_reactions.d.ts +1 -1
- package/script/types/2_message_reactions.d.ts.map +1 -1
- package/script/types/2_message_reactions.js +1 -1
- package/script/types/2_poll.d.ts +1 -1
- package/script/types/2_poll.d.ts.map +1 -1
- package/script/types/2_poll.js +1 -1
- package/script/types/3_chat_member_updated.d.ts +1 -1
- package/script/types/3_chat_member_updated.d.ts.map +1 -1
- package/script/types/3_chat_member_updated.js +1 -1
- package/script/types/3_gift.d.ts +2 -2
- package/script/types/3_gift.d.ts.map +1 -1
- package/script/types/3_gift.js +2 -2
- package/script/types/3_join_request.d.ts +1 -1
- package/script/types/3_join_request.d.ts.map +1 -1
- package/script/types/3_join_request.js +2 -2
- package/script/types/3_story.d.ts +1 -1
- package/script/types/3_story.d.ts.map +1 -1
- package/script/types/3_story.js +1 -1
- package/script/types/4_claimed_gift.d.ts +1 -1
- package/script/types/4_claimed_gift.d.ts.map +1 -1
- package/script/types/4_claimed_gift.js +1 -1
- package/script/types/4_link_preview.d.ts +1 -1
- package/script/types/4_link_preview.d.ts.map +1 -1
- package/script/types/4_link_preview.js +1 -1
- package/script/types/5_message.d.ts +3 -3
- package/script/types/5_message.d.ts.map +1 -1
- package/script/types/5_message.js +5 -5
- package/script/types/6_chat_list_item.js +1 -1
- package/script/types/6_topic.d.ts +1 -1
- package/script/types/6_topic.d.ts.map +1 -1
- package/esm/utilities/0_cache_map.d.ts +0 -26
- package/esm/utilities/0_cache_map.d.ts.map +0 -1
- package/esm/utilities/0_cache_map.js +0 -52
- package/esm/utilities/0_cache_map_test.d.ts.map +0 -1
- package/script/utilities/0_cache_map.d.ts +0 -26
- package/script/utilities/0_cache_map.d.ts.map +0 -1
- package/script/utilities/0_cache_map.js +0 -56
- package/script/utilities/0_cache_map_test.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.8 → 1.0.9}/types.js +0 -0
|
@@ -1088,7 +1088,7 @@ class Client extends Composer {
|
|
|
1088
1088
|
return { _: "inputPeerSelf" };
|
|
1089
1089
|
}
|
|
1090
1090
|
const inputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getInputPeerInner).call(this, id);
|
|
1091
|
-
if (((_2_tl_js_1.Api.is("inputPeerUser", inputPeer) || _2_tl_js_1.Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "
|
|
1091
|
+
if (((_2_tl_js_1.Api.is("inputPeerUser", inputPeer) || _2_tl_js_1.Api.is("inputPeerChannel", inputPeer)) && inputPeer.access_hash == 0n) && await this.storage.getAccountType() == "user") {
|
|
1092
1092
|
if ("channel_id" in inputPeer) {
|
|
1093
1093
|
inputPeer.access_hash = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChannelAccessHash).call(this, inputPeer.channel_id);
|
|
1094
1094
|
}
|
|
@@ -1348,14 +1348,14 @@ class Client extends Composer {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
}, _Client_getUserAccessHash = async function _Client_getUserAccessHash(userId) {
|
|
1350
1350
|
const users = await this.invoke({ _: "users.getUsers", id: [{ _: "inputUser", user_id: userId, access_hash: 0n }] });
|
|
1351
|
-
const user = _2_tl_js_1.Api.
|
|
1351
|
+
const user = _2_tl_js_1.Api.is("user", users[0]) ? users[0] : undefined;
|
|
1352
1352
|
if (user) {
|
|
1353
1353
|
await this.messageStorage.setEntity(user);
|
|
1354
1354
|
}
|
|
1355
1355
|
return user?.access_hash ?? 0n;
|
|
1356
1356
|
}, _Client_getChannelAccessHash = async function _Client_getChannelAccessHash(channelId) {
|
|
1357
1357
|
const channels = await this.invoke({ _: "channels.getChannels", id: [{ _: "inputChannel", channel_id: channelId, access_hash: 0n }] });
|
|
1358
|
-
const channel = _2_tl_js_1.Api.
|
|
1358
|
+
const channel = _2_tl_js_1.Api.is("channel", channels.chats[0]) ? channels.chats[0] : undefined;
|
|
1359
1359
|
if (channel) {
|
|
1360
1360
|
await this.messageStorage.setEntity(channel);
|
|
1361
1361
|
}
|
|
@@ -4,10 +4,10 @@ exports.assertEquals = assertEquals;
|
|
|
4
4
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
const equal_js_1 = require("./equal.js");
|
|
7
|
-
const build_message_js_1 = require("../../internal/1.0.
|
|
8
|
-
const diff_js_1 = require("../../internal/1.0.
|
|
9
|
-
const diff_str_js_1 = require("../../internal/1.0.
|
|
10
|
-
const format_js_1 = require("../../internal/1.0.
|
|
7
|
+
const build_message_js_1 = require("../../internal/1.0.9/build_message.js");
|
|
8
|
+
const diff_js_1 = require("../../internal/1.0.9/diff.js");
|
|
9
|
+
const diff_str_js_1 = require("../../internal/1.0.9/diff_str.js");
|
|
10
|
+
const format_js_1 = require("../../internal/1.0.9/format.js");
|
|
11
11
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
12
12
|
/**
|
|
13
13
|
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/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,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAanD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,aAAa,CAWvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,CAAC,EAAE,CAAC,EAAE,EACN,CAAC,EAAE,CAAC,EAAE,EACN,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,GACzB,KAAK,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAgCD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/format.ts"],"names":[],"mappings":"AAuBA,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAezC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.9/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"}
|
|
@@ -56,5 +56,5 @@ export interface ChatMemberRights {
|
|
|
56
56
|
canManageTopics?: boolean;
|
|
57
57
|
}
|
|
58
58
|
export declare function constructChatMemberRights(rights: Api.chatBannedRights): ChatMemberRights;
|
|
59
|
-
export declare function chatMemberRightsToTlObject(rights?: ChatMemberRights,
|
|
59
|
+
export declare function chatMemberRightsToTlObject(rights?: ChatMemberRights, until?: number): Api.chatBannedRights;
|
|
60
60
|
//# sourceMappingURL=0_chat_member_rights.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_chat_member_rights.d.ts","sourceRoot":"","sources":["../../src/types/0_chat_member_rights.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;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
canManageTopics: rights.manage_topics ? true : undefined,
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function chatMemberRightsToTlObject(rights,
|
|
46
|
+
function chatMemberRightsToTlObject(rights, until) {
|
|
47
47
|
return {
|
|
48
48
|
_: "chatBannedRights",
|
|
49
|
-
until_date:
|
|
49
|
+
until_date: until ?? 0,
|
|
50
50
|
send_messages: rights?.canSendMessages !== false ? undefined : true,
|
|
51
51
|
send_audios: rights?.canSendAudio !== false ? undefined : true,
|
|
52
52
|
send_docs: rights?.canSendDocuments !== false ? undefined : true,
|
|
@@ -25,7 +25,7 @@ export interface GiveawayParameters {
|
|
|
25
25
|
/** The identifiers of additional chats that the user must subscribe to in order to be eligible for the prizes. */
|
|
26
26
|
additionalChatIds: number[];
|
|
27
27
|
/** A point in time within the future in which the winners will be selected. */
|
|
28
|
-
winnerSelectionDate:
|
|
28
|
+
winnerSelectionDate: number;
|
|
29
29
|
/** Whether only new members of the chats will be eligible for the prizes. */
|
|
30
30
|
onlyNewMembers: boolean;
|
|
31
31
|
/** A list of countries that are eligible for the prizes. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0_giveaway_parameters.d.ts","sourceRoot":"","sources":["../../src/types/0_giveaway_parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"0_giveaway_parameters.d.ts","sourceRoot":"","sources":["../../src/types/0_giveaway_parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,2BAA2B;AAC3B,MAAM,WAAW,kBAAkB;IACjC,gHAAgH;IAChH,aAAa,EAAE,MAAM,CAAC;IACtB,kHAAkH;IAClH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,+EAA+E;IAC/E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,cAAc,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,GAAG,CAAC,oBAAoB,GAAG,kBAAkB,CAQ3F"}
|
|
@@ -20,13 +20,12 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructGiveawayParameters = constructGiveawayParameters;
|
|
23
|
-
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
24
|
function constructGiveawayParameters(g) {
|
|
26
25
|
const countries = g.countries_iso2 ?? [];
|
|
27
26
|
const boostedChatId = _2_tl_js_1.Api.peerToChatId({ _: "peerChannel", channel_id: g.channels[0] });
|
|
28
27
|
const additionalChatIds = g.channels.slice(1).map((v) => _2_tl_js_1.Api.peerToChatId({ _: "peerChannel", channel_id: v }));
|
|
29
28
|
const onlyNewMembers = g.only_new_subscribers ? true : false;
|
|
30
|
-
const winnerSelectionDate =
|
|
29
|
+
const winnerSelectionDate = g.until_date;
|
|
31
30
|
return { boostedChatId, additionalChatIds, winnerSelectionDate, onlyNewMembers, countries };
|
|
32
31
|
}
|
|
@@ -48,7 +48,7 @@ export interface VideoChatActive extends _VideoChatCommon, _VideoChatNotEndedCom
|
|
|
48
48
|
export interface VideoChatScheduled extends _VideoChatCommon, _VideoChatNotEndedCommon {
|
|
49
49
|
type: "scheduled";
|
|
50
50
|
/** The point in time in which the video chat will be started. */
|
|
51
|
-
scheduledFor:
|
|
51
|
+
scheduledFor: number;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* An ended 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;
|
|
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,UAAU,EAAE,OAAO,CAAC;IACpB,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,SAAS,EAAE,OAAO,CAAC;CACpB;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,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE9E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,SAAS,CAgCjE"}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructVideoChat = constructVideoChat;
|
|
23
|
-
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
23
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
25
24
|
function constructVideoChat(call) {
|
|
26
25
|
const id = String(call.id);
|
|
@@ -40,7 +39,7 @@ function constructVideoChat(call) {
|
|
|
40
39
|
type: "scheduled",
|
|
41
40
|
id,
|
|
42
41
|
title,
|
|
43
|
-
scheduledFor:
|
|
42
|
+
scheduledFor: call.schedule_date,
|
|
44
43
|
liveStream,
|
|
45
44
|
participantCount,
|
|
46
45
|
};
|
|
@@ -27,7 +27,7 @@ export interface BusinessConnection {
|
|
|
27
27
|
/** The business account that the connection is made with. */
|
|
28
28
|
user: User;
|
|
29
29
|
/** The point in time in which the connection was recently updated. */
|
|
30
|
-
date:
|
|
30
|
+
date: number;
|
|
31
31
|
/** Whether the bot can reply to older chats. */
|
|
32
32
|
canReply: boolean;
|
|
33
33
|
/** Whether the connection is active. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_business_connection.d.ts","sourceRoot":"","sources":["../../src/types/2_business_connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"2_business_connection.d.ts","sourceRoot":"","sources":["../../src/types/2_business_connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,IAAI,EAAE,IAAI,CAAC;IACX,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,2BAA2B,CAAC,UAAU,EAAE,GAAG,CAAC,qBAAqB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAQ7I"}
|
|
@@ -20,13 +20,12 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructBusinessConnection = constructBusinessConnection;
|
|
23
|
-
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
23
|
const _1_user_js_1 = require("./1_user.js");
|
|
25
24
|
async function constructBusinessConnection(connection, getEntity) {
|
|
26
25
|
return {
|
|
27
26
|
id: connection.connection_id,
|
|
28
27
|
user: (0, _1_user_js_1.constructUser)((await getEntity({ ...connection, _: "peerUser" }))),
|
|
29
|
-
date:
|
|
28
|
+
date: connection.date,
|
|
30
29
|
canReply: !!connection.rights?.reply,
|
|
31
30
|
isEnabled: !connection.disabled,
|
|
32
31
|
};
|
|
@@ -44,14 +44,14 @@ export interface ChatMemberAdministrator extends _ChatMemberBase {
|
|
|
44
44
|
/** @unlisted */
|
|
45
45
|
export interface ChatMemberMember extends _ChatMemberBase {
|
|
46
46
|
status: "member";
|
|
47
|
-
|
|
47
|
+
until?: number;
|
|
48
48
|
}
|
|
49
49
|
/** @unlisted */
|
|
50
50
|
export interface ChatMemberRestricted extends _ChatMemberBase {
|
|
51
51
|
status: "restricted";
|
|
52
52
|
isMember: boolean;
|
|
53
53
|
rights: ChatMemberRights;
|
|
54
|
-
|
|
54
|
+
until?: number;
|
|
55
55
|
}
|
|
56
56
|
/** @unlisted */
|
|
57
57
|
export interface ChatMemberLeft extends _ChatMemberBase {
|
|
@@ -60,7 +60,7 @@ export interface ChatMemberLeft extends _ChatMemberBase {
|
|
|
60
60
|
/** @unlisted */
|
|
61
61
|
export interface ChatMemberBanned extends _ChatMemberBase {
|
|
62
62
|
status: "banned";
|
|
63
|
-
|
|
63
|
+
until?: number;
|
|
64
64
|
}
|
|
65
65
|
/** A chat member. */
|
|
66
66
|
export type ChatMember = ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_chat_member.d.ts","sourceRoot":"","sources":["../../src/types/2_chat_member.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAoC,MAAM,kCAAkC,CAAC;AAC7G,OAAO,EAAE,gBAAgB,EAA6B,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzG,gBAAgB;AAChB,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,MAAM,EAAE,QAAQ,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"2_chat_member.d.ts","sourceRoot":"","sources":["../../src/types/2_chat_member.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO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jB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAqB;AACrB,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAEnJ,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,GAAG,GAAG,CAAC,eAAe,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CA+EjJ"}
|
|
@@ -54,13 +54,13 @@ async function constructChatMember(participant, getEntity) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
else if (_2_tl_js_1.Api.is("channelParticipantBanned", participant)) {
|
|
57
|
-
const
|
|
57
|
+
const until = participant.banned_rights.until_date ? participant.banned_rights.until_date : undefined;
|
|
58
58
|
if (!participant.banned_rights.view_messages) {
|
|
59
59
|
participant.peer;
|
|
60
60
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
61
61
|
status: "banned",
|
|
62
62
|
user,
|
|
63
|
-
|
|
63
|
+
until,
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
const isMember = participant.left ? true : false;
|
|
@@ -70,15 +70,15 @@ async function constructChatMember(participant, getEntity) {
|
|
|
70
70
|
user,
|
|
71
71
|
isMember,
|
|
72
72
|
rights,
|
|
73
|
-
|
|
73
|
+
until,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
else if (_2_tl_js_1.Api.is("channelParticipantSelf", participant)) {
|
|
77
|
-
const
|
|
77
|
+
const until = participant.subscription_until_date ? participant.subscription_until_date : undefined;
|
|
78
78
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
79
79
|
status: "member",
|
|
80
80
|
user,
|
|
81
|
-
|
|
81
|
+
until,
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
else if (_2_tl_js_1.Api.is("channelParticipantLeft", participant)) {
|
|
@@ -33,14 +33,14 @@ export interface ChatSettings {
|
|
|
33
33
|
businessBotCanReply: boolean;
|
|
34
34
|
distance?: number;
|
|
35
35
|
joinRequestChatTitle?: string;
|
|
36
|
-
joinRequestDate?:
|
|
36
|
+
joinRequestDate?: number;
|
|
37
37
|
businessBot?: User;
|
|
38
38
|
businessBotUrl?: string;
|
|
39
39
|
messagePrice?: number;
|
|
40
40
|
registrationMonth?: string;
|
|
41
41
|
phoneCountry?: string;
|
|
42
|
-
nameChangeDate?:
|
|
43
|
-
photoChangeDate?:
|
|
42
|
+
nameChangeDate?: number;
|
|
43
|
+
photoChangeDate?: number;
|
|
44
44
|
}
|
|
45
45
|
export declare function constructChatSettings(settings_: Api.messages_peerSettings): ChatSettings;
|
|
46
46
|
//# sourceMappingURL=2_chat_settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_chat_settings.d.ts","sourceRoot":"","sources":["../../src/types/2_chat_settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"2_chat_settings.d.ts","sourceRoot":"","sources":["../../src/types/2_chat_settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,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"}
|
|
@@ -38,13 +38,13 @@ function constructChatSettings(settings_) {
|
|
|
38
38
|
businessBotCanReply: settings_.settings.business_bot_can_reply || false,
|
|
39
39
|
distance: settings_.settings.geo_distance,
|
|
40
40
|
joinRequestChatTitle: settings_.settings.request_chat_title,
|
|
41
|
-
joinRequestDate: settings_.settings.request_chat_date ?
|
|
41
|
+
joinRequestDate: settings_.settings.request_chat_date ? settings_.settings.request_chat_date : undefined,
|
|
42
42
|
businessBotUrl: settings_.settings.business_bot_manage_url,
|
|
43
43
|
messagePrice: settings_.settings.charge_paid_message_stars ? Number(settings_.settings.charge_paid_message_stars) : undefined,
|
|
44
44
|
registrationMonth: settings_.settings.registration_month,
|
|
45
45
|
phoneCountry: settings_.settings.phone_country,
|
|
46
|
-
nameChangeDate: settings_.settings.name_change_date ?
|
|
47
|
-
photoChangeDate: settings_.settings.photo_change_date ?
|
|
46
|
+
nameChangeDate: settings_.settings.name_change_date ? settings_.settings.name_change_date : undefined,
|
|
47
|
+
photoChangeDate: settings_.settings.photo_change_date ? settings_.settings.photo_change_date : undefined,
|
|
48
48
|
};
|
|
49
49
|
const bot = settings_.users.find((v) => v.id == settings_.settings.business_bot_id);
|
|
50
50
|
if (_2_tl_js_1.Api.is("user", bot)) {
|
|
@@ -23,7 +23,7 @@ import { ChatPChannel, ChatPSupergroup } from "./1_chat_p.js";
|
|
|
23
23
|
import { User } from "./1_user.js";
|
|
24
24
|
/** @unlisted */
|
|
25
25
|
export interface _ForwardHeaderCommon {
|
|
26
|
-
date:
|
|
26
|
+
date: number;
|
|
27
27
|
}
|
|
28
28
|
/** @unlisted */
|
|
29
29
|
export interface ForwardHeaderUser extends _ForwardHeaderCommon {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_forward_header.d.ts","sourceRoot":"","sources":["../../src/types/2_forward_header.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAiB,IAAI,EAAE,MAAM,aAAa,CAAC;AAElD,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,
|
|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BAAsB,CAAC,SAAS,EAAE,GAAG,CAAC,gBAAgB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CA8C7H"}
|
|
@@ -32,7 +32,7 @@ async function constructForwardHeader(fwdHeader, getEntity) {
|
|
|
32
32
|
}
|
|
33
33
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
34
34
|
type: "channel",
|
|
35
|
-
date:
|
|
35
|
+
date: fwdHeader.date,
|
|
36
36
|
chat: (0, _1_chat_p_js_1.constructChatP)(chat),
|
|
37
37
|
messageId: fwdHeader.channel_post,
|
|
38
38
|
authorSignature: fwdHeader.post_author,
|
|
@@ -45,7 +45,7 @@ async function constructForwardHeader(fwdHeader, getEntity) {
|
|
|
45
45
|
}
|
|
46
46
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
47
47
|
type: "supergroup",
|
|
48
|
-
date:
|
|
48
|
+
date: fwdHeader.date,
|
|
49
49
|
chat: (0, _1_chat_p_js_1.constructChatP)(chat),
|
|
50
50
|
title: fwdHeader.post_author,
|
|
51
51
|
});
|
|
@@ -57,21 +57,21 @@ async function constructForwardHeader(fwdHeader, getEntity) {
|
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
59
|
type: "user",
|
|
60
|
-
date:
|
|
60
|
+
date: fwdHeader.date,
|
|
61
61
|
user: (0, _1_user_js_1.constructUser)(user),
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (fwdHeader.from_name) {
|
|
65
65
|
return {
|
|
66
66
|
type: "hidden",
|
|
67
|
-
date:
|
|
67
|
+
date: fwdHeader.date,
|
|
68
68
|
name: fwdHeader.from_name,
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
72
|
return {
|
|
73
73
|
type: "unsupported",
|
|
74
|
-
date:
|
|
74
|
+
date: fwdHeader.date,
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_gift_upgraded_component.d.ts","sourceRoot":"","sources":["../../src/types/2_gift_upgraded_component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAqB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,yFAAyF;IACzF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,qBAAqB;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACnD,qBAAqB;IACrB,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"2_gift_upgraded_component.d.ts","sourceRoot":"","sources":["../../src/types/2_gift_upgraded_component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAqB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,yFAAyF;IACzF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,qBAAqB;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACnD,qBAAqB;IACrB,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,GAAG,4BAA4B,GAAG,6BAA6B,GAAG,oCAAoC,CAAC;AAErK,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,GAAG,CAAC,iBAAiB,GAAG,qBAAqB,CA+DtG"}
|
|
@@ -81,7 +81,7 @@ function constructGiftUpgradedComponent(attribute) {
|
|
|
81
81
|
type: "originalDetails",
|
|
82
82
|
senderId: attribute.sender_id ? Number(attribute.sender_id) : undefined,
|
|
83
83
|
recipientId: Number(attribute.recipient_id),
|
|
84
|
-
date:
|
|
84
|
+
date: attribute.date,
|
|
85
85
|
message: attribute.message?.text,
|
|
86
86
|
entities: attribute.message ? attribute.message.entities.map(_0_message_entity_js_1.constructMessageEntity).filter((v) => !!v) : undefined,
|
|
87
87
|
});
|
|
@@ -22,7 +22,7 @@ import { ChatP } from "./1_chat_p.js";
|
|
|
22
22
|
/** An inactive chat. */
|
|
23
23
|
export interface InactiveChat {
|
|
24
24
|
/** The time which the chat was last active. */
|
|
25
|
-
lastActivity:
|
|
25
|
+
lastActivity: number;
|
|
26
26
|
/** The chat that has been marked as inactive. */
|
|
27
27
|
chat: ChatP;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_inactive_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_inactive_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"2_inactive_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_inactive_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AAEtD,wBAAwB;AACxB,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,IAAI,EAAE,KAAK,CAAC;CACb;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,YAAY,CASzF"}
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructInactiveChat = constructInactiveChat;
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
|
-
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
24
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
26
25
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
27
26
|
function constructInactiveChat(chat_, lastActivity) {
|
|
@@ -30,7 +29,7 @@ function constructInactiveChat(chat_, lastActivity) {
|
|
|
30
29
|
}
|
|
31
30
|
const chat = (0, _1_chat_p_js_1.constructChatP)(chat_);
|
|
32
31
|
return {
|
|
33
|
-
lastActivity:
|
|
32
|
+
lastActivity: lastActivity,
|
|
34
33
|
chat,
|
|
35
34
|
};
|
|
36
35
|
}
|
|
@@ -33,7 +33,7 @@ export interface InviteLink {
|
|
|
33
33
|
/** An optional title. */
|
|
34
34
|
title?: string;
|
|
35
35
|
/** A point in time within the future in which the invite link will be revoked. */
|
|
36
|
-
expiresAt?:
|
|
36
|
+
expiresAt?: number;
|
|
37
37
|
/** The times the invite link can be used. */
|
|
38
38
|
limit?: number;
|
|
39
39
|
/** The number of pending join requests originating from this invite link. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_invite_link.d.ts","sourceRoot":"","sources":["../../src/types/2_invite_link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,E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EAAE,MAAM,CAAC;CAChC;AAED,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAyB3H"}
|
|
@@ -33,7 +33,7 @@ async function constructInviteLink(inviteLink_, getEntity) {
|
|
|
33
33
|
const requiresApproval = inviteLink_.request_needed ? true : false;
|
|
34
34
|
const revoked = inviteLink_.revoked ? true : false;
|
|
35
35
|
const title = inviteLink_.title;
|
|
36
|
-
const expiresAt = inviteLink_.expire_date ?
|
|
36
|
+
const expiresAt = inviteLink_.expire_date ? inviteLink_.expire_date : undefined;
|
|
37
37
|
const limit = inviteLink_.usage_limit ? inviteLink_.usage_limit : undefined;
|
|
38
38
|
const pendingJoinRequestCount = inviteLink_.requested;
|
|
39
39
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
@@ -28,7 +28,7 @@ export interface MessageReactionCount {
|
|
|
28
28
|
/** The message's identifier. */
|
|
29
29
|
messageId: number;
|
|
30
30
|
/** The point in time in which the change was made. */
|
|
31
|
-
date:
|
|
31
|
+
date: number;
|
|
32
32
|
/** The reactions made to the post. */
|
|
33
33
|
reactions: ReactionCount[];
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_message_reaction_count.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;
|
|
1
|
+
{"version":3,"file":"2_message_reaction_count.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,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,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE9E,2DAA2D;AAC3D,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAsB,6BAA6B,CAAC,MAAM,EAAE,GAAG,CAAC,yBAAyB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAYxJ"}
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.constructMessageReactionCount = constructMessageReactionCount;
|
|
23
|
-
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
23
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
25
24
|
const _1_reaction_count_js_1 = require("./1_reaction_count.js");
|
|
26
25
|
async function constructMessageReactionCount(update, getEntity) {
|
|
27
|
-
const date =
|
|
26
|
+
const date = update.date;
|
|
28
27
|
const reactions = update.reactions.map((v) => (0, _1_reaction_count_js_1.constructReactionCount)(v));
|
|
29
28
|
const entity = await getEntity(update.peer);
|
|
30
29
|
if (entity) {
|
|
@@ -33,7 +33,7 @@ export interface MessageReactions {
|
|
|
33
33
|
/** The chat that changed its reactions to the message. Unset if done on behalf of a user. */
|
|
34
34
|
actorChat?: ChatP;
|
|
35
35
|
/** The point in time in which the change was made. */
|
|
36
|
-
date:
|
|
36
|
+
date: number;
|
|
37
37
|
/** The previous reactions. */
|
|
38
38
|
oldReactions: Reaction[];
|
|
39
39
|
/** The current reactions. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_message_reactions.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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C;IACzB,6BAA6B;IAC7B,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAkC/I"}
|
|
@@ -26,7 +26,7 @@ const _0_reaction_js_1 = require("./0_reaction.js");
|
|
|
26
26
|
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
27
27
|
const _1_user_js_1 = require("./1_user.js");
|
|
28
28
|
async function constructMessageReactions(update, getEntity) {
|
|
29
|
-
const date =
|
|
29
|
+
const date = update.date;
|
|
30
30
|
const oldReactions = update.old_reactions.map((v) => (0, _0_reaction_js_1.constructReaction)(v));
|
|
31
31
|
const newReactions = update.new_reactions.map((v) => (0, _0_reaction_js_1.constructReaction)(v));
|
|
32
32
|
const messageId = update.msg_id;
|
package/script/types/2_poll.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface Poll {
|
|
|
49
49
|
/** Duration of the poll in seconds. */
|
|
50
50
|
openPeriod?: number;
|
|
51
51
|
/** The time in which the poll will be closed. */
|
|
52
|
-
closeDate?:
|
|
52
|
+
closeDate?: number;
|
|
53
53
|
}
|
|
54
54
|
export declare function constructPoll(media_: Api.messageMediaPoll): Poll;
|
|
55
55
|
//# sourceMappingURL=2_poll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_poll.d.ts","sourceRoot":"","sources":["../../src/types/2_poll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA0B,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAuB,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErE,cAAc;AACd,MAAM,WAAW,IAAI;IACnB,kCAAkC;IAClC,EAAE,EAAE,MAAM,C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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,mCAAmC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAoBhE"}
|
package/script/types/2_poll.js
CHANGED
|
@@ -41,6 +41,6 @@ function constructPoll(media_) {
|
|
|
41
41
|
explanation: media_.results.solution,
|
|
42
42
|
explanationEntities: media_.results.solution_entities?.map(_0_message_entity_js_1.constructMessageEntity).filter((v) => v != null),
|
|
43
43
|
openPeriod: poll.close_period,
|
|
44
|
-
closeDate: poll.close_date
|
|
44
|
+
closeDate: poll.close_date,
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -30,7 +30,7 @@ export interface ChatMemberUpdated {
|
|
|
30
30
|
/** The one who made the change. */
|
|
31
31
|
from: User;
|
|
32
32
|
/** The point in time in which the chat member's status was changed. */
|
|
33
|
-
date:
|
|
33
|
+
date: number;
|
|
34
34
|
/** The old status of the chat member. */
|
|
35
35
|
oldChatMember: ChatMember;
|
|
36
36
|
/** The new status of the chat member. */
|
|
@@ -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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