@mtkruto/node 0.1.107 → 0.1.109

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 (83) hide show
  1. package/esm/0_deps.d.ts +1 -1
  2. package/esm/0_deps.js +1 -1
  3. package/esm/4_constants.d.ts +2 -2
  4. package/esm/4_constants.js +3 -3
  5. package/esm/5_client.d.ts +1 -0
  6. package/esm/5_client.js +1 -0
  7. package/esm/client/0_html.js +26 -14
  8. package/esm/client/0_utilities.d.ts +1 -1
  9. package/esm/client/0_utilities.js +1 -2
  10. package/esm/client/1_client_abstract.d.ts +1 -1
  11. package/esm/client/1_client_abstract.js +16 -8
  12. package/esm/client/2_client_plain.d.ts +1 -2
  13. package/esm/client/2_client_plain.js +20 -15
  14. package/esm/client/3_types.d.ts +1 -1
  15. package/esm/client/4_client.d.ts +6 -57
  16. package/esm/client/4_client.js +619 -716
  17. package/esm/connection/1_connection_web_socket.d.ts +1 -9
  18. package/esm/connection/1_connection_web_socket.js +81 -108
  19. package/esm/storage/0_storage.d.ts +3 -2
  20. package/esm/storage/0_storage.js +35 -26
  21. package/esm/storage/0_utilities.d.ts +1 -1
  22. package/esm/storage/0_utilities.js +56 -26
  23. package/esm/storage/1_storage_local_storage.d.ts +1 -1
  24. package/esm/storage/1_storage_session_storage.d.ts +1 -1
  25. package/esm/tl/2_types.d.ts +441 -58
  26. package/esm/tl/2_types.js +1584 -118
  27. package/esm/tl/3_functions.d.ts +113 -16
  28. package/esm/tl/3_functions.js +364 -39
  29. package/esm/transport/1_transport_abridged.d.ts +1 -2
  30. package/esm/transport/1_transport_abridged.js +24 -19
  31. package/esm/transport/1_transport_intermediate.d.ts +1 -2
  32. package/esm/transport/1_transport_intermediate.js +23 -18
  33. package/esm/types/0_color.d.ts +2 -1
  34. package/esm/types/0_color.js +21 -1
  35. package/esm/types/0_message_entity.d.ts +1 -1
  36. package/esm/types/1_chat.js +5 -5
  37. package/esm/types/1_user.js +2 -2
  38. package/esm/types/3_message.js +1 -1
  39. package/esm/utilities/0_base64.js +3 -3
  40. package/esm/utilities/0_queue.d.ts +2 -4
  41. package/esm/utilities/0_queue.js +39 -36
  42. package/package.json +1 -1
  43. package/script/0_deps.d.ts +1 -1
  44. package/script/0_deps.js +3 -3
  45. package/script/4_constants.d.ts +2 -2
  46. package/script/4_constants.js +3 -3
  47. package/script/5_client.d.ts +1 -0
  48. package/script/5_client.js +1 -0
  49. package/script/client/0_html.js +26 -14
  50. package/script/client/0_utilities.d.ts +1 -1
  51. package/script/client/0_utilities.js +1 -2
  52. package/script/client/1_client_abstract.d.ts +1 -1
  53. package/script/client/1_client_abstract.js +16 -8
  54. package/script/client/2_client_plain.d.ts +1 -2
  55. package/script/client/2_client_plain.js +20 -15
  56. package/script/client/3_types.d.ts +1 -1
  57. package/script/client/4_client.d.ts +6 -57
  58. package/script/client/4_client.js +619 -716
  59. package/script/connection/1_connection_web_socket.d.ts +1 -9
  60. package/script/connection/1_connection_web_socket.js +81 -108
  61. package/script/storage/0_storage.d.ts +3 -2
  62. package/script/storage/0_storage.js +35 -26
  63. package/script/storage/0_utilities.d.ts +1 -1
  64. package/script/storage/0_utilities.js +55 -25
  65. package/script/storage/1_storage_local_storage.d.ts +1 -1
  66. package/script/storage/1_storage_session_storage.d.ts +1 -1
  67. package/script/tl/2_types.d.ts +441 -58
  68. package/script/tl/2_types.js +1646 -158
  69. package/script/tl/3_functions.d.ts +113 -16
  70. package/script/tl/3_functions.js +386 -53
  71. package/script/transport/1_transport_abridged.d.ts +1 -2
  72. package/script/transport/1_transport_abridged.js +24 -19
  73. package/script/transport/1_transport_intermediate.d.ts +1 -2
  74. package/script/transport/1_transport_intermediate.js +23 -18
  75. package/script/types/0_color.d.ts +2 -1
  76. package/script/types/0_color.js +24 -3
  77. package/script/types/0_message_entity.d.ts +1 -1
  78. package/script/types/1_chat.js +4 -4
  79. package/script/types/1_user.js +1 -1
  80. package/script/types/3_message.js +1 -1
  81. package/script/utilities/0_base64.js +2 -2
  82. package/script/utilities/0_queue.d.ts +2 -4
  83. package/script/utilities/0_queue.js +39 -36
