@mtkruto/node 0.0.967 → 0.0.968

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.
Files changed (39) hide show
  1. package/esm/client/1_client_abstract.js +2 -2
  2. package/esm/client/3_client.d.ts +3 -3
  3. package/esm/client/3_client.js +3 -6
  4. package/esm/connection/0_connection.d.ts +11 -2
  5. package/esm/connection/0_connection.js +23 -1
  6. package/esm/connection/1_connection_http.d.ts +16 -0
  7. package/esm/connection/1_connection_http.js +91 -0
  8. package/esm/connection/1_connection_web_socket.d.ts +2 -2
  9. package/esm/connection/1_connection_web_socket.js +3 -2
  10. package/esm/constants.d.ts +2 -2
  11. package/esm/constants.js +2 -2
  12. package/esm/tl/2_types.d.ts +484 -87
  13. package/esm/tl/2_types.js +1647 -308
  14. package/esm/tl/3_functions.d.ts +286 -48
  15. package/esm/tl/3_functions.js +919 -165
  16. package/esm/transport/1_transport_piped.d.ts +10 -0
  17. package/esm/transport/1_transport_piped.js +23 -0
  18. package/esm/transport/2_transport_provider.d.ts +8 -2
  19. package/esm/transport/2_transport_provider.js +40 -2
  20. package/package.json +1 -1
  21. package/script/client/1_client_abstract.js +1 -1
  22. package/script/client/3_client.d.ts +3 -3
  23. package/script/client/3_client.js +3 -6
  24. package/script/connection/0_connection.d.ts +11 -2
  25. package/script/connection/0_connection.js +26 -3
  26. package/script/connection/1_connection_http.d.ts +16 -0
  27. package/script/connection/1_connection_http.js +95 -0
  28. package/script/connection/1_connection_web_socket.d.ts +2 -2
  29. package/script/connection/1_connection_web_socket.js +3 -2
  30. package/script/constants.d.ts +2 -2
  31. package/script/constants.js +2 -2
  32. package/script/tl/2_types.d.ts +484 -87
  33. package/script/tl/2_types.js +1718 -339
  34. package/script/tl/3_functions.d.ts +286 -48
  35. package/script/tl/3_functions.js +950 -175
  36. package/script/transport/1_transport_piped.d.ts +10 -0
  37. package/script/transport/1_transport_piped.js +27 -0
  38. package/script/transport/2_transport_provider.d.ts +8 -2
  39. package/script/transport/2_transport_provider.js +43 -4
@@ -1594,9 +1594,9 @@ export class AccountUpdateProfile extends Function {
1594
1594
  writable: true,
1595
1595
  value: void 0
1596
1596
  });
1597
- this.firstName = params?.firstName;
1598
- this.lastName = params?.lastName;
1599
- this.about = params?.about;
1597
+ this.firstName = params.firstName;
1598
+ this.lastName = params.lastName;
1599
+ this.about = params.about;
1600
1600
  }
1601
1601
  }
1602
1602
  export class AccountUpdateStatus extends Function {
@@ -2664,13 +2664,13 @@ export class AccountInitTakeoutSession extends Function {
2664
2664
  writable: true,
2665
2665
  value: void 0
2666
2666
  });
2667
- this.contacts = params?.contacts;
2668
- this.messageUsers = params?.messageUsers;
2669
- this.messageChats = params?.messageChats;
2670
- this.messageMegagroups = params?.messageMegagroups;
2671
- this.messageChannels = params?.messageChannels;
2672
- this.files = params?.files;
2673
- this.fileMaxSize = params?.fileMaxSize;
2667
+ this.contacts = params.contacts;
2668
+ this.messageUsers = params.messageUsers;
2669
+ this.messageChats = params.messageChats;
2670
+ this.messageMegagroups = params.messageMegagroups;
2671
+ this.messageChannels = params.messageChannels;
2672
+ this.files = params.files;
2673
+ this.fileMaxSize = params.fileMaxSize;
2674
2674
  }
2675
2675
  }
2676
2676
  export class AccountFinishTakeoutSession extends Function {
@@ -2697,7 +2697,7 @@ export class AccountFinishTakeoutSession extends Function {
2697
2697
  writable: true,
2698
2698
  value: void 0
2699
2699
  });
2700
- this.success = params?.success;
2700
+ this.success = params.success;
2701
2701
  }
2702
2702
  }
2703
2703
  export class AccountConfirmPasswordEmail extends Function {
@@ -2800,6 +2800,7 @@ export class AccountGetNotifyExceptions extends Function {
2800
2800
  return [
2801
2801
  ["flags", flags, "#"],
2802
2802
  ["compareSound", "true", "flags.1?true"],
2803
+ ["compareStories", "true", "flags.2?true"],
2803
2804
  ["peer", types.TypeInputNotifyPeer, "flags.0?InputNotifyPeer"],
2804
2805
  ];
2805
2806
  }
@@ -2807,6 +2808,7 @@ export class AccountGetNotifyExceptions extends Function {
2807
2808
  return [
2808
2809
  ["flags", flags, "#"],
2809
2810
  [this.compareSound ?? null, "true", "flags.1?true"],
2811
+ [this.compareStories ?? null, "true", "flags.2?true"],
2810
2812
  [this.peer ?? null, types.TypeInputNotifyPeer, "flags.0?InputNotifyPeer"],
2811
2813
  ];
2812
2814
  }
@@ -2818,14 +2820,21 @@ export class AccountGetNotifyExceptions extends Function {
2818
2820
  writable: true,
2819
2821
  value: void 0
2820
2822
  });
2823
+ Object.defineProperty(this, "compareStories", {
2824
+ enumerable: true,
2825
+ configurable: true,
2826
+ writable: true,
2827
+ value: void 0
2828
+ });
2821
2829
  Object.defineProperty(this, "peer", {
2822
2830
  enumerable: true,
2823
2831
  configurable: true,
2824
2832
  writable: true,
2825
2833
  value: void 0
2826
2834
  });
2827
- this.compareSound = params?.compareSound;
2828
- this.peer = params?.peer;
2835
+ this.compareSound = params.compareSound;
2836
+ this.compareStories = params.compareStories;
2837
+ this.peer = params.peer;
2829
2838
  }
2830
2839
  }
2831
2840
  export class AccountGetWallPaper extends Function {
@@ -3319,10 +3328,10 @@ export class AccountInstallTheme extends Function {
3319
3328
  writable: true,
3320
3329
  value: void 0
3321
3330
  });
3322
- this.dark = params?.dark;
3323
- this.theme = params?.theme;
3324
- this.format = params?.format;
3325
- this.baseTheme = params?.baseTheme;
3331
+ this.dark = params.dark;
3332
+ this.theme = params.theme;
3333
+ this.format = params.format;
3334
+ this.baseTheme = params.baseTheme;
3326
3335
  }
3327
3336
  }
3328
3337
  export class AccountGetTheme extends Function {
@@ -3417,7 +3426,7 @@ export class AccountSetContentSettings extends Function {
3417
3426
  writable: true,
3418
3427
  value: void 0
3419
3428
  });
3420
- this.sensitiveEnabled = params?.sensitiveEnabled;
3429
+ this.sensitiveEnabled = params.sensitiveEnabled;
3421
3430
  }
3422
3431
  }
3423
3432
  export class AccountGetContentSettings extends Function {
@@ -4064,6 +4073,31 @@ export class AccountDeleteAutoSaveExceptions extends Function {
4064
4073
  super();
4065
4074
  }
4066
4075
  }
