@mtkruto/node 0.0.967 → 0.0.969
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/1_client_abstract.js +3 -3
- package/esm/client/2_client_plain.d.ts +3 -0
- package/esm/client/2_client_plain.js +11 -5
- package/esm/client/3_client.d.ts +6 -3
- package/esm/client/3_client.js +19 -15
- package/esm/connection/0_connection.d.ts +11 -2
- package/esm/connection/0_connection.js +23 -1
- package/esm/connection/1_connection_http.d.ts +16 -0
- package/esm/connection/1_connection_http.js +91 -0
- package/esm/connection/1_connection_web_socket.d.ts +2 -2
- package/esm/connection/1_connection_web_socket.js +3 -2
- package/esm/constants.d.ts +11 -10
- package/esm/constants.js +10 -18
- package/esm/mod.d.ts +1 -1
- package/esm/mod.js +1 -1
- package/esm/tl/2_types.d.ts +437 -40
- package/esm/tl/2_types.js +1470 -130
- package/esm/tl/3_functions.d.ts +274 -36
- package/esm/tl/3_functions.js +871 -116
- package/esm/transport/1_transport_piped.d.ts +10 -0
- package/esm/transport/1_transport_piped.js +23 -0
- package/esm/transport/2_transport_provider.d.ts +8 -2
- package/esm/transport/2_transport_provider.js +40 -2
- package/package.json +1 -1
- package/script/client/1_client_abstract.js +1 -1
- package/script/client/2_client_plain.d.ts +3 -0
- package/script/client/2_client_plain.js +10 -4
- package/script/client/3_client.d.ts +6 -3
- package/script/client/3_client.js +18 -14
- package/script/connection/0_connection.d.ts +11 -2
- package/script/connection/0_connection.js +26 -3
- package/script/connection/1_connection_http.d.ts +16 -0
- package/script/connection/1_connection_http.js +95 -0
- package/script/connection/1_connection_web_socket.d.ts +2 -2
- package/script/connection/1_connection_web_socket.js +3 -2
- package/script/constants.d.ts +11 -10
- package/script/constants.js +11 -19
- package/script/mod.d.ts +1 -1
- package/script/mod.js +8 -8
- package/script/tl/2_types.d.ts +437 -40
- package/script/tl/2_types.js +1540 -160
- package/script/tl/3_functions.d.ts +274 -36
- package/script/tl/3_functions.js +901 -125
- package/script/transport/1_transport_piped.d.ts +10 -0
- package/script/transport/1_transport_piped.js +27 -0
- package/script/transport/2_transport_provider.d.ts +8 -2
- package/script/transport/2_transport_provider.js +43 -4
package/esm/tl/3_functions.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// deno-fmt-ignore-file
|
|
2
|
+
import { id, params, TLObject, paramDesc, flags } from "./1_tl_object.js";
|
|
2
3
|
import * as types from "./2_types.js";
|
|
3
4
|
export class Function extends TLObject {
|
|
4
5
|
constructor() {
|
|
@@ -2800,6 +2801,7 @@ export class AccountGetNotifyExceptions extends Function {
|
|
|
2800
2801
|
return [
|
|
2801
2802
|
["flags", flags, "#"],
|
|
2802
2803
|
["compareSound", "true", "flags.1?true"],
|
|
2804
|
+
["compareStories", "true", "flags.2?true"],
|
|
2803
2805
|
["peer", types.TypeInputNotifyPeer, "flags.0?InputNotifyPeer"],
|
|
2804
2806
|
];
|
|
2805
2807
|
}
|
|
@@ -2807,6 +2809,7 @@ export class AccountGetNotifyExceptions extends Function {
|
|
|
2807
2809
|
return [
|
|
2808
2810
|
["flags", flags, "#"],
|
|
2809
2811
|
[this.compareSound ?? null, "true", "flags.1?true"],
|
|
2812
|
+
[this.compareStories ?? null, "true", "flags.2?true"],
|
|
2810
2813
|
[this.peer ?? null, types.TypeInputNotifyPeer, "flags.0?InputNotifyPeer"],
|
|
2811
2814
|
];
|
|
2812
2815
|
}
|
|
@@ -2818,6 +2821,12 @@ export class AccountGetNotifyExceptions extends Function {
|
|
|
2818
2821
|
writable: true,
|
|
2819
2822
|
value: void 0
|
|
2820
2823
|
});
|
|
2824
|
+
Object.defineProperty(this, "compareStories", {
|
|
2825
|
+
enumerable: true,
|
|
2826
|
+
configurable: true,
|
|
2827
|
+
writable: true,
|
|
2828
|
+
value: void 0
|
|
2829
|
+
});
|
|
2821
2830
|
Object.defineProperty(this, "peer", {
|
|
2822
2831
|
enumerable: true,
|
|
2823
2832
|
configurable: true,
|
|
@@ -2825,6 +2834,7 @@ export class AccountGetNotifyExceptions extends Function {
|
|
|
2825
2834
|
value: void 0
|
|
2826
2835
|
});
|
|
2827
2836
|
this.compareSound = params?.compareSound;
|
|
2837
|
+
this.compareStories = params?.compareStories;
|
|
2828
2838
|
this.peer = params?.peer;
|
|
2829
2839
|
}
|
|
2830
2840
|
}
|
|
@@ -4064,6 +4074,31 @@ export class AccountDeleteAutoSaveExceptions extends Function {
|
|
|
4064
4074
|
super();
|
|
4065
4075
|
}
|
|
4066
4076
|
}
|
|
4077
|
+
export class AccountInvalidateSignInCodes extends Function {
|
|
4078
|
+
get [id]() {
|
|
4079
|
+
return 0xCA8AE8BA;
|
|
4080
|
+
}
|
|
4081
|
+
static get [paramDesc]() {
|
|
4082
|
+
return [
|
|
4083
|
+
["codes", ["string"], "Vector<string>"],
|
|
4084
|
+
];
|
|
4085
|
+
}
|
|
4086
|
+
get [params]() {
|
|
4087
|
+
return [
|
|
4088
|
+
[this.codes, ["string"], "Vector<string>"],
|
|
4089
|
+
];
|
|
4090
|
+
}
|
|
4091
|
+
constructor(params) {
|
|
4092
|
+
super();
|
|
4093
|
+
Object.defineProperty(this, "codes", {
|
|
4094
|
+
enumerable: true,
|
|
4095
|
+
configurable: true,
|
|
4096
|
+
writable: true,
|
|
4097
|
+
value: void 0
|
|
4098
|
+
});
|
|
4099
|
+
this.codes = params.codes;
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4067
4102
|
export class UsersGetUsers extends Function {
|
|
4068
4103
|
get [id]() {
|
|
4069
4104
|
return 0x0D91A548;
|
|
@@ -4148,6 +4183,31 @@ export class UsersSetSecureValueErrors extends Function {
|
|
|
4148
4183
|
this.errors = params.errors;
|
|
4149
4184
|
}
|
|
4150
4185
|
}
|
|
4186
|
+
export class UsersGetStoriesMaxIDs extends Function {
|
|
4187
|
+
get [id]() {
|
|
4188
|
+
return 0xCA1CB9AB;
|
|
4189
|
+
}
|
|
4190
|
+
static get [paramDesc]() {
|
|
4191
|
+
return [
|
|
4192
|
+
["id", [types.TypeInputUser], "Vector<InputUser>"],
|
|
4193
|
+
];
|
|
4194
|
+
}
|
|
4195
|
+
get [params]() {
|
|
4196
|
+
return [
|
|
4197
|
+
[this.id, [types.TypeInputUser], "Vector<InputUser>"],
|
|
4198
|
+
];
|
|
4199
|
+
}
|
|
4200
|
+
constructor(params) {
|
|
4201
|
+
super();
|
|
4202
|
+
Object.defineProperty(this, "id", {
|
|
4203
|
+
enumerable: true,
|
|
4204
|
+
configurable: true,
|
|
4205
|
+
writable: true,
|
|
4206
|
+
value: void 0
|
|
4207
|
+
});
|
|
4208
|
+
this.id = params.id;
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4151
4211
|
export class ContactsGetContactIDs extends Function {
|
|
4152
4212
|
get [id]() {
|
|
4153
4213
|
return 0x7ADC669D;
|
|
@@ -4885,6 +4945,65 @@ export class ContactsImportContactToken extends Function {
|
|
|
4885
4945
|
this.token = params.token;
|
|
4886
4946
|
}
|
|
4887
4947
|
}
|
|
4948
|
+
export class ContactsEditCloseFriends extends Function {
|
|
4949
|
+
get [id]() {
|
|
4950
|
+
return 0xBA6705F0;
|
|
4951
|
+
}
|
|
4952
|
+
static get [paramDesc]() {
|
|
4953
|
+
return [
|
|
4954
|
+
["id", ["bigint"], "Vector<long>"],
|
|
4955
|
+
];
|
|
4956
|
+
}
|
|
4957
|
+
get [params]() {
|
|
4958
|
+
return [
|
|
4959
|
+
[this.id, ["bigint"], "Vector<long>"],
|
|
4960
|
+
];
|
|
4961
|
+
}
|
|
4962
|
+
constructor(params) {
|
|
4963
|
+
super();
|
|
4964
|
+
Object.defineProperty(this, "id", {
|
|
4965
|
+
enumerable: true,
|
|
4966
|
+
configurable: true,
|
|
4967
|
+
writable: true,
|
|
4968
|
+
value: void 0
|
|
4969
|
+
});
|
|
4970
|
+
this.id = params.id;
|
|
4971
|
+
}
|
|
4972
|
+
}
|
|
4973
|
+
export class ContactsToggleStoriesHidden extends Function {
|
|
4974
|
+
get [id]() {
|
|
4975
|
+
return 0x753FB865;
|
|
4976
|
+
}
|
|
4977
|
+
static get [paramDesc]() {
|
|
4978
|
+
return [
|
|
4979
|
+
["id", types.TypeInputUser, "InputUser"],
|
|
4980
|
+
["hidden", "boolean", "Bool"],
|
|
4981
|
+
];
|
|
4982
|
+
}
|
|
4983
|
+
get [params]() {
|
|
4984
|
+
return [
|
|
4985
|
+
[this.id, types.TypeInputUser, "InputUser"],
|
|
4986
|
+
[this.hidden, "boolean", "Bool"],
|
|
4987
|
+
];
|
|
4988
|
+
}
|
|
4989
|
+
constructor(params) {
|
|
4990
|
+
super();
|
|
4991
|
+
Object.defineProperty(this, "id", {
|
|
4992
|
+
enumerable: true,
|
|
4993
|
+
configurable: true,
|
|
4994
|
+
writable: true,
|
|
4995
|
+
value: void 0
|
|
4996
|
+
});
|
|
4997
|
+
Object.defineProperty(this, "hidden", {
|
|
4998
|
+
enumerable: true,
|
|
4999
|
+
configurable: true,
|
|
5000
|
+
writable: true,
|
|
5001
|
+
value: void 0
|
|
5002
|
+
});
|
|
5003
|
+
this.id = params.id;
|
|
5004
|
+
this.hidden = params.hidden;
|
|
5005
|
+
}
|
|
5006
|
+
}
|
|
4888
5007
|
export class MessagesGetMessages extends Function {
|
|
4889
5008
|
get [id]() {
|
|
4890
5009
|
return 0x63C66506;
|
|
@@ -5428,7 +5547,7 @@ export class MessagesSetTyping extends Function {
|
|
|
5428
5547
|
}
|
|
5429
5548
|
export class MessagesSendMessage extends Function {
|
|
5430
5549
|
get [id]() {
|
|
5431
|
-
return
|
|
5550
|
+
return 0x280D096F;
|
|
5432
5551
|
}
|
|
5433
5552
|
static get [paramDesc]() {
|
|
5434
5553
|
return [
|
|
@@ -5440,8 +5559,7 @@ export class MessagesSendMessage extends Function {
|
|
|
5440
5559
|
["noforwards", "true", "flags.14?true"],
|
|
5441
5560
|
["updateStickersetsOrder", "true", "flags.15?true"],
|
|
5442
5561
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
5443
|
-
["
|
|
5444
|
-
["topMsgId", "number", "flags.9?int"],
|
|
5562
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
5445
5563
|
["message", "string", "string"],
|
|
5446
5564
|
["randomId", "bigint", "long"],
|
|
5447
5565
|
["replyMarkup", types.TypeReplyMarkup, "flags.2?ReplyMarkup"],
|
|
@@ -5460,8 +5578,7 @@ export class MessagesSendMessage extends Function {
|
|
|
5460
5578
|
[this.noforwards ?? null, "true", "flags.14?true"],
|
|
5461
5579
|
[this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
|
|
5462
5580
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
5463
|
-
[this.
|
|
5464
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
5581
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
5465
5582
|
[this.message, "string", "string"],
|
|
5466
5583
|
[this.randomId, "bigint", "long"],
|
|
5467
5584
|
[this.replyMarkup ?? null, types.TypeReplyMarkup, "flags.2?ReplyMarkup"],
|
|
@@ -5514,13 +5631,7 @@ export class MessagesSendMessage extends Function {
|
|
|
5514
5631
|
writable: true,
|
|
5515
5632
|
value: void 0
|
|
5516
5633
|
});
|
|
5517
|
-
Object.defineProperty(this, "
|
|
5518
|
-
enumerable: true,
|
|
5519
|
-
configurable: true,
|
|
5520
|
-
writable: true,
|
|
5521
|
-
value: void 0
|
|
5522
|
-
});
|
|
5523
|
-
Object.defineProperty(this, "topMsgId", {
|
|
5634
|
+
Object.defineProperty(this, "replyTo", {
|
|
5524
5635
|
enumerable: true,
|
|
5525
5636
|
configurable: true,
|
|
5526
5637
|
writable: true,
|
|
@@ -5569,8 +5680,7 @@ export class MessagesSendMessage extends Function {
|
|
|
5569
5680
|
this.noforwards = params.noforwards;
|
|
5570
5681
|
this.updateStickersetsOrder = params.updateStickersetsOrder;
|
|
5571
5682
|
this.peer = params.peer;
|
|
5572
|
-
this.
|
|
5573
|
-
this.topMsgId = params.topMsgId;
|
|
5683
|
+
this.replyTo = params.replyTo;
|
|
5574
5684
|
this.message = params.message;
|
|
5575
5685
|
this.randomId = params.randomId;
|
|
5576
5686
|
this.replyMarkup = params.replyMarkup;
|
|
@@ -5581,7 +5691,7 @@ export class MessagesSendMessage extends Function {
|
|
|
5581
5691
|
}
|
|
5582
5692
|
export class MessagesSendMedia extends Function {
|
|
5583
5693
|
get [id]() {
|
|
5584
|
-
return
|
|
5694
|
+
return 0x72CCC23D;
|
|
5585
5695
|
}
|
|
5586
5696
|
static get [paramDesc]() {
|
|
5587
5697
|
return [
|
|
@@ -5592,8 +5702,7 @@ export class MessagesSendMedia extends Function {
|
|
|
5592
5702
|
["noforwards", "true", "flags.14?true"],
|
|
5593
5703
|
["updateStickersetsOrder", "true", "flags.15?true"],
|
|
5594
5704
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
5595
|
-
["
|
|
5596
|
-
["topMsgId", "number", "flags.9?int"],
|
|
5705
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
5597
5706
|
["media", types.TypeInputMedia, "InputMedia"],
|
|
5598
5707
|
["message", "string", "string"],
|
|
5599
5708
|
["randomId", "bigint", "long"],
|
|
@@ -5612,8 +5721,7 @@ export class MessagesSendMedia extends Function {
|
|
|
5612
5721
|
[this.noforwards ?? null, "true", "flags.14?true"],
|
|
5613
5722
|
[this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
|
|
5614
5723
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
5615
|
-
[this.
|
|
5616
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
5724
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
5617
5725
|
[this.media, types.TypeInputMedia, "InputMedia"],
|
|
5618
5726
|
[this.message, "string", "string"],
|
|
5619
5727
|
[this.randomId, "bigint", "long"],
|
|
@@ -5661,13 +5769,7 @@ export class MessagesSendMedia extends Function {
|
|
|
5661
5769
|
writable: true,
|
|
5662
5770
|
value: void 0
|
|
5663
5771
|
});
|
|
5664
|
-
Object.defineProperty(this, "
|
|
5665
|
-
enumerable: true,
|
|
5666
|
-
configurable: true,
|
|
5667
|
-
writable: true,
|
|
5668
|
-
value: void 0
|
|
5669
|
-
});
|
|
5670
|
-
Object.defineProperty(this, "topMsgId", {
|
|
5772
|
+
Object.defineProperty(this, "replyTo", {
|
|
5671
5773
|
enumerable: true,
|
|
5672
5774
|
configurable: true,
|
|
5673
5775
|
writable: true,
|
|
@@ -5721,8 +5823,7 @@ export class MessagesSendMedia extends Function {
|
|
|
5721
5823
|
this.noforwards = params.noforwards;
|
|
5722
5824
|
this.updateStickersetsOrder = params.updateStickersetsOrder;
|
|
5723
5825
|
this.peer = params.peer;
|
|
5724
|
-
this.
|
|
5725
|
-
this.topMsgId = params.topMsgId;
|
|
5826
|
+
this.replyTo = params.replyTo;
|
|
5726
5827
|
this.media = params.media;
|
|
5727
5828
|
this.message = params.message;
|
|
5728
5829
|
this.randomId = params.randomId;
|
|
@@ -7553,7 +7654,7 @@ export class MessagesSetInlineBotResults extends Function {
|
|
|
7553
7654
|
}
|
|
7554
7655
|
export class MessagesSendInlineBotResult extends Function {
|
|
7555
7656
|
get [id]() {
|
|
7556
|
-
return
|
|
7657
|
+
return 0xF7BC68BA;
|
|
7557
7658
|
}
|
|
7558
7659
|
static get [paramDesc]() {
|
|
7559
7660
|
return [
|
|
@@ -7563,8 +7664,7 @@ export class MessagesSendInlineBotResult extends Function {
|
|
|
7563
7664
|
["clearDraft", "true", "flags.7?true"],
|
|
7564
7665
|
["hideVia", "true", "flags.11?true"],
|
|
7565
7666
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
7566
|
-
["
|
|
7567
|
-
["topMsgId", "number", "flags.9?int"],
|
|
7667
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
7568
7668
|
["randomId", "bigint", "long"],
|
|
7569
7669
|
["queryId", "bigint", "long"],
|
|
7570
7670
|
["id", "string", "string"],
|
|
@@ -7580,8 +7680,7 @@ export class MessagesSendInlineBotResult extends Function {
|
|
|
7580
7680
|
[this.clearDraft ?? null, "true", "flags.7?true"],
|
|
7581
7681
|
[this.hideVia ?? null, "true", "flags.11?true"],
|
|
7582
7682
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
7583
|
-
[this.
|
|
7584
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
7683
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
7585
7684
|
[this.randomId, "bigint", "long"],
|
|
7586
7685
|
[this.queryId, "bigint", "long"],
|
|
7587
7686
|
[this.id, "string", "string"],
|
|
@@ -7621,13 +7720,7 @@ export class MessagesSendInlineBotResult extends Function {
|
|
|
7621
7720
|
writable: true,
|
|
7622
7721
|
value: void 0
|
|
7623
7722
|
});
|
|
7624
|
-
Object.defineProperty(this, "
|
|
7625
|
-
enumerable: true,
|
|
7626
|
-
configurable: true,
|
|
7627
|
-
writable: true,
|
|
7628
|
-
value: void 0
|
|
7629
|
-
});
|
|
7630
|
-
Object.defineProperty(this, "topMsgId", {
|
|
7723
|
+
Object.defineProperty(this, "replyTo", {
|
|
7631
7724
|
enumerable: true,
|
|
7632
7725
|
configurable: true,
|
|
7633
7726
|
writable: true,
|
|
@@ -7668,8 +7761,7 @@ export class MessagesSendInlineBotResult extends Function {
|
|
|
7668
7761
|
this.clearDraft = params.clearDraft;
|
|
7669
7762
|
this.hideVia = params.hideVia;
|
|
7670
7763
|
this.peer = params.peer;
|
|
7671
|
-
this.
|
|
7672
|
-
this.topMsgId = params.topMsgId;
|
|
7764
|
+
this.replyTo = params.replyTo;
|
|
7673
7765
|
this.randomId = params.randomId;
|
|
7674
7766
|
this.queryId = params.queryId;
|
|
7675
7767
|
this.id = params.id;
|
|
@@ -8627,31 +8719,6 @@ export class MessagesGetCommonChats extends Function {
|
|
|
8627
8719
|
this.limit = params.limit;
|
|
8628
8720
|
}
|
|
8629
8721
|
}
|
|
8630
|
-
export class MessagesGetAllChats extends Function {
|
|
8631
|
-
get [id]() {
|
|
8632
|
-
return 0x875F74BE;
|
|
8633
|
-
}
|
|
8634
|
-
static get [paramDesc]() {
|
|
8635
|
-
return [
|
|
8636
|
-
["exceptIds", ["bigint"], "Vector<long>"],
|
|
8637
|
-
];
|
|
8638
|
-
}
|
|
8639
|
-
get [params]() {
|
|
8640
|
-
return [
|
|
8641
|
-
[this.exceptIds, ["bigint"], "Vector<long>"],
|
|
8642
|
-
];
|
|
8643
|
-
}
|
|
8644
|
-
constructor(params) {
|
|
8645
|
-
super();
|
|
8646
|
-
Object.defineProperty(this, "exceptIds", {
|
|
8647
|
-
enumerable: true,
|
|
8648
|
-
configurable: true,
|
|
8649
|
-
writable: true,
|
|
8650
|
-
value: void 0
|
|
8651
|
-
});
|
|
8652
|
-
this.exceptIds = params.exceptIds;
|
|
8653
|
-
}
|
|
8654
|
-
}
|
|
8655
8722
|
export class MessagesGetWebPage extends Function {
|
|
8656
8723
|
get [id]() {
|
|
8657
8724
|
return 0x32CA8F91;
|
|
@@ -8918,19 +8985,19 @@ export class MessagesUploadMedia extends Function {
|
|
|
8918
8985
|
}
|
|
8919
8986
|
export class MessagesSendScreenshotNotification extends Function {
|
|
8920
8987
|
get [id]() {
|
|
8921
|
-
return
|
|
8988
|
+
return 0xA1405817;
|
|
8922
8989
|
}
|
|
8923
8990
|
static get [paramDesc]() {
|
|
8924
8991
|
return [
|
|
8925
8992
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
8926
|
-
["
|
|
8993
|
+
["replyTo", types.TypeInputReplyTo, "InputReplyTo"],
|
|
8927
8994
|
["randomId", "bigint", "long"],
|
|
8928
8995
|
];
|
|
8929
8996
|
}
|
|
8930
8997
|
get [params]() {
|
|
8931
8998
|
return [
|
|
8932
8999
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
8933
|
-
[this.
|
|
9000
|
+
[this.replyTo, types.TypeInputReplyTo, "InputReplyTo"],
|
|
8934
9001
|
[this.randomId, "bigint", "long"],
|
|
8935
9002
|
];
|
|
8936
9003
|
}
|
|
@@ -8942,7 +9009,7 @@ export class MessagesSendScreenshotNotification extends Function {
|
|
|
8942
9009
|
writable: true,
|
|
8943
9010
|
value: void 0
|
|
8944
9011
|
});
|
|
8945
|
-
Object.defineProperty(this, "
|
|
9012
|
+
Object.defineProperty(this, "replyTo", {
|
|
8946
9013
|
enumerable: true,
|
|
8947
9014
|
configurable: true,
|
|
8948
9015
|
writable: true,
|
|
@@ -8955,7 +9022,7 @@ export class MessagesSendScreenshotNotification extends Function {
|
|
|
8955
9022
|
value: void 0
|
|
8956
9023
|
});
|
|
8957
9024
|
this.peer = params.peer;
|
|
8958
|
-
this.
|
|
9025
|
+
this.replyTo = params.replyTo;
|
|
8959
9026
|
this.randomId = params.randomId;
|
|
8960
9027
|
}
|
|
8961
9028
|
}
|
|
@@ -9180,7 +9247,7 @@ export class MessagesGetRecentLocations extends Function {
|
|
|
9180
9247
|
}
|
|
9181
9248
|
export class MessagesSendMultiMedia extends Function {
|
|
9182
9249
|
get [id]() {
|
|
9183
|
-
return
|
|
9250
|
+
return 0x456E8987;
|
|
9184
9251
|
}
|
|
9185
9252
|
static get [paramDesc]() {
|
|
9186
9253
|
return [
|
|
@@ -9191,8 +9258,7 @@ export class MessagesSendMultiMedia extends Function {
|
|
|
9191
9258
|
["noforwards", "true", "flags.14?true"],
|
|
9192
9259
|
["updateStickersetsOrder", "true", "flags.15?true"],
|
|
9193
9260
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
9194
|
-
["
|
|
9195
|
-
["topMsgId", "number", "flags.9?int"],
|
|
9261
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
9196
9262
|
["multiMedia", [types.TypeInputSingleMedia], "Vector<InputSingleMedia>"],
|
|
9197
9263
|
["scheduleDate", "number", "flags.10?int"],
|
|
9198
9264
|
["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
|
|
@@ -9207,8 +9273,7 @@ export class MessagesSendMultiMedia extends Function {
|
|
|
9207
9273
|
[this.noforwards ?? null, "true", "flags.14?true"],
|
|
9208
9274
|
[this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
|
|
9209
9275
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
9210
|
-
[this.
|
|
9211
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
9276
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
9212
9277
|
[this.multiMedia, [types.TypeInputSingleMedia], "Vector<InputSingleMedia>"],
|
|
9213
9278
|
[this.scheduleDate ?? null, "number", "flags.10?int"],
|
|
9214
9279
|
[this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
|
|
@@ -9252,13 +9317,7 @@ export class MessagesSendMultiMedia extends Function {
|
|
|
9252
9317
|
writable: true,
|
|
9253
9318
|
value: void 0
|
|
9254
9319
|
});
|
|
9255
|
-
Object.defineProperty(this, "
|
|
9256
|
-
enumerable: true,
|
|
9257
|
-
configurable: true,
|
|
9258
|
-
writable: true,
|
|
9259
|
-
value: void 0
|
|
9260
|
-
});
|
|
9261
|
-
Object.defineProperty(this, "topMsgId", {
|
|
9320
|
+
Object.defineProperty(this, "replyTo", {
|
|
9262
9321
|
enumerable: true,
|
|
9263
9322
|
configurable: true,
|
|
9264
9323
|
writable: true,
|
|
@@ -9288,8 +9347,7 @@ export class MessagesSendMultiMedia extends Function {
|
|
|
9288
9347
|
this.noforwards = params.noforwards;
|
|
9289
9348
|
this.updateStickersetsOrder = params.updateStickersetsOrder;
|
|
9290
9349
|
this.peer = params.peer;
|
|
9291
|
-
this.
|
|
9292
|
-
this.topMsgId = params.topMsgId;
|
|
9350
|
+
this.replyTo = params.replyTo;
|
|
9293
9351
|
this.multiMedia = params.multiMedia;
|
|
9294
9352
|
this.scheduleDate = params.scheduleDate;
|
|
9295
9353
|
this.sendAs = params.sendAs;
|
|
@@ -12087,7 +12145,7 @@ export class MessagesToggleBotInAttachMenu extends Function {
|
|
|
12087
12145
|
}
|
|
12088
12146
|
export class MessagesRequestWebView extends Function {
|
|
12089
12147
|
get [id]() {
|
|
12090
|
-
return
|
|
12148
|
+
return 0x269DC2C1;
|
|
12091
12149
|
}
|
|
12092
12150
|
static get [paramDesc]() {
|
|
12093
12151
|
return [
|
|
@@ -12100,8 +12158,7 @@ export class MessagesRequestWebView extends Function {
|
|
|
12100
12158
|
["startParam", "string", "flags.3?string"],
|
|
12101
12159
|
["themeParams", types.TypeDataJSON, "flags.2?DataJSON"],
|
|
12102
12160
|
["platform", "string", "string"],
|
|
12103
|
-
["
|
|
12104
|
-
["topMsgId", "number", "flags.9?int"],
|
|
12161
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
12105
12162
|
["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
|
|
12106
12163
|
];
|
|
12107
12164
|
}
|
|
@@ -12116,8 +12173,7 @@ export class MessagesRequestWebView extends Function {
|
|
|
12116
12173
|
[this.startParam ?? null, "string", "flags.3?string"],
|
|
12117
12174
|
[this.themeParams ?? null, types.TypeDataJSON, "flags.2?DataJSON"],
|
|
12118
12175
|
[this.platform, "string", "string"],
|
|
12119
|
-
[this.
|
|
12120
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
12176
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
12121
12177
|
[this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
|
|
12122
12178
|
];
|
|
12123
12179
|
}
|
|
@@ -12171,13 +12227,7 @@ export class MessagesRequestWebView extends Function {
|
|
|
12171
12227
|
writable: true,
|
|
12172
12228
|
value: void 0
|
|
12173
12229
|
});
|
|
12174
|
-
Object.defineProperty(this, "
|
|
12175
|
-
enumerable: true,
|
|
12176
|
-
configurable: true,
|
|
12177
|
-
writable: true,
|
|
12178
|
-
value: void 0
|
|
12179
|
-
});
|
|
12180
|
-
Object.defineProperty(this, "topMsgId", {
|
|
12230
|
+
Object.defineProperty(this, "replyTo", {
|
|
12181
12231
|
enumerable: true,
|
|
12182
12232
|
configurable: true,
|
|
12183
12233
|
writable: true,
|
|
@@ -12197,14 +12247,13 @@ export class MessagesRequestWebView extends Function {
|
|
|
12197
12247
|
this.startParam = params.startParam;
|
|
12198
12248
|
this.themeParams = params.themeParams;
|
|
12199
12249
|
this.platform = params.platform;
|
|
12200
|
-
this.
|
|
12201
|
-
this.topMsgId = params.topMsgId;
|
|
12250
|
+
this.replyTo = params.replyTo;
|
|
12202
12251
|
this.sendAs = params.sendAs;
|
|
12203
12252
|
}
|
|
12204
12253
|
}
|
|
12205
12254
|
export class MessagesProlongWebView extends Function {
|
|
12206
12255
|
get [id]() {
|
|
12207
|
-
return
|
|
12256
|
+
return 0xB0D81A83;
|
|
12208
12257
|
}
|
|
12209
12258
|
static get [paramDesc]() {
|
|
12210
12259
|
return [
|
|
@@ -12213,8 +12262,7 @@ export class MessagesProlongWebView extends Function {
|
|
|
12213
12262
|
["peer", types.TypeInputPeer, "InputPeer"],
|
|
12214
12263
|
["bot", types.TypeInputUser, "InputUser"],
|
|
12215
12264
|
["queryId", "bigint", "long"],
|
|
12216
|
-
["
|
|
12217
|
-
["topMsgId", "number", "flags.9?int"],
|
|
12265
|
+
["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
12218
12266
|
["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
|
|
12219
12267
|
];
|
|
12220
12268
|
}
|
|
@@ -12225,8 +12273,7 @@ export class MessagesProlongWebView extends Function {
|
|
|
12225
12273
|
[this.peer, types.TypeInputPeer, "InputPeer"],
|
|
12226
12274
|
[this.bot, types.TypeInputUser, "InputUser"],
|
|
12227
12275
|
[this.queryId, "bigint", "long"],
|
|
12228
|
-
[this.
|
|
12229
|
-
[this.topMsgId ?? null, "number", "flags.9?int"],
|
|
12276
|
+
[this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
|
|
12230
12277
|
[this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
|
|
12231
12278
|
];
|
|
12232
12279
|
}
|
|
@@ -12256,13 +12303,7 @@ export class MessagesProlongWebView extends Function {
|
|
|
12256
12303
|
writable: true,
|
|
12257
12304
|
value: void 0
|
|
12258
12305
|
});
|
|
12259
|
-
Object.defineProperty(this, "
|
|
12260
|
-
enumerable: true,
|
|
12261
|
-
configurable: true,
|
|
12262
|
-
writable: true,
|
|
12263
|
-
value: void 0
|
|
12264
|
-
});
|
|
12265
|
-
Object.defineProperty(this, "topMsgId", {
|
|
12306
|
+
Object.defineProperty(this, "replyTo", {
|
|
12266
12307
|
enumerable: true,
|
|
12267
12308
|
configurable: true,
|
|
12268
12309
|
writable: true,
|
|
@@ -12278,8 +12319,7 @@ export class MessagesProlongWebView extends Function {
|
|
|
12278
12319
|
this.peer = params.peer;
|
|
12279
12320
|
this.bot = params.bot;
|
|
12280
12321
|
this.queryId = params.queryId;
|
|
12281
|
-
this.
|
|
12282
|
-
this.topMsgId = params.topMsgId;
|
|
12322
|
+
this.replyTo = params.replyTo;
|
|
12283
12323
|
this.sendAs = params.sendAs;
|
|
12284
12324
|
}
|
|
12285
12325
|
}
|
|
@@ -13164,24 +13204,28 @@ export class UpdatesGetState extends Function {
|
|
|
13164
13204
|
}
|
|
13165
13205
|
export class UpdatesGetDifference extends Function {
|
|
13166
13206
|
get [id]() {
|
|
13167
|
-
return
|
|
13207
|
+
return 0x19C2F763;
|
|
13168
13208
|
}
|
|
13169
13209
|
static get [paramDesc]() {
|
|
13170
13210
|
return [
|
|
13171
13211
|
["flags", flags, "#"],
|
|
13172
13212
|
["pts", "number", "int"],
|
|
13213
|
+
["ptsLimit", "number", "flags.1?int"],
|
|
13173
13214
|
["ptsTotalLimit", "number", "flags.0?int"],
|
|
13174
13215
|
["date", "number", "int"],
|
|
13175
13216
|
["qts", "number", "int"],
|
|
13217
|
+
["qtsLimit", "number", "flags.2?int"],
|
|
13176
13218
|
];
|
|
13177
13219
|
}
|
|
13178
13220
|
get [params]() {
|
|
13179
13221
|
return [
|
|
13180
13222
|
["flags", flags, "#"],
|
|
13181
13223
|
[this.pts, "number", "int"],
|
|
13224
|
+
[this.ptsLimit ?? null, "number", "flags.1?int"],
|
|
13182
13225
|
[this.ptsTotalLimit ?? null, "number", "flags.0?int"],
|
|
13183
13226
|
[this.date, "number", "int"],
|
|
13184
13227
|
[this.qts, "number", "int"],
|
|
13228
|
+
[this.qtsLimit ?? null, "number", "flags.2?int"],
|
|
13185
13229
|
];
|
|
13186
13230
|
}
|
|
13187
13231
|
constructor(params) {
|
|
@@ -13192,6 +13236,12 @@ export class UpdatesGetDifference extends Function {
|
|
|
13192
13236
|
writable: true,
|
|
13193
13237
|
value: void 0
|
|
13194
13238
|
});
|
|
13239
|
+
Object.defineProperty(this, "ptsLimit", {
|
|
13240
|
+
enumerable: true,
|
|
13241
|
+
configurable: true,
|
|
13242
|
+
writable: true,
|
|
13243
|
+
value: void 0
|
|
13244
|
+
});
|
|
13195
13245
|
Object.defineProperty(this, "ptsTotalLimit", {
|
|
13196
13246
|
enumerable: true,
|
|
13197
13247
|
configurable: true,
|
|
@@ -13210,10 +13260,18 @@ export class UpdatesGetDifference extends Function {
|
|
|
13210
13260
|
writable: true,
|
|
13211
13261
|
value: void 0
|
|
13212
13262
|
});
|
|
13263
|
+
Object.defineProperty(this, "qtsLimit", {
|
|
13264
|
+
enumerable: true,
|
|
13265
|
+
configurable: true,
|
|
13266
|
+
writable: true,
|
|
13267
|
+
value: void 0
|
|
13268
|
+
});
|
|
13213
13269
|
this.pts = params.pts;
|
|
13270
|
+
this.ptsLimit = params.ptsLimit;
|
|
13214
13271
|
this.ptsTotalLimit = params.ptsTotalLimit;
|
|
13215
13272
|
this.date = params.date;
|
|
13216
13273
|
this.qts = params.qts;
|
|
13274
|
+
this.qtsLimit = params.qtsLimit;
|
|
13217
13275
|
}
|
|
13218
13276
|
}
|
|
13219
13277
|
export class UpdatesGetChannelDifference extends Function {
|
|
@@ -16530,6 +16588,40 @@ export class ChannelsToggleParticipantsHidden extends Function {
|
|
|
16530
16588
|
this.enabled = params.enabled;
|
|
16531
16589
|
}
|
|
16532
16590
|
}
|
|
16591
|
+
export class ChannelsClickSponsoredMessage extends Function {
|
|
16592
|
+
get [id]() {
|
|
16593
|
+
return 0x18AFBC93;
|
|
16594
|
+
}
|
|
16595
|
+
static get [paramDesc]() {
|
|
16596
|
+
return [
|
|
16597
|
+
["channel", types.TypeInputChannel, "InputChannel"],
|
|
16598
|
+
["randomId", Uint8Array, "bytes"],
|
|
16599
|
+
];
|
|
16600
|
+
}
|
|
16601
|
+
get [params]() {
|
|
16602
|
+
return [
|
|
16603
|
+
[this.channel, types.TypeInputChannel, "InputChannel"],
|
|
16604
|
+
[this.randomId, Uint8Array, "bytes"],
|
|
16605
|
+
];
|
|
16606
|
+
}
|
|
16607
|
+
constructor(params) {
|
|
16608
|
+
super();
|
|
16609
|
+
Object.defineProperty(this, "channel", {
|
|
16610
|
+
enumerable: true,
|
|
16611
|
+
configurable: true,
|
|
16612
|
+
writable: true,
|
|
16613
|
+
value: void 0
|
|
16614
|
+
});
|
|
16615
|
+
Object.defineProperty(this, "randomId", {
|
|
16616
|
+
enumerable: true,
|
|
16617
|
+
configurable: true,
|
|
16618
|
+
writable: true,
|
|
16619
|
+
value: void 0
|
|
16620
|
+
});
|
|
16621
|
+
this.channel = params.channel;
|
|
16622
|
+
this.randomId = params.randomId;
|
|
16623
|
+
}
|
|
16624
|
+
}
|
|
16533
16625
|
export class BotsSendCustomRequest extends Function {
|
|
16534
16626
|
get [id]() {
|
|
16535
16627
|
return 0xAA2769ED;
|
|
@@ -19854,3 +19946,666 @@ export class ChatlistsLeaveChatlist extends Function {
|
|
|
19854
19946
|
this.peers = params.peers;
|
|
19855
19947
|
}
|
|
19856
19948
|
}
|
|
19949
|
+
export class StoriesSendStory extends Function {
|
|
19950
|
+
get [id]() {
|
|
19951
|
+
return 0x424CD47A;
|
|
19952
|
+
}
|
|
19953
|
+
static get [paramDesc]() {
|
|
19954
|
+
return [
|
|
19955
|
+
["flags", flags, "#"],
|
|
19956
|
+
["pinned", "true", "flags.2?true"],
|
|
19957
|
+
["noforwards", "true", "flags.4?true"],
|
|
19958
|
+
["media", types.TypeInputMedia, "InputMedia"],
|
|
19959
|
+
["caption", "string", "flags.0?string"],
|
|
19960
|
+
["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
19961
|
+
["privacyRules", [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
|
|
19962
|
+
["randomId", "bigint", "long"],
|
|
19963
|
+
["period", "number", "flags.3?int"],
|
|
19964
|
+
];
|
|
19965
|
+
}
|
|
19966
|
+
get [params]() {
|
|
19967
|
+
return [
|
|
19968
|
+
["flags", flags, "#"],
|
|
19969
|
+
[this.pinned ?? null, "true", "flags.2?true"],
|
|
19970
|
+
[this.noforwards ?? null, "true", "flags.4?true"],
|
|
19971
|
+
[this.media, types.TypeInputMedia, "InputMedia"],
|
|
19972
|
+
[this.caption ?? null, "string", "flags.0?string"],
|
|
19973
|
+
[this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
19974
|
+
[this.privacyRules, [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
|
|
19975
|
+
[this.randomId, "bigint", "long"],
|
|
19976
|
+
[this.period ?? null, "number", "flags.3?int"],
|
|
19977
|
+
];
|
|
19978
|
+
}
|
|
19979
|
+
constructor(params) {
|
|
19980
|
+
super();
|
|
19981
|
+
Object.defineProperty(this, "pinned", {
|
|
19982
|
+
enumerable: true,
|
|
19983
|
+
configurable: true,
|
|
19984
|
+
writable: true,
|
|
19985
|
+
value: void 0
|
|
19986
|
+
});
|
|
19987
|
+
Object.defineProperty(this, "noforwards", {
|
|
19988
|
+
enumerable: true,
|
|
19989
|
+
configurable: true,
|
|
19990
|
+
writable: true,
|
|
19991
|
+
value: void 0
|
|
19992
|
+
});
|
|
19993
|
+
Object.defineProperty(this, "media", {
|
|
19994
|
+
enumerable: true,
|
|
19995
|
+
configurable: true,
|
|
19996
|
+
writable: true,
|
|
19997
|
+
value: void 0
|
|
19998
|
+
});
|
|
19999
|
+
Object.defineProperty(this, "caption", {
|
|
20000
|
+
enumerable: true,
|
|
20001
|
+
configurable: true,
|
|
20002
|
+
writable: true,
|
|
20003
|
+
value: void 0
|
|
20004
|
+
});
|
|
20005
|
+
Object.defineProperty(this, "entities", {
|
|
20006
|
+
enumerable: true,
|
|
20007
|
+
configurable: true,
|
|
20008
|
+
writable: true,
|
|
20009
|
+
value: void 0
|
|
20010
|
+
});
|
|
20011
|
+
Object.defineProperty(this, "privacyRules", {
|
|
20012
|
+
enumerable: true,
|
|
20013
|
+
configurable: true,
|
|
20014
|
+
writable: true,
|
|
20015
|
+
value: void 0
|
|
20016
|
+
});
|
|
20017
|
+
Object.defineProperty(this, "randomId", {
|
|
20018
|
+
enumerable: true,
|
|
20019
|
+
configurable: true,
|
|
20020
|
+
writable: true,
|
|
20021
|
+
value: void 0
|
|
20022
|
+
});
|
|
20023
|
+
Object.defineProperty(this, "period", {
|
|
20024
|
+
enumerable: true,
|
|
20025
|
+
configurable: true,
|
|
20026
|
+
writable: true,
|
|
20027
|
+
value: void 0
|
|
20028
|
+
});
|
|
20029
|
+
this.pinned = params.pinned;
|
|
20030
|
+
this.noforwards = params.noforwards;
|
|
20031
|
+
this.media = params.media;
|
|
20032
|
+
this.caption = params.caption;
|
|
20033
|
+
this.entities = params.entities;
|
|
20034
|
+
this.privacyRules = params.privacyRules;
|
|
20035
|
+
this.randomId = params.randomId;
|
|
20036
|
+
this.period = params.period;
|
|
20037
|
+
}
|
|
20038
|
+
}
|
|
20039
|
+
export class StoriesEditStory extends Function {
|
|
20040
|
+
get [id]() {
|
|
20041
|
+
return 0x2AAE7A41;
|
|
20042
|
+
}
|
|
20043
|
+
static get [paramDesc]() {
|
|
20044
|
+
return [
|
|
20045
|
+
["flags", flags, "#"],
|
|
20046
|
+
["id", "number", "int"],
|
|
20047
|
+
["media", types.TypeInputMedia, "flags.0?InputMedia"],
|
|
20048
|
+
["caption", "string", "flags.1?string"],
|
|
20049
|
+
["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
20050
|
+
["privacyRules", [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
|
|
20051
|
+
];
|
|
20052
|
+
}
|
|
20053
|
+
get [params]() {
|
|
20054
|
+
return [
|
|
20055
|
+
["flags", flags, "#"],
|
|
20056
|
+
[this.id, "number", "int"],
|
|
20057
|
+
[this.media ?? null, types.TypeInputMedia, "flags.0?InputMedia"],
|
|
20058
|
+
[this.caption ?? null, "string", "flags.1?string"],
|
|
20059
|
+
[this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
|
|
20060
|
+
[this.privacyRules ?? null, [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
|
|
20061
|
+
];
|
|
20062
|
+
}
|
|
20063
|
+
constructor(params) {
|
|
20064
|
+
super();
|
|
20065
|
+
Object.defineProperty(this, "id", {
|
|
20066
|
+
enumerable: true,
|
|
20067
|
+
configurable: true,
|
|
20068
|
+
writable: true,
|
|
20069
|
+
value: void 0
|
|
20070
|
+
});
|
|
20071
|
+
Object.defineProperty(this, "media", {
|
|
20072
|
+
enumerable: true,
|
|
20073
|
+
configurable: true,
|
|
20074
|
+
writable: true,
|
|
20075
|
+
value: void 0
|
|
20076
|
+
});
|
|
20077
|
+
Object.defineProperty(this, "caption", {
|
|
20078
|
+
enumerable: true,
|
|
20079
|
+
configurable: true,
|
|
20080
|
+
writable: true,
|
|
20081
|
+
value: void 0
|
|
20082
|
+
});
|
|
20083
|
+
Object.defineProperty(this, "entities", {
|
|
20084
|
+
enumerable: true,
|
|
20085
|
+
configurable: true,
|
|
20086
|
+
writable: true,
|
|
20087
|
+
value: void 0
|
|
20088
|
+
});
|
|
20089
|
+
Object.defineProperty(this, "privacyRules", {
|
|
20090
|
+
enumerable: true,
|
|
20091
|
+
configurable: true,
|
|
20092
|
+
writable: true,
|
|
20093
|
+
value: void 0
|
|
20094
|
+
});
|
|
20095
|
+
this.id = params.id;
|
|
20096
|
+
this.media = params.media;
|
|
20097
|
+
this.caption = params.caption;
|
|
20098
|
+
this.entities = params.entities;
|
|
20099
|
+
this.privacyRules = params.privacyRules;
|
|
20100
|
+
}
|
|
20101
|
+
}
|
|
20102
|
+
export class StoriesDeleteStories extends Function {
|
|
20103
|
+
get [id]() {
|
|
20104
|
+
return 0xB5D501D7;
|
|
20105
|
+
}
|
|
20106
|
+
static get [paramDesc]() {
|
|
20107
|
+
return [
|
|
20108
|
+
["id", ["number"], "Vector<int>"],
|
|
20109
|
+
];
|
|
20110
|
+
}
|
|
20111
|
+
get [params]() {
|
|
20112
|
+
return [
|
|
20113
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20114
|
+
];
|
|
20115
|
+
}
|
|
20116
|
+
constructor(params) {
|
|
20117
|
+
super();
|
|
20118
|
+
Object.defineProperty(this, "id", {
|
|
20119
|
+
enumerable: true,
|
|
20120
|
+
configurable: true,
|
|
20121
|
+
writable: true,
|
|
20122
|
+
value: void 0
|
|
20123
|
+
});
|
|
20124
|
+
this.id = params.id;
|
|
20125
|
+
}
|
|
20126
|
+
}
|
|
20127
|
+
export class StoriesTogglePinned extends Function {
|
|
20128
|
+
get [id]() {
|
|
20129
|
+
return 0x51602944;
|
|
20130
|
+
}
|
|
20131
|
+
static get [paramDesc]() {
|
|
20132
|
+
return [
|
|
20133
|
+
["id", ["number"], "Vector<int>"],
|
|
20134
|
+
["pinned", "boolean", "Bool"],
|
|
20135
|
+
];
|
|
20136
|
+
}
|
|
20137
|
+
get [params]() {
|
|
20138
|
+
return [
|
|
20139
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20140
|
+
[this.pinned, "boolean", "Bool"],
|
|
20141
|
+
];
|
|
20142
|
+
}
|
|
20143
|
+
constructor(params) {
|
|
20144
|
+
super();
|
|
20145
|
+
Object.defineProperty(this, "id", {
|
|
20146
|
+
enumerable: true,
|
|
20147
|
+
configurable: true,
|
|
20148
|
+
writable: true,
|
|
20149
|
+
value: void 0
|
|
20150
|
+
});
|
|
20151
|
+
Object.defineProperty(this, "pinned", {
|
|
20152
|
+
enumerable: true,
|
|
20153
|
+
configurable: true,
|
|
20154
|
+
writable: true,
|
|
20155
|
+
value: void 0
|
|
20156
|
+
});
|
|
20157
|
+
this.id = params.id;
|
|
20158
|
+
this.pinned = params.pinned;
|
|
20159
|
+
}
|
|
20160
|
+
}
|
|
20161
|
+
export class StoriesGetAllStories extends Function {
|
|
20162
|
+
get [id]() {
|
|
20163
|
+
return 0xEEB0D625;
|
|
20164
|
+
}
|
|
20165
|
+
static get [paramDesc]() {
|
|
20166
|
+
return [
|
|
20167
|
+
["flags", flags, "#"],
|
|
20168
|
+
["next", "true", "flags.1?true"],
|
|
20169
|
+
["hidden", "true", "flags.2?true"],
|
|
20170
|
+
["state", "string", "flags.0?string"],
|
|
20171
|
+
];
|
|
20172
|
+
}
|
|
20173
|
+
get [params]() {
|
|
20174
|
+
return [
|
|
20175
|
+
["flags", flags, "#"],
|
|
20176
|
+
[this.next ?? null, "true", "flags.1?true"],
|
|
20177
|
+
[this.hidden ?? null, "true", "flags.2?true"],
|
|
20178
|
+
[this.state ?? null, "string", "flags.0?string"],
|
|
20179
|
+
];
|
|
20180
|
+
}
|
|
20181
|
+
constructor(params) {
|
|
20182
|
+
super();
|
|
20183
|
+
Object.defineProperty(this, "next", {
|
|
20184
|
+
enumerable: true,
|
|
20185
|
+
configurable: true,
|
|
20186
|
+
writable: true,
|
|
20187
|
+
value: void 0
|
|
20188
|
+
});
|
|
20189
|
+
Object.defineProperty(this, "hidden", {
|
|
20190
|
+
enumerable: true,
|
|
20191
|
+
configurable: true,
|
|
20192
|
+
writable: true,
|
|
20193
|
+
value: void 0
|
|
20194
|
+
});
|
|
20195
|
+
Object.defineProperty(this, "state", {
|
|
20196
|
+
enumerable: true,
|
|
20197
|
+
configurable: true,
|
|
20198
|
+
writable: true,
|
|
20199
|
+
value: void 0
|
|
20200
|
+
});
|
|
20201
|
+
this.next = params?.next;
|
|
20202
|
+
this.hidden = params?.hidden;
|
|
20203
|
+
this.state = params?.state;
|
|
20204
|
+
}
|
|
20205
|
+
}
|
|
20206
|
+
export class StoriesGetUserStories extends Function {
|
|
20207
|
+
get [id]() {
|
|
20208
|
+
return 0x96D528E0;
|
|
20209
|
+
}
|
|
20210
|
+
static get [paramDesc]() {
|
|
20211
|
+
return [
|
|
20212
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20213
|
+
];
|
|
20214
|
+
}
|
|
20215
|
+
get [params]() {
|
|
20216
|
+
return [
|
|
20217
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20218
|
+
];
|
|
20219
|
+
}
|
|
20220
|
+
constructor(params) {
|
|
20221
|
+
super();
|
|
20222
|
+
Object.defineProperty(this, "userId", {
|
|
20223
|
+
enumerable: true,
|
|
20224
|
+
configurable: true,
|
|
20225
|
+
writable: true,
|
|
20226
|
+
value: void 0
|
|
20227
|
+
});
|
|
20228
|
+
this.userId = params.userId;
|
|
20229
|
+
}
|
|
20230
|
+
}
|
|
20231
|
+
export class StoriesGetPinnedStories extends Function {
|
|
20232
|
+
get [id]() {
|
|
20233
|
+
return 0x0B471137;
|
|
20234
|
+
}
|
|
20235
|
+
static get [paramDesc]() {
|
|
20236
|
+
return [
|
|
20237
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20238
|
+
["offsetId", "number", "int"],
|
|
20239
|
+
["limit", "number", "int"],
|
|
20240
|
+
];
|
|
20241
|
+
}
|
|
20242
|
+
get [params]() {
|
|
20243
|
+
return [
|
|
20244
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20245
|
+
[this.offsetId, "number", "int"],
|
|
20246
|
+
[this.limit, "number", "int"],
|
|
20247
|
+
];
|
|
20248
|
+
}
|
|
20249
|
+
constructor(params) {
|
|
20250
|
+
super();
|
|
20251
|
+
Object.defineProperty(this, "userId", {
|
|
20252
|
+
enumerable: true,
|
|
20253
|
+
configurable: true,
|
|
20254
|
+
writable: true,
|
|
20255
|
+
value: void 0
|
|
20256
|
+
});
|
|
20257
|
+
Object.defineProperty(this, "offsetId", {
|
|
20258
|
+
enumerable: true,
|
|
20259
|
+
configurable: true,
|
|
20260
|
+
writable: true,
|
|
20261
|
+
value: void 0
|
|
20262
|
+
});
|
|
20263
|
+
Object.defineProperty(this, "limit", {
|
|
20264
|
+
enumerable: true,
|
|
20265
|
+
configurable: true,
|
|
20266
|
+
writable: true,
|
|
20267
|
+
value: void 0
|
|
20268
|
+
});
|
|
20269
|
+
this.userId = params.userId;
|
|
20270
|
+
this.offsetId = params.offsetId;
|
|
20271
|
+
this.limit = params.limit;
|
|
20272
|
+
}
|
|
20273
|
+
}
|
|
20274
|
+
export class StoriesGetStoriesArchive extends Function {
|
|
20275
|
+
get [id]() {
|
|
20276
|
+
return 0x1F5BC5D2;
|
|
20277
|
+
}
|
|
20278
|
+
static get [paramDesc]() {
|
|
20279
|
+
return [
|
|
20280
|
+
["offsetId", "number", "int"],
|
|
20281
|
+
["limit", "number", "int"],
|
|
20282
|
+
];
|
|
20283
|
+
}
|
|
20284
|
+
get [params]() {
|
|
20285
|
+
return [
|
|
20286
|
+
[this.offsetId, "number", "int"],
|
|
20287
|
+
[this.limit, "number", "int"],
|
|
20288
|
+
];
|
|
20289
|
+
}
|
|
20290
|
+
constructor(params) {
|
|
20291
|
+
super();
|
|
20292
|
+
Object.defineProperty(this, "offsetId", {
|
|
20293
|
+
enumerable: true,
|
|
20294
|
+
configurable: true,
|
|
20295
|
+
writable: true,
|
|
20296
|
+
value: void 0
|
|
20297
|
+
});
|
|
20298
|
+
Object.defineProperty(this, "limit", {
|
|
20299
|
+
enumerable: true,
|
|
20300
|
+
configurable: true,
|
|
20301
|
+
writable: true,
|
|
20302
|
+
value: void 0
|
|
20303
|
+
});
|
|
20304
|
+
this.offsetId = params.offsetId;
|
|
20305
|
+
this.limit = params.limit;
|
|
20306
|
+
}
|
|
20307
|
+
}
|
|
20308
|
+
export class StoriesGetStoriesByID extends Function {
|
|
20309
|
+
get [id]() {
|
|
20310
|
+
return 0x6A15CF46;
|
|
20311
|
+
}
|
|
20312
|
+
static get [paramDesc]() {
|
|
20313
|
+
return [
|
|
20314
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20315
|
+
["id", ["number"], "Vector<int>"],
|
|
20316
|
+
];
|
|
20317
|
+
}
|
|
20318
|
+
get [params]() {
|
|
20319
|
+
return [
|
|
20320
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20321
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20322
|
+
];
|
|
20323
|
+
}
|
|
20324
|
+
constructor(params) {
|
|
20325
|
+
super();
|
|
20326
|
+
Object.defineProperty(this, "userId", {
|
|
20327
|
+
enumerable: true,
|
|
20328
|
+
configurable: true,
|
|
20329
|
+
writable: true,
|
|
20330
|
+
value: void 0
|
|
20331
|
+
});
|
|
20332
|
+
Object.defineProperty(this, "id", {
|
|
20333
|
+
enumerable: true,
|
|
20334
|
+
configurable: true,
|
|
20335
|
+
writable: true,
|
|
20336
|
+
value: void 0
|
|
20337
|
+
});
|
|
20338
|
+
this.userId = params.userId;
|
|
20339
|
+
this.id = params.id;
|
|
20340
|
+
}
|
|
20341
|
+
}
|
|
20342
|
+
export class StoriesToggleAllStoriesHidden extends Function {
|
|
20343
|
+
get [id]() {
|
|
20344
|
+
return 0x7C2557C4;
|
|
20345
|
+
}
|
|
20346
|
+
static get [paramDesc]() {
|
|
20347
|
+
return [
|
|
20348
|
+
["hidden", "boolean", "Bool"],
|
|
20349
|
+
];
|
|
20350
|
+
}
|
|
20351
|
+
get [params]() {
|
|
20352
|
+
return [
|
|
20353
|
+
[this.hidden, "boolean", "Bool"],
|
|
20354
|
+
];
|
|
20355
|
+
}
|
|
20356
|
+
constructor(params) {
|
|
20357
|
+
super();
|
|
20358
|
+
Object.defineProperty(this, "hidden", {
|
|
20359
|
+
enumerable: true,
|
|
20360
|
+
configurable: true,
|
|
20361
|
+
writable: true,
|
|
20362
|
+
value: void 0
|
|
20363
|
+
});
|
|
20364
|
+
this.hidden = params.hidden;
|
|
20365
|
+
}
|
|
20366
|
+
}
|
|
20367
|
+
export class StoriesGetAllReadUserStories extends Function {
|
|
20368
|
+
get [id]() {
|
|
20369
|
+
return 0x729C562C;
|
|
20370
|
+
}
|
|
20371
|
+
static get [paramDesc]() {
|
|
20372
|
+
return [];
|
|
20373
|
+
}
|
|
20374
|
+
get [params]() {
|
|
20375
|
+
return [];
|
|
20376
|
+
}
|
|
20377
|
+
constructor() {
|
|
20378
|
+
super();
|
|
20379
|
+
}
|
|
20380
|
+
}
|
|
20381
|
+
export class StoriesReadStories extends Function {
|
|
20382
|
+
get [id]() {
|
|
20383
|
+
return 0xEDC5105B;
|
|
20384
|
+
}
|
|
20385
|
+
static get [paramDesc]() {
|
|
20386
|
+
return [
|
|
20387
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20388
|
+
["maxId", "number", "int"],
|
|
20389
|
+
];
|
|
20390
|
+
}
|
|
20391
|
+
get [params]() {
|
|
20392
|
+
return [
|
|
20393
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20394
|
+
[this.maxId, "number", "int"],
|
|
20395
|
+
];
|
|
20396
|
+
}
|
|
20397
|
+
constructor(params) {
|
|
20398
|
+
super();
|
|
20399
|
+
Object.defineProperty(this, "userId", {
|
|
20400
|
+
enumerable: true,
|
|
20401
|
+
configurable: true,
|
|
20402
|
+
writable: true,
|
|
20403
|
+
value: void 0
|
|
20404
|
+
});
|
|
20405
|
+
Object.defineProperty(this, "maxId", {
|
|
20406
|
+
enumerable: true,
|
|
20407
|
+
configurable: true,
|
|
20408
|
+
writable: true,
|
|
20409
|
+
value: void 0
|
|
20410
|
+
});
|
|
20411
|
+
this.userId = params.userId;
|
|
20412
|
+
this.maxId = params.maxId;
|
|
20413
|
+
}
|
|
20414
|
+
}
|
|
20415
|
+
export class StoriesIncrementStoryViews extends Function {
|
|
20416
|
+
get [id]() {
|
|
20417
|
+
return 0x22126127;
|
|
20418
|
+
}
|
|
20419
|
+
static get [paramDesc]() {
|
|
20420
|
+
return [
|
|
20421
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20422
|
+
["id", ["number"], "Vector<int>"],
|
|
20423
|
+
];
|
|
20424
|
+
}
|
|
20425
|
+
get [params]() {
|
|
20426
|
+
return [
|
|
20427
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20428
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20429
|
+
];
|
|
20430
|
+
}
|
|
20431
|
+
constructor(params) {
|
|
20432
|
+
super();
|
|
20433
|
+
Object.defineProperty(this, "userId", {
|
|
20434
|
+
enumerable: true,
|
|
20435
|
+
configurable: true,
|
|
20436
|
+
writable: true,
|
|
20437
|
+
value: void 0
|
|
20438
|
+
});
|
|
20439
|
+
Object.defineProperty(this, "id", {
|
|
20440
|
+
enumerable: true,
|
|
20441
|
+
configurable: true,
|
|
20442
|
+
writable: true,
|
|
20443
|
+
value: void 0
|
|
20444
|
+
});
|
|
20445
|
+
this.userId = params.userId;
|
|
20446
|
+
this.id = params.id;
|
|
20447
|
+
}
|
|
20448
|
+
}
|
|
20449
|
+
export class StoriesGetStoryViewsList extends Function {
|
|
20450
|
+
get [id]() {
|
|
20451
|
+
return 0x4B3B5E97;
|
|
20452
|
+
}
|
|
20453
|
+
static get [paramDesc]() {
|
|
20454
|
+
return [
|
|
20455
|
+
["id", "number", "int"],
|
|
20456
|
+
["offsetDate", "number", "int"],
|
|
20457
|
+
["offsetId", "bigint", "long"],
|
|
20458
|
+
["limit", "number", "int"],
|
|
20459
|
+
];
|
|
20460
|
+
}
|
|
20461
|
+
get [params]() {
|
|
20462
|
+
return [
|
|
20463
|
+
[this.id, "number", "int"],
|
|
20464
|
+
[this.offsetDate, "number", "int"],
|
|
20465
|
+
[this.offsetId, "bigint", "long"],
|
|
20466
|
+
[this.limit, "number", "int"],
|
|
20467
|
+
];
|
|
20468
|
+
}
|
|
20469
|
+
constructor(params) {
|
|
20470
|
+
super();
|
|
20471
|
+
Object.defineProperty(this, "id", {
|
|
20472
|
+
enumerable: true,
|
|
20473
|
+
configurable: true,
|
|
20474
|
+
writable: true,
|
|
20475
|
+
value: void 0
|
|
20476
|
+
});
|
|
20477
|
+
Object.defineProperty(this, "offsetDate", {
|
|
20478
|
+
enumerable: true,
|
|
20479
|
+
configurable: true,
|
|
20480
|
+
writable: true,
|
|
20481
|
+
value: void 0
|
|
20482
|
+
});
|
|
20483
|
+
Object.defineProperty(this, "offsetId", {
|
|
20484
|
+
enumerable: true,
|
|
20485
|
+
configurable: true,
|
|
20486
|
+
writable: true,
|
|
20487
|
+
value: void 0
|
|
20488
|
+
});
|
|
20489
|
+
Object.defineProperty(this, "limit", {
|
|
20490
|
+
enumerable: true,
|
|
20491
|
+
configurable: true,
|
|
20492
|
+
writable: true,
|
|
20493
|
+
value: void 0
|
|
20494
|
+
});
|
|
20495
|
+
this.id = params.id;
|
|
20496
|
+
this.offsetDate = params.offsetDate;
|
|
20497
|
+
this.offsetId = params.offsetId;
|
|
20498
|
+
this.limit = params.limit;
|
|
20499
|
+
}
|
|
20500
|
+
}
|
|
20501
|
+
export class StoriesGetStoriesViews extends Function {
|
|
20502
|
+
get [id]() {
|
|
20503
|
+
return 0x9A75D6A6;
|
|
20504
|
+
}
|
|
20505
|
+
static get [paramDesc]() {
|
|
20506
|
+
return [
|
|
20507
|
+
["id", ["number"], "Vector<int>"],
|
|
20508
|
+
];
|
|
20509
|
+
}
|
|
20510
|
+
get [params]() {
|
|
20511
|
+
return [
|
|
20512
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20513
|
+
];
|
|
20514
|
+
}
|
|
20515
|
+
constructor(params) {
|
|
20516
|
+
super();
|
|
20517
|
+
Object.defineProperty(this, "id", {
|
|
20518
|
+
enumerable: true,
|
|
20519
|
+
configurable: true,
|
|
20520
|
+
writable: true,
|
|
20521
|
+
value: void 0
|
|
20522
|
+
});
|
|
20523
|
+
this.id = params.id;
|
|
20524
|
+
}
|
|
20525
|
+
}
|
|
20526
|
+
export class StoriesExportStoryLink extends Function {
|
|
20527
|
+
get [id]() {
|
|
20528
|
+
return 0x16E443CE;
|
|
20529
|
+
}
|
|
20530
|
+
static get [paramDesc]() {
|
|
20531
|
+
return [
|
|
20532
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20533
|
+
["id", "number", "int"],
|
|
20534
|
+
];
|
|
20535
|
+
}
|
|
20536
|
+
get [params]() {
|
|
20537
|
+
return [
|
|
20538
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20539
|
+
[this.id, "number", "int"],
|
|
20540
|
+
];
|
|
20541
|
+
}
|
|
20542
|
+
constructor(params) {
|
|
20543
|
+
super();
|
|
20544
|
+
Object.defineProperty(this, "userId", {
|
|
20545
|
+
enumerable: true,
|
|
20546
|
+
configurable: true,
|
|
20547
|
+
writable: true,
|
|
20548
|
+
value: void 0
|
|
20549
|
+
});
|
|
20550
|
+
Object.defineProperty(this, "id", {
|
|
20551
|
+
enumerable: true,
|
|
20552
|
+
configurable: true,
|
|
20553
|
+
writable: true,
|
|
20554
|
+
value: void 0
|
|
20555
|
+
});
|
|
20556
|
+
this.userId = params.userId;
|
|
20557
|
+
this.id = params.id;
|
|
20558
|
+
}
|
|
20559
|
+
}
|
|
20560
|
+
export class StoriesReport extends Function {
|
|
20561
|
+
get [id]() {
|
|
20562
|
+
return 0xC95BE06A;
|
|
20563
|
+
}
|
|
20564
|
+
static get [paramDesc]() {
|
|
20565
|
+
return [
|
|
20566
|
+
["userId", types.TypeInputUser, "InputUser"],
|
|
20567
|
+
["id", ["number"], "Vector<int>"],
|
|
20568
|
+
["reason", types.TypeReportReason, "ReportReason"],
|
|
20569
|
+
["message", "string", "string"],
|
|
20570
|
+
];
|
|
20571
|
+
}
|
|
20572
|
+
get [params]() {
|
|
20573
|
+
return [
|
|
20574
|
+
[this.userId, types.TypeInputUser, "InputUser"],
|
|
20575
|
+
[this.id, ["number"], "Vector<int>"],
|
|
20576
|
+
[this.reason, types.TypeReportReason, "ReportReason"],
|
|
20577
|
+
[this.message, "string", "string"],
|
|
20578
|
+
];
|
|
20579
|
+
}
|
|
20580
|
+
constructor(params) {
|
|
20581
|
+
super();
|
|
20582
|
+
Object.defineProperty(this, "userId", {
|
|
20583
|
+
enumerable: true,
|
|
20584
|
+
configurable: true,
|
|
20585
|
+
writable: true,
|
|
20586
|
+
value: void 0
|
|
20587
|
+
});
|
|
20588
|
+
Object.defineProperty(this, "id", {
|
|
20589
|
+
enumerable: true,
|
|
20590
|
+
configurable: true,
|
|
20591
|
+
writable: true,
|
|
20592
|
+
value: void 0
|
|
20593
|
+
});
|
|
20594
|
+
Object.defineProperty(this, "reason", {
|
|
20595
|
+
enumerable: true,
|
|
20596
|
+
configurable: true,
|
|
20597
|
+
writable: true,
|
|
20598
|
+
value: void 0
|
|
20599
|
+
});
|
|
20600
|
+
Object.defineProperty(this, "message", {
|
|
20601
|
+
enumerable: true,
|
|
20602
|
+
configurable: true,
|
|
20603
|
+
writable: true,
|
|
20604
|
+
value: void 0
|
|
20605
|
+
});
|
|
20606
|
+
this.userId = params.userId;
|
|
20607
|
+
this.id = params.id;
|
|
20608
|
+
this.reason = params.reason;
|
|
20609
|
+
this.message = params.message;
|
|
20610
|
+
}
|
|
20611
|
+
}
|