@@ -4108,6 +4108,67 @@ export class AccountInvalidateSignInCodes extends Function {
4108
4108
  this.codes = params.codes;
4109
4109
  }
4110
4110
  }
4111
+ export class AccountUpdateColor extends Function {
4112
+ get [id]() {
4113
+ return 0xA001CC43;
4114
+ }
4115
+ static get [paramDesc]() {
4116
+ return [
4117
+ ["flags", flags, "#"],
4118
+ ["color", "number", "int"],
4119
+ ["backgroundEmojiId", "bigint", "flags.0?long"],
4120
+ ];
4121
+ }
4122
+ get [params]() {
4123
+ return [
4124
+ ["flags", flags, "#"],
4125
+ [this.color, "number", "int"],
4126
+ [this.backgroundEmojiId ?? null, "bigint", "flags.0?long"],
4127
+ ];
4128
+ }
4129
+ constructor(params) {
4130
+ super();
4131
+ Object.defineProperty(this, "color", {
4132
+ enumerable: true,
4133
+ configurable: true,
4134
+ writable: true,
4135
+ value: void 0
4136
+ });
4137
+ Object.defineProperty(this, "backgroundEmojiId", {
4138
+ enumerable: true,
4139
+ configurable: true,
4140
+ writable: true,
4141
+ value: void 0
4142
+ });
4143
+ this.color = params.color;
4144
+ this.backgroundEmojiId = params.backgroundEmojiId;
4145
+ }
4146
+ }
4147
+ export class AccountGetDefaultBackgroundEmojis extends Function {
4148
+ get [id]() {
4149
+ return 0xA60AB9CE;
4150
+ }
4151
+ static get [paramDesc]() {
4152
+ return [
4153
+ ["hash", "bigint", "long"],
4154
+ ];
4155
+ }
4156
+ get [params]() {
4157
+ return [
4158
+ [this.hash, "bigint", "long"],
4159
+ ];
4160
+ }
4161
+ constructor(params) {
4162
+ super();
4163
+ Object.defineProperty(this, "hash", {
4164
+ enumerable: true,
4165
+ configurable: true,
4166
+ writable: true,
4167
+ value: void 0
4168
+ });
4169
+ this.hash = params.hash;
4170
+ }
4171
+ }
4111
4172
  export class UsersGetUsers extends Function {
4112
4173
  get [id]() {
4113
4174
  return 0x0D91A548;
@@ -5586,6 +5647,7 @@ export class MessagesSendMessage extends Function {
5586
5647
  ["clearDraft", "true", "flags.7?true"],
5587
5648
  ["noforwards", "true", "flags.14?true"],
5588
5649
  ["updateStickersetsOrder", "true", "flags.15?true"],
5650
+ ["invertMedia", "true", "flags.16?true"],
5589
5651
  ["peer", types._TypeInputPeer, "InputPeer"],
5590
5652
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5591
5653
  ["message", "string", "string"],
@@ -5605,6 +5667,7 @@ export class MessagesSendMessage extends Function {
5605
5667
  [this.clearDraft ?? null, "true", "flags.7?true"],
5606
5668
  [this.noforwards ?? null, "true", "flags.14?true"],
5607
5669
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5670
+ [this.invertMedia ?? null, "true", "flags.16?true"],
5608
5671
  [this.peer, types._TypeInputPeer, "InputPeer"],
5609
5672
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5610
5673
  [this.message, "string", "string"],
@@ -5653,6 +5716,12 @@ export class MessagesSendMessage extends Function {
5653
5716
  writable: true,
5654
5717
  value: void 0
5655
5718
  });
5719
+ Object.defineProperty(this, "invertMedia", {
5720
+ enumerable: true,
5721
+ configurable: true,
5722
+ writable: true,
5723
+ value: void 0
5724
+ });
5656
5725
  Object.defineProperty(this, "peer", {
5657
5726
  enumerable: true,
5658
5727
  configurable: true,
@@ -5707,6 +5776,7 @@ export class MessagesSendMessage extends Function {
5707
5776
  this.clearDraft = params.clearDraft;
5708
5777
  this.noforwards = params.noforwards;
5709
5778
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5779
+ this.invertMedia = params.invertMedia;
5710
5780
  this.peer = params.peer;
5711
5781
  this.replyTo = params.replyTo;
5712
5782
  this.message = params.message;
@@ -5729,6 +5799,7 @@ export class MessagesSendMedia extends Function {
5729
5799
  ["clearDraft", "true", "flags.7?true"],
5730
5800
  ["noforwards", "true", "flags.14?true"],
5731
5801
  ["updateStickersetsOrder", "true", "flags.15?true"],
5802
+ ["invertMedia", "true", "flags.16?true"],
5732
5803
  ["peer", types._TypeInputPeer, "InputPeer"],
5733
5804
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5734
5805
  ["media", types._TypeInputMedia, "InputMedia"],
@@ -5748,6 +5819,7 @@ export class MessagesSendMedia extends Function {
5748
5819
  [this.clearDraft ?? null, "true", "flags.7?true"],
5749
5820
  [this.noforwards ?? null, "true", "flags.14?true"],
5750
5821
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5822
+ [this.invertMedia ?? null, "true", "flags.16?true"],
5751
5823
  [this.peer, types._TypeInputPeer, "InputPeer"],
5752
5824
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5753
5825
  [this.media, types._TypeInputMedia, "InputMedia"],
@@ -5791,6 +5863,12 @@ export class MessagesSendMedia extends Function {
5791
5863
  writable: true,
5792
5864
  value: void 0
5793
5865
  });
5866
+ Object.defineProperty(this, "invertMedia", {
5867
+ enumerable: true,
5868
+ configurable: true,
5869
+ writable: true,
5870
+ value: void 0
5871
+ });
5794
5872
  Object.defineProperty(this, "peer", {
5795
5873
  enumerable: true,
5796
5874
  configurable: true,
@@ -5850,6 +5928,7 @@ export class MessagesSendMedia extends Function {
5850
5928
  this.clearDraft = params.clearDraft;
5851
5929
  this.noforwards = params.noforwards;
5852
5930
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5931
+ this.invertMedia = params.invertMedia;
5853
5932
  this.peer = params.peer;
5854
5933
  this.replyTo = params.replyTo;
5855
5934
  this.media = params.media;
@@ -7839,6 +7918,7 @@ export class MessagesEditMessage extends Function {
7839
7918
  return [
7840
7919
  ["flags", flags, "#"],
7841
7920
  ["noWebpage", "true", "flags.1?true"],
7921
+ ["invertMedia", "true", "flags.16?true"],
7842
7922
  ["peer", types._TypeInputPeer, "InputPeer"],
7843
7923
  ["id", "number", "int"],
7844
7924
  ["message", "string", "flags.11?string"],
@@ -7852,6 +7932,7 @@ export class MessagesEditMessage extends Function {
7852
7932
  return [
7853
7933
  ["flags", flags, "#"],
7854
7934
  [this.noWebpage ?? null, "true", "flags.1?true"],
7935
+ [this.invertMedia ?? null, "true", "flags.16?true"],
7855
7936
  [this.peer, types._TypeInputPeer, "InputPeer"],
7856
7937
  [this.id, "number", "int"],
7857
7938
  [this.message ?? null, "string", "flags.11?string"],
@@ -7869,6 +7950,12 @@ export class MessagesEditMessage extends Function {
7869
7950
  writable: true,
7870
7951
  value: void 0
7871
7952
  });
7953
+ Object.defineProperty(this, "invertMedia", {
7954
+ enumerable: true,
7955
+ configurable: true,
7956
+ writable: true,
7957
+ value: void 0
7958
+ });
7872
7959
  Object.defineProperty(this, "peer", {
7873
7960
  enumerable: true,
7874
7961
  configurable: true,
@@ -7912,6 +7999,7 @@ export class MessagesEditMessage extends Function {
7912
7999
  value: void 0
7913
8000
  });
7914
8001
  this.noWebpage = params.noWebpage;
8002
+ this.invertMedia = params.invertMedia;
7915
8003
  this.peer = params.peer;
7916
8004
  this.id = params.id;
7917
8005
  this.message = params.message;
@@ -7929,6 +8017,7 @@ export class MessagesEditInlineBotMessage extends Function {
7929
8017
  return [
7930
8018
  ["flags", flags, "#"],
7931
8019
  ["noWebpage", "true", "flags.1?true"],
8020
+ ["invertMedia", "true", "flags.16?true"],
7932
8021
  ["id", types._TypeInputBotInlineMessageID, "InputBotInlineMessageID"],
7933
8022
  ["message", "string", "flags.11?string"],
7934
8023
  ["media", types._TypeInputMedia, "flags.14?InputMedia"],
@@ -7940,6 +8029,7 @@ export class MessagesEditInlineBotMessage extends Function {
7940
8029
  return [
7941
8030
  ["flags", flags, "#"],
7942
8031
  [this.noWebpage ?? null, "true", "flags.1?true"],
8032
+ [this.invertMedia ?? null, "true", "flags.16?true"],
7943
8033
  [this.id, types._TypeInputBotInlineMessageID, "InputBotInlineMessageID"],
7944
8034
  [this.message ?? null, "string", "flags.11?string"],
7945
8035
  [this.media ?? null, types._TypeInputMedia, "flags.14?InputMedia"],
@@ -7955,6 +8045,12 @@ export class MessagesEditInlineBotMessage extends Function {
7955
8045
  writable: true,
7956
8046
  value: void 0
7957
8047
  });
8048
+ Object.defineProperty(this, "invertMedia", {
8049
+ enumerable: true,
8050
+ configurable: true,
8051
+ writable: true,
8052
+ value: void 0
8053
+ });
7958
8054
  Object.defineProperty(this, "id", {
7959
8055
  enumerable: true,
7960
8056
  configurable: true,
@@ -7986,6 +8082,7 @@ export class MessagesEditInlineBotMessage extends Function {
7986
8082
  value: void 0
7987
8083
  });
7988
8084
  this.noWebpage = params.noWebpage;
8085
+ this.invertMedia = params.invertMedia;
7989
8086
  this.id = params.id;
7990
8087
  this.message = params.message;
7991
8088
  this.media = params.media;
@@ -8146,28 +8243,30 @@ export class MessagesGetPeerDialogs extends Function {
8146
8243
  }
8147
8244
  export class MessagesSaveDraft extends Function {
8148
8245
  get [id]() {
8149
- return 0xB4331E3F;
8246
+ return 0x7FF3B806;
8150
8247
  }
8151
8248
  static get [paramDesc]() {
8152
8249
  return [
8153
8250
  ["flags", flags, "#"],
8154
8251
  ["noWebpage", "true", "flags.1?true"],
8155
- ["replyToMsgId", "number", "flags.0?int"],
8156
- ["topMsgId", "number", "flags.2?int"],
8252
+ ["invertMedia", "true", "flags.6?true"],
8253
+ ["replyTo", types._TypeInputReplyTo, "flags.4?InputReplyTo"],
8157
8254
  ["peer", types._TypeInputPeer, "InputPeer"],
8158
8255
  ["message", "string", "string"],
8159
8256
  ["entities", [types._TypeMessageEntity], "flags.3?Vector<MessageEntity>"],
8257
+ ["media", types._TypeInputMedia, "flags.5?InputMedia"],
8160
8258
  ];
8161
8259
  }
8162
8260
  get [params]() {
8163
8261
  return [
8164
8262
  ["flags", flags, "#"],
8165
8263
  [this.noWebpage ?? null, "true", "flags.1?true"],
8166
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
8167
- [this.topMsgId ?? null, "number", "flags.2?int"],
8264
+ [this.invertMedia ?? null, "true", "flags.6?true"],
8265
+ [this.replyTo ?? null, types._TypeInputReplyTo, "flags.4?InputReplyTo"],
8168
8266
  [this.peer, types._TypeInputPeer, "InputPeer"],
8169
8267
  [this.message, "string", "string"],
8170
8268
  [this.entities ?? null, [types._TypeMessageEntity], "flags.3?Vector<MessageEntity>"],
8269
+ [this.media ?? null, types._TypeInputMedia, "flags.5?InputMedia"],
8171
8270
  ];
8172
8271
  }
8173
8272
  constructor(params) {
@@ -8178,13 +8277,13 @@ export class MessagesSaveDraft extends Function {
8178
8277
  writable: true,
8179
8278
  value: void 0
8180
8279
  });
8181
- Object.defineProperty(this, "replyToMsgId", {
8280
+ Object.defineProperty(this, "invertMedia", {
8182
8281
  enumerable: true,
8183
8282
  configurable: true,
8184
8283
  writable: true,
8185
8284
  value: void 0
8186
8285
  });
8187
- Object.defineProperty(this, "topMsgId", {
8286
+ Object.defineProperty(this, "replyTo", {
8188
8287
  enumerable: true,
8189
8288
  configurable: true,
8190
8289
  writable: true,
@@ -8208,12 +8307,19 @@ export class MessagesSaveDraft extends Function {
8208
8307
  writable: true,
8209
8308
  value: void 0
8210
8309
  });
8310
+ Object.defineProperty(this, "media", {
8311
+ enumerable: true,
8312
+ configurable: true,
8313
+ writable: true,
8314
+ value: void 0
8315
+ });
8211
8316
  this.noWebpage = params.noWebpage;
8212
- this.replyToMsgId = params.replyToMsgId;
8213
- this.topMsgId = params.topMsgId;
8317
+ this.invertMedia = params.invertMedia;
8318
+ this.replyTo = params.replyTo;
8214
8319
  this.peer = params.peer;
8215
8320
  this.message = params.message;
8216
8321
  this.entities = params.entities;
8322
+ this.media = params.media;
8217
8323
  }
8218
8324
  }
8219
8325
  export class MessagesGetAllDrafts extends Function {
@@ -9285,6 +9391,7 @@ export class MessagesSendMultiMedia extends Function {
9285
9391
  ["clearDraft", "true", "flags.7?true"],
9286
9392
  ["noforwards", "true", "flags.14?true"],
9287
9393
  ["updateStickersetsOrder", "true", "flags.15?true"],
9394
+ ["invertMedia", "true", "flags.16?true"],
9288
9395
  ["peer", types._TypeInputPeer, "InputPeer"],
9289
9396
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
9290
9397
  ["multiMedia", [types._TypeInputSingleMedia], "Vector<InputSingleMedia>"],
@@ -9300,6 +9407,7 @@ export class MessagesSendMultiMedia extends Function {
9300
9407
  [this.clearDraft ?? null, "true", "flags.7?true"],
9301
9408
  [this.noforwards ?? null, "true", "flags.14?true"],
9302
9409
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
9410
+ [this.invertMedia ?? null, "true", "flags.16?true"],
9303
9411
  [this.peer, types._TypeInputPeer, "InputPeer"],
9304
9412
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
9305
9413
  [this.multiMedia, [types._TypeInputSingleMedia], "Vector<InputSingleMedia>"],
@@ -9339,6 +9447,12 @@ export class MessagesSendMultiMedia extends Function {
9339
9447
  writable: true,
9340
9448
  value: void 0
9341
9449
  });
9450
+ Object.defineProperty(this, "invertMedia", {
9451
+ enumerable: true,
9452
+ configurable: true,
9453
+ writable: true,
9454
+ value: void 0
9455
+ });
9342
9456
  Object.defineProperty(this, "peer", {
9343
9457
  enumerable: true,
9344
9458
  configurable: true,
@@ -9374,6 +9488,7 @@ export class MessagesSendMultiMedia extends Function {
9374
9488
  this.clearDraft = params.clearDraft;
9375
9489
  this.noforwards = params.noforwards;
9376
9490
  this.updateStickersetsOrder = params.updateStickersetsOrder;
9491
+ this.invertMedia = params.invertMedia;
9377
9492
  this.peer = params.peer;
9378
9493
  this.replyTo = params.replyTo;
9379
9494
  this.multiMedia = params.multiMedia;
@@ -16668,6 +16783,51 @@ export class ChannelsClickSponsoredMessage extends Function {
16668
16783
  this.randomId = params.randomId;
16669
16784
  }
16670
16785
  }
16786
+ export class ChannelsUpdateColor extends Function {
16787
+ get [id]() {
16788
+ return 0x621A201F;
16789
+ }
16790
+ static get [paramDesc]() {
16791
+ return [
16792
+ ["flags", flags, "#"],
16793
+ ["channel", types._TypeInputChannel, "InputChannel"],
16794
+ ["color", "number", "int"],
16795
+ ["backgroundEmojiId", "bigint", "flags.0?long"],
16796
+ ];
16797
+ }
16798
+ get [params]() {
16799
+ return [
16800
+ ["flags", flags, "#"],
16801
+ [this.channel, types._TypeInputChannel, "InputChannel"],
16802
+ [this.color, "number", "int"],
16803
+ [this.backgroundEmojiId ?? null, "bigint", "flags.0?long"],
16804
+ ];
16805
+ }
16806
+ constructor(params) {
16807
+ super();
16808
+ Object.defineProperty(this, "channel", {
16809
+ enumerable: true,
16810
+ configurable: true,
16811
+ writable: true,
16812
+ value: void 0
16813
+ });
16814
+ Object.defineProperty(this, "color", {
16815
+ enumerable: true,
16816
+ configurable: true,
16817
+ writable: true,
16818
+ value: void 0
16819
+ });
16820
+ Object.defineProperty(this, "backgroundEmojiId", {
16821
+ enumerable: true,
16822
+ configurable: true,
16823
+ writable: true,
16824
+ value: void 0
16825
+ });
16826
+ this.channel = params.channel;
16827
+ this.color = params.color;
16828
+ this.backgroundEmojiId = params.backgroundEmojiId;
16829
+ }
16830
+ }
16671
16831
  export class BotsSendCustomRequest extends Function {
16672
16832
  get [id]() {
16673
16833
  return 0xAA2769ED;
@@ -17605,6 +17765,160 @@ export class PaymentsCanPurchasePremium extends Function {
17605
17765
  this.purpose = params.purpose;
17606
17766
  }
17607
17767
  }
17768
+ export class PaymentsGetPremiumGiftCodeOptions extends Function {
17769
+ get [id]() {
17770
+ return 0x2757BA54;
17771
+ }
17772
+ static get [paramDesc]() {
17773
+ return [
17774
+ ["flags", flags, "#"],
17775
+ ["boostPeer", types._TypeInputPeer, "flags.0?InputPeer"],
17776
+ ];
17777
+ }
17778
+ get [params]() {
17779
+ return [
17780
+ ["flags", flags, "#"],
17781
+ [this.boostPeer ?? null, types._TypeInputPeer, "flags.0?InputPeer"],
17782
+ ];
17783
+ }
17784
+ constructor(params) {
17785
+ super();
17786
+ Object.defineProperty(this, "boostPeer", {
17787
+ enumerable: true,
17788
+ configurable: true,
17789
+ writable: true,
17790
+ value: void 0
17791
+ });
17792
+ this.boostPeer = params?.boostPeer;
17793
+ }
17794
+ }
17795
+ export class PaymentsCheckGiftCode extends Function {
17796
+ get [id]() {
17797
+ return 0x8E51B4C1;
17798
+ }
17799
+ static get [paramDesc]() {
17800
+ return [
17801
+ ["slug", "string", "string"],
17802
+ ];
17803
+ }
17804
+ get [params]() {
17805
+ return [
17806
+ [this.slug, "string", "string"],
17807
+ ];
17808
+ }
17809
+ constructor(params) {
17810
+ super();
17811
+ Object.defineProperty(this, "slug", {
17812
+ enumerable: true,
17813
+ configurable: true,
17814
+ writable: true,
17815
+ value: void 0
17816
+ });
17817
+ this.slug = params.slug;
17818
+ }
17819
+ }
17820
+ export class PaymentsApplyGiftCode extends Function {
17821
+ get [id]() {
17822
+ return 0xF6E26854;
17823
+ }
17824
+ static get [paramDesc]() {
17825
+ return [
17826
+ ["slug", "string", "string"],
17827
+ ];
17828
+ }
17829
+ get [params]() {
17830
+ return [
17831
+ [this.slug, "string", "string"],
17832
+ ];
17833
+ }
17834
+ constructor(params) {
17835
+ super();
17836
+ Object.defineProperty(this, "slug", {
17837
+ enumerable: true,
17838
+ configurable: true,
17839
+ writable: true,
17840
+ value: void 0
17841
+ });
17842
+ this.slug = params.slug;
17843
+ }
17844
+ }
17845
+ export class PaymentsGetGiveawayInfo extends Function {
17846
+ get [id]() {
17847
+ return 0xF4239425;
17848
+ }
17849
+ static get [paramDesc]() {
17850
+ return [
17851
+ ["peer", types._TypeInputPeer, "InputPeer"],
17852
+ ["msgId", "number", "int"],
17853
+ ];
17854
+ }
17855
+ get [params]() {
17856
+ return [
17857
+ [this.peer, types._TypeInputPeer, "InputPeer"],
17858
+ [this.msgId, "number", "int"],
17859
+ ];
17860
+ }
17861
+ constructor(params) {
17862
+ super();
17863
+ Object.defineProperty(this, "peer", {
17864
+ enumerable: true,
17865
+ configurable: true,
17866
+ writable: true,
17867
+ value: void 0
17868
+ });
17869
+ Object.defineProperty(this, "msgId", {
17870
+ enumerable: true,
17871
+ configurable: true,
17872
+ writable: true,
17873
+ value: void 0
17874
+ });
17875
+ this.peer = params.peer;
17876
+ this.msgId = params.msgId;
17877
+ }
17878
+ }
17879
+ export class PaymentsLaunchPrepaidGiveaway extends Function {
17880
+ get [id]() {
17881
+ return 0x5FF58F20;
17882
+ }
17883
+ static get [paramDesc]() {
17884
+ return [
17885
+ ["peer", types._TypeInputPeer, "InputPeer"],
17886
+ ["giveawayId", "bigint", "long"],
17887
+ ["purpose", types._TypeInputStorePaymentPurpose, "InputStorePaymentPurpose"],
17888
+ ];
17889
+ }
17890
+ get [params]() {
17891
+ return [
17892
+ [this.peer, types._TypeInputPeer, "InputPeer"],
17893
+ [this.giveawayId, "bigint", "long"],
17894
+ [this.purpose, types._TypeInputStorePaymentPurpose, "InputStorePaymentPurpose"],
17895
+ ];
17896
+ }
17897
+ constructor(params) {
17898
+ super();
17899
+ Object.defineProperty(this, "peer", {
17900
+ enumerable: true,
17901
+ configurable: true,
17902
+ writable: true,
17903
+ value: void 0
17904
+ });
17905
+ Object.defineProperty(this, "giveawayId", {
17906
+ enumerable: true,
17907
+ configurable: true,
17908
+ writable: true,
17909
+ value: void 0
17910
+ });
17911
+ Object.defineProperty(this, "purpose", {
17912
+ enumerable: true,
17913
+ configurable: true,
17914
+ writable: true,
17915
+ value: void 0
17916
+ });
17917
+ this.peer = params.peer;
17918
+ this.giveawayId = params.giveawayId;
17919
+ this.purpose = params.purpose;
17920
+ }
17921
+ }
17608
17922
  export class StickersCreateStickerSet extends Function {
17609
17923
  get [id]() {
17610
17924
  return 0x9021AB67;
@@ -21037,51 +21351,36 @@ export class StoriesTogglePeerStoriesHidden extends Function {
21037
21351
  this.hidden = params.hidden;
21038
21352
  }
21039
21353
  }
21040
- export class StoriesGetBoostsStatus extends Function {
21354
+ export class PremiumGetBoostsList extends Function {
21041
21355
  get [id]() {
21042
- return 0x4C449472;
21356
+ return 0x60F67660;
21043
21357
  }
21044
21358
  static get [paramDesc]() {
21045
21359
  return [
21360
+ ["flags", flags, "#"],
21361
+ ["gifts", "true", "flags.0?true"],
21046
21362
  ["peer", types._TypeInputPeer, "InputPeer"],
21363
+ ["offset", "string", "string"],
21364
+ ["limit", "number", "int"],
21047
21365
  ];
21048
21366
  }
21049
21367
  get [params]() {
21050
21368
  return [
21369
+ ["flags", flags, "#"],
21370
+ [this.gifts ?? null, "true", "flags.0?true"],
21051
21371
  [this.peer, types._TypeInputPeer, "InputPeer"],
21372
+ [this.offset, "string", "string"],
21373
+ [this.limit, "number", "int"],
21052
21374
  ];
21053
21375
  }
21054
21376
  constructor(params) {
21055
21377
  super();
21056
- Object.defineProperty(this, "peer", {
21378
+ Object.defineProperty(this, "gifts", {
21057
21379
  enumerable: true,
21058
21380
  configurable: true,
21059
21381
  writable: true,
21060
21382
  value: void 0
21061
21383
  });
21062
- this.peer = params.peer;
21063
- }
21064
- }
21065
- export class StoriesGetBoostersList extends Function {
21066
- get [id]() {
21067
- return 0x337EF980;
21068
- }
21069
- static get [paramDesc]() {
21070
- return [
21071
- ["peer", types._TypeInputPeer, "InputPeer"],
21072
- ["offset", "string", "string"],
21073
- ["limit", "number", "int"],
21074
- ];
21075
- }
21076
- get [params]() {
21077
- return [
21078
- [this.peer, types._TypeInputPeer, "InputPeer"],
21079
- [this.offset, "string", "string"],
21080
- [this.limit, "number", "int"],
21081
- ];
21082
- }
21083
- constructor(params) {
21084
- super();
21085
21384
  Object.defineProperty(this, "peer", {
21086
21385
  enumerable: true,
21087
21386
  configurable: true,
@@ -21100,39 +21399,65 @@ export class StoriesGetBoostersList extends Function {
21100
21399
  writable: true,
21101
21400
  value: void 0
21102
21401
  });
21402
+ this.gifts = params.gifts;
21103
21403
  this.peer = params.peer;
21104
21404
  this.offset = params.offset;
21105
21405
  this.limit = params.limit;
21106
21406
  }
21107
21407
  }
21108
- export class StoriesCanApplyBoost extends Function {
21408
+ export class PremiumGetMyBoosts extends Function {
21109
21409
  get [id]() {
21110
- return 0xDB05C1BD;
21410
+ return 0x0BE77B4A;
21411
+ }
21412
+ static get [paramDesc]() {
21413
+ return [];
21414
+ }
21415
+ get [params]() {
21416
+ return [];
21417
+ }
21418
+ constructor() {
21419
+ super();
21420
+ }
21421
+ }
21422
+ export class PremiumApplyBoost extends Function {
21423
+ get [id]() {
21424
+ return 0x6B7DA746;
21111
21425
  }
21112
21426
  static get [paramDesc]() {
21113
21427
  return [
21428
+ ["flags", flags, "#"],
21429
+ ["slots", ["number"], "flags.0?Vector<int>"],
21114
21430
  ["peer", types._TypeInputPeer, "InputPeer"],
21115
21431
  ];
21116
21432
  }
21117
21433
  get [params]() {
21118
21434
  return [
21435
+ ["flags", flags, "#"],
21436
+ [this.slots ?? null, ["number"], "flags.0?Vector<int>"],
21119
21437
  [this.peer, types._TypeInputPeer, "InputPeer"],
21120
21438
  ];
21121
21439
  }
21122
21440
  constructor(params) {
21123
21441
  super();
21442
+ Object.defineProperty(this, "slots", {
21443
+ enumerable: true,
21444
+ configurable: true,
21445
+ writable: true,
21446
+ value: void 0
21447
+ });
21124
21448
  Object.defineProperty(this, "peer", {
21125
21449
  enumerable: true,
21126
21450
  configurable: true,
21127
21451
  writable: true,
21128
21452
  value: void 0
21129
21453
  });
21454
+ this.slots = params.slots;
21130
21455
  this.peer = params.peer;
21131
21456
  }
21132
21457
  }
21133
- export class StoriesApplyBoost extends Function {
21458
+ export class PremiumGetBoostsStatus extends Function {
21134
21459
  get [id]() {
21135
- return 0xF29D7C2B;
21460
+ return 0x042F1F61;
21136
21461
  }
21137
21462
  static get [paramDesc]() {
21138
21463
  return [
@@ -1,8 +1,7 @@
1
1
  import { Connection } from "../2_connection.js";
2
2
  import { Transport } from "./0_transport.js";
3
3
  export declare class TransportAbridged extends Transport implements Transport {
4
- private readonly connection;
5
- private readonly obfuscated;
4
+ #private;
6
5
  constructor(connection: Connection, obfuscated?: boolean);
7
6
  initialize(): Promise<void>;
8
7
  receive(): Promise<Uint8Array>;