@mtkruto/node 0.0.980 → 0.0.982
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/client/0_message.js +1 -1
- package/esm/client/3_client.d.ts +1 -1
- package/esm/client/3_client.js +1 -1
- package/esm/constants.d.ts +2 -2
- package/esm/constants.js +2 -2
- package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_object_match.js +1 -1
- package/esm/deps.d.ts +2 -2
- package/esm/deps.js +2 -2
- package/esm/tl/2_types.d.ts +127 -2
- package/esm/tl/2_types.js +469 -19
- package/esm/tl/3_functions.d.ts +57 -4
- package/esm/tl/3_functions.js +221 -15
- package/package.json +1 -1
- package/script/client/0_message.js +1 -1
- package/script/client/3_client.d.ts +1 -1
- package/script/client/3_client.js +1 -1
- package/script/constants.d.ts +2 -2
- package/script/constants.js +2 -2
- package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_object_match.js +1 -1
- package/script/deps.d.ts +2 -2
- package/script/deps.js +2 -2
- package/script/tl/2_types.d.ts +127 -2
- package/script/tl/2_types.js +504 -44
- package/script/tl/3_functions.d.ts +57 -4
- package/script/tl/3_functions.js +232 -23
- package/esm/deps/deno.land/std@0.196.0/testing/asserts.d.ts +0 -329
- package/esm/deps/deno.land/std@0.196.0/testing/asserts.js +0 -330
- package/script/deps/deno.land/std@0.196.0/testing/asserts.d.ts +0 -329
- package/script/deps/deno.land/std@0.196.0/testing/asserts.js +0 -333
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/_util/diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/_util/diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/encoding/base64.js +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.196.0 → std@0.198.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/_util/diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/_util/diff.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/encoding/base64.js +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.196.0 → std@0.198.0}/fmt/colors.js +0 -0
package/esm/tl/3_functions.d.ts
CHANGED
|
@@ -1414,30 +1414,36 @@ export declare class ContactsDeleteByPhones extends Function<boolean> {
|
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
1416
|
export declare class ContactsBlock extends Function<boolean> {
|
|
1417
|
+
myStoriesFrom?: true;
|
|
1417
1418
|
id: types.TypeInputPeer;
|
|
1418
1419
|
protected get [id](): number;
|
|
1419
1420
|
static get [paramDesc](): ParamDesc;
|
|
1420
1421
|
protected get [params](): Params;
|
|
1421
1422
|
constructor(params: {
|
|
1423
|
+
myStoriesFrom?: true;
|
|
1422
1424
|
id: types.TypeInputPeer;
|
|
1423
1425
|
});
|
|
1424
1426
|
}
|
|
1425
1427
|
export declare class ContactsUnblock extends Function<boolean> {
|
|
1428
|
+
myStoriesFrom?: true;
|
|
1426
1429
|
id: types.TypeInputPeer;
|
|
1427
1430
|
protected get [id](): number;
|
|
1428
1431
|
static get [paramDesc](): ParamDesc;
|
|
1429
1432
|
protected get [params](): Params;
|
|
1430
1433
|
constructor(params: {
|
|
1434
|
+
myStoriesFrom?: true;
|
|
1431
1435
|
id: types.TypeInputPeer;
|
|
1432
1436
|
});
|
|
1433
1437
|
}
|
|
1434
1438
|
export declare class ContactsGetBlocked extends Function<types.TypeContactsBlocked> {
|
|
1439
|
+
myStoriesFrom?: true;
|
|
1435
1440
|
offset: number;
|
|
1436
1441
|
limit: number;
|
|
1437
1442
|
protected get [id](): number;
|
|
1438
1443
|
static get [paramDesc](): ParamDesc;
|
|
1439
1444
|
protected get [params](): Params;
|
|
1440
1445
|
constructor(params: {
|
|
1446
|
+
myStoriesFrom?: true;
|
|
1441
1447
|
offset: number;
|
|
1442
1448
|
limit: number;
|
|
1443
1449
|
});
|
|
@@ -1621,6 +1627,19 @@ export declare class ContactsToggleStoriesHidden extends Function<boolean> {
|
|
|
1621
1627
|
hidden: boolean;
|
|
1622
1628
|
});
|
|
1623
1629
|
}
|
|
1630
|
+
export declare class ContactsSetBlocked extends Function<boolean> {
|
|
1631
|
+
myStoriesFrom?: true;
|
|
1632
|
+
id: Array<types.TypeInputPeer>;
|
|
1633
|
+
limit: number;
|
|
1634
|
+
protected get [id](): number;
|
|
1635
|
+
static get [paramDesc](): ParamDesc;
|
|
1636
|
+
protected get [params](): Params;
|
|
1637
|
+
constructor(params: {
|
|
1638
|
+
myStoriesFrom?: true;
|
|
1639
|
+
id: Array<types.TypeInputPeer>;
|
|
1640
|
+
limit: number;
|
|
1641
|
+
});
|
|
1642
|
+
}
|
|
1624
1643
|
export declare class MessagesGetMessages extends Function<types.TypeMessagesMessages> {
|
|
1625
1644
|
id: Array<types.TypeInputMessage>;
|
|
1626
1645
|
protected get [id](): number;
|
|
@@ -6158,6 +6177,7 @@ export declare class StoriesSendStory extends Function<types.TypeUpdates> {
|
|
|
6158
6177
|
pinned?: true;
|
|
6159
6178
|
noforwards?: true;
|
|
6160
6179
|
media: types.TypeInputMedia;
|
|
6180
|
+
mediaAreas?: Array<types.TypeMediaArea>;
|
|
6161
6181
|
caption?: string;
|
|
6162
6182
|
entities?: Array<types.TypeMessageEntity>;
|
|
6163
6183
|
privacyRules: Array<types.TypeInputPrivacyRule>;
|
|
@@ -6170,6 +6190,7 @@ export declare class StoriesSendStory extends Function<types.TypeUpdates> {
|
|
|
6170
6190
|
pinned?: true;
|
|
6171
6191
|
noforwards?: true;
|
|
6172
6192
|
media: types.TypeInputMedia;
|
|
6193
|
+
mediaAreas?: Array<types.TypeMediaArea>;
|
|
6173
6194
|
caption?: string;
|
|
6174
6195
|
entities?: Array<types.TypeMessageEntity>;
|
|
6175
6196
|
privacyRules: Array<types.TypeInputPrivacyRule>;
|
|
@@ -6180,6 +6201,7 @@ export declare class StoriesSendStory extends Function<types.TypeUpdates> {
|
|
|
6180
6201
|
export declare class StoriesEditStory extends Function<types.TypeUpdates> {
|
|
6181
6202
|
id: number;
|
|
6182
6203
|
media?: types.TypeInputMedia;
|
|
6204
|
+
mediaAreas?: Array<types.TypeMediaArea>;
|
|
6183
6205
|
caption?: string;
|
|
6184
6206
|
entities?: Array<types.TypeMessageEntity>;
|
|
6185
6207
|
privacyRules?: Array<types.TypeInputPrivacyRule>;
|
|
@@ -6189,6 +6211,7 @@ export declare class StoriesEditStory extends Function<types.TypeUpdates> {
|
|
|
6189
6211
|
constructor(params: {
|
|
6190
6212
|
id: number;
|
|
6191
6213
|
media?: types.TypeInputMedia;
|
|
6214
|
+
mediaAreas?: Array<types.TypeMediaArea>;
|
|
6192
6215
|
caption?: string;
|
|
6193
6216
|
entities?: Array<types.TypeMessageEntity>;
|
|
6194
6217
|
privacyRules?: Array<types.TypeInputPrivacyRule>;
|
|
@@ -6309,17 +6332,21 @@ export declare class StoriesIncrementStoryViews extends Function<boolean> {
|
|
|
6309
6332
|
});
|
|
6310
6333
|
}
|
|
6311
6334
|
export declare class StoriesGetStoryViewsList extends Function<types.StoriesStoryViewsList> {
|
|
6335
|
+
justContacts?: true;
|
|
6336
|
+
reactionsFirst?: true;
|
|
6337
|
+
q?: string;
|
|
6312
6338
|
id: number;
|
|
6313
|
-
|
|
6314
|
-
offsetId: bigint;
|
|
6339
|
+
offset: string;
|
|
6315
6340
|
limit: number;
|
|
6316
6341
|
protected get [id](): number;
|
|
6317
6342
|
static get [paramDesc](): ParamDesc;
|
|
6318
6343
|
protected get [params](): Params;
|
|
6319
6344
|
constructor(params: {
|
|
6345
|
+
justContacts?: true;
|
|
6346
|
+
reactionsFirst?: true;
|
|
6347
|
+
q?: string;
|
|
6320
6348
|
id: number;
|
|
6321
|
-
|
|
6322
|
-
offsetId: bigint;
|
|
6349
|
+
offset: string;
|
|
6323
6350
|
limit: number;
|
|
6324
6351
|
});
|
|
6325
6352
|
}
|
|
@@ -6358,3 +6385,29 @@ export declare class StoriesReport extends Function<boolean> {
|
|
|
6358
6385
|
message: string;
|
|
6359
6386
|
});
|
|
6360
6387
|
}
|
|
6388
|
+
export declare class StoriesActivateStealthMode extends Function<types.TypeUpdates> {
|
|
6389
|
+
past?: true;
|
|
6390
|
+
future?: true;
|
|
6391
|
+
protected get [id](): number;
|
|
6392
|
+
static get [paramDesc](): ParamDesc;
|
|
6393
|
+
protected get [params](): Params;
|
|
6394
|
+
constructor(params?: {
|
|
6395
|
+
past?: true;
|
|
6396
|
+
future?: true;
|
|
6397
|
+
});
|
|
6398
|
+
}
|
|
6399
|
+
export declare class StoriesSendReaction extends Function<types.TypeUpdates> {
|
|
6400
|
+
addToRecent?: true;
|
|
6401
|
+
userId: types.TypeInputUser;
|
|
6402
|
+
storyId: number;
|
|
6403
|
+
reaction: types.TypeReaction;
|
|
6404
|
+
protected get [id](): number;
|
|
6405
|
+
static get [paramDesc](): ParamDesc;
|
|
6406
|
+
protected get [params](): Params;
|
|
6407
|
+
constructor(params: {
|
|
6408
|
+
addToRecent?: true;
|
|
6409
|
+
userId: types.TypeInputUser;
|
|
6410
|
+
storyId: number;
|
|
6411
|
+
reaction: types.TypeReaction;
|
|
6412
|
+
});
|
|
6413
|
+
}
|
package/esm/tl/3_functions.js
CHANGED
|
@@ -4349,72 +4349,104 @@ export class ContactsDeleteByPhones extends Function {
|
|
|
4349
4349
|
}
|
|
4350
4350
|
export class ContactsBlock extends Function {
|
|
4351
4351
|
get [id]() {
|
|
4352
|
-
return
|
|
4352
|
+
return 0x2E2E8734;
|
|
4353
4353
|
}
|
|
4354
4354
|
static get [paramDesc]() {
|
|
4355
4355
|
return [
|
|
4356
|
+
["flags", flags, "#"],
|
|
4357
|
+
["myStoriesFrom", "true", "flags.0?true"],
|
|
4356
4358
|
["id", types.TypeInputPeer, "InputPeer"],
|
|
4357
4359
|
];
|
|
4358
4360
|
}
|
|
4359
4361
|
get [params]() {
|
|
4360
4362
|
return [
|
|
4363
|
+
["flags", flags, "#"],
|
|
4364
|
+
[this.myStoriesFrom ?? null, "true", "flags.0?true"],
|
|
4361
4365
|
[this.id, types.TypeInputPeer, "InputPeer"],
|
|
4362
4366
|
];
|
|
4363
4367
|
}
|
|
4364
4368
|
constructor(params) {
|
|
4365
4369
|
super();
|
|
4370
|
+
Object.defineProperty(this, "myStoriesFrom", {
|
|
4371
|
+
enumerable: true,
|
|
4372
|
+
configurable: true,
|
|
4373
|
+
writable: true,
|
|
4374
|
+
value: void 0
|
|
4375
|
+
});
|
|
4366
4376
|
Object.defineProperty(this, "id", {
|
|
4367
4377
|
enumerable: true,
|
|
4368
4378
|
configurable: true,
|
|
4369
4379
|
writable: true,
|
|
4370
4380
|
value: void 0
|
|
4371
4381
|
});
|
|
4382
|
+
this.myStoriesFrom = params.myStoriesFrom;
|
|
4372
4383
|
this.id = params.id;
|
|
4373
4384
|
}
|
|
4374
4385
|
}
|
|
4375
4386
|
export class ContactsUnblock extends Function {
|
|
4376
4387
|
get [id]() {
|
|
4377
|
-
return
|
|
4388
|
+
return 0xB550D328;
|
|
4378
4389
|
}
|
|
4379
4390
|
static get [paramDesc]() {
|
|
4380
4391
|
return [
|
|
4392
|
+
["flags", flags, "#"],
|
|
4393
|
+
["myStoriesFrom", "true", "flags.0?true"],
|
|
4381
4394
|
["id", types.TypeInputPeer, "InputPeer"],
|
|
4382
4395
|
];
|
|
4383
4396
|
}
|
|
4384
4397
|
get [params]() {
|
|
4385
4398
|
return [
|
|
4399
|
+
["flags", flags, "#"],
|
|
4400
|
+
[this.myStoriesFrom ?? null, "true", "flags.0?true"],
|
|
4386
4401
|
[this.id, types.TypeInputPeer, "InputPeer"],
|
|
4387
4402
|
];
|
|
4388
4403
|
}
|
|
4389
4404
|
constructor(params) {
|
|
4390
4405
|
super();
|
|
4406
|
+
Object.defineProperty(this, "myStoriesFrom", {
|
|
4407
|
+
enumerable: true,
|
|
4408
|
+
configurable: true,
|
|
4409
|
+
writable: true,
|
|
4410
|
+
value: void 0
|
|
4411
|
+
});
|
|
4391
4412
|
Object.defineProperty(this, "id", {
|
|
4392
4413
|
enumerable: true,
|
|
4393
4414
|
configurable: true,
|
|
4394
4415
|
writable: true,
|
|
4395
4416
|
value: void 0
|
|
4396
4417
|
});
|
|
4418
|
+
this.myStoriesFrom = params.myStoriesFrom;
|
|
4397
4419
|
this.id = params.id;
|
|
4398
4420
|
}
|
|
4399
4421
|
}
|
|
4400
4422
|
export class ContactsGetBlocked extends Function {
|
|
4401
4423
|
get [id]() {
|
|
4402
|
-
return
|
|
4424
|
+
return 0x9A868F80;
|
|
4403
4425
|
}
|
|
4404
4426
|
static get [paramDesc]() {
|
|
4405
4427
|
return [
|
|
4428
|
+
["flags", flags, "#"],
|
|
4429
|
+
["myStoriesFrom", "true", "flags.0?true"],
|
|
4406
4430
|
["offset", "number", "int"],
|
|
4407
4431
|
["limit", "number", "int"],
|
|
4408
4432
|
];
|
|
4409
4433
|
}
|
|
4410
4434
|
get [params]() {
|
|
4411
4435
|
return [
|
|
4436
|
+
["flags", flags, "#"],
|
|
4437
|
+
[this.myStoriesFrom ?? null, "true", "flags.0?true"],
|
|
4412
4438
|
[this.offset, "number", "int"],
|
|
4413
4439
|
[this.limit, "number", "int"],
|
|
4414
4440
|
];
|
|
4415
4441
|
}
|
|
4416
4442
|
constructor(params) {
|
|
4417
4443
|
super();
|
|
4444
|
+
Object.defineProperty(this, "myStoriesFrom", {
|
|
4445
|
+
enumerable: true,
|
|
4446
|
+
configurable: true,
|
|
4447
|
+
writable: true,
|
|
4448
|
+
value: void 0
|
|
4449
|
+
});
|
|
4418
4450
|
Object.defineProperty(this, "offset", {
|
|
4419
4451
|
enumerable: true,
|
|
4420
4452
|
configurable: true,
|
|
@@ -4427,6 +4459,7 @@ export class ContactsGetBlocked extends Function {
|
|
|
4427
4459
|
writable: true,
|
|
4428
4460
|
value: void 0
|
|
4429
4461
|
});
|
|
4462
|
+
this.myStoriesFrom = params.myStoriesFrom;
|
|
4430
4463
|
this.offset = params.offset;
|
|
4431
4464
|
this.limit = params.limit;
|
|
4432
4465
|
}
|
|
@@ -5004,6 +5037,51 @@ export class ContactsToggleStoriesHidden extends Function {
|
|
|
5004
5037
|
this.hidden = params.hidden;
|
|
5005
5038
|
}
|
|
5006
5039
|
}
|
|
5040
|
+
export class ContactsSetBlocked extends Function {
|
|
5041
|
+
get [id]() {
|
|
5042
|
+
return 0x94C65C76;
|
|
5043
|
+
}
|
|
5044
|
+
static get [paramDesc]() {
|
|
5045
|
+
return [
|
|
5046
|
+
["flags", flags, "#"],
|
|
5047
|
+
["myStoriesFrom", "true", "flags.0?true"],
|
|
5048
|
+
["id", [types.TypeInputPeer], "Vector<InputPeer>"],
|
|
5049
|
+
["limit", "number", "int"],
|
|
5050
|
+
];
|
|
5051
|
+
}
|
|
5052
|
+
get [params]() {
|
|
5053
|
+
return [
|
|
5054
|
+
["flags", flags, "#"],
|
|
5055
|
+
[this.myStoriesFrom ?? null, "true", "flags.0?true"],
|
|
5056
|
+
[this.id, [types.TypeInputPeer], "Vector<InputPeer>"],
|
|
5057
|
+
[this.limit, "number", "int"],
|
|
5058
|
+
];
|
|
5059
|
+
}
|
|
5060
|
+
constructor(params) {
|
|
5061
|
+
super();
|
|
5062
|
+
Object.defineProperty(this, "myStoriesFrom", {
|
|
5063
|
+
enumerable: true,
|
|
5064
|
+
configurable: true,
|
|
5065
|
+
writable: true,
|
|
5066
|
+
value: void 0
|
|
5067
|
+
});
|
|
5068
|
+
Object.defineProperty(this, "id", {
|
|
5069
|
+
enumerable: true,
|
|
5070
|
+
configurable: true,
|
|
5071
|
+
writable: true,
|
|
5072
|
+
value: void 0
|
|
5073
|
+
});
|
|
5074
|
+
Object.defineProperty(this, "limit", {
|
|
5075
|
+
enumerable: true,
|
|
5076
|
+
configurable: true,
|
|
5077
|
+
writable: true,
|
|
5078
|
+
value: void 0
|
|
5079
|
+
});
|
|
5080
|
+
this.myStoriesFrom = params.myStoriesFrom;
|
|
5081
|
+
this.id = params.id;
|
|
5082
|
+
this.limit = params.limit;
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5007
5085
|
export class MessagesGetMessages extends Function {
|
|
5008
5086
|
get [id]() {
|
|
5009
5087
|
return 0x63C66506;
|
|
@@ -19948,7 +20026,7 @@ export class ChatlistsLeaveChatlist extends Function {
|
|
|
19948
20026
|
}
|
|
19949
20027
|
export class StoriesSendStory extends Function {
|
|
19950
20028
|
get [id]() {
|
|
19951
|
-
return
|
|
20029
|
+
return 0xD455FCEC;
|
|
19952
20030
|
}
|
|
19953
20031
|
static get [paramDesc]() {
|
|
19954
20032
|
return [
|
|
@@ -19956,6 +20034,7 @@ export class StoriesSendStory extends Function {
|
|
|
19956
20034
|
["pinned", "true", "flags.2?true"],
|
|
19957
20035
|
["noforwards", "true", "flags.4?true"],
|
|
19958
20036
|
["media", types.TypeInputMedia, "InputMedia"],
|
|
20037
|
+
["mediaAreas", [types.TypeMediaArea], "flags.5?Vector<MediaArea>"],
|
|
19959
20038
|
["caption", "string", "flags.0?string"],
|
|
19960
20039
|
["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
19961
20040
|
["privacyRules", [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
|
|
@@ -19969,6 +20048,7 @@ export class StoriesSendStory extends Function {
|
|
|
19969
20048
|
[this.pinned ?? null, "true", "flags.2?true"],
|
|
19970
20049
|
[this.noforwards ?? null, "true", "flags.4?true"],
|
|
19971
20050
|
[this.media, types.TypeInputMedia, "InputMedia"],
|
|
20051
|
+
[this.mediaAreas ?? null, [types.TypeMediaArea], "flags.5?Vector<MediaArea>"],
|
|
19972
20052
|
[this.caption ?? null, "string", "flags.0?string"],
|
|
19973
20053
|
[this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
19974
20054
|
[this.privacyRules, [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
|
|
@@ -19996,6 +20076,12 @@ export class StoriesSendStory extends Function {
|
|
|
19996
20076
|
writable: true,
|
|
19997
20077
|
value: void 0
|
|
19998
20078
|
});
|
|
20079
|
+
Object.defineProperty(this, "mediaAreas", {
|
|
20080
|
+
enumerable: true,
|
|
20081
|
+
configurable: true,
|
|
20082
|
+
writable: true,
|
|
20083
|
+
value: void 0
|
|
20084
|
+
});
|
|
19999
20085
|
Object.defineProperty(this, "caption", {
|
|
20000
20086
|
enumerable: true,
|
|
20001
20087
|
configurable: true,
|
|
@@ -20029,6 +20115,7 @@ export class StoriesSendStory extends Function {
|
|
|
20029
20115
|
this.pinned = params.pinned;
|
|
20030
20116
|
this.noforwards = params.noforwards;
|
|
20031
20117
|
this.media = params.media;
|
|
20118
|
+
this.mediaAreas = params.mediaAreas;
|
|
20032
20119
|
this.caption = params.caption;
|
|
20033
20120
|
this.entities = params.entities;
|
|
20034
20121
|
this.privacyRules = params.privacyRules;
|
|
@@ -20038,13 +20125,14 @@ export class StoriesSendStory extends Function {
|
|
|
20038
20125
|
}
|
|
20039
20126
|
export class StoriesEditStory extends Function {
|
|
20040
20127
|
get [id]() {
|
|
20041
|
-
return
|
|
20128
|
+
return 0xA9B91AE4;
|
|
20042
20129
|
}
|
|
20043
20130
|
static get [paramDesc]() {
|
|
20044
20131
|
return [
|
|
20045
20132
|
["flags", flags, "#"],
|
|
20046
20133
|
["id", "number", "int"],
|
|
20047
20134
|
["media", types.TypeInputMedia, "flags.0?InputMedia"],
|
|
20135
|
+
["mediaAreas", [types.TypeMediaArea], "flags.3?Vector<MediaArea>"],
|
|
20048
20136
|
["caption", "string", "flags.1?string"],
|
|
20049
20137
|
["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
20050
20138
|
["privacyRules", [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
|
|
@@ -20055,6 +20143,7 @@ export class StoriesEditStory extends Function {
|
|
|
20055
20143
|
["flags", flags, "#"],
|
|
20056
20144
|
[this.id, "number", "int"],
|
|
20057
20145
|
[this.media ?? null, types.TypeInputMedia, "flags.0?InputMedia"],
|
|
20146
|
+
[this.mediaAreas ?? null, [types.TypeMediaArea], "flags.3?Vector<MediaArea>"],
|
|
20058
20147
|
[this.caption ?? null, "string", "flags.1?string"],
|
|
20059
20148
|
[this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
20060
20149
|
[this.privacyRules ?? null, [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
|
|
@@ -20074,6 +20163,12 @@ export class StoriesEditStory extends Function {
|
|
|
20074
20163
|
writable: true,
|
|
20075
20164
|
value: void 0
|
|
20076
20165
|
});
|
|
20166
|
+
Object.defineProperty(this, "mediaAreas", {
|
|
20167
|
+
enumerable: true,
|
|
20168
|
+
configurable: true,
|
|
20169
|
+
writable: true,
|
|
20170
|
+
value: void 0
|
|
20171
|
+
});
|
|
20077
20172
|
Object.defineProperty(this, "caption", {
|
|
20078
20173
|
enumerable: true,
|
|
20079
20174
|
configurable: true,
|
|
@@ -20094,6 +20189,7 @@ export class StoriesEditStory extends Function {
|
|
|
20094
20189
|
});
|
|
20095
20190
|
this.id = params.id;
|
|
20096
20191
|
this.media = params.media;
|
|
20192
|
+
this.mediaAreas = params.mediaAreas;
|
|
20097
20193
|
this.caption = params.caption;
|
|
20098
20194
|
this.entities = params.entities;
|
|
20099
20195
|
this.privacyRules = params.privacyRules;
|
|
@@ -20448,39 +20544,57 @@ export class StoriesIncrementStoryViews extends Function {
|
|
|
20448
20544
|
}
|
|
20449
20545
|
export class StoriesGetStoryViewsList extends Function {
|
|
20450
20546
|
get [id]() {
|
|
20451
|
-
return
|
|
20547
|
+
return 0xF95F61A4;
|
|
20452
20548
|
}
|
|
20453
20549
|
static get [paramDesc]() {
|
|
20454
20550
|
return [
|
|
20551
|
+
["flags", flags, "#"],
|
|
20552
|
+
["justContacts", "true", "flags.0?true"],
|
|
20553
|
+
["reactionsFirst", "true", "flags.2?true"],
|
|
20554
|
+
["q", "string", "flags.1?string"],
|
|
20455
20555
|
["id", "number", "int"],
|
|
20456
|
-
["
|
|
20457
|
-
["offsetId", "bigint", "long"],
|
|
20556
|
+
["offset", "string", "string"],
|
|
20458
20557
|
["limit", "number", "int"],
|
|
20459
20558
|
];
|
|
20460
20559
|
}
|
|
20461
20560
|
get [params]() {
|
|
20462
20561
|
return [
|
|
20562
|
+
["flags", flags, "#"],
|
|
20563
|
+
[this.justContacts ?? null, "true", "flags.0?true"],
|
|
20564
|
+
[this.reactionsFirst ?? null, "true", "flags.2?true"],
|
|
20565
|
+
[this.q ?? null, "string", "flags.1?string"],
|
|
20463
20566
|
[this.id, "number", "int"],
|
|
20464
|
-
[this.
|
|
20465
|
-
[this.offsetId, "bigint", "long"],
|
|
20567
|
+
[this.offset, "string", "string"],
|
|
20466
20568
|
[this.limit, "number", "int"],
|
|
20467
20569
|
];
|
|
20468
20570
|
}
|
|
20469
20571
|
constructor(params) {
|
|
20470
20572
|
super();
|
|
20471
|
-
Object.defineProperty(this, "
|
|
20573
|
+
Object.defineProperty(this, "justContacts", {
|
|
20472
20574
|
enumerable: true,
|
|
20473
20575
|
configurable: true,
|
|
20474
20576
|
writable: true,
|
|
20475
20577
|
value: void 0
|
|
20476
20578
|
});
|
|
20477
|
-
Object.defineProperty(this, "
|
|
20579
|
+
Object.defineProperty(this, "reactionsFirst", {
|
|
20478
20580
|
enumerable: true,
|
|
20479
20581
|
configurable: true,
|
|
20480
20582
|
writable: true,
|
|
20481
20583
|
value: void 0
|
|
20482
20584
|
});
|
|
20483
|
-
Object.defineProperty(this, "
|
|
20585
|
+
Object.defineProperty(this, "q", {
|
|
20586
|
+
enumerable: true,
|
|
20587
|
+
configurable: true,
|
|
20588
|
+
writable: true,
|
|
20589
|
+
value: void 0
|
|
20590
|
+
});
|
|
20591
|
+
Object.defineProperty(this, "id", {
|
|
20592
|
+
enumerable: true,
|
|
20593
|
+
configurable: true,
|
|
20594
|
+
writable: true,
|
|
20595
|
+
value: void 0
|
|
20596
|
+
});
|
|
20597
|
+
Object.defineProperty(this, "offset", {
|
|
20484
20598
|
enumerable: true,
|
|
20485
20599
|
configurable: true,
|
|
20486
20600
|
writable: true,
|
|
@@ -20492,9 +20606,11 @@ export class StoriesGetStoryViewsList extends Function {
|
|
|
20492
20606
|
writable: true,
|
|
20493
20607
|
value: void 0
|
|
20494
20608
|
});
|
|
20609
|
+
this.justContacts = params.justContacts;
|
|
20610
|
+
this.reactionsFirst = params.reactionsFirst;
|
|
20611
|
+
this.q = params.q;
|
|
20495
20612
|
this.id = params.id;
|
|
20496
|
-
this.
|
|
20497
|
-
this.offsetId = params.offsetId;
|
|
20613
|
+
this.offset = params.offset;
|
|
20498
20614
|
this.limit = params.limit;
|
|
20499
20615
|
}
|
|
20500
20616
|
}
|
|
@@ -20609,3 +20725,93 @@ export class StoriesReport extends Function {
|
|
|
20609
20725
|
this.message = params.message;
|
|
20610
20726
|
}
|
|
20611
20727
|
}
|
|
20728
|
+
export class StoriesActivateStealthMode extends Function {
|
|
20729
|
+
get [id]() {
|
|
20730
|
+
return 0x57BBD166;
|
|
20731
|
+
}
|
|
20732
|
+
static get [paramDesc]() {
|
|
20733
|
+
return [
|
|
20734
|
+
["flags", flags, "#"],
|
|
20735
|
+
["past", "true", "flags.0?true"],
|
|
20736
|
+
["future", "true", "flags.1?true"],
|
|
20737
|
+
];
|
|
20738
|
+
}
|
|
20739
|
+
get [params]() {
|
|
20740
|
+
return [
|
|
20741
|
+
["flags", flags, "#"],
|
|
20742
|
+
[this.past ?? null, "true", "flags.0?true"],
|
|
20743
|
+
[this.future ?? null, "true", "flags.1?true"],
|
|
20744
|
+
];
|
|
20745
|
+
}
|
|
20746
|
+
constructor(params) {
|
|
20747
|
+
super();
|
|
20748
|
+
Object.defineProperty(this, "past", {
|
|
20749
|
+
enumerable: true,
|
|
20750
|
+
configurable: true,
|
|
20751
|
+
writable: true,
|
|
20752
|
+
value: void 0
|
|
20753
|
+
});
|
|
20754
|
+
Object.defineProperty(this, "future", {
|
|
20755
|
+
enumerable: true,
|
|
20756
|
+
configurable: true,
|
|
20757
|
+
writable: true,
|
|
20758
|
+
value: void 0
|
|
20759
|
+
});
|
|
20760
|
+
this.past = params?.past;
|
|
20761
|
+
this.future = params?.future;
|
|
20762
|
+
}
|
|
20763
|
+
}
|
|
20764
|
+
export class StoriesSendReaction extends Function {
|
|
20765
|
+
get [id]() {
|
|
20766
|
+
return 0x49AAA9B3;
|
|
20767
|
+
}
|
|
20768
|
+
static get [paramDesc]() {
|
|
20769
|
+
return [
|
|
20770
|
+
["flags", flags, "#"],
|
|
20771
|
+
["addToRecent", "true", "flags.0?true"],
|
|
20772
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20773
|
+
["storyId", "number", "int"],
|
|
20774
|
+
["reaction", types.TypeReaction, "Reaction"],
|
|
20775
|
+
];
|
|
20776
|
+
}
|
|
20777
|
+
get [params]() {
|
|
20778
|
+
return [
|
|
20779
|
+
["flags", flags, "#"],
|
|
20780
|
+
[this.addToRecent ?? null, "true", "flags.0?true"],
|
|
20781
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20782
|
+
[this.storyId, "number", "int"],
|
|
20783
|
+
[this.reaction, types.TypeReaction, "Reaction"],
|
|
20784
|
+
];
|
|
20785
|
+
}
|
|
20786
|
+
constructor(params) {
|
|
20787
|
+
super();
|
|
20788
|
+
Object.defineProperty(this, "addToRecent", {
|
|
20789
|
+
enumerable: true,
|
|
20790
|
+
configurable: true,
|
|
20791
|
+
writable: true,
|
|
20792
|
+
value: void 0
|
|
20793
|
+
});
|
|
20794
|
+
Object.defineProperty(this, "userId", {
|
|
20795
|
+
enumerable: true,
|
|
20796
|
+
configurable: true,
|
|
20797
|
+
writable: true,
|
|
20798
|
+
value: void 0
|
|
20799
|
+
});
|
|
20800
|
+
Object.defineProperty(this, "storyId", {
|
|
20801
|
+
enumerable: true,
|
|
20802
|
+
configurable: true,
|
|
20803
|
+
writable: true,
|
|
20804
|
+
value: void 0
|
|
20805
|
+
});
|
|
20806
|
+
Object.defineProperty(this, "reaction", {
|
|
20807
|
+
enumerable: true,
|
|
20808
|
+
configurable: true,
|
|
20809
|
+
writable: true,
|
|
20810
|
+
value: void 0
|
|
20811
|
+
});
|
|
20812
|
+
this.addToRecent = params.addToRecent;
|
|
20813
|
+
this.userId = params.userId;
|
|
20814
|
+
this.storyId = params.storyId;
|
|
20815
|
+
this.reaction = params.reaction;
|
|
20816
|
+
}
|
|
20817
|
+
}
|
package/package.json
CHANGED
|
@@ -158,7 +158,7 @@ export declare class Client extends ClientAbstract {
|
|
|
158
158
|
*
|
|
159
159
|
* @param storage The storage provider to use. Defaults to memory storage.
|
|
160
160
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
161
|
-
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps).
|
|
161
|
+
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
162
162
|
* @param params Other parameters.
|
|
163
163
|
*/
|
|
164
164
|
constructor(storage?: Storage, apiId?: number | null, apiHash?: string | null, params?: ClientParams, cdn?: boolean);
|
|
@@ -73,7 +73,7 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
|
|
|
73
73
|
*
|
|
74
74
|
* @param storage The storage provider to use. Defaults to memory storage.
|
|
75
75
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
76
|
-
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps).
|
|
76
|
+
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
77
77
|
* @param params Other parameters.
|
|
78
78
|
*/
|
|
79
79
|
constructor(storage = new _1_storage_memory_js_1.StorageMemory(), apiId = 0, apiHash = "", params, cdn = false) {
|
package/script/constants.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export type PublicKeys = readonly [bigint, [bigint, bigint]][];
|
|
|
4
4
|
export declare const PUBLIC_KEYS: PublicKeys;
|
|
5
5
|
export declare const VECTOR_CONSTRUCTOR = 481674261;
|
|
6
6
|
export declare const INITIAL_DC: DC;
|
|
7
|
-
export declare const LAYER =
|
|
8
|
-
export declare const APP_VERSION = "MTKruto 0.0.
|
|
7
|
+
export declare const LAYER = 161;
|
|
8
|
+
export declare const APP_VERSION = "MTKruto 0.0.982";
|
|
9
9
|
export declare const DEVICE_MODEL: string;
|
|
10
10
|
export declare const LANG_CODE: string;
|
|
11
11
|
export declare const LANG_PACK = "";
|
package/script/constants.js
CHANGED
|
@@ -79,8 +79,8 @@ exports.PUBLIC_KEYS = Object.freeze([
|
|
|
79
79
|
]);
|
|
80
80
|
exports.VECTOR_CONSTRUCTOR = 0x1CB5C415;
|
|
81
81
|
exports.INITIAL_DC = "2-test";
|
|
82
|
-
exports.LAYER =
|
|
83
|
-
exports.APP_VERSION = "MTKruto 0.0.
|
|
82
|
+
exports.LAYER = 161;
|
|
83
|
+
exports.APP_VERSION = "MTKruto 0.0.982";
|
|
84
84
|
// @ts-ignore: lib
|
|
85
85
|
exports.DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
|
|
86
86
|
exports.LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];
|
|
@@ -51,7 +51,7 @@ actual, expected, msg) {
|
|
|
51
51
|
} // On nested objects references, build a filtered object recursively
|
|
52
52
|
else if (typeof value === "object" && value !== null) {
|
|
53
53
|
const subset = b[key];
|
|
54
|
-
if ((typeof subset === "object") &&
|
|
54
|
+
if ((typeof subset === "object") && subset) {
|
|
55
55
|
// When both operands are maps, build a filtered map with common keys and filter nested objects inside
|
|
56
56
|
if ((value instanceof Map) && (subset instanceof Map)) {
|
|
57
57
|
filtered[key] = new Map([...value].filter(([k]) => subset.has(k)).map(([k, v]) => [k, typeof v === "object" ? fn(v, subset.get(k)) : v]));
|
package/script/deps.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./deps/deno.land/std@0.
|
|
1
|
+
export * from "./deps/deno.land/std@0.198.0/assert/mod.js";
|
|
2
2
|
export { ctr256Decrypt, ctr256Encrypt, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.1.3/mod.js";
|
|
3
3
|
export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/master/gzip/gzip.js";
|
|
4
4
|
export { Mutex, type MutexInterface } from "async-mutex";
|
|
5
5
|
export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
|
|
6
6
|
import { debug as debug_ } from "./deps/raw.githubusercontent.com/MTKruto/debug/master/mod.js";
|
|
7
7
|
export declare const debug: typeof debug_;
|
|
8
|
-
export { decode as base64Decode, encode as base64Encode } from "./deps/deno.land/std@0.
|
|
8
|
+
export { decode as base64Decode, encode as base64Encode } from "./deps/deno.land/std@0.198.0/encoding/base64.js";
|
package/script/deps.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.base64Encode = exports.base64Decode = exports.debug = exports.Parser = exports.Mutex = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256Encrypt = exports.ctr256Decrypt = void 0;
|
|
18
|
-
__exportStar(require("./deps/deno.land/std@0.
|
|
18
|
+
__exportStar(require("./deps/deno.land/std@0.198.0/assert/mod.js"), exports);
|
|
19
19
|
var mod_js_1 = require("./deps/deno.land/x/tgcrypto@0.1.3/mod.js");
|
|
20
20
|
Object.defineProperty(exports, "ctr256Decrypt", { enumerable: true, get: function () { return mod_js_1.ctr256Decrypt; } });
|
|
21
21
|
Object.defineProperty(exports, "ctr256Encrypt", { enumerable: true, get: function () { return mod_js_1.ctr256Encrypt; } });
|
|
@@ -33,6 +33,6 @@ Object.defineProperty(exports, "Parser", { enumerable: true, get: function () {
|
|
|
33
33
|
const mod_js_3 = require("./deps/raw.githubusercontent.com/MTKruto/debug/master/mod.js");
|
|
34
34
|
const debug = (v) => (0, mod_js_3.debug)(`mtkruto/${v}`);
|
|
35
35
|
exports.debug = debug;
|
|
36
|
-
var base64_js_1 = require("./deps/deno.land/std@0.
|
|
36
|
+
var base64_js_1 = require("./deps/deno.land/std@0.198.0/encoding/base64.js");
|
|
37
37
|
Object.defineProperty(exports, "base64Decode", { enumerable: true, get: function () { return base64_js_1.decode; } });
|
|
38
38
|
Object.defineProperty(exports, "base64Encode", { enumerable: true, get: function () { return base64_js_1.encode; } });
|