4076
+ export class AccountInvalidateSignInCodes extends Function {
4077
+ get [id]() {
4078
+ return 0xCA8AE8BA;
4079
+ }
4080
+ static get [paramDesc]() {
4081
+ return [
4082
+ ["codes", ["string"], "Vector<string>"],
4083
+ ];
4084
+ }
4085
+ get [params]() {
4086
+ return [
4087
+ [this.codes, ["string"], "Vector<string>"],
4088
+ ];
4089
+ }
4090
+ constructor(params) {
4091
+ super();
4092
+ Object.defineProperty(this, "codes", {
4093
+ enumerable: true,
4094
+ configurable: true,
4095
+ writable: true,
4096
+ value: void 0
4097
+ });
4098
+ this.codes = params.codes;
4099
+ }
4100
+ }
4067
4101
  export class UsersGetUsers extends Function {
4068
4102
  get [id]() {
4069
4103
  return 0x0D91A548;
@@ -4148,6 +4182,31 @@ export class UsersSetSecureValueErrors extends Function {
4148
4182
  this.errors = params.errors;
4149
4183
  }
4150
4184
  }
4185
+ export class UsersGetStoriesMaxIDs extends Function {
4186
+ get [id]() {
4187
+ return 0xCA1CB9AB;
4188
+ }
4189
+ static get [paramDesc]() {
4190
+ return [
4191
+ ["id", [types.TypeInputUser], "Vector<InputUser>"],
4192
+ ];
4193
+ }
4194
+ get [params]() {
4195
+ return [
4196
+ [this.id, [types.TypeInputUser], "Vector<InputUser>"],
4197
+ ];
4198
+ }
4199
+ constructor(params) {
4200
+ super();
4201
+ Object.defineProperty(this, "id", {
4202
+ enumerable: true,
4203
+ configurable: true,
4204
+ writable: true,
4205
+ value: void 0
4206
+ });
4207
+ this.id = params.id;
4208
+ }
4209
+ }
4151
4210
  export class ContactsGetContactIDs extends Function {
4152
4211
  get [id]() {
4153
4212
  return 0x7ADC669D;
@@ -4885,6 +4944,65 @@ export class ContactsImportContactToken extends Function {
4885
4944
  this.token = params.token;
4886
4945
  }
4887
4946
  }
4947
+ export class ContactsEditCloseFriends extends Function {
4948
+ get [id]() {
4949
+ return 0xBA6705F0;
4950
+ }
4951
+ static get [paramDesc]() {
4952
+ return [
4953
+ ["id", ["bigint"], "Vector<long>"],
4954
+ ];
4955
+ }
4956
+ get [params]() {
4957
+ return [
4958
+ [this.id, ["bigint"], "Vector<long>"],
4959
+ ];
4960
+ }
4961
+ constructor(params) {
4962
+ super();
4963
+ Object.defineProperty(this, "id", {
4964
+ enumerable: true,
4965
+ configurable: true,
4966
+ writable: true,
4967
+ value: void 0
4968
+ });
4969
+ this.id = params.id;
4970
+ }
4971
+ }
4972
+ export class ContactsToggleStoriesHidden extends Function {
4973
+ get [id]() {
4974
+ return 0x753FB865;
4975
+ }
4976
+ static get [paramDesc]() {
4977
+ return [
4978
+ ["id", types.TypeInputUser, "InputUser"],
4979
+ ["hidden", "boolean", "Bool"],
4980
+ ];
4981
+ }
4982
+ get [params]() {
4983
+ return [
4984
+ [this.id, types.TypeInputUser, "InputUser"],
4985
+ [this.hidden, "boolean", "Bool"],
4986
+ ];
4987
+ }
4988
+ constructor(params) {
4989
+ super();
4990
+ Object.defineProperty(this, "id", {
4991
+ enumerable: true,
4992
+ configurable: true,
4993
+ writable: true,
4994
+ value: void 0
4995
+ });
4996
+ Object.defineProperty(this, "hidden", {
4997
+ enumerable: true,
4998
+ configurable: true,
4999
+ writable: true,
5000
+ value: void 0
5001
+ });
5002
+ this.id = params.id;
5003
+ this.hidden = params.hidden;
5004
+ }
5005
+ }
4888
5006
  export class MessagesGetMessages extends Function {
4889
5007
  get [id]() {
4890
5008
  return 0x63C66506;
@@ -5428,7 +5546,7 @@ export class MessagesSetTyping extends Function {
5428
5546
  }
5429
5547
  export class MessagesSendMessage extends Function {
5430
5548
  get [id]() {
5431
- return 0x1CC20387;
5549
+ return 0x280D096F;
5432
5550
  }
5433
5551
  static get [paramDesc]() {
5434
5552
  return [
@@ -5440,8 +5558,7 @@ export class MessagesSendMessage extends Function {
5440
5558
  ["noforwards", "true", "flags.14?true"],
5441
5559
  ["updateStickersetsOrder", "true", "flags.15?true"],
5442
5560
  ["peer", types.TypeInputPeer, "InputPeer"],
5443
- ["replyToMsgId", "number", "flags.0?int"],
5444
- ["topMsgId", "number", "flags.9?int"],
5561
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
5445
5562
  ["message", "string", "string"],
5446
5563
  ["randomId", "bigint", "long"],
5447
5564
  ["replyMarkup", types.TypeReplyMarkup, "flags.2?ReplyMarkup"],
@@ -5460,8 +5577,7 @@ export class MessagesSendMessage extends Function {
5460
5577
  [this.noforwards ?? null, "true", "flags.14?true"],
5461
5578
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5462
5579
  [this.peer, types.TypeInputPeer, "InputPeer"],
5463
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
5464
- [this.topMsgId ?? null, "number", "flags.9?int"],
5580
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
5465
5581
  [this.message, "string", "string"],
5466
5582
  [this.randomId, "bigint", "long"],
5467
5583
  [this.replyMarkup ?? null, types.TypeReplyMarkup, "flags.2?ReplyMarkup"],
@@ -5514,13 +5630,7 @@ export class MessagesSendMessage extends Function {
5514
5630
  writable: true,
5515
5631
  value: void 0
5516
5632
  });
5517
- Object.defineProperty(this, "replyToMsgId", {
5518
- enumerable: true,
5519
- configurable: true,
5520
- writable: true,
5521
- value: void 0
5522
- });
5523
- Object.defineProperty(this, "topMsgId", {
5633
+ Object.defineProperty(this, "replyTo", {
5524
5634
  enumerable: true,
5525
5635
  configurable: true,
5526
5636
  writable: true,
@@ -5569,8 +5679,7 @@ export class MessagesSendMessage extends Function {
5569
5679
  this.noforwards = params.noforwards;
5570
5680
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5571
5681
  this.peer = params.peer;
5572
- this.replyToMsgId = params.replyToMsgId;
5573
- this.topMsgId = params.topMsgId;
5682
+ this.replyTo = params.replyTo;
5574
5683
  this.message = params.message;
5575
5684
  this.randomId = params.randomId;
5576
5685
  this.replyMarkup = params.replyMarkup;
@@ -5581,7 +5690,7 @@ export class MessagesSendMessage extends Function {
5581
5690
  }
5582
5691
  export class MessagesSendMedia extends Function {
5583
5692
  get [id]() {
5584
- return 0x7547C966;
5693
+ return 0x72CCC23D;
5585
5694
  }
5586
5695
  static get [paramDesc]() {
5587
5696
  return [
@@ -5592,8 +5701,7 @@ export class MessagesSendMedia extends Function {
5592
5701
  ["noforwards", "true", "flags.14?true"],
5593
5702
  ["updateStickersetsOrder", "true", "flags.15?true"],
5594
5703
  ["peer", types.TypeInputPeer, "InputPeer"],
5595
- ["replyToMsgId", "number", "flags.0?int"],
5596
- ["topMsgId", "number", "flags.9?int"],
5704
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
5597
5705
  ["media", types.TypeInputMedia, "InputMedia"],
5598
5706
  ["message", "string", "string"],
5599
5707
  ["randomId", "bigint", "long"],
@@ -5612,8 +5720,7 @@ export class MessagesSendMedia extends Function {
5612
5720
  [this.noforwards ?? null, "true", "flags.14?true"],
5613
5721
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5614
5722
  [this.peer, types.TypeInputPeer, "InputPeer"],
5615
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
5616
- [this.topMsgId ?? null, "number", "flags.9?int"],
5723
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
5617
5724
  [this.media, types.TypeInputMedia, "InputMedia"],
5618
5725
  [this.message, "string", "string"],
5619
5726
  [this.randomId, "bigint", "long"],
@@ -5661,13 +5768,7 @@ export class MessagesSendMedia extends Function {
5661
5768
  writable: true,
5662
5769
  value: void 0
5663
5770
  });
5664
- Object.defineProperty(this, "replyToMsgId", {
5665
- enumerable: true,
5666
- configurable: true,
5667
- writable: true,
5668
- value: void 0
5669
- });
5670
- Object.defineProperty(this, "topMsgId", {
5771
+ Object.defineProperty(this, "replyTo", {
5671
5772
  enumerable: true,
5672
5773
  configurable: true,
5673
5774
  writable: true,
@@ -5721,8 +5822,7 @@ export class MessagesSendMedia extends Function {
5721
5822
  this.noforwards = params.noforwards;
5722
5823
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5723
5824
  this.peer = params.peer;
5724
- this.replyToMsgId = params.replyToMsgId;
5725
- this.topMsgId = params.topMsgId;
5825
+ this.replyTo = params.replyTo;
5726
5826
  this.media = params.media;
5727
5827
  this.message = params.message;
5728
5828
  this.randomId = params.randomId;
@@ -7553,7 +7653,7 @@ export class MessagesSetInlineBotResults extends Function {
7553
7653
  }
7554
7654
  export class MessagesSendInlineBotResult extends Function {
7555
7655
  get [id]() {
7556
- return 0xD3FBDCCB;
7656
+ return 0xF7BC68BA;
7557
7657
  }
7558
7658
  static get [paramDesc]() {
7559
7659
  return [
@@ -7563,8 +7663,7 @@ export class MessagesSendInlineBotResult extends Function {
7563
7663
  ["clearDraft", "true", "flags.7?true"],
7564
7664
  ["hideVia", "true", "flags.11?true"],
7565
7665
  ["peer", types.TypeInputPeer, "InputPeer"],
7566
- ["replyToMsgId", "number", "flags.0?int"],
7567
- ["topMsgId", "number", "flags.9?int"],
7666
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
7568
7667
  ["randomId", "bigint", "long"],
7569
7668
  ["queryId", "bigint", "long"],
7570
7669
  ["id", "string", "string"],
@@ -7580,8 +7679,7 @@ export class MessagesSendInlineBotResult extends Function {
7580
7679
  [this.clearDraft ?? null, "true", "flags.7?true"],
7581
7680
  [this.hideVia ?? null, "true", "flags.11?true"],
7582
7681
  [this.peer, types.TypeInputPeer, "InputPeer"],
7583
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
7584
- [this.topMsgId ?? null, "number", "flags.9?int"],
7682
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
7585
7683
  [this.randomId, "bigint", "long"],
7586
7684
  [this.queryId, "bigint", "long"],
7587
7685
  [this.id, "string", "string"],
@@ -7621,13 +7719,7 @@ export class MessagesSendInlineBotResult extends Function {
7621
7719
  writable: true,
7622
7720
  value: void 0
7623
7721
  });
7624
- Object.defineProperty(this, "replyToMsgId", {
7625
- enumerable: true,
7626
- configurable: true,
7627
- writable: true,
7628
- value: void 0
7629
- });
7630
- Object.defineProperty(this, "topMsgId", {
7722
+ Object.defineProperty(this, "replyTo", {
7631
7723
  enumerable: true,
7632
7724
  configurable: true,
7633
7725
  writable: true,
@@ -7668,8 +7760,7 @@ export class MessagesSendInlineBotResult extends Function {
7668
7760
  this.clearDraft = params.clearDraft;
7669
7761
  this.hideVia = params.hideVia;
7670
7762
  this.peer = params.peer;
7671
- this.replyToMsgId = params.replyToMsgId;
7672
- this.topMsgId = params.topMsgId;
7763
+ this.replyTo = params.replyTo;
7673
7764
  this.randomId = params.randomId;
7674
7765
  this.queryId = params.queryId;
7675
7766
  this.id = params.id;
@@ -8265,7 +8356,7 @@ export class MessagesClearRecentStickers extends Function {
8265
8356
  writable: true,
8266
8357
  value: void 0
8267
8358
  });
8268
- this.attached = params?.attached;
8359
+ this.attached = params.attached;
8269
8360
  }
8270
8361
  }
8271
8362
  export class MessagesGetArchivedStickers extends Function {
@@ -8627,31 +8718,6 @@ export class MessagesGetCommonChats extends Function {
8627
8718
  this.limit = params.limit;
8628
8719
  }
8629
8720
  }
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
8721
  export class MessagesGetWebPage extends Function {
8656
8722
  get [id]() {
8657
8723
  return 0x32CA8F91;
@@ -8918,19 +8984,19 @@ export class MessagesUploadMedia extends Function {
8918
8984
  }
8919
8985
  export class MessagesSendScreenshotNotification extends Function {
8920
8986
  get [id]() {
8921
- return 0xC97DF020;
8987
+ return 0xA1405817;
8922
8988
  }
8923
8989
  static get [paramDesc]() {
8924
8990
  return [
8925
8991
  ["peer", types.TypeInputPeer, "InputPeer"],
8926
- ["replyToMsgId", "number", "int"],
8992
+ ["replyTo", types.TypeInputReplyTo, "InputReplyTo"],
8927
8993
  ["randomId", "bigint", "long"],
8928
8994
  ];
8929
8995
  }
8930
8996
  get [params]() {
8931
8997
  return [
8932
8998
  [this.peer, types.TypeInputPeer, "InputPeer"],
8933
- [this.replyToMsgId, "number", "int"],
8999
+ [this.replyTo, types.TypeInputReplyTo, "InputReplyTo"],
8934
9000
  [this.randomId, "bigint", "long"],
8935
9001
  ];
8936
9002
  }
@@ -8942,7 +9008,7 @@ export class MessagesSendScreenshotNotification extends Function {
8942
9008
  writable: true,
8943
9009
  value: void 0
8944
9010
  });
8945
- Object.defineProperty(this, "replyToMsgId", {
9011
+ Object.defineProperty(this, "replyTo", {
8946
9012
  enumerable: true,
8947
9013
  configurable: true,
8948
9014
  writable: true,
@@ -8955,7 +9021,7 @@ export class MessagesSendScreenshotNotification extends Function {
8955
9021
  value: void 0
8956
9022
  });
8957
9023
  this.peer = params.peer;
8958
- this.replyToMsgId = params.replyToMsgId;
9024
+ this.replyTo = params.replyTo;
8959
9025
  this.randomId = params.randomId;
8960
9026
  }
8961
9027
  }
@@ -9180,7 +9246,7 @@ export class MessagesGetRecentLocations extends Function {
9180
9246
  }
9181
9247
  export class MessagesSendMultiMedia extends Function {
9182
9248
  get [id]() {
9183
- return 0xB6F11A1C;
9249
+ return 0x456E8987;
9184
9250
  }
9185
9251
  static get [paramDesc]() {
9186
9252
  return [
@@ -9191,8 +9257,7 @@ export class MessagesSendMultiMedia extends Function {
9191
9257
  ["noforwards", "true", "flags.14?true"],
9192
9258
  ["updateStickersetsOrder", "true", "flags.15?true"],
9193
9259
  ["peer", types.TypeInputPeer, "InputPeer"],
9194
- ["replyToMsgId", "number", "flags.0?int"],
9195
- ["topMsgId", "number", "flags.9?int"],
9260
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
9196
9261
  ["multiMedia", [types.TypeInputSingleMedia], "Vector<InputSingleMedia>"],
9197
9262
  ["scheduleDate", "number", "flags.10?int"],
9198
9263
  ["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
@@ -9207,8 +9272,7 @@ export class MessagesSendMultiMedia extends Function {
9207
9272
  [this.noforwards ?? null, "true", "flags.14?true"],
9208
9273
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
9209
9274
  [this.peer, types.TypeInputPeer, "InputPeer"],
9210
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
9211
- [this.topMsgId ?? null, "number", "flags.9?int"],
9275
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
9212
9276
  [this.multiMedia, [types.TypeInputSingleMedia], "Vector<InputSingleMedia>"],
9213
9277
  [this.scheduleDate ?? null, "number", "flags.10?int"],
9214
9278
  [this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
@@ -9252,13 +9316,7 @@ export class MessagesSendMultiMedia extends Function {
9252
9316
  writable: true,
9253
9317
  value: void 0
9254
9318
  });
9255
- Object.defineProperty(this, "replyToMsgId", {
9256
- enumerable: true,
9257
- configurable: true,
9258
- writable: true,
9259
- value: void 0
9260
- });
9261
- Object.defineProperty(this, "topMsgId", {
9319
+ Object.defineProperty(this, "replyTo", {
9262
9320
  enumerable: true,
9263
9321
  configurable: true,
9264
9322
  writable: true,
@@ -9288,8 +9346,7 @@ export class MessagesSendMultiMedia extends Function {
9288
9346
  this.noforwards = params.noforwards;
9289
9347
  this.updateStickersetsOrder = params.updateStickersetsOrder;
9290
9348
  this.peer = params.peer;
9291
- this.replyToMsgId = params.replyToMsgId;
9292
- this.topMsgId = params.topMsgId;
9349
+ this.replyTo = params.replyTo;
9293
9350
  this.multiMedia = params.multiMedia;
9294
9351
  this.scheduleDate = params.scheduleDate;
9295
9352
  this.sendAs = params.sendAs;
@@ -9887,10 +9944,10 @@ export class MessagesRequestURLAuth extends Function {
9887
9944
  writable: true,
9888
9945
  value: void 0
9889
9946
  });
9890
- this.peer = params?.peer;
9891
- this.msgId = params?.msgId;
9892
- this.buttonId = params?.buttonId;
9893
- this.url = params?.url;
9947
+ this.peer = params.peer;
9948
+ this.msgId = params.msgId;
9949
+ this.buttonId = params.buttonId;
9950
+ this.url = params.url;
9894
9951
  }
9895
9952
  }
9896
9953
  export class MessagesAcceptURLAuth extends Function {
@@ -9949,11 +10006,11 @@ export class MessagesAcceptURLAuth extends Function {
9949
10006
  writable: true,
9950
10007
  value: void 0
9951
10008
  });
9952
- this.writeAllowed = params?.writeAllowed;
9953
- this.peer = params?.peer;
9954
- this.msgId = params?.msgId;
9955
- this.buttonId = params?.buttonId;
9956
- this.url = params?.url;
10009
+ this.writeAllowed = params.writeAllowed;
10010
+ this.peer = params.peer;
10011
+ this.msgId = params.msgId;
10012
+ this.buttonId = params.buttonId;
10013
+ this.url = params.url;
9957
10014
  }
9958
10015
  }
9959
10016
  export class MessagesHidePeerSettingsBar extends Function {
@@ -10625,7 +10682,7 @@ export class MessagesDeletePhoneCallHistory extends Function {
10625
10682
  writable: true,
10626
10683
  value: void 0
10627
10684
  });
10628
- this.revoke = params?.revoke;
10685
+ this.revoke = params.revoke;
10629
10686
  }
10630
10687
  }
10631
10688
  export class MessagesCheckHistoryImport extends Function {
@@ -12087,7 +12144,7 @@ export class MessagesToggleBotInAttachMenu extends Function {
12087
12144
  }
12088
12145
  export class MessagesRequestWebView extends Function {
12089
12146
  get [id]() {
12090
- return 0x178B480B;
12147
+ return 0x269DC2C1;
12091
12148
  }
12092
12149
  static get [paramDesc]() {
12093
12150
  return [
@@ -12100,8 +12157,7 @@ export class MessagesRequestWebView extends Function {
12100
12157
  ["startParam", "string", "flags.3?string"],
12101
12158
  ["themeParams", types.TypeDataJSON, "flags.2?DataJSON"],
12102
12159
  ["platform", "string", "string"],
12103
- ["replyToMsgId", "number", "flags.0?int"],
12104
- ["topMsgId", "number", "flags.9?int"],
12160
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
12105
12161
  ["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
12106
12162
  ];
12107
12163
  }
@@ -12116,8 +12172,7 @@ export class MessagesRequestWebView extends Function {
12116
12172
  [this.startParam ?? null, "string", "flags.3?string"],
12117
12173
  [this.themeParams ?? null, types.TypeDataJSON, "flags.2?DataJSON"],
12118
12174
  [this.platform, "string", "string"],
12119
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
12120
- [this.topMsgId ?? null, "number", "flags.9?int"],
12175
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
12121
12176
  [this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
12122
12177
  ];
12123
12178
  }
@@ -12171,13 +12226,7 @@ export class MessagesRequestWebView extends Function {
12171
12226
  writable: true,
12172
12227
  value: void 0
12173
12228
  });
12174
- Object.defineProperty(this, "replyToMsgId", {
12175
- enumerable: true,
12176
- configurable: true,
12177
- writable: true,
12178
- value: void 0
12179
- });
12180
- Object.defineProperty(this, "topMsgId", {
12229
+ Object.defineProperty(this, "replyTo", {
12181
12230
  enumerable: true,
12182
12231
  configurable: true,
12183
12232
  writable: true,
@@ -12197,14 +12246,13 @@ export class MessagesRequestWebView extends Function {
12197
12246
  this.startParam = params.startParam;
12198
12247
  this.themeParams = params.themeParams;
12199
12248
  this.platform = params.platform;
12200
- this.replyToMsgId = params.replyToMsgId;
12201
- this.topMsgId = params.topMsgId;
12249
+ this.replyTo = params.replyTo;
12202
12250
  this.sendAs = params.sendAs;
12203
12251
  }
12204
12252
  }
12205
12253
  export class MessagesProlongWebView extends Function {
12206
12254
  get [id]() {
12207
- return 0x7FF34309;
12255
+ return 0xB0D81A83;
12208
12256
  }
12209
12257
  static get [paramDesc]() {
12210
12258
  return [
@@ -12213,8 +12261,7 @@ export class MessagesProlongWebView extends Function {
12213
12261
  ["peer", types.TypeInputPeer, "InputPeer"],
12214
12262
  ["bot", types.TypeInputUser, "InputUser"],
12215
12263
  ["queryId", "bigint", "long"],
12216
- ["replyToMsgId", "number", "flags.0?int"],
12217
- ["topMsgId", "number", "flags.9?int"],
12264
+ ["replyTo", types.TypeInputReplyTo, "flags.0?InputReplyTo"],
12218
12265
  ["sendAs", types.TypeInputPeer, "flags.13?InputPeer"],
12219
12266
  ];
12220
12267
  }
@@ -12225,8 +12272,7 @@ export class MessagesProlongWebView extends Function {
12225
12272
  [this.peer, types.TypeInputPeer, "InputPeer"],
12226
12273
  [this.bot, types.TypeInputUser, "InputUser"],
12227
12274
  [this.queryId, "bigint", "long"],
12228
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
12229
- [this.topMsgId ?? null, "number", "flags.9?int"],
12275
+ [this.replyTo ?? null, types.TypeInputReplyTo, "flags.0?InputReplyTo"],
12230
12276
  [this.sendAs ?? null, types.TypeInputPeer, "flags.13?InputPeer"],
12231
12277
  ];
12232
12278
  }
@@ -12256,13 +12302,7 @@ export class MessagesProlongWebView extends Function {
12256
12302
  writable: true,
12257
12303
  value: void 0
12258
12304
  });
12259
- Object.defineProperty(this, "replyToMsgId", {
12260
- enumerable: true,
12261
- configurable: true,
12262
- writable: true,
12263
- value: void 0
12264
- });
12265
- Object.defineProperty(this, "topMsgId", {
12305
+ Object.defineProperty(this, "replyTo", {
12266
12306
  enumerable: true,
12267
12307
  configurable: true,
12268
12308
  writable: true,
@@ -12278,8 +12318,7 @@ export class MessagesProlongWebView extends Function {
12278
12318
  this.peer = params.peer;
12279
12319
  this.bot = params.bot;
12280
12320
  this.queryId = params.queryId;
12281
- this.replyToMsgId = params.replyToMsgId;
12282
- this.topMsgId = params.topMsgId;
12321
+ this.replyTo = params.replyTo;
12283
12322
  this.sendAs = params.sendAs;
12284
12323
  }
12285
12324
  }
@@ -13164,24 +13203,28 @@ export class UpdatesGetState extends Function {
13164
13203
  }
13165
13204
  export class UpdatesGetDifference extends Function {
13166
13205
  get [id]() {
13167
- return 0x25939651;
13206
+ return 0x19C2F763;
13168
13207
  }
13169
13208
  static get [paramDesc]() {
13170
13209
  return [
13171
13210
  ["flags", flags, "#"],
13172
13211
  ["pts", "number", "int"],
13212
+ ["ptsLimit", "number", "flags.1?int"],
13173
13213
  ["ptsTotalLimit", "number", "flags.0?int"],
13174
13214
  ["date", "number", "int"],
13175
13215
  ["qts", "number", "int"],
13216
+ ["qtsLimit", "number", "flags.2?int"],
13176
13217
  ];
13177
13218
  }
13178
13219
  get [params]() {
13179
13220
  return [
13180
13221
  ["flags", flags, "#"],
13181
13222
  [this.pts, "number", "int"],
13223
+ [this.ptsLimit ?? null, "number", "flags.1?int"],
13182
13224
  [this.ptsTotalLimit ?? null, "number", "flags.0?int"],
13183
13225
  [this.date, "number", "int"],
13184
13226
  [this.qts, "number", "int"],
13227
+ [this.qtsLimit ?? null, "number", "flags.2?int"],
13185
13228
  ];
13186
13229
  }
13187
13230
  constructor(params) {
@@ -13192,6 +13235,12 @@ export class UpdatesGetDifference extends Function {
13192
13235
  writable: true,
13193
13236
  value: void 0
13194
13237
  });
13238
+ Object.defineProperty(this, "ptsLimit", {
13239
+ enumerable: true,
13240
+ configurable: true,
13241
+ writable: true,
13242
+ value: void 0
13243
+ });
13195
13244
  Object.defineProperty(this, "ptsTotalLimit", {
13196
13245
  enumerable: true,
13197
13246
  configurable: true,
@@ -13210,10 +13259,18 @@ export class UpdatesGetDifference extends Function {
13210
13259
  writable: true,
13211
13260
  value: void 0
13212
13261
  });
13262
+ Object.defineProperty(this, "qtsLimit", {
13263
+ enumerable: true,
13264
+ configurable: true,
13265
+ writable: true,
13266
+ value: void 0
13267
+ });
13213
13268
  this.pts = params.pts;
13269
+ this.ptsLimit = params.ptsLimit;
13214
13270
  this.ptsTotalLimit = params.ptsTotalLimit;
13215
13271
  this.date = params.date;
13216
13272
  this.qts = params.qts;
13273
+ this.qtsLimit = params.qtsLimit;
13217
13274
  }
13218
13275
  }
13219
13276
  export class UpdatesGetChannelDifference extends Function {
@@ -13388,12 +13445,12 @@ export class PhotosUploadProfilePhoto extends Function {
13388
13445
  writable: true,
13389
13446
  value: void 0
13390
13447
  });
13391
- this.fallback = params?.fallback;
13392
- this.bot = params?.bot;
13393
- this.file = params?.file;
13394
- this.video = params?.video;
13395
- this.videoStartTs = params?.videoStartTs;
13396
- this.videoEmojiMarkup = params?.videoEmojiMarkup;
13448
+ this.fallback = params.fallback;
13449
+ this.bot = params.bot;
13450
+ this.file = params.file;
13451
+ this.video = params.video;
13452
+ this.videoStartTs = params.videoStartTs;
13453
+ this.videoEmojiMarkup = params.videoEmojiMarkup;
13397
13454
  }
13398
13455
  }
13399
13456
  export class PhotosDeletePhotos extends Function {
@@ -15227,8 +15284,8 @@ export class ChannelsGetAdminedPublicChannels extends Function {
15227
15284
  writable: true,
15228
15285
  value: void 0
15229
15286
  });
15230
- this.byLocation = params?.byLocation;
15231
- this.checkLimit = params?.checkLimit;
15287
+ this.byLocation = params.byLocation;
15288
+ this.checkLimit = params.checkLimit;
15232
15289
  }
15233
15290
  }
15234
15291
  export class ChannelsEditBanned extends Function {
@@ -16530,39 +16587,73 @@ export class ChannelsToggleParticipantsHidden extends Function {
16530
16587
  this.enabled = params.enabled;
16531
16588
  }
16532
16589
  }
16533
- export class BotsSendCustomRequest extends Function {
16590
+ export class ChannelsClickSponsoredMessage extends Function {
16534
16591
  get [id]() {
16535
- return 0xAA2769ED;
16592
+ return 0x18AFBC93;
16536
16593
  }
16537
16594
  static get [paramDesc]() {
16538
16595
  return [
16539
- ["customMethod", "string", "string"],
16540
- ["params", types.TypeDataJSON, "DataJSON"],
16596
+ ["channel", types.TypeInputChannel, "InputChannel"],
16597
+ ["randomId", Uint8Array, "bytes"],
16541
16598
  ];
16542
16599
  }
16543
16600
  get [params]() {
16544
16601
  return [
16545
- [this.customMethod, "string", "string"],
16546
- [this.params, types.TypeDataJSON, "DataJSON"],
16602
+ [this.channel, types.TypeInputChannel, "InputChannel"],
16603
+ [this.randomId, Uint8Array, "bytes"],
16547
16604
  ];
16548
16605
  }
16549
16606
  constructor(params) {
16550
16607
  super();
16551
- Object.defineProperty(this, "customMethod", {
16608
+ Object.defineProperty(this, "channel", {
16552
16609
  enumerable: true,
16553
16610
  configurable: true,
16554
16611
  writable: true,
16555
16612
  value: void 0
16556
16613
  });
16557
- Object.defineProperty(this, "params", {
16614
+ Object.defineProperty(this, "randomId", {
16558
16615
  enumerable: true,
16559
16616
  configurable: true,
16560
16617
  writable: true,
16561
16618
  value: void 0
16562
16619
  });
16563
- this.customMethod = params.customMethod;
16564
- this.params = params.params;
16565
- }
16620
+ this.channel = params.channel;
16621
+ this.randomId = params.randomId;
16622
+ }
16623
+ }
16624
+ export class BotsSendCustomRequest extends Function {
16625
+ get [id]() {
16626
+ return 0xAA2769ED;
16627
+ }
16628
+ static get [paramDesc]() {
16629
+ return [
16630
+ ["customMethod", "string", "string"],
16631
+ ["params", types.TypeDataJSON, "DataJSON"],
16632
+ ];
16633
+ }
16634
+ get [params]() {
16635
+ return [
16636
+ [this.customMethod, "string", "string"],
16637
+ [this.params, types.TypeDataJSON, "DataJSON"],
16638
+ ];
16639
+ }
16640
+ constructor(params) {
16641
+ super();
16642
+ Object.defineProperty(this, "customMethod", {
16643
+ enumerable: true,
16644
+ configurable: true,
16645
+ writable: true,
16646
+ value: void 0
16647
+ });
16648
+ Object.defineProperty(this, "params", {
16649
+ enumerable: true,
16650
+ configurable: true,
16651
+ writable: true,
16652
+ value: void 0
16653
+ });
16654
+ this.customMethod = params.customMethod;
16655
+ this.params = params.params;
16656
+ }
16566
16657
  }
16567
16658
  export class BotsAnswerWebhookJSONQuery extends Function {
16568
16659
  get [id]() {
@@ -17227,8 +17318,8 @@ export class PaymentsClearSavedInfo extends Function {
17227
17318
  writable: true,
17228
17319
  value: void 0
17229
17320
  });
17230
- this.credentials = params?.credentials;
17231
- this.info = params?.info;
17321
+ this.credentials = params.credentials;
17322
+ this.info = params.info;
17232
17323
  }
17233
17324
  }
17234
17325
  export class PaymentsGetBankCardData extends Function {
@@ -19854,3 +19945,666 @@ export class ChatlistsLeaveChatlist extends Function {
19854
19945
  this.peers = params.peers;
19855
19946
  }
19856
19947
  }
19948
+ export class StoriesSendStory extends Function {
19949
+ get [id]() {
19950
+ return 0x424CD47A;
19951
+ }
19952
+ static get [paramDesc]() {
19953
+ return [
19954
+ ["flags", flags, "#"],
19955
+ ["pinned", "true", "flags.2?true"],
19956
+ ["noforwards", "true", "flags.4?true"],
19957
+ ["media", types.TypeInputMedia, "InputMedia"],
19958
+ ["caption", "string", "flags.0?string"],
19959
+ ["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
19960
+ ["privacyRules", [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
19961
+ ["randomId", "bigint", "long"],
19962
+ ["period", "number", "flags.3?int"],
19963
+ ];
19964
+ }
19965
+ get [params]() {
19966
+ return [
19967
+ ["flags", flags, "#"],
19968
+ [this.pinned ?? null, "true", "flags.2?true"],
19969
+ [this.noforwards ?? null, "true", "flags.4?true"],
19970
+ [this.media, types.TypeInputMedia, "InputMedia"],
19971
+ [this.caption ?? null, "string", "flags.0?string"],
19972
+ [this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
19973
+ [this.privacyRules, [types.TypeInputPrivacyRule], "Vector<InputPrivacyRule>"],
19974
+ [this.randomId, "bigint", "long"],
19975
+ [this.period ?? null, "number", "flags.3?int"],
19976
+ ];
19977
+ }
19978
+ constructor(params) {
19979
+ super();
19980
+ Object.defineProperty(this, "pinned", {
19981
+ enumerable: true,
19982
+ configurable: true,
19983
+ writable: true,
19984
+ value: void 0
19985
+ });
19986
+ Object.defineProperty(this, "noforwards", {
19987
+ enumerable: true,
19988
+ configurable: true,
19989
+ writable: true,
19990
+ value: void 0
19991
+ });
19992
+ Object.defineProperty(this, "media", {
19993
+ enumerable: true,
19994
+ configurable: true,
19995
+ writable: true,
19996
+ value: void 0
19997
+ });
19998
+ Object.defineProperty(this, "caption", {
19999
+ enumerable: true,
20000
+ configurable: true,
20001
+ writable: true,
20002
+ value: void 0
20003
+ });
20004
+ Object.defineProperty(this, "entities", {
20005
+ enumerable: true,
20006
+ configurable: true,
20007
+ writable: true,
20008
+ value: void 0
20009
+ });
20010
+ Object.defineProperty(this, "privacyRules", {
20011
+ enumerable: true,
20012
+ configurable: true,
20013
+ writable: true,
20014
+ value: void 0
20015
+ });
20016
+ Object.defineProperty(this, "randomId", {
20017
+ enumerable: true,
20018
+ configurable: true,
20019
+ writable: true,
20020
+ value: void 0
20021
+ });
20022
+ Object.defineProperty(this, "period", {
20023
+ enumerable: true,
20024
+ configurable: true,
20025
+ writable: true,
20026
+ value: void 0
20027
+ });
20028
+ this.pinned = params.pinned;
20029
+ this.noforwards = params.noforwards;
20030
+ this.media = params.media;
20031
+ this.caption = params.caption;
20032
+ this.entities = params.entities;
20033
+ this.privacyRules = params.privacyRules;
20034
+ this.randomId = params.randomId;
20035
+ this.period = params.period;
20036
+ }
20037
+ }
20038
+ export class StoriesEditStory extends Function {
20039
+ get [id]() {
20040
+ return 0x2AAE7A41;
20041
+ }
20042
+ static get [paramDesc]() {
20043
+ return [
20044
+ ["flags", flags, "#"],
20045
+ ["id", "number", "int"],
20046
+ ["media", types.TypeInputMedia, "flags.0?InputMedia"],
20047
+ ["caption", "string", "flags.1?string"],
20048
+ ["entities", [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
20049
+ ["privacyRules", [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
20050
+ ];
20051
+ }
20052
+ get [params]() {
20053
+ return [
20054
+ ["flags", flags, "#"],
20055
+ [this.id, "number", "int"],
20056
+ [this.media ?? null, types.TypeInputMedia, "flags.0?InputMedia"],
20057
+ [this.caption ?? null, "string", "flags.1?string"],
20058
+ [this.entities ?? null, [types.TypeMessageEntity], "flags.1?Vector<MessageEntity>"],
20059
+ [this.privacyRules ?? null, [types.TypeInputPrivacyRule], "flags.2?Vector<InputPrivacyRule>"],
20060
+ ];
20061
+ }
20062
+ constructor(params) {
20063
+ super();
20064
+ Object.defineProperty(this, "id", {
20065
+ enumerable: true,
20066
+ configurable: true,
20067
+ writable: true,
20068
+ value: void 0
20069
+ });
20070
+ Object.defineProperty(this, "media", {
20071
+ enumerable: true,
20072
+ configurable: true,
20073
+ writable: true,
20074
+ value: void 0
20075
+ });
20076
+ Object.defineProperty(this, "caption", {
20077
+ enumerable: true,
20078
+ configurable: true,
20079
+ writable: true,
20080
+ value: void 0
20081
+ });
20082
+ Object.defineProperty(this, "entities", {
20083
+ enumerable: true,
20084
+ configurable: true,
20085
+ writable: true,
20086
+ value: void 0
20087
+ });
20088
+ Object.defineProperty(this, "privacyRules", {
20089
+ enumerable: true,
20090
+ configurable: true,
20091
+ writable: true,
20092
+ value: void 0
20093
+ });
20094
+ this.id = params.id;
20095
+ this.media = params.media;
20096
+ this.caption = params.caption;
20097
+ this.entities = params.entities;
20098
+ this.privacyRules = params.privacyRules;
20099
+ }
20100
+ }
20101
+ export class StoriesDeleteStories extends Function {
20102
+ get [id]() {
20103
+ return 0xB5D501D7;
20104
+ }
20105
+ static get [paramDesc]() {
20106
+ return [
20107
+ ["id", ["number"], "Vector<int>"],
20108
+ ];
20109
+ }
20110
+ get [params]() {
20111
+ return [
20112
+ [this.id, ["number"], "Vector<int>"],
20113
+ ];
20114
+ }
20115
+ constructor(params) {
20116
+ super();
20117
+ Object.defineProperty(this, "id", {
20118
+ enumerable: true,
20119
+ configurable: true,
20120
+ writable: true,
20121
+ value: void 0
20122
+ });
20123
+ this.id = params.id;
20124
+ }
20125
+ }
20126
+ export class StoriesTogglePinned extends Function {
20127
+ get [id]() {
20128
+ return 0x51602944;
20129
+ }
20130
+ static get [paramDesc]() {
20131
+ return [
20132
+ ["id", ["number"], "Vector<int>"],
20133
+ ["pinned", "boolean", "Bool"],
20134
+ ];
20135
+ }
20136
+ get [params]() {
20137
+ return [
20138
+ [this.id, ["number"], "Vector<int>"],
20139
+ [this.pinned, "boolean", "Bool"],
20140
+ ];
20141
+ }
20142
+ constructor(params) {
20143
+ super();
20144
+ Object.defineProperty(this, "id", {
20145
+ enumerable: true,
20146
+ configurable: true,
20147
+ writable: true,
20148
+ value: void 0
20149
+ });
20150
+ Object.defineProperty(this, "pinned", {
20151
+ enumerable: true,
20152
+ configurable: true,
20153
+ writable: true,
20154
+ value: void 0
20155
+ });
20156
+ this.id = params.id;
20157
+ this.pinned = params.pinned;
20158
+ }
20159
+ }
20160
+ export class StoriesGetAllStories extends Function {
20161
+ get [id]() {
20162
+ return 0xEEB0D625;
20163
+ }
20164
+ static get [paramDesc]() {
20165
+ return [
20166
+ ["flags", flags, "#"],
20167
+ ["next", "true", "flags.1?true"],
20168
+ ["hidden", "true", "flags.2?true"],
20169
+ ["state", "string", "flags.0?string"],
20170
+ ];
20171
+ }
20172
+ get [params]() {
20173
+ return [
20174
+ ["flags", flags, "#"],
20175
+ [this.next ?? null, "true", "flags.1?true"],
20176
+ [this.hidden ?? null, "true", "flags.2?true"],
20177
+ [this.state ?? null, "string", "flags.0?string"],
20178
+ ];
20179
+ }
20180
+ constructor(params) {
20181
+ super();
20182
+ Object.defineProperty(this, "next", {
20183
+ enumerable: true,
20184
+ configurable: true,
20185
+ writable: true,
20186
+ value: void 0
20187
+ });
20188
+ Object.defineProperty(this, "hidden", {
20189
+ enumerable: true,
20190
+ configurable: true,
20191
+ writable: true,
20192
+ value: void 0
20193
+ });
20194
+ Object.defineProperty(this, "state", {
20195
+ enumerable: true,
20196
+ configurable: true,
20197
+ writable: true,
20198
+ value: void 0
20199
+ });
20200
+ this.next = params.next;
20201
+ this.hidden = params.hidden;
20202
+ this.state = params.state;
20203
+ }
20204
+ }
20205
+ export class StoriesGetUserStories extends Function {
20206
+ get [id]() {
20207
+ return 0x96D528E0;
20208
+ }
20209
+ static get [paramDesc]() {
20210
+ return [
20211
+ ["userId", types.TypeInputUser, "InputUser"],
20212
+ ];
20213
+ }
20214
+ get [params]() {
20215
+ return [
20216
+ [this.userId, types.TypeInputUser, "InputUser"],
20217
+ ];
20218
+ }
20219
+ constructor(params) {
20220
+ super();
20221
+ Object.defineProperty(this, "userId", {
20222
+ enumerable: true,
20223
+ configurable: true,
20224
+ writable: true,
20225
+ value: void 0
20226
+ });
20227
+ this.userId = params.userId;
20228
+ }
20229
+ }
20230
+ export class StoriesGetPinnedStories extends Function {
20231
+ get [id]() {
20232
+ return 0x0B471137;
20233
+ }
20234
+ static get [paramDesc]() {
20235
+ return [
20236
+ ["userId", types.TypeInputUser, "InputUser"],
20237
+ ["offsetId", "number", "int"],
20238
+ ["limit", "number", "int"],
20239
+ ];
20240
+ }
20241
+ get [params]() {
20242
+ return [
20243
+ [this.userId, types.TypeInputUser, "InputUser"],
20244
+ [this.offsetId, "number", "int"],
20245
+ [this.limit, "number", "int"],
20246
+ ];
20247
+ }
20248
+ constructor(params) {
20249
+ super();
20250
+ Object.defineProperty(this, "userId", {
20251
+ enumerable: true,
20252
+ configurable: true,
20253
+ writable: true,
20254
+ value: void 0
20255
+ });
20256
+ Object.defineProperty(this, "offsetId", {
20257
+ enumerable: true,
20258
+ configurable: true,
20259
+ writable: true,
20260
+ value: void 0
20261
+ });
20262
+ Object.defineProperty(this, "limit", {
20263
+ enumerable: true,
20264
+ configurable: true,
20265
+ writable: true,
20266
+ value: void 0
20267
+ });
20268
+ this.userId = params.userId;
20269
+ this.offsetId = params.offsetId;
20270
+ this.limit = params.limit;
20271
+ }
20272
+ }
20273
+ export class StoriesGetStoriesArchive extends Function {
20274
+ get [id]() {
20275
+ return 0x1F5BC5D2;
20276
+ }
20277
+ static get [paramDesc]() {
20278
+ return [
20279
+ ["offsetId", "number", "int"],
20280
+ ["limit", "number", "int"],
20281
+ ];
20282
+ }
20283
+ get [params]() {
20284
+ return [
20285
+ [this.offsetId, "number", "int"],
20286
+ [this.limit, "number", "int"],
20287
+ ];
20288
+ }
20289
+ constructor(params) {
20290
+ super();
20291
+ Object.defineProperty(this, "offsetId", {
20292
+ enumerable: true,
20293
+ configurable: true,
20294
+ writable: true,
20295
+ value: void 0
20296
+ });
20297
+ Object.defineProperty(this, "limit", {
20298
+ enumerable: true,
20299
+ configurable: true,
20300
+ writable: true,
20301
+ value: void 0
20302
+ });
20303
+ this.offsetId = params.offsetId;
20304
+ this.limit = params.limit;
20305
+ }
20306
+ }
20307
+ export class StoriesGetStoriesByID extends Function {
20308
+ get [id]() {
20309
+ return 0x6A15CF46;
20310
+ }
20311
+ static get [paramDesc]() {
20312
+ return [
20313
+ ["userId", types.TypeInputUser, "InputUser"],
20314
+ ["id", ["number"], "Vector<int>"],
20315
+ ];
20316
+ }
20317
+ get [params]() {
20318
+ return [
20319
+ [this.userId, types.TypeInputUser, "InputUser"],
20320
+ [this.id, ["number"], "Vector<int>"],
20321
+ ];
20322
+ }
20323
+ constructor(params) {
20324
+ super();
20325
+ Object.defineProperty(this, "userId", {
20326
+ enumerable: true,
20327
+ configurable: true,
20328
+ writable: true,
20329
+ value: void 0
20330
+ });
20331
+ Object.defineProperty(this, "id", {
20332
+ enumerable: true,
20333
+ configurable: true,
20334
+ writable: true,
20335
+ value: void 0
20336
+ });
20337
+ this.userId = params.userId;
20338
+ this.id = params.id;
20339
+ }
20340
+ }
20341
+ export class StoriesToggleAllStoriesHidden extends Function {
20342
+ get [id]() {
20343
+ return 0x7C2557C4;
20344
+ }
20345
+ static get [paramDesc]() {
20346
+ return [
20347
+ ["hidden", "boolean", "Bool"],
20348
+ ];
20349
+ }
20350
+ get [params]() {
20351
+ return [
20352
+ [this.hidden, "boolean", "Bool"],
20353
+ ];
20354
+ }
20355
+ constructor(params) {
20356
+ super();
20357
+ Object.defineProperty(this, "hidden", {
20358
+ enumerable: true,
20359
+ configurable: true,
20360
+ writable: true,
20361
+ value: void 0
20362
+ });
20363
+ this.hidden = params.hidden;
20364
+ }
20365
+ }
20366
+ export class StoriesGetAllReadUserStories extends Function {
20367
+ get [id]() {
20368
+ return 0x729C562C;
20369
+ }
20370
+ static get [paramDesc]() {
20371
+ return [];
20372
+ }
20373
+ get [params]() {
20374
+ return [];
20375
+ }
20376
+ constructor() {
20377
+ super();
20378
+ }
20379
+ }
20380
+ export class StoriesReadStories extends Function {
20381
+ get [id]() {
20382
+ return 0xEDC5105B;
20383
+ }
20384
+ static get [paramDesc]() {
20385
+ return [
20386
+ ["userId", types.TypeInputUser, "InputUser"],
20387
+ ["maxId", "number", "int"],
20388
+ ];
20389
+ }
20390
+ get [params]() {
20391
+ return [
20392
+ [this.userId, types.TypeInputUser, "InputUser"],
20393
+ [this.maxId, "number", "int"],
20394
+ ];
20395
+ }
20396
+ constructor(params) {
20397
+ super();
20398
+ Object.defineProperty(this, "userId", {
20399
+ enumerable: true,
20400
+ configurable: true,
20401
+ writable: true,
20402
+ value: void 0
20403
+ });
20404
+ Object.defineProperty(this, "maxId", {
20405
+ enumerable: true,
20406
+ configurable: true,
20407
+ writable: true,
20408
+ value: void 0
20409
+ });
20410
+ this.userId = params.userId;
20411
+ this.maxId = params.maxId;
20412
+ }
20413
+ }
20414
+ export class StoriesIncrementStoryViews extends Function {
20415
+ get [id]() {
20416
+ return 0x22126127;
20417
+ }
20418
+ static get [paramDesc]() {
20419
+ return [
20420
+ ["userId", types.TypeInputUser, "InputUser"],
20421
+ ["id", ["number"], "Vector<int>"],
20422
+ ];
20423
+ }
20424
+ get [params]() {
20425
+ return [
20426
+ [this.userId, types.TypeInputUser, "InputUser"],
20427
+ [this.id, ["number"], "Vector<int>"],
20428
+ ];
20429
+ }
20430
+ constructor(params) {
20431
+ super();
20432
+ Object.defineProperty(this, "userId", {
20433
+ enumerable: true,
20434
+ configurable: true,
20435
+ writable: true,
20436
+ value: void 0
20437
+ });
20438
+ Object.defineProperty(this, "id", {
20439
+ enumerable: true,
20440
+ configurable: true,
20441
+ writable: true,
20442
+ value: void 0
20443
+ });
20444
+ this.userId = params.userId;
20445
+ this.id = params.id;
20446
+ }
20447
+ }
20448
+ export class StoriesGetStoryViewsList extends Function {
20449
+ get [id]() {
20450
+ return 0x4B3B5E97;
20451
+ }
20452
+ static get [paramDesc]() {
20453
+ return [
20454
+ ["id", "number", "int"],
20455
+ ["offsetDate", "number", "int"],
20456
+ ["offsetId", "bigint", "long"],
20457
+ ["limit", "number", "int"],
20458
+ ];
20459
+ }
20460
+ get [params]() {
20461
+ return [
20462
+ [this.id, "number", "int"],
20463
+ [this.offsetDate, "number", "int"],
20464
+ [this.offsetId, "bigint", "long"],
20465
+ [this.limit, "number", "int"],
20466
+ ];
20467
+ }
20468
+ constructor(params) {
20469
+ super();
20470
+ Object.defineProperty(this, "id", {
20471
+ enumerable: true,
20472
+ configurable: true,
20473
+ writable: true,
20474
+ value: void 0
20475
+ });
20476
+ Object.defineProperty(this, "offsetDate", {
20477
+ enumerable: true,
20478
+ configurable: true,
20479
+ writable: true,
20480
+ value: void 0
20481
+ });
20482
+ Object.defineProperty(this, "offsetId", {
20483
+ enumerable: true,
20484
+ configurable: true,
20485
+ writable: true,
20486
+ value: void 0
20487
+ });
20488
+ Object.defineProperty(this, "limit", {
20489
+ enumerable: true,
20490
+ configurable: true,
20491
+ writable: true,
20492
+ value: void 0
20493
+ });
20494
+ this.id = params.id;
20495
+ this.offsetDate = params.offsetDate;
20496
+ this.offsetId = params.offsetId;
20497
+ this.limit = params.limit;
20498
+ }
20499
+ }
20500
+ export class StoriesGetStoriesViews extends Function {
20501
+ get [id]() {
20502
+ return 0x9A75D6A6;
20503
+ }
20504
+ static get [paramDesc]() {
20505
+ return [
20506
+ ["id", ["number"], "Vector<int>"],
20507
+ ];
20508
+ }
20509
+ get [params]() {
20510
+ return [
20511
+ [this.id, ["number"], "Vector<int>"],
20512
+ ];
20513
+ }
20514
+ constructor(params) {
20515
+ super();
20516
+ Object.defineProperty(this, "id", {
20517
+ enumerable: true,
20518
+ configurable: true,
20519
+ writable: true,
20520
+ value: void 0
20521
+ });
20522
+ this.id = params.id;
20523
+ }
20524
+ }
20525
+ export class StoriesExportStoryLink extends Function {
20526
+ get [id]() {
20527
+ return 0x16E443CE;
20528
+ }
20529
+ static get [paramDesc]() {
20530
+ return [
20531
+ ["userId", types.TypeInputUser, "InputUser"],
20532
+ ["id", "number", "int"],
20533
+ ];
20534
+ }
20535
+ get [params]() {
20536
+ return [
20537
+ [this.userId, types.TypeInputUser, "InputUser"],
20538
+ [this.id, "number", "int"],
20539
+ ];
20540
+ }
20541
+ constructor(params) {
20542
+ super();
20543
+ Object.defineProperty(this, "userId", {
20544
+ enumerable: true,
20545
+ configurable: true,
20546
+ writable: true,
20547
+ value: void 0
20548
+ });
20549
+ Object.defineProperty(this, "id", {
20550
+ enumerable: true,
20551
+ configurable: true,
20552
+ writable: true,
20553
+ value: void 0
20554
+ });
20555
+ this.userId = params.userId;
20556
+ this.id = params.id;
20557
+ }
20558
+ }
20559
+ export class StoriesReport extends Function {
20560
+ get [id]() {
20561
+ return 0xC95BE06A;
20562
+ }
20563
+ static get [paramDesc]() {
20564
+ return [
20565
+ ["userId", types.TypeInputUser, "InputUser"],
20566
+ ["id", ["number"], "Vector<int>"],
20567
+ ["reason", types.TypeReportReason, "ReportReason"],
20568
+ ["message", "string", "string"],
20569
+ ];
20570
+ }
20571
+ get [params]() {
20572
+ return [
20573
+ [this.userId, types.TypeInputUser, "InputUser"],
20574
+ [this.id, ["number"], "Vector<int>"],
20575
+ [this.reason, types.TypeReportReason, "ReportReason"],
20576
+ [this.message, "string", "string"],
20577
+ ];
20578
+ }
20579
+ constructor(params) {
20580
+ super();
20581
+ Object.defineProperty(this, "userId", {
20582
+ enumerable: true,
20583
+ configurable: true,
20584
+ writable: true,
20585
+ value: void 0
20586
+ });
20587
+ Object.defineProperty(this, "id", {
20588
+ enumerable: true,
20589
+ configurable: true,
20590
+ writable: true,
20591
+ value: void 0
20592
+ });
20593
+ Object.defineProperty(this, "reason", {
20594
+ enumerable: true,
20595
+ configurable: true,
20596
+ writable: true,
20597
+ value: void 0
20598
+ });
20599
+ Object.defineProperty(this, "message", {
20600
+ enumerable: true,
20601
+ configurable: true,
20602
+ writable: true,
20603
+ value: void 0
20604
+ });
20605
+ this.userId = params.userId;
20606
+ this.id = params.id;
20607
+ this.reason = params.reason;
20608
+ this.message = params.message;
20609
+ }
20610
+ }