@mtkruto/node 0.0.821 → 0.0.823
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/client.d.ts +78 -14
- package/esm/client/client.js +131 -2
- package/esm/tl/2_types.d.ts +48 -48
- package/esm/tl/2_types.js +180 -180
- package/esm/tl/3_functions.d.ts +13 -13
- package/esm/tl/3_functions.js +39 -39
- package/esm/utilities/1_password.d.ts +1 -1
- package/esm/utilities/1_password.js +2 -1
- package/package.json +1 -1
- package/script/client/client.d.ts +78 -14
- package/script/client/client.js +132 -3
- package/script/tl/2_types.d.ts +48 -48
- package/script/tl/2_types.js +180 -180
- package/script/tl/3_functions.d.ts +13 -13
- package/script/tl/3_functions.js +39 -39
- package/script/utilities/1_password.d.ts +1 -1
- package/script/utilities/1_password.js +2 -1
|
@@ -496,7 +496,7 @@ export declare class AccountUpdateProfile extends Function<types.TypeUser> {
|
|
|
496
496
|
protected get [id](): number;
|
|
497
497
|
static get [paramDesc](): ParamDesc;
|
|
498
498
|
protected get [params](): Params;
|
|
499
|
-
constructor(params
|
|
499
|
+
constructor(params?: {
|
|
500
500
|
firstName?: string;
|
|
501
501
|
lastName?: string;
|
|
502
502
|
about?: string;
|
|
@@ -847,7 +847,7 @@ export declare class AccountInitTakeoutSession extends Function<types.AccountTak
|
|
|
847
847
|
protected get [id](): number;
|
|
848
848
|
static get [paramDesc](): ParamDesc;
|
|
849
849
|
protected get [params](): Params;
|
|
850
|
-
constructor(params
|
|
850
|
+
constructor(params?: {
|
|
851
851
|
contacts?: true;
|
|
852
852
|
messageUsers?: true;
|
|
853
853
|
messageChats?: true;
|
|
@@ -862,7 +862,7 @@ export declare class AccountFinishTakeoutSession extends Function<boolean> {
|
|
|
862
862
|
protected get [id](): number;
|
|
863
863
|
static get [paramDesc](): ParamDesc;
|
|
864
864
|
protected get [params](): Params;
|
|
865
|
-
constructor(params
|
|
865
|
+
constructor(params?: {
|
|
866
866
|
success?: true;
|
|
867
867
|
});
|
|
868
868
|
}
|
|
@@ -908,7 +908,7 @@ export declare class AccountGetNotifyExceptions extends Function<types.TypeUpdat
|
|
|
908
908
|
protected get [id](): number;
|
|
909
909
|
static get [paramDesc](): ParamDesc;
|
|
910
910
|
protected get [params](): Params;
|
|
911
|
-
constructor(params
|
|
911
|
+
constructor(params?: {
|
|
912
912
|
compareSound?: true;
|
|
913
913
|
peer?: types.TypeInputNotifyPeer;
|
|
914
914
|
});
|
|
@@ -1054,7 +1054,7 @@ export declare class AccountInstallTheme extends Function<boolean> {
|
|
|
1054
1054
|
protected get [id](): number;
|
|
1055
1055
|
static get [paramDesc](): ParamDesc;
|
|
1056
1056
|
protected get [params](): Params;
|
|
1057
|
-
constructor(params
|
|
1057
|
+
constructor(params?: {
|
|
1058
1058
|
dark?: true;
|
|
1059
1059
|
theme?: types.TypeInputTheme;
|
|
1060
1060
|
format?: string;
|
|
@@ -1088,7 +1088,7 @@ export declare class AccountSetContentSettings extends Function<boolean> {
|
|
|
1088
1088
|
protected get [id](): number;
|
|
1089
1089
|
static get [paramDesc](): ParamDesc;
|
|
1090
1090
|
protected get [params](): Params;
|
|
1091
|
-
constructor(params
|
|
1091
|
+
constructor(params?: {
|
|
1092
1092
|
sensitiveEnabled?: true;
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
@@ -2550,7 +2550,7 @@ export declare class MessagesClearRecentStickers extends Function<boolean> {
|
|
|
2550
2550
|
protected get [id](): number;
|
|
2551
2551
|
static get [paramDesc](): ParamDesc;
|
|
2552
2552
|
protected get [params](): Params;
|
|
2553
|
-
constructor(params
|
|
2553
|
+
constructor(params?: {
|
|
2554
2554
|
attached?: true;
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
@@ -3041,7 +3041,7 @@ export declare class MessagesRequestURLAuth extends Function<types.TypeURLAuthRe
|
|
|
3041
3041
|
protected get [id](): number;
|
|
3042
3042
|
static get [paramDesc](): ParamDesc;
|
|
3043
3043
|
protected get [params](): Params;
|
|
3044
|
-
constructor(params
|
|
3044
|
+
constructor(params?: {
|
|
3045
3045
|
peer?: types.TypeInputPeer;
|
|
3046
3046
|
msgId?: number;
|
|
3047
3047
|
buttonId?: number;
|
|
@@ -3057,7 +3057,7 @@ export declare class MessagesAcceptURLAuth extends Function<types.TypeURLAuthRes
|
|
|
3057
3057
|
protected get [id](): number;
|
|
3058
3058
|
static get [paramDesc](): ParamDesc;
|
|
3059
3059
|
protected get [params](): Params;
|
|
3060
|
-
constructor(params
|
|
3060
|
+
constructor(params?: {
|
|
3061
3061
|
writeAllowed?: true;
|
|
3062
3062
|
peer?: types.TypeInputPeer;
|
|
3063
3063
|
msgId?: number;
|
|
@@ -3269,7 +3269,7 @@ export declare class MessagesDeletePhoneCallHistory extends Function<types.Messa
|
|
|
3269
3269
|
protected get [id](): number;
|
|
3270
3270
|
static get [paramDesc](): ParamDesc;
|
|
3271
3271
|
protected get [params](): Params;
|
|
3272
|
-
constructor(params
|
|
3272
|
+
constructor(params?: {
|
|
3273
3273
|
revoke?: true;
|
|
3274
3274
|
});
|
|
3275
3275
|
}
|
|
@@ -4092,7 +4092,7 @@ export declare class PhotosUploadProfilePhoto extends Function<types.PhotosPhoto
|
|
|
4092
4092
|
protected get [id](): number;
|
|
4093
4093
|
static get [paramDesc](): ParamDesc;
|
|
4094
4094
|
protected get [params](): Params;
|
|
4095
|
-
constructor(params
|
|
4095
|
+
constructor(params?: {
|
|
4096
4096
|
fallback?: true;
|
|
4097
4097
|
bot?: types.TypeInputUser;
|
|
4098
4098
|
file?: types.TypeInputFile;
|
|
@@ -4686,7 +4686,7 @@ export declare class ChannelsGetAdminedPublicChannels extends Function<types.Typ
|
|
|
4686
4686
|
protected get [id](): number;
|
|
4687
4687
|
static get [paramDesc](): ParamDesc;
|
|
4688
4688
|
protected get [params](): Params;
|
|
4689
|
-
constructor(params
|
|
4689
|
+
constructor(params?: {
|
|
4690
4690
|
byLocation?: true;
|
|
4691
4691
|
checkLimit?: true;
|
|
4692
4692
|
});
|
|
@@ -5306,7 +5306,7 @@ export declare class PaymentsClearSavedInfo extends Function<boolean> {
|
|
|
5306
5306
|
protected get [id](): number;
|
|
5307
5307
|
static get [paramDesc](): ParamDesc;
|
|
5308
5308
|
protected get [params](): Params;
|
|
5309
|
-
constructor(params
|
|
5309
|
+
constructor(params?: {
|
|
5310
5310
|
credentials?: true;
|
|
5311
5311
|
info?: true;
|
|
5312
5312
|
});
|
package/script/tl/3_functions.js
CHANGED
|
@@ -1674,9 +1674,9 @@ class AccountUpdateProfile extends Function {
|
|
|
1674
1674
|
writable: true,
|
|
1675
1675
|
value: void 0
|
|
1676
1676
|
});
|
|
1677
|
-
this.firstName = params
|
|
1678
|
-
this.lastName = params
|
|
1679
|
-
this.about = params
|
|
1677
|
+
this.firstName = params?.firstName;
|
|
1678
|
+
this.lastName = params?.lastName;
|
|
1679
|
+
this.about = params?.about;
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
exports.AccountUpdateProfile = AccountUpdateProfile;
|
|
@@ -2779,13 +2779,13 @@ class AccountInitTakeoutSession extends Function {
|
|
|
2779
2779
|
writable: true,
|
|
2780
2780
|
value: void 0
|
|
2781
2781
|
});
|
|
2782
|
-
this.contacts = params
|
|
2783
|
-
this.messageUsers = params
|
|
2784
|
-
this.messageChats = params
|
|
2785
|
-
this.messageMegagroups = params
|
|
2786
|
-
this.messageChannels = params
|
|
2787
|
-
this.files = params
|
|
2788
|
-
this.fileMaxSize = params
|
|
2782
|
+
this.contacts = params?.contacts;
|
|
2783
|
+
this.messageUsers = params?.messageUsers;
|
|
2784
|
+
this.messageChats = params?.messageChats;
|
|
2785
|
+
this.messageMegagroups = params?.messageMegagroups;
|
|
2786
|
+
this.messageChannels = params?.messageChannels;
|
|
2787
|
+
this.files = params?.files;
|
|
2788
|
+
this.fileMaxSize = params?.fileMaxSize;
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
2791
|
exports.AccountInitTakeoutSession = AccountInitTakeoutSession;
|
|
@@ -2813,7 +2813,7 @@ class AccountFinishTakeoutSession extends Function {
|
|
|
2813
2813
|
writable: true,
|
|
2814
2814
|
value: void 0
|
|
2815
2815
|
});
|
|
2816
|
-
this.success = params
|
|
2816
|
+
this.success = params?.success;
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
2819
|
exports.AccountFinishTakeoutSession = AccountFinishTakeoutSession;
|
|
@@ -2946,8 +2946,8 @@ class AccountGetNotifyExceptions extends Function {
|
|
|
2946
2946
|
writable: true,
|
|
2947
2947
|
value: void 0
|
|
2948
2948
|
});
|
|
2949
|
-
this.compareSound = params
|
|
2950
|
-
this.peer = params
|
|
2949
|
+
this.compareSound = params?.compareSound;
|
|
2950
|
+
this.peer = params?.peer;
|
|
2951
2951
|
}
|
|
2952
2952
|
}
|
|
2953
2953
|
exports.AccountGetNotifyExceptions = AccountGetNotifyExceptions;
|
|
@@ -3453,10 +3453,10 @@ class AccountInstallTheme extends Function {
|
|
|
3453
3453
|
writable: true,
|
|
3454
3454
|
value: void 0
|
|
3455
3455
|
});
|
|
3456
|
-
this.dark = params
|
|
3457
|
-
this.theme = params
|
|
3458
|
-
this.format = params
|
|
3459
|
-
this.baseTheme = params
|
|
3456
|
+
this.dark = params?.dark;
|
|
3457
|
+
this.theme = params?.theme;
|
|
3458
|
+
this.format = params?.format;
|
|
3459
|
+
this.baseTheme = params?.baseTheme;
|
|
3460
3460
|
}
|
|
3461
3461
|
}
|
|
3462
3462
|
exports.AccountInstallTheme = AccountInstallTheme;
|
|
@@ -3554,7 +3554,7 @@ class AccountSetContentSettings extends Function {
|
|
|
3554
3554
|
writable: true,
|
|
3555
3555
|
value: void 0
|
|
3556
3556
|
});
|
|
3557
|
-
this.sensitiveEnabled = params
|
|
3557
|
+
this.sensitiveEnabled = params?.sensitiveEnabled;
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
3560
|
exports.AccountSetContentSettings = AccountSetContentSettings;
|
|
@@ -8520,7 +8520,7 @@ class MessagesClearRecentStickers extends Function {
|
|
|
8520
8520
|
writable: true,
|
|
8521
8521
|
value: void 0
|
|
8522
8522
|
});
|
|
8523
|
-
this.attached = params
|
|
8523
|
+
this.attached = params?.attached;
|
|
8524
8524
|
}
|
|
8525
8525
|
}
|
|
8526
8526
|
exports.MessagesClearRecentStickers = MessagesClearRecentStickers;
|
|
@@ -10183,10 +10183,10 @@ class MessagesRequestURLAuth extends Function {
|
|
|
10183
10183
|
writable: true,
|
|
10184
10184
|
value: void 0
|
|
10185
10185
|
});
|
|
10186
|
-
this.peer = params
|
|
10187
|
-
this.msgId = params
|
|
10188
|
-
this.buttonId = params
|
|
10189
|
-
this.url = params
|
|
10186
|
+
this.peer = params?.peer;
|
|
10187
|
+
this.msgId = params?.msgId;
|
|
10188
|
+
this.buttonId = params?.buttonId;
|
|
10189
|
+
this.url = params?.url;
|
|
10190
10190
|
}
|
|
10191
10191
|
}
|
|
10192
10192
|
exports.MessagesRequestURLAuth = MessagesRequestURLAuth;
|
|
@@ -10246,11 +10246,11 @@ class MessagesAcceptURLAuth extends Function {
|
|
|
10246
10246
|
writable: true,
|
|
10247
10247
|
value: void 0
|
|
10248
10248
|
});
|
|
10249
|
-
this.writeAllowed = params
|
|
10250
|
-
this.peer = params
|
|
10251
|
-
this.msgId = params
|
|
10252
|
-
this.buttonId = params
|
|
10253
|
-
this.url = params
|
|
10249
|
+
this.writeAllowed = params?.writeAllowed;
|
|
10250
|
+
this.peer = params?.peer;
|
|
10251
|
+
this.msgId = params?.msgId;
|
|
10252
|
+
this.buttonId = params?.buttonId;
|
|
10253
|
+
this.url = params?.url;
|
|
10254
10254
|
}
|
|
10255
10255
|
}
|
|
10256
10256
|
exports.MessagesAcceptURLAuth = MessagesAcceptURLAuth;
|
|
@@ -10940,7 +10940,7 @@ class MessagesDeletePhoneCallHistory extends Function {
|
|
|
10940
10940
|
writable: true,
|
|
10941
10941
|
value: void 0
|
|
10942
10942
|
});
|
|
10943
|
-
this.revoke = params
|
|
10943
|
+
this.revoke = params?.revoke;
|
|
10944
10944
|
}
|
|
10945
10945
|
}
|
|
10946
10946
|
exports.MessagesDeletePhoneCallHistory = MessagesDeletePhoneCallHistory;
|
|
@@ -13768,12 +13768,12 @@ class PhotosUploadProfilePhoto extends Function {
|
|
|
13768
13768
|
writable: true,
|
|
13769
13769
|
value: void 0
|
|
13770
13770
|
});
|
|
13771
|
-
this.fallback = params
|
|
13772
|
-
this.bot = params
|
|
13773
|
-
this.file = params
|
|
13774
|
-
this.video = params
|
|
13775
|
-
this.videoStartTs = params
|
|
13776
|
-
this.videoEmojiMarkup = params
|
|
13771
|
+
this.fallback = params?.fallback;
|
|
13772
|
+
this.bot = params?.bot;
|
|
13773
|
+
this.file = params?.file;
|
|
13774
|
+
this.video = params?.video;
|
|
13775
|
+
this.videoStartTs = params?.videoStartTs;
|
|
13776
|
+
this.videoEmojiMarkup = params?.videoEmojiMarkup;
|
|
13777
13777
|
}
|
|
13778
13778
|
}
|
|
13779
13779
|
exports.PhotosUploadProfilePhoto = PhotosUploadProfilePhoto;
|
|
@@ -15662,8 +15662,8 @@ class ChannelsGetAdminedPublicChannels extends Function {
|
|
|
15662
15662
|
writable: true,
|
|
15663
15663
|
value: void 0
|
|
15664
15664
|
});
|
|
15665
|
-
this.byLocation = params
|
|
15666
|
-
this.checkLimit = params
|
|
15665
|
+
this.byLocation = params?.byLocation;
|
|
15666
|
+
this.checkLimit = params?.checkLimit;
|
|
15667
15667
|
}
|
|
15668
15668
|
}
|
|
15669
15669
|
exports.ChannelsGetAdminedPublicChannels = ChannelsGetAdminedPublicChannels;
|
|
@@ -17715,8 +17715,8 @@ class PaymentsClearSavedInfo extends Function {
|
|
|
17715
17715
|
writable: true,
|
|
17716
17716
|
value: void 0
|
|
17717
17717
|
});
|
|
17718
|
-
this.credentials = params
|
|
17719
|
-
this.info = params
|
|
17718
|
+
this.credentials = params?.credentials;
|
|
17719
|
+
this.info = params?.info;
|
|
17720
17720
|
}
|
|
17721
17721
|
}
|
|
17722
17722
|
exports.PaymentsClearSavedInfo = PaymentsClearSavedInfo;
|
|
@@ -8,4 +8,4 @@ export declare function pbkdf2(password: Uint8Array, salt: Uint8Array, iteration
|
|
|
8
8
|
export declare const ph2: (password: Uint8Array, salt1: Uint8Array, salt2: Uint8Array) => Promise<Uint8Array>;
|
|
9
9
|
export declare function isGoodModExpFirst(modexp: bigint, prime: bigint): boolean;
|
|
10
10
|
export declare function pad(bigint: number | bigint | Uint8Array): Uint8Array;
|
|
11
|
-
export declare function checkPassword(
|
|
11
|
+
export declare function checkPassword(password_: string, ap: types.AccountPassword): Promise<types.InputCheckPasswordSRP>;
|
|
@@ -102,7 +102,8 @@ function pad(bigint) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
exports.pad = pad;
|
|
105
|
-
async function checkPassword(
|
|
105
|
+
async function checkPassword(password_, ap) {
|
|
106
|
+
const password = new TextEncoder().encode(password_);
|
|
106
107
|
const algo = ap.currentAlgo;
|
|
107
108
|
if (!(algo instanceof
|
|
108
109
|
types.PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow)) {
|