@tgsnake/skema 1.5.0 → 1.7.0

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/dist/raw/Raw.js CHANGED
@@ -5,7 +5,7 @@ const index_js_1 = require("@/raw/core/index.js");
5
5
  const deps_js_1 = require("@/deps.js");
6
6
  var Raw;
7
7
  (function (Raw) {
8
- Raw.Layer = 216;
8
+ Raw.Layer = 220;
9
9
  Raw.HighestSCLayer = 144;
10
10
  class ResPQ extends index_js_1.TLObject {
11
11
  nonce;
@@ -2171,33 +2171,41 @@ var Raw;
2171
2171
  phone;
2172
2172
  firstName;
2173
2173
  lastName;
2174
+ note;
2174
2175
  constructor(params) {
2175
2176
  super();
2176
2177
  this.classType = 'types';
2177
2178
  this.className = 'InputPhoneContact';
2178
- this.constructorId = 0xf392b7f4;
2179
+ this.constructorId = 0x6a1dc4be;
2179
2180
  this.subclassOfId = 0xae696a82;
2180
- this._slots = ['clientId', 'phone', 'firstName', 'lastName'];
2181
+ this._slots = ['clientId', 'phone', 'firstName', 'lastName', 'note'];
2181
2182
  this.clientId = params.clientId;
2182
2183
  this.phone = params.phone;
2183
2184
  this.firstName = params.firstName;
2184
2185
  this.lastName = params.lastName;
2186
+ this.note = params.note;
2185
2187
  }
2186
2188
  static async read(_data, ..._args) {
2189
+ let flags = await index_js_1.Primitive.Int.read(_data);
2187
2190
  let clientId = await index_js_1.Primitive.Long.read(_data);
2188
2191
  let phone = await index_js_1.Primitive.String.read(_data);
2189
2192
  let firstName = await index_js_1.Primitive.String.read(_data);
2190
2193
  let lastName = await index_js_1.Primitive.String.read(_data);
2194
+ let note = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
2191
2195
  return new Raw.InputPhoneContact({
2192
2196
  clientId: clientId,
2193
2197
  phone: phone,
2194
2198
  firstName: firstName,
2195
2199
  lastName: lastName,
2200
+ note: note,
2196
2201
  });
2197
2202
  }
2198
2203
  write() {
2199
2204
  const b = new deps_js_1.BytesIO();
2200
2205
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
2206
+ let flags = 0;
2207
+ flags |= this.note !== undefined ? 1 << 0 : 0;
2208
+ b.write(index_js_1.Primitive.Int.write(flags));
2201
2209
  if (this.clientId !== undefined) {
2202
2210
  b.write(index_js_1.Primitive.Long.write(this.clientId));
2203
2211
  }
@@ -2210,6 +2218,9 @@ var Raw;
2210
2218
  if (this.lastName !== undefined) {
2211
2219
  b.write(index_js_1.Primitive.String.write(this.lastName));
2212
2220
  }
2221
+ if (this.note !== undefined) {
2222
+ b.write(this.note.write());
2223
+ }
2213
2224
  return deps_js_1.Buffer.from(b.buffer);
2214
2225
  }
2215
2226
  }
@@ -4034,7 +4045,7 @@ var Raw;
4034
4045
  super();
4035
4046
  this.classType = 'types';
4036
4047
  this.className = 'User';
4037
- this.constructorId = 0x20b1422;
4048
+ this.constructorId = 0x31774388;
4038
4049
  this.subclassOfId = 0x2da17977;
4039
4050
  this._slots = [
4040
4051
  'self',
@@ -4174,7 +4185,7 @@ var Raw;
4174
4185
  let langCode = flags & (1 << 22) ? await index_js_1.Primitive.String.read(_data) : undefined;
4175
4186
  let emojiStatus = flags & (1 << 30) ? await index_js_1.TLObject.read(_data) : undefined;
4176
4187
  let usernames = flags2 & (1 << 0) ? await index_js_1.TLObject.read(_data) : [];
4177
- let storiesMaxId = flags2 & (1 << 5) ? await index_js_1.Primitive.Int.read(_data) : undefined;
4188
+ let storiesMaxId = flags2 & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
4178
4189
  let color = flags2 & (1 << 8) ? await index_js_1.TLObject.read(_data) : undefined;
4179
4190
  let profileColor = flags2 & (1 << 9) ? await index_js_1.TLObject.read(_data) : undefined;
4180
4191
  let botActiveUsers = flags2 & (1 << 12) ? await index_js_1.Primitive.Int.read(_data) : undefined;
@@ -4324,7 +4335,7 @@ var Raw;
4324
4335
  b.write(index_js_1.Primitive.Vector.write(this.usernames));
4325
4336
  }
4326
4337
  if (this.storiesMaxId !== undefined) {
4327
- b.write(index_js_1.Primitive.Int.write(this.storiesMaxId));
4338
+ b.write(this.storiesMaxId.write());
4328
4339
  }
4329
4340
  if (this.color !== undefined) {
4330
4341
  b.write(this.color.write());
@@ -4811,7 +4822,7 @@ var Raw;
4811
4822
  super();
4812
4823
  this.classType = 'types';
4813
4824
  this.className = 'Channel';
4814
- this.constructorId = 0xfe685355;
4825
+ this.constructorId = 0x1c32b11c;
4815
4826
  this.subclassOfId = 0xc5af5d94;
4816
4827
  this._slots = [
4817
4828
  'creator',
@@ -4957,7 +4968,7 @@ var Raw;
4957
4968
  let defaultBannedRights = flags & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
4958
4969
  let participantsCount = flags & (1 << 17) ? await index_js_1.Primitive.Int.read(_data) : undefined;
4959
4970
  let usernames = flags2 & (1 << 0) ? await index_js_1.TLObject.read(_data) : [];
4960
- let storiesMaxId = flags2 & (1 << 4) ? await index_js_1.Primitive.Int.read(_data) : undefined;
4971
+ let storiesMaxId = flags2 & (1 << 4) ? await index_js_1.TLObject.read(_data) : undefined;
4961
4972
  let color = flags2 & (1 << 7) ? await index_js_1.TLObject.read(_data) : undefined;
4962
4973
  let profileColor = flags2 & (1 << 8) ? await index_js_1.TLObject.read(_data) : undefined;
4963
4974
  let emojiStatus = flags2 & (1 << 9) ? await index_js_1.TLObject.read(_data) : undefined;
@@ -5107,7 +5118,7 @@ var Raw;
5107
5118
  b.write(index_js_1.Primitive.Vector.write(this.usernames));
5108
5119
  }
5109
5120
  if (this.storiesMaxId !== undefined) {
5110
- b.write(index_js_1.Primitive.Int.write(this.storiesMaxId));
5121
+ b.write(this.storiesMaxId.write());
5111
5122
  }
5112
5123
  if (this.color !== undefined) {
5113
5124
  b.write(this.color.write());
@@ -6266,11 +6277,12 @@ var Raw;
6266
6277
  reportDeliveryUntilDate;
6267
6278
  paidMessageStars;
6268
6279
  suggestedPost;
6280
+ scheduleRepeatPeriod;
6269
6281
  constructor(params) {
6270
6282
  super();
6271
6283
  this.classType = 'types';
6272
6284
  this.className = 'Message';
6273
- this.constructorId = 0x9815cec8;
6285
+ this.constructorId = 0xb92f76cf;
6274
6286
  this.subclassOfId = 0x790009e3;
6275
6287
  this._slots = [
6276
6288
  'out',
@@ -6317,6 +6329,7 @@ var Raw;
6317
6329
  'reportDeliveryUntilDate',
6318
6330
  'paidMessageStars',
6319
6331
  'suggestedPost',
6332
+ 'scheduleRepeatPeriod',
6320
6333
  ];
6321
6334
  this.out = params.out;
6322
6335
  this.mentioned = params.mentioned;
@@ -6362,6 +6375,7 @@ var Raw;
6362
6375
  this.reportDeliveryUntilDate = params.reportDeliveryUntilDate;
6363
6376
  this.paidMessageStars = params.paidMessageStars;
6364
6377
  this.suggestedPost = params.suggestedPost;
6378
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
6365
6379
  }
6366
6380
  static async read(_data, ..._args) {
6367
6381
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -6410,6 +6424,7 @@ var Raw;
6410
6424
  let reportDeliveryUntilDate = flags2 & (1 << 5) ? await index_js_1.Primitive.Int.read(_data) : undefined;
6411
6425
  let paidMessageStars = flags2 & (1 << 6) ? await index_js_1.Primitive.Long.read(_data) : undefined;
6412
6426
  let suggestedPost = flags2 & (1 << 7) ? await index_js_1.TLObject.read(_data) : undefined;
6427
+ let scheduleRepeatPeriod = flags2 & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
6413
6428
  return new Raw.Message({
6414
6429
  out: out,
6415
6430
  mentioned: mentioned,
@@ -6455,6 +6470,7 @@ var Raw;
6455
6470
  reportDeliveryUntilDate: reportDeliveryUntilDate,
6456
6471
  paidMessageStars: paidMessageStars,
6457
6472
  suggestedPost: suggestedPost,
6473
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
6458
6474
  });
6459
6475
  }
6460
6476
  write() {
@@ -6503,6 +6519,7 @@ var Raw;
6503
6519
  flags2 |= this.reportDeliveryUntilDate !== undefined ? 1 << 5 : 0;
6504
6520
  flags2 |= this.paidMessageStars !== undefined ? 1 << 6 : 0;
6505
6521
  flags2 |= this.suggestedPost !== undefined ? 1 << 7 : 0;
6522
+ flags2 |= this.scheduleRepeatPeriod !== undefined ? 1 << 10 : 0;
6506
6523
  b.write(index_js_1.Primitive.Int.write(flags2));
6507
6524
  if (this.id !== undefined) {
6508
6525
  b.write(index_js_1.Primitive.Int.write(this.id));
@@ -6591,6 +6608,9 @@ var Raw;
6591
6608
  if (this.suggestedPost !== undefined) {
6592
6609
  b.write(this.suggestedPost.write());
6593
6610
  }
6611
+ if (this.scheduleRepeatPeriod !== undefined) {
6612
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
6613
+ }
6594
6614
  return deps_js_1.Buffer.from(b.buffer);
6595
6615
  }
6596
6616
  }
@@ -7685,6 +7705,38 @@ var Raw;
7685
7705
  }
7686
7706
  }
7687
7707
  Raw.MessageMediaToDo = MessageMediaToDo;
7708
+ class MessageMediaVideoStream extends index_js_1.TLObject {
7709
+ rtmpStream;
7710
+ call;
7711
+ constructor(params) {
7712
+ super();
7713
+ this.classType = 'types';
7714
+ this.className = 'MessageMediaVideoStream';
7715
+ this.constructorId = 0xca5cab89;
7716
+ this.subclassOfId = 0x476cbe32;
7717
+ this._slots = ['rtmpStream', 'call'];
7718
+ this.rtmpStream = params.rtmpStream;
7719
+ this.call = params.call;
7720
+ }
7721
+ static async read(_data, ..._args) {
7722
+ let flags = await index_js_1.Primitive.Int.read(_data);
7723
+ let rtmpStream = flags & (1 << 0) ? true : false;
7724
+ let call = await index_js_1.TLObject.read(_data);
7725
+ return new Raw.MessageMediaVideoStream({ rtmpStream: rtmpStream, call: call });
7726
+ }
7727
+ write() {
7728
+ const b = new deps_js_1.BytesIO();
7729
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
7730
+ let flags = 0;
7731
+ flags |= this.rtmpStream ? 1 << 0 : 0;
7732
+ b.write(index_js_1.Primitive.Int.write(flags));
7733
+ if (this.call !== undefined) {
7734
+ b.write(this.call.write());
7735
+ }
7736
+ return deps_js_1.Buffer.from(b.buffer);
7737
+ }
7738
+ }
7739
+ Raw.MessageMediaVideoStream = MessageMediaVideoStream;
7688
7740
  class MessageActionEmpty extends index_js_1.TLObject {
7689
7741
  constructor() {
7690
7742
  super();
@@ -8692,7 +8744,7 @@ var Raw;
8692
8744
  class MessageActionGiftPremium extends index_js_1.TLObject {
8693
8745
  currency;
8694
8746
  amount;
8695
- months;
8747
+ days;
8696
8748
  cryptoCurrency;
8697
8749
  cryptoAmount;
8698
8750
  message;
@@ -8700,12 +8752,12 @@ var Raw;
8700
8752
  super();
8701
8753
  this.classType = 'types';
8702
8754
  this.className = 'MessageActionGiftPremium';
8703
- this.constructorId = 0x6c6274fa;
8755
+ this.constructorId = 0x48e91302;
8704
8756
  this.subclassOfId = 0x8680d126;
8705
- this._slots = ['currency', 'amount', 'months', 'cryptoCurrency', 'cryptoAmount', 'message'];
8757
+ this._slots = ['currency', 'amount', 'days', 'cryptoCurrency', 'cryptoAmount', 'message'];
8706
8758
  this.currency = params.currency;
8707
8759
  this.amount = params.amount;
8708
- this.months = params.months;
8760
+ this.days = params.days;
8709
8761
  this.cryptoCurrency = params.cryptoCurrency;
8710
8762
  this.cryptoAmount = params.cryptoAmount;
8711
8763
  this.message = params.message;
@@ -8714,14 +8766,14 @@ var Raw;
8714
8766
  let flags = await index_js_1.Primitive.Int.read(_data);
8715
8767
  let currency = await index_js_1.Primitive.String.read(_data);
8716
8768
  let amount = await index_js_1.Primitive.Long.read(_data);
8717
- let months = await index_js_1.Primitive.Int.read(_data);
8769
+ let days = await index_js_1.Primitive.Int.read(_data);
8718
8770
  let cryptoCurrency = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
8719
8771
  let cryptoAmount = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
8720
8772
  let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
8721
8773
  return new Raw.MessageActionGiftPremium({
8722
8774
  currency: currency,
8723
8775
  amount: amount,
8724
- months: months,
8776
+ days: days,
8725
8777
  cryptoCurrency: cryptoCurrency,
8726
8778
  cryptoAmount: cryptoAmount,
8727
8779
  message: message,
@@ -8741,8 +8793,8 @@ var Raw;
8741
8793
  if (this.amount !== undefined) {
8742
8794
  b.write(index_js_1.Primitive.Long.write(this.amount));
8743
8795
  }
8744
- if (this.months !== undefined) {
8745
- b.write(index_js_1.Primitive.Int.write(this.months));
8796
+ if (this.days !== undefined) {
8797
+ b.write(index_js_1.Primitive.Int.write(this.days));
8746
8798
  }
8747
8799
  if (this.cryptoCurrency !== undefined) {
8748
8800
  b.write(index_js_1.Primitive.String.write(this.cryptoCurrency));
@@ -8962,7 +9014,7 @@ var Raw;
8962
9014
  viaGiveaway;
8963
9015
  unclaimed;
8964
9016
  boostPeer;
8965
- months;
9017
+ days;
8966
9018
  slug;
8967
9019
  currency;
8968
9020
  amount;
@@ -8973,13 +9025,13 @@ var Raw;
8973
9025
  super();
8974
9026
  this.classType = 'types';
8975
9027
  this.className = 'MessageActionGiftCode';
8976
- this.constructorId = 0x56d03994;
9028
+ this.constructorId = 0x31c48347;
8977
9029
  this.subclassOfId = 0x8680d126;
8978
9030
  this._slots = [
8979
9031
  'viaGiveaway',
8980
9032
  'unclaimed',
8981
9033
  'boostPeer',
8982
- 'months',
9034
+ 'days',
8983
9035
  'slug',
8984
9036
  'currency',
8985
9037
  'amount',
@@ -8990,7 +9042,7 @@ var Raw;
8990
9042
  this.viaGiveaway = params.viaGiveaway;
8991
9043
  this.unclaimed = params.unclaimed;
8992
9044
  this.boostPeer = params.boostPeer;
8993
- this.months = params.months;
9045
+ this.days = params.days;
8994
9046
  this.slug = params.slug;
8995
9047
  this.currency = params.currency;
8996
9048
  this.amount = params.amount;
@@ -9003,7 +9055,7 @@ var Raw;
9003
9055
  let viaGiveaway = flags & (1 << 0) ? true : false;
9004
9056
  let unclaimed = flags & (1 << 5) ? true : false;
9005
9057
  let boostPeer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
9006
- let months = await index_js_1.Primitive.Int.read(_data);
9058
+ let days = await index_js_1.Primitive.Int.read(_data);
9007
9059
  let slug = await index_js_1.Primitive.String.read(_data);
9008
9060
  let currency = flags & (1 << 2) ? await index_js_1.Primitive.String.read(_data) : undefined;
9009
9061
  let amount = flags & (1 << 2) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9014,7 +9066,7 @@ var Raw;
9014
9066
  viaGiveaway: viaGiveaway,
9015
9067
  unclaimed: unclaimed,
9016
9068
  boostPeer: boostPeer,
9017
- months: months,
9069
+ days: days,
9018
9070
  slug: slug,
9019
9071
  currency: currency,
9020
9072
  amount: amount,
@@ -9039,8 +9091,8 @@ var Raw;
9039
9091
  if (this.boostPeer !== undefined) {
9040
9092
  b.write(this.boostPeer.write());
9041
9093
  }
9042
- if (this.months !== undefined) {
9043
- b.write(index_js_1.Primitive.Int.write(this.months));
9094
+ if (this.days !== undefined) {
9095
+ b.write(index_js_1.Primitive.Int.write(this.days));
9044
9096
  }
9045
9097
  if (this.slug !== undefined) {
9046
9098
  b.write(index_js_1.Primitive.String.write(this.slug));
@@ -9390,6 +9442,7 @@ var Raw;
9390
9442
  canUpgrade;
9391
9443
  prepaidUpgrade;
9392
9444
  upgradeSeparate;
9445
+ auctionAcquired;
9393
9446
  gift;
9394
9447
  message;
9395
9448
  convertStars;
@@ -9400,11 +9453,13 @@ var Raw;
9400
9453
  savedId;
9401
9454
  prepaidUpgradeHash;
9402
9455
  giftMsgId;
9456
+ toId;
9457
+ giftNum;
9403
9458
  constructor(params) {
9404
9459
  super();
9405
9460
  this.classType = 'types';
9406
9461
  this.className = 'MessageActionStarGift';
9407
- this.constructorId = 0xf24de7fa;
9462
+ this.constructorId = 0xea2c31d3;
9408
9463
  this.subclassOfId = 0x8680d126;
9409
9464
  this._slots = [
9410
9465
  'nameHidden',
@@ -9415,6 +9470,7 @@ var Raw;
9415
9470
  'canUpgrade',
9416
9471
  'prepaidUpgrade',
9417
9472
  'upgradeSeparate',
9473
+ 'auctionAcquired',
9418
9474
  'gift',
9419
9475
  'message',
9420
9476
  'convertStars',
@@ -9425,6 +9481,8 @@ var Raw;
9425
9481
  'savedId',
9426
9482
  'prepaidUpgradeHash',
9427
9483
  'giftMsgId',
9484
+ 'toId',
9485
+ 'giftNum',
9428
9486
  ];
9429
9487
  this.nameHidden = params.nameHidden;
9430
9488
  this.saved = params.saved;
@@ -9434,6 +9492,7 @@ var Raw;
9434
9492
  this.canUpgrade = params.canUpgrade;
9435
9493
  this.prepaidUpgrade = params.prepaidUpgrade;
9436
9494
  this.upgradeSeparate = params.upgradeSeparate;
9495
+ this.auctionAcquired = params.auctionAcquired;
9437
9496
  this.gift = params.gift;
9438
9497
  this.message = params.message;
9439
9498
  this.convertStars = params.convertStars;
@@ -9444,6 +9503,8 @@ var Raw;
9444
9503
  this.savedId = params.savedId;
9445
9504
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
9446
9505
  this.giftMsgId = params.giftMsgId;
9506
+ this.toId = params.toId;
9507
+ this.giftNum = params.giftNum;
9447
9508
  }
9448
9509
  static async read(_data, ..._args) {
9449
9510
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -9455,6 +9516,7 @@ var Raw;
9455
9516
  let canUpgrade = flags & (1 << 10) ? true : false;
9456
9517
  let prepaidUpgrade = flags & (1 << 13) ? true : false;
9457
9518
  let upgradeSeparate = flags & (1 << 16) ? true : false;
9519
+ let auctionAcquired = flags & (1 << 17) ? true : false;
9458
9520
  let gift = await index_js_1.TLObject.read(_data);
9459
9521
  let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
9460
9522
  let convertStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9465,6 +9527,8 @@ var Raw;
9465
9527
  let savedId = flags & (1 << 12) ? await index_js_1.Primitive.Long.read(_data) : undefined;
9466
9528
  let prepaidUpgradeHash = flags & (1 << 14) ? await index_js_1.Primitive.String.read(_data) : undefined;
9467
9529
  let giftMsgId = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9530
+ let toId = flags & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
9531
+ let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9468
9532
  return new Raw.MessageActionStarGift({
9469
9533
  nameHidden: nameHidden,
9470
9534
  saved: saved,
@@ -9474,6 +9538,7 @@ var Raw;
9474
9538
  canUpgrade: canUpgrade,
9475
9539
  prepaidUpgrade: prepaidUpgrade,
9476
9540
  upgradeSeparate: upgradeSeparate,
9541
+ auctionAcquired: auctionAcquired,
9477
9542
  gift: gift,
9478
9543
  message: message,
9479
9544
  convertStars: convertStars,
@@ -9484,6 +9549,8 @@ var Raw;
9484
9549
  savedId: savedId,
9485
9550
  prepaidUpgradeHash: prepaidUpgradeHash,
9486
9551
  giftMsgId: giftMsgId,
9552
+ toId: toId,
9553
+ giftNum: giftNum,
9487
9554
  });
9488
9555
  }
9489
9556
  write() {
@@ -9498,6 +9565,7 @@ var Raw;
9498
9565
  flags |= this.canUpgrade ? 1 << 10 : 0;
9499
9566
  flags |= this.prepaidUpgrade ? 1 << 13 : 0;
9500
9567
  flags |= this.upgradeSeparate ? 1 << 16 : 0;
9568
+ flags |= this.auctionAcquired ? 1 << 17 : 0;
9501
9569
  flags |= this.message !== undefined ? 1 << 1 : 0;
9502
9570
  flags |= this.convertStars !== undefined ? 1 << 4 : 0;
9503
9571
  flags |= this.upgradeMsgId !== undefined ? 1 << 5 : 0;
@@ -9507,6 +9575,8 @@ var Raw;
9507
9575
  flags |= this.savedId !== undefined ? 1 << 12 : 0;
9508
9576
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 14 : 0;
9509
9577
  flags |= this.giftMsgId !== undefined ? 1 << 15 : 0;
9578
+ flags |= this.toId !== undefined ? 1 << 18 : 0;
9579
+ flags |= this.giftNum !== undefined ? 1 << 19 : 0;
9510
9580
  b.write(index_js_1.Primitive.Int.write(flags));
9511
9581
  if (this.gift !== undefined) {
9512
9582
  b.write(this.gift.write());
@@ -9538,6 +9608,12 @@ var Raw;
9538
9608
  if (this.giftMsgId !== undefined) {
9539
9609
  b.write(index_js_1.Primitive.Int.write(this.giftMsgId));
9540
9610
  }
9611
+ if (this.toId !== undefined) {
9612
+ b.write(this.toId.write());
9613
+ }
9614
+ if (this.giftNum !== undefined) {
9615
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
9616
+ }
9541
9617
  return deps_js_1.Buffer.from(b.buffer);
9542
9618
  }
9543
9619
  }
@@ -9549,6 +9625,7 @@ var Raw;
9549
9625
  refunded;
9550
9626
  prepaidUpgrade;
9551
9627
  assigned;
9628
+ fromOffer;
9552
9629
  gift;
9553
9630
  canExportAt;
9554
9631
  transferStars;
@@ -9572,6 +9649,7 @@ var Raw;
9572
9649
  'refunded',
9573
9650
  'prepaidUpgrade',
9574
9651
  'assigned',
9652
+ 'fromOffer',
9575
9653
  'gift',
9576
9654
  'canExportAt',
9577
9655
  'transferStars',
@@ -9589,6 +9667,7 @@ var Raw;
9589
9667
  this.refunded = params.refunded;
9590
9668
  this.prepaidUpgrade = params.prepaidUpgrade;
9591
9669
  this.assigned = params.assigned;
9670
+ this.fromOffer = params.fromOffer;
9592
9671
  this.gift = params.gift;
9593
9672
  this.canExportAt = params.canExportAt;
9594
9673
  this.transferStars = params.transferStars;
@@ -9608,6 +9687,7 @@ var Raw;
9608
9687
  let refunded = flags & (1 << 5) ? true : false;
9609
9688
  let prepaidUpgrade = flags & (1 << 11) ? true : false;
9610
9689
  let assigned = flags & (1 << 13) ? true : false;
9690
+ let fromOffer = flags & (1 << 14) ? true : false;
9611
9691
  let gift = await index_js_1.TLObject.read(_data);
9612
9692
  let canExportAt = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9613
9693
  let transferStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9625,6 +9705,7 @@ var Raw;
9625
9705
  refunded: refunded,
9626
9706
  prepaidUpgrade: prepaidUpgrade,
9627
9707
  assigned: assigned,
9708
+ fromOffer: fromOffer,
9628
9709
  gift: gift,
9629
9710
  canExportAt: canExportAt,
9630
9711
  transferStars: transferStars,
@@ -9647,6 +9728,7 @@ var Raw;
9647
9728
  flags |= this.refunded ? 1 << 5 : 0;
9648
9729
  flags |= this.prepaidUpgrade ? 1 << 11 : 0;
9649
9730
  flags |= this.assigned ? 1 << 13 : 0;
9731
+ flags |= this.fromOffer ? 1 << 14 : 0;
9650
9732
  flags |= this.canExportAt !== undefined ? 1 << 3 : 0;
9651
9733
  flags |= this.transferStars !== undefined ? 1 << 4 : 0;
9652
9734
  flags |= this.fromId !== undefined ? 1 << 6 : 0;
@@ -10069,6 +10151,102 @@ var Raw;
10069
10151
  }
10070
10152
  }
10071
10153
  Raw.MessageActionSuggestBirthday = MessageActionSuggestBirthday;
10154
+ class MessageActionStarGiftPurchaseOffer extends index_js_1.TLObject {
10155
+ accepted;
10156
+ declined;
10157
+ gift;
10158
+ price;
10159
+ expiresAt;
10160
+ constructor(params) {
10161
+ super();
10162
+ this.classType = 'types';
10163
+ this.className = 'MessageActionStarGiftPurchaseOffer';
10164
+ this.constructorId = 0x774278d4;
10165
+ this.subclassOfId = 0x8680d126;
10166
+ this._slots = ['accepted', 'declined', 'gift', 'price', 'expiresAt'];
10167
+ this.accepted = params.accepted;
10168
+ this.declined = params.declined;
10169
+ this.gift = params.gift;
10170
+ this.price = params.price;
10171
+ this.expiresAt = params.expiresAt;
10172
+ }
10173
+ static async read(_data, ..._args) {
10174
+ let flags = await index_js_1.Primitive.Int.read(_data);
10175
+ let accepted = flags & (1 << 0) ? true : false;
10176
+ let declined = flags & (1 << 1) ? true : false;
10177
+ let gift = await index_js_1.TLObject.read(_data);
10178
+ let price = await index_js_1.TLObject.read(_data);
10179
+ let expiresAt = await index_js_1.Primitive.Int.read(_data);
10180
+ return new Raw.MessageActionStarGiftPurchaseOffer({
10181
+ accepted: accepted,
10182
+ declined: declined,
10183
+ gift: gift,
10184
+ price: price,
10185
+ expiresAt: expiresAt,
10186
+ });
10187
+ }
10188
+ write() {
10189
+ const b = new deps_js_1.BytesIO();
10190
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
10191
+ let flags = 0;
10192
+ flags |= this.accepted ? 1 << 0 : 0;
10193
+ flags |= this.declined ? 1 << 1 : 0;
10194
+ b.write(index_js_1.Primitive.Int.write(flags));
10195
+ if (this.gift !== undefined) {
10196
+ b.write(this.gift.write());
10197
+ }
10198
+ if (this.price !== undefined) {
10199
+ b.write(this.price.write());
10200
+ }
10201
+ if (this.expiresAt !== undefined) {
10202
+ b.write(index_js_1.Primitive.Int.write(this.expiresAt));
10203
+ }
10204
+ return deps_js_1.Buffer.from(b.buffer);
10205
+ }
10206
+ }
10207
+ Raw.MessageActionStarGiftPurchaseOffer = MessageActionStarGiftPurchaseOffer;
10208
+ class MessageActionStarGiftPurchaseOfferDeclined extends index_js_1.TLObject {
10209
+ expired;
10210
+ gift;
10211
+ price;
10212
+ constructor(params) {
10213
+ super();
10214
+ this.classType = 'types';
10215
+ this.className = 'MessageActionStarGiftPurchaseOfferDeclined';
10216
+ this.constructorId = 0x73ada76b;
10217
+ this.subclassOfId = 0x8680d126;
10218
+ this._slots = ['expired', 'gift', 'price'];
10219
+ this.expired = params.expired;
10220
+ this.gift = params.gift;
10221
+ this.price = params.price;
10222
+ }
10223
+ static async read(_data, ..._args) {
10224
+ let flags = await index_js_1.Primitive.Int.read(_data);
10225
+ let expired = flags & (1 << 0) ? true : false;
10226
+ let gift = await index_js_1.TLObject.read(_data);
10227
+ let price = await index_js_1.TLObject.read(_data);
10228
+ return new Raw.MessageActionStarGiftPurchaseOfferDeclined({
10229
+ expired: expired,
10230
+ gift: gift,
10231
+ price: price,
10232
+ });
10233
+ }
10234
+ write() {
10235
+ const b = new deps_js_1.BytesIO();
10236
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
10237
+ let flags = 0;
10238
+ flags |= this.expired ? 1 << 0 : 0;
10239
+ b.write(index_js_1.Primitive.Int.write(flags));
10240
+ if (this.gift !== undefined) {
10241
+ b.write(this.gift.write());
10242
+ }
10243
+ if (this.price !== undefined) {
10244
+ b.write(this.price.write());
10245
+ }
10246
+ return deps_js_1.Buffer.from(b.buffer);
10247
+ }
10248
+ }
10249
+ Raw.MessageActionStarGiftPurchaseOfferDeclined = MessageActionStarGiftPurchaseOfferDeclined;
10072
10250
  class Dialog extends index_js_1.TLObject {
10073
10251
  pinned;
10074
10252
  unreadMark;
@@ -15724,32 +15902,36 @@ var Raw;
15724
15902
  }
15725
15903
  Raw.UpdateGroupCallParticipants = UpdateGroupCallParticipants;
15726
15904
  class UpdateGroupCall extends index_js_1.TLObject {
15727
- chatId;
15905
+ liveStory;
15906
+ peer;
15728
15907
  call;
15729
15908
  constructor(params) {
15730
15909
  super();
15731
15910
  this.classType = 'types';
15732
15911
  this.className = 'UpdateGroupCall';
15733
- this.constructorId = 0x97d64341;
15912
+ this.constructorId = 0x9d2216e0;
15734
15913
  this.subclassOfId = 0x9f89304e;
15735
- this._slots = ['chatId', 'call'];
15736
- this.chatId = params.chatId;
15914
+ this._slots = ['liveStory', 'peer', 'call'];
15915
+ this.liveStory = params.liveStory;
15916
+ this.peer = params.peer;
15737
15917
  this.call = params.call;
15738
15918
  }
15739
15919
  static async read(_data, ..._args) {
15740
15920
  let flags = await index_js_1.Primitive.Int.read(_data);
15741
- let chatId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
15921
+ let liveStory = flags & (1 << 2) ? true : false;
15922
+ let peer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
15742
15923
  let call = await index_js_1.TLObject.read(_data);
15743
- return new Raw.UpdateGroupCall({ chatId: chatId, call: call });
15924
+ return new Raw.UpdateGroupCall({ liveStory: liveStory, peer: peer, call: call });
15744
15925
  }
15745
15926
  write() {
15746
15927
  const b = new deps_js_1.BytesIO();
15747
15928
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
15748
15929
  let flags = 0;
15749
- flags |= this.chatId !== undefined ? 1 << 0 : 0;
15930
+ flags |= this.liveStory ? 1 << 2 : 0;
15931
+ flags |= this.peer !== undefined ? 1 << 1 : 0;
15750
15932
  b.write(index_js_1.Primitive.Int.write(flags));
15751
- if (this.chatId !== undefined) {
15752
- b.write(index_js_1.Primitive.Long.write(this.chatId));
15933
+ if (this.peer !== undefined) {
15934
+ b.write(this.peer.write());
15753
15935
  }
15754
15936
  if (this.call !== undefined) {
15755
15937
  b.write(this.call.write());
@@ -17864,32 +18046,21 @@ var Raw;
17864
18046
  Raw.UpdateMonoForumNoPaidException = UpdateMonoForumNoPaidException;
17865
18047
  class UpdateGroupCallMessage extends index_js_1.TLObject {
17866
18048
  call;
17867
- fromId;
17868
- randomId;
17869
18049
  message;
17870
18050
  constructor(params) {
17871
18051
  super();
17872
18052
  this.classType = 'types';
17873
18053
  this.className = 'UpdateGroupCallMessage';
17874
- this.constructorId = 0x78c314e0;
18054
+ this.constructorId = 0xd8326f0d;
17875
18055
  this.subclassOfId = 0x9f89304e;
17876
- this._slots = ['call', 'fromId', 'randomId', 'message'];
18056
+ this._slots = ['call', 'message'];
17877
18057
  this.call = params.call;
17878
- this.fromId = params.fromId;
17879
- this.randomId = params.randomId;
17880
18058
  this.message = params.message;
17881
18059
  }
17882
18060
  static async read(_data, ..._args) {
17883
18061
  let call = await index_js_1.TLObject.read(_data);
17884
- let fromId = await index_js_1.TLObject.read(_data);
17885
- let randomId = await index_js_1.Primitive.Long.read(_data);
17886
18062
  let message = await index_js_1.TLObject.read(_data);
17887
- return new Raw.UpdateGroupCallMessage({
17888
- call: call,
17889
- fromId: fromId,
17890
- randomId: randomId,
17891
- message: message,
17892
- });
18063
+ return new Raw.UpdateGroupCallMessage({ call: call, message: message });
17893
18064
  }
17894
18065
  write() {
17895
18066
  const b = new deps_js_1.BytesIO();
@@ -17897,12 +18068,6 @@ var Raw;
17897
18068
  if (this.call !== undefined) {
17898
18069
  b.write(this.call.write());
17899
18070
  }
17900
- if (this.fromId !== undefined) {
17901
- b.write(this.fromId.write());
17902
- }
17903
- if (this.randomId !== undefined) {
17904
- b.write(index_js_1.Primitive.Long.write(this.randomId));
17905
- }
17906
18071
  if (this.message !== undefined) {
17907
18072
  b.write(this.message.write());
17908
18073
  }
@@ -18024,6 +18189,99 @@ var Raw;
18024
18189
  }
18025
18190
  }
18026
18191
  Raw.UpdatePinnedForumTopics = UpdatePinnedForumTopics;
18192
+ class UpdateDeleteGroupCallMessages extends index_js_1.TLObject {
18193
+ call;
18194
+ messages;
18195
+ constructor(params) {
18196
+ super();
18197
+ this.classType = 'types';
18198
+ this.className = 'UpdateDeleteGroupCallMessages';
18199
+ this.constructorId = 0x3e85e92c;
18200
+ this.subclassOfId = 0x9f89304e;
18201
+ this._slots = ['call', 'messages'];
18202
+ this.call = params.call;
18203
+ this.messages = params.messages;
18204
+ }
18205
+ static async read(_data, ..._args) {
18206
+ let call = await index_js_1.TLObject.read(_data);
18207
+ let messages = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
18208
+ return new Raw.UpdateDeleteGroupCallMessages({ call: call, messages: messages });
18209
+ }
18210
+ write() {
18211
+ const b = new deps_js_1.BytesIO();
18212
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18213
+ if (this.call !== undefined) {
18214
+ b.write(this.call.write());
18215
+ }
18216
+ if (this.messages) {
18217
+ b.write(index_js_1.Primitive.Vector.write(this.messages, index_js_1.Primitive.Int));
18218
+ }
18219
+ return deps_js_1.Buffer.from(b.buffer);
18220
+ }
18221
+ }
18222
+ Raw.UpdateDeleteGroupCallMessages = UpdateDeleteGroupCallMessages;
18223
+ class UpdateStarGiftAuctionState extends index_js_1.TLObject {
18224
+ giftId;
18225
+ state;
18226
+ constructor(params) {
18227
+ super();
18228
+ this.classType = 'types';
18229
+ this.className = 'UpdateStarGiftAuctionState';
18230
+ this.constructorId = 0x48e246c2;
18231
+ this.subclassOfId = 0x9f89304e;
18232
+ this._slots = ['giftId', 'state'];
18233
+ this.giftId = params.giftId;
18234
+ this.state = params.state;
18235
+ }
18236
+ static async read(_data, ..._args) {
18237
+ let giftId = await index_js_1.Primitive.Long.read(_data);
18238
+ let state = await index_js_1.TLObject.read(_data);
18239
+ return new Raw.UpdateStarGiftAuctionState({ giftId: giftId, state: state });
18240
+ }
18241
+ write() {
18242
+ const b = new deps_js_1.BytesIO();
18243
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18244
+ if (this.giftId !== undefined) {
18245
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
18246
+ }
18247
+ if (this.state !== undefined) {
18248
+ b.write(this.state.write());
18249
+ }
18250
+ return deps_js_1.Buffer.from(b.buffer);
18251
+ }
18252
+ }
18253
+ Raw.UpdateStarGiftAuctionState = UpdateStarGiftAuctionState;
18254
+ class UpdateStarGiftAuctionUserState extends index_js_1.TLObject {
18255
+ giftId;
18256
+ userState;
18257
+ constructor(params) {
18258
+ super();
18259
+ this.classType = 'types';
18260
+ this.className = 'UpdateStarGiftAuctionUserState';
18261
+ this.constructorId = 0xdc58f31e;
18262
+ this.subclassOfId = 0x9f89304e;
18263
+ this._slots = ['giftId', 'userState'];
18264
+ this.giftId = params.giftId;
18265
+ this.userState = params.userState;
18266
+ }
18267
+ static async read(_data, ..._args) {
18268
+ let giftId = await index_js_1.Primitive.Long.read(_data);
18269
+ let userState = await index_js_1.TLObject.read(_data);
18270
+ return new Raw.UpdateStarGiftAuctionUserState({ giftId: giftId, userState: userState });
18271
+ }
18272
+ write() {
18273
+ const b = new deps_js_1.BytesIO();
18274
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18275
+ if (this.giftId !== undefined) {
18276
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
18277
+ }
18278
+ if (this.userState !== undefined) {
18279
+ b.write(this.userState.write());
18280
+ }
18281
+ return deps_js_1.Buffer.from(b.buffer);
18282
+ }
18283
+ }
18284
+ Raw.UpdateStarGiftAuctionUserState = UpdateStarGiftAuctionUserState;
18027
18285
  class UpdatesTooLong extends index_js_1.TLObject {
18028
18286
  constructor() {
18029
18287
  super();
@@ -20689,6 +20947,25 @@ var Raw;
20689
20947
  }
20690
20948
  }
20691
20949
  Raw.InputPrivacyKeyNoPaidMessages = InputPrivacyKeyNoPaidMessages;
20950
+ class InputPrivacyKeySavedMusic extends index_js_1.TLObject {
20951
+ constructor() {
20952
+ super();
20953
+ this.classType = 'types';
20954
+ this.className = 'InputPrivacyKeySavedMusic';
20955
+ this.constructorId = 0x4dbe9226;
20956
+ this.subclassOfId = 0x53627f8;
20957
+ this._slots = [];
20958
+ }
20959
+ static async read(_data, ..._args) {
20960
+ return new Raw.InputPrivacyKeySavedMusic();
20961
+ }
20962
+ write() {
20963
+ const b = new deps_js_1.BytesIO();
20964
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
20965
+ return deps_js_1.Buffer.from(b.buffer);
20966
+ }
20967
+ }
20968
+ Raw.InputPrivacyKeySavedMusic = InputPrivacyKeySavedMusic;
20692
20969
  class PrivacyKeyStatusTimestamp extends index_js_1.TLObject {
20693
20970
  constructor() {
20694
20971
  super();
@@ -20936,6 +21213,25 @@ var Raw;
20936
21213
  }
20937
21214
  }
20938
21215
  Raw.PrivacyKeyNoPaidMessages = PrivacyKeyNoPaidMessages;
21216
+ class PrivacyKeySavedMusic extends index_js_1.TLObject {
21217
+ constructor() {
21218
+ super();
21219
+ this.classType = 'types';
21220
+ this.className = 'PrivacyKeySavedMusic';
21221
+ this.constructorId = 0xff7a571b;
21222
+ this.subclassOfId = 0x824651c3;
21223
+ this._slots = [];
21224
+ }
21225
+ static async read(_data, ..._args) {
21226
+ return new Raw.PrivacyKeySavedMusic();
21227
+ }
21228
+ write() {
21229
+ const b = new deps_js_1.BytesIO();
21230
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
21231
+ return deps_js_1.Buffer.from(b.buffer);
21232
+ }
21233
+ }
21234
+ Raw.PrivacyKeySavedMusic = PrivacyKeySavedMusic;
20939
21235
  class InputPrivacyValueAllowContacts extends index_js_1.TLObject {
20940
21236
  constructor() {
20941
21237
  super();
@@ -37769,6 +38065,37 @@ var Raw;
37769
38065
  }
37770
38066
  }
37771
38067
  Raw.WebPageAttributeStarGiftCollection = WebPageAttributeStarGiftCollection;
38068
+ class WebPageAttributeStarGiftAuction extends index_js_1.TLObject {
38069
+ gift;
38070
+ endDate;
38071
+ constructor(params) {
38072
+ super();
38073
+ this.classType = 'types';
38074
+ this.className = 'WebPageAttributeStarGiftAuction';
38075
+ this.constructorId = 0x1c641c2;
38076
+ this.subclassOfId = 0xafcfe9c7;
38077
+ this._slots = ['gift', 'endDate'];
38078
+ this.gift = params.gift;
38079
+ this.endDate = params.endDate;
38080
+ }
38081
+ static async read(_data, ..._args) {
38082
+ let gift = await index_js_1.TLObject.read(_data);
38083
+ let endDate = await index_js_1.Primitive.Int.read(_data);
38084
+ return new Raw.WebPageAttributeStarGiftAuction({ gift: gift, endDate: endDate });
38085
+ }
38086
+ write() {
38087
+ const b = new deps_js_1.BytesIO();
38088
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
38089
+ if (this.gift !== undefined) {
38090
+ b.write(this.gift.write());
38091
+ }
38092
+ if (this.endDate !== undefined) {
38093
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
38094
+ }
38095
+ return deps_js_1.Buffer.from(b.buffer);
38096
+ }
38097
+ }
38098
+ Raw.WebPageAttributeStarGiftAuction = WebPageAttributeStarGiftAuction;
37772
38099
  class BankCardOpenUrl extends index_js_1.TLObject {
37773
38100
  url;
37774
38101
  name;
@@ -38945,11 +39272,13 @@ var Raw;
38945
39272
  unmutedVideoLimit;
38946
39273
  version;
38947
39274
  inviteLink;
39275
+ sendPaidMessagesStars;
39276
+ defaultSendAs;
38948
39277
  constructor(params) {
38949
39278
  super();
38950
39279
  this.classType = 'types';
38951
39280
  this.className = 'GroupCall';
38952
- this.constructorId = 0x553b0ba1;
39281
+ this.constructorId = 0xefb2b617;
38953
39282
  this.subclassOfId = 0x20b4f320;
38954
39283
  this._slots = [
38955
39284
  'joinMuted',
@@ -38976,6 +39305,8 @@ var Raw;
38976
39305
  'unmutedVideoLimit',
38977
39306
  'version',
38978
39307
  'inviteLink',
39308
+ 'sendPaidMessagesStars',
39309
+ 'defaultSendAs',
38979
39310
  ];
38980
39311
  this.joinMuted = params.joinMuted;
38981
39312
  this.canChangeJoinMuted = params.canChangeJoinMuted;
@@ -39001,6 +39332,8 @@ var Raw;
39001
39332
  this.unmutedVideoLimit = params.unmutedVideoLimit;
39002
39333
  this.version = params.version;
39003
39334
  this.inviteLink = params.inviteLink;
39335
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
39336
+ this.defaultSendAs = params.defaultSendAs;
39004
39337
  }
39005
39338
  static async read(_data, ..._args) {
39006
39339
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -39028,6 +39361,8 @@ var Raw;
39028
39361
  let unmutedVideoLimit = await index_js_1.Primitive.Int.read(_data);
39029
39362
  let version = await index_js_1.Primitive.Int.read(_data);
39030
39363
  let inviteLink = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
39364
+ let sendPaidMessagesStars = flags & (1 << 20) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39365
+ let defaultSendAs = flags & (1 << 21) ? await index_js_1.TLObject.read(_data) : undefined;
39031
39366
  return new Raw.GroupCall({
39032
39367
  joinMuted: joinMuted,
39033
39368
  canChangeJoinMuted: canChangeJoinMuted,
@@ -39053,6 +39388,8 @@ var Raw;
39053
39388
  unmutedVideoLimit: unmutedVideoLimit,
39054
39389
  version: version,
39055
39390
  inviteLink: inviteLink,
39391
+ sendPaidMessagesStars: sendPaidMessagesStars,
39392
+ defaultSendAs: defaultSendAs,
39056
39393
  });
39057
39394
  }
39058
39395
  write() {
@@ -39078,6 +39415,8 @@ var Raw;
39078
39415
  flags |= this.scheduleDate !== undefined ? 1 << 7 : 0;
39079
39416
  flags |= this.unmutedVideoCount !== undefined ? 1 << 10 : 0;
39080
39417
  flags |= this.inviteLink !== undefined ? 1 << 16 : 0;
39418
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 20 : 0;
39419
+ flags |= this.defaultSendAs !== undefined ? 1 << 21 : 0;
39081
39420
  b.write(index_js_1.Primitive.Int.write(flags));
39082
39421
  if (this.id !== undefined) {
39083
39422
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -39112,6 +39451,12 @@ var Raw;
39112
39451
  if (this.inviteLink !== undefined) {
39113
39452
  b.write(index_js_1.Primitive.String.write(this.inviteLink));
39114
39453
  }
39454
+ if (this.sendPaidMessagesStars !== undefined) {
39455
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
39456
+ }
39457
+ if (this.defaultSendAs !== undefined) {
39458
+ b.write(this.defaultSendAs.write());
39459
+ }
39115
39460
  return deps_js_1.Buffer.from(b.buffer);
39116
39461
  }
39117
39462
  }
@@ -39217,11 +39562,12 @@ var Raw;
39217
39562
  raiseHandRating;
39218
39563
  video;
39219
39564
  presentation;
39565
+ paidStarsTotal;
39220
39566
  constructor(params) {
39221
39567
  super();
39222
39568
  this.classType = 'types';
39223
39569
  this.className = 'GroupCallParticipant';
39224
- this.constructorId = 0xeba636fe;
39570
+ this.constructorId = 0x2a3dc7ac;
39225
39571
  this.subclassOfId = 0xc01aaf4c;
39226
39572
  this._slots = [
39227
39573
  'muted',
@@ -39243,6 +39589,7 @@ var Raw;
39243
39589
  'raiseHandRating',
39244
39590
  'video',
39245
39591
  'presentation',
39592
+ 'paidStarsTotal',
39246
39593
  ];
39247
39594
  this.muted = params.muted;
39248
39595
  this.left = params.left;
@@ -39263,6 +39610,7 @@ var Raw;
39263
39610
  this.raiseHandRating = params.raiseHandRating;
39264
39611
  this.video = params.video;
39265
39612
  this.presentation = params.presentation;
39613
+ this.paidStarsTotal = params.paidStarsTotal;
39266
39614
  }
39267
39615
  static async read(_data, ..._args) {
39268
39616
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -39285,6 +39633,7 @@ var Raw;
39285
39633
  let raiseHandRating = flags & (1 << 13) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39286
39634
  let video = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
39287
39635
  let presentation = flags & (1 << 14) ? await index_js_1.TLObject.read(_data) : undefined;
39636
+ let paidStarsTotal = flags & (1 << 16) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39288
39637
  return new Raw.GroupCallParticipant({
39289
39638
  muted: muted,
39290
39639
  left: left,
@@ -39305,6 +39654,7 @@ var Raw;
39305
39654
  raiseHandRating: raiseHandRating,
39306
39655
  video: video,
39307
39656
  presentation: presentation,
39657
+ paidStarsTotal: paidStarsTotal,
39308
39658
  });
39309
39659
  }
39310
39660
  write() {
@@ -39327,6 +39677,7 @@ var Raw;
39327
39677
  flags |= this.raiseHandRating !== undefined ? 1 << 13 : 0;
39328
39678
  flags |= this.video !== undefined ? 1 << 6 : 0;
39329
39679
  flags |= this.presentation !== undefined ? 1 << 14 : 0;
39680
+ flags |= this.paidStarsTotal !== undefined ? 1 << 16 : 0;
39330
39681
  b.write(index_js_1.Primitive.Int.write(flags));
39331
39682
  if (this.peer !== undefined) {
39332
39683
  b.write(this.peer.write());
@@ -39355,6 +39706,9 @@ var Raw;
39355
39706
  if (this.presentation !== undefined) {
39356
39707
  b.write(this.presentation.write());
39357
39708
  }
39709
+ if (this.paidStarsTotal !== undefined) {
39710
+ b.write(index_js_1.Primitive.Long.write(this.paidStarsTotal));
39711
+ }
39358
39712
  return deps_js_1.Buffer.from(b.buffer);
39359
39713
  }
39360
39714
  }
@@ -41466,6 +41820,69 @@ var Raw;
41466
41820
  }
41467
41821
  }
41468
41822
  Raw.InputInvoiceStarGiftDropOriginalDetails = InputInvoiceStarGiftDropOriginalDetails;
41823
+ class InputInvoiceStarGiftAuctionBid extends index_js_1.TLObject {
41824
+ hideName;
41825
+ updateBid;
41826
+ peer;
41827
+ giftId;
41828
+ bidAmount;
41829
+ message;
41830
+ constructor(params) {
41831
+ super();
41832
+ this.classType = 'types';
41833
+ this.className = 'InputInvoiceStarGiftAuctionBid';
41834
+ this.constructorId = 0x1ecafa10;
41835
+ this.subclassOfId = 0x726e9bfe;
41836
+ this._slots = ['hideName', 'updateBid', 'peer', 'giftId', 'bidAmount', 'message'];
41837
+ this.hideName = params.hideName;
41838
+ this.updateBid = params.updateBid;
41839
+ this.peer = params.peer;
41840
+ this.giftId = params.giftId;
41841
+ this.bidAmount = params.bidAmount;
41842
+ this.message = params.message;
41843
+ }
41844
+ static async read(_data, ..._args) {
41845
+ let flags = await index_js_1.Primitive.Int.read(_data);
41846
+ let hideName = flags & (1 << 0) ? true : false;
41847
+ let updateBid = flags & (1 << 2) ? true : false;
41848
+ let peer = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
41849
+ let giftId = await index_js_1.Primitive.Long.read(_data);
41850
+ let bidAmount = await index_js_1.Primitive.Long.read(_data);
41851
+ let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
41852
+ return new Raw.InputInvoiceStarGiftAuctionBid({
41853
+ hideName: hideName,
41854
+ updateBid: updateBid,
41855
+ peer: peer,
41856
+ giftId: giftId,
41857
+ bidAmount: bidAmount,
41858
+ message: message,
41859
+ });
41860
+ }
41861
+ write() {
41862
+ const b = new deps_js_1.BytesIO();
41863
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
41864
+ let flags = 0;
41865
+ flags |= this.hideName ? 1 << 0 : 0;
41866
+ flags |= this.updateBid ? 1 << 2 : 0;
41867
+ flags |= this.peer !== undefined ? 1 << 3 : 0;
41868
+ flags |= this.message !== undefined ? 1 << 1 : 0;
41869
+ b.write(index_js_1.Primitive.Int.write(flags));
41870
+ if (this.peer !== undefined) {
41871
+ b.write(this.peer.write());
41872
+ }
41873
+ if (this.giftId !== undefined) {
41874
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
41875
+ }
41876
+ if (this.bidAmount !== undefined) {
41877
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
41878
+ }
41879
+ if (this.message !== undefined) {
41880
+ b.write(this.message.write());
41881
+ }
41882
+ return deps_js_1.Buffer.from(b.buffer);
41883
+ }
41884
+ }
41885
+ Raw.InputInvoiceStarGiftAuctionBid = InputInvoiceStarGiftAuctionBid;
41469
41886
  class InputStorePaymentPremiumSubscription extends index_js_1.TLObject {
41470
41887
  restore;
41471
41888
  upgrade;
@@ -43958,6 +44375,7 @@ var Raw;
43958
44375
  Raw.StoryItemDeleted = StoryItemDeleted;
43959
44376
  class StoryItemSkipped extends index_js_1.TLObject {
43960
44377
  closeFriends;
44378
+ live;
43961
44379
  id;
43962
44380
  date;
43963
44381
  expireDate;
@@ -43967,8 +44385,9 @@ var Raw;
43967
44385
  this.className = 'StoryItemSkipped';
43968
44386
  this.constructorId = 0xffadc913;
43969
44387
  this.subclassOfId = 0xd477b133;
43970
- this._slots = ['closeFriends', 'id', 'date', 'expireDate'];
44388
+ this._slots = ['closeFriends', 'live', 'id', 'date', 'expireDate'];
43971
44389
  this.closeFriends = params.closeFriends;
44390
+ this.live = params.live;
43972
44391
  this.id = params.id;
43973
44392
  this.date = params.date;
43974
44393
  this.expireDate = params.expireDate;
@@ -43976,11 +44395,13 @@ var Raw;
43976
44395
  static async read(_data, ..._args) {
43977
44396
  let flags = await index_js_1.Primitive.Int.read(_data);
43978
44397
  let closeFriends = flags & (1 << 8) ? true : false;
44398
+ let live = flags & (1 << 9) ? true : false;
43979
44399
  let id = await index_js_1.Primitive.Int.read(_data);
43980
44400
  let date = await index_js_1.Primitive.Int.read(_data);
43981
44401
  let expireDate = await index_js_1.Primitive.Int.read(_data);
43982
44402
  return new Raw.StoryItemSkipped({
43983
44403
  closeFriends: closeFriends,
44404
+ live: live,
43984
44405
  id: id,
43985
44406
  date: date,
43986
44407
  expireDate: expireDate,
@@ -43991,6 +44412,7 @@ var Raw;
43991
44412
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
43992
44413
  let flags = 0;
43993
44414
  flags |= this.closeFriends ? 1 << 8 : 0;
44415
+ flags |= this.live ? 1 << 9 : 0;
43994
44416
  b.write(index_js_1.Primitive.Int.write(flags));
43995
44417
  if (this.id !== undefined) {
43996
44418
  b.write(index_js_1.Primitive.Int.write(this.id));
@@ -47901,6 +48323,9 @@ var Raw;
47901
48323
  postsSearch;
47902
48324
  stargiftPrepaidUpgrade;
47903
48325
  stargiftDropOriginalDetails;
48326
+ phonegroupMessage;
48327
+ stargiftAuctionBid;
48328
+ offer;
47904
48329
  id;
47905
48330
  amount;
47906
48331
  date;
@@ -47942,6 +48367,9 @@ var Raw;
47942
48367
  'postsSearch',
47943
48368
  'stargiftPrepaidUpgrade',
47944
48369
  'stargiftDropOriginalDetails',
48370
+ 'phonegroupMessage',
48371
+ 'stargiftAuctionBid',
48372
+ 'offer',
47945
48373
  'id',
47946
48374
  'amount',
47947
48375
  'date',
@@ -47977,6 +48405,9 @@ var Raw;
47977
48405
  this.postsSearch = params.postsSearch;
47978
48406
  this.stargiftPrepaidUpgrade = params.stargiftPrepaidUpgrade;
47979
48407
  this.stargiftDropOriginalDetails = params.stargiftDropOriginalDetails;
48408
+ this.phonegroupMessage = params.phonegroupMessage;
48409
+ this.stargiftAuctionBid = params.stargiftAuctionBid;
48410
+ this.offer = params.offer;
47980
48411
  this.id = params.id;
47981
48412
  this.amount = params.amount;
47982
48413
  this.date = params.date;
@@ -48014,6 +48445,9 @@ var Raw;
48014
48445
  let postsSearch = flags & (1 << 24) ? true : false;
48015
48446
  let stargiftPrepaidUpgrade = flags & (1 << 25) ? true : false;
48016
48447
  let stargiftDropOriginalDetails = flags & (1 << 26) ? true : false;
48448
+ let phonegroupMessage = flags & (1 << 27) ? true : false;
48449
+ let stargiftAuctionBid = flags & (1 << 28) ? true : false;
48450
+ let offer = flags & (1 << 29) ? true : false;
48017
48451
  let id = await index_js_1.Primitive.String.read(_data);
48018
48452
  let amount = await index_js_1.TLObject.read(_data);
48019
48453
  let date = await index_js_1.Primitive.Int.read(_data);
@@ -48049,6 +48483,9 @@ var Raw;
48049
48483
  postsSearch: postsSearch,
48050
48484
  stargiftPrepaidUpgrade: stargiftPrepaidUpgrade,
48051
48485
  stargiftDropOriginalDetails: stargiftDropOriginalDetails,
48486
+ phonegroupMessage: phonegroupMessage,
48487
+ stargiftAuctionBid: stargiftAuctionBid,
48488
+ offer: offer,
48052
48489
  id: id,
48053
48490
  amount: amount,
48054
48491
  date: date,
@@ -48089,6 +48526,9 @@ var Raw;
48089
48526
  flags |= this.postsSearch ? 1 << 24 : 0;
48090
48527
  flags |= this.stargiftPrepaidUpgrade ? 1 << 25 : 0;
48091
48528
  flags |= this.stargiftDropOriginalDetails ? 1 << 26 : 0;
48529
+ flags |= this.phonegroupMessage ? 1 << 27 : 0;
48530
+ flags |= this.stargiftAuctionBid ? 1 << 28 : 0;
48531
+ flags |= this.offer ? 1 << 29 : 0;
48092
48532
  flags |= this.title !== undefined ? 1 << 0 : 0;
48093
48533
  flags |= this.description !== undefined ? 1 << 1 : 0;
48094
48534
  flags |= this.photo !== undefined ? 1 << 2 : 0;
@@ -48784,6 +49224,7 @@ var Raw;
48784
49224
  requirePremium;
48785
49225
  limitedPerUser;
48786
49226
  peerColorAvailable;
49227
+ auction;
48787
49228
  id;
48788
49229
  sticker;
48789
49230
  stars;
@@ -48800,11 +49241,16 @@ var Raw;
48800
49241
  perUserTotal;
48801
49242
  perUserRemains;
48802
49243
  lockedUntilDate;
49244
+ auctionSlug;
49245
+ giftsPerRound;
49246
+ auctionStartDate;
49247
+ upgradeVariants;
49248
+ background;
48803
49249
  constructor(params) {
48804
49250
  super();
48805
49251
  this.classType = 'types';
48806
49252
  this.className = 'StarGift';
48807
- this.constructorId = 0x80ac53c3;
49253
+ this.constructorId = 0x313a9547;
48808
49254
  this.subclassOfId = 0xc31c590b;
48809
49255
  this._slots = [
48810
49256
  'limited',
@@ -48813,6 +49259,7 @@ var Raw;
48813
49259
  'requirePremium',
48814
49260
  'limitedPerUser',
48815
49261
  'peerColorAvailable',
49262
+ 'auction',
48816
49263
  'id',
48817
49264
  'sticker',
48818
49265
  'stars',
@@ -48829,6 +49276,11 @@ var Raw;
48829
49276
  'perUserTotal',
48830
49277
  'perUserRemains',
48831
49278
  'lockedUntilDate',
49279
+ 'auctionSlug',
49280
+ 'giftsPerRound',
49281
+ 'auctionStartDate',
49282
+ 'upgradeVariants',
49283
+ 'background',
48832
49284
  ];
48833
49285
  this.limited = params.limited;
48834
49286
  this.soldOut = params.soldOut;
@@ -48836,6 +49288,7 @@ var Raw;
48836
49288
  this.requirePremium = params.requirePremium;
48837
49289
  this.limitedPerUser = params.limitedPerUser;
48838
49290
  this.peerColorAvailable = params.peerColorAvailable;
49291
+ this.auction = params.auction;
48839
49292
  this.id = params.id;
48840
49293
  this.sticker = params.sticker;
48841
49294
  this.stars = params.stars;
@@ -48852,6 +49305,11 @@ var Raw;
48852
49305
  this.perUserTotal = params.perUserTotal;
48853
49306
  this.perUserRemains = params.perUserRemains;
48854
49307
  this.lockedUntilDate = params.lockedUntilDate;
49308
+ this.auctionSlug = params.auctionSlug;
49309
+ this.giftsPerRound = params.giftsPerRound;
49310
+ this.auctionStartDate = params.auctionStartDate;
49311
+ this.upgradeVariants = params.upgradeVariants;
49312
+ this.background = params.background;
48855
49313
  }
48856
49314
  static async read(_data, ..._args) {
48857
49315
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -48861,6 +49319,7 @@ var Raw;
48861
49319
  let requirePremium = flags & (1 << 7) ? true : false;
48862
49320
  let limitedPerUser = flags & (1 << 8) ? true : false;
48863
49321
  let peerColorAvailable = flags & (1 << 10) ? true : false;
49322
+ let auction = flags & (1 << 11) ? true : false;
48864
49323
  let id = await index_js_1.Primitive.Long.read(_data);
48865
49324
  let sticker = await index_js_1.TLObject.read(_data);
48866
49325
  let stars = await index_js_1.Primitive.Long.read(_data);
@@ -48877,6 +49336,11 @@ var Raw;
48877
49336
  let perUserTotal = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48878
49337
  let perUserRemains = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48879
49338
  let lockedUntilDate = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49339
+ let auctionSlug = flags & (1 << 11) ? await index_js_1.Primitive.String.read(_data) : undefined;
49340
+ let giftsPerRound = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49341
+ let auctionStartDate = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49342
+ let upgradeVariants = flags & (1 << 12) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49343
+ let background = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
48880
49344
  return new Raw.StarGift({
48881
49345
  limited: limited,
48882
49346
  soldOut: soldOut,
@@ -48884,6 +49348,7 @@ var Raw;
48884
49348
  requirePremium: requirePremium,
48885
49349
  limitedPerUser: limitedPerUser,
48886
49350
  peerColorAvailable: peerColorAvailable,
49351
+ auction: auction,
48887
49352
  id: id,
48888
49353
  sticker: sticker,
48889
49354
  stars: stars,
@@ -48900,6 +49365,11 @@ var Raw;
48900
49365
  perUserTotal: perUserTotal,
48901
49366
  perUserRemains: perUserRemains,
48902
49367
  lockedUntilDate: lockedUntilDate,
49368
+ auctionSlug: auctionSlug,
49369
+ giftsPerRound: giftsPerRound,
49370
+ auctionStartDate: auctionStartDate,
49371
+ upgradeVariants: upgradeVariants,
49372
+ background: background,
48903
49373
  });
48904
49374
  }
48905
49375
  write() {
@@ -48912,6 +49382,7 @@ var Raw;
48912
49382
  flags |= this.requirePremium ? 1 << 7 : 0;
48913
49383
  flags |= this.limitedPerUser ? 1 << 8 : 0;
48914
49384
  flags |= this.peerColorAvailable ? 1 << 10 : 0;
49385
+ flags |= this.auction ? 1 << 11 : 0;
48915
49386
  flags |= this.availabilityRemains !== undefined ? 1 << 0 : 0;
48916
49387
  flags |= this.availabilityTotal !== undefined ? 1 << 0 : 0;
48917
49388
  flags |= this.availabilityResale !== undefined ? 1 << 4 : 0;
@@ -48924,6 +49395,11 @@ var Raw;
48924
49395
  flags |= this.perUserTotal !== undefined ? 1 << 8 : 0;
48925
49396
  flags |= this.perUserRemains !== undefined ? 1 << 8 : 0;
48926
49397
  flags |= this.lockedUntilDate !== undefined ? 1 << 9 : 0;
49398
+ flags |= this.auctionSlug !== undefined ? 1 << 11 : 0;
49399
+ flags |= this.giftsPerRound !== undefined ? 1 << 11 : 0;
49400
+ flags |= this.auctionStartDate !== undefined ? 1 << 11 : 0;
49401
+ flags |= this.upgradeVariants !== undefined ? 1 << 12 : 0;
49402
+ flags |= this.background !== undefined ? 1 << 13 : 0;
48927
49403
  b.write(index_js_1.Primitive.Int.write(flags));
48928
49404
  if (this.id !== undefined) {
48929
49405
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -48973,6 +49449,21 @@ var Raw;
48973
49449
  if (this.lockedUntilDate !== undefined) {
48974
49450
  b.write(index_js_1.Primitive.Int.write(this.lockedUntilDate));
48975
49451
  }
49452
+ if (this.auctionSlug !== undefined) {
49453
+ b.write(index_js_1.Primitive.String.write(this.auctionSlug));
49454
+ }
49455
+ if (this.giftsPerRound !== undefined) {
49456
+ b.write(index_js_1.Primitive.Int.write(this.giftsPerRound));
49457
+ }
49458
+ if (this.auctionStartDate !== undefined) {
49459
+ b.write(index_js_1.Primitive.Int.write(this.auctionStartDate));
49460
+ }
49461
+ if (this.upgradeVariants !== undefined) {
49462
+ b.write(index_js_1.Primitive.Int.write(this.upgradeVariants));
49463
+ }
49464
+ if (this.background !== undefined) {
49465
+ b.write(this.background.write());
49466
+ }
48976
49467
  return deps_js_1.Buffer.from(b.buffer);
48977
49468
  }
48978
49469
  }
@@ -48997,14 +49488,16 @@ var Raw;
48997
49488
  releasedBy;
48998
49489
  valueAmount;
48999
49490
  valueCurrency;
49491
+ valueUsdAmount;
49000
49492
  themePeer;
49001
49493
  peerColor;
49002
49494
  hostId;
49495
+ offerMinStars;
49003
49496
  constructor(params) {
49004
49497
  super();
49005
49498
  this.classType = 'types';
49006
49499
  this.className = 'StarGiftUnique';
49007
- this.constructorId = 0xb0bf741b;
49500
+ this.constructorId = 0x569d64c9;
49008
49501
  this.subclassOfId = 0xc31c590b;
49009
49502
  this._slots = [
49010
49503
  'requirePremium',
@@ -49026,9 +49519,11 @@ var Raw;
49026
49519
  'releasedBy',
49027
49520
  'valueAmount',
49028
49521
  'valueCurrency',
49522
+ 'valueUsdAmount',
49029
49523
  'themePeer',
49030
49524
  'peerColor',
49031
49525
  'hostId',
49526
+ 'offerMinStars',
49032
49527
  ];
49033
49528
  this.requirePremium = params.requirePremium;
49034
49529
  this.resaleTonOnly = params.resaleTonOnly;
@@ -49049,9 +49544,11 @@ var Raw;
49049
49544
  this.releasedBy = params.releasedBy;
49050
49545
  this.valueAmount = params.valueAmount;
49051
49546
  this.valueCurrency = params.valueCurrency;
49547
+ this.valueUsdAmount = params.valueUsdAmount;
49052
49548
  this.themePeer = params.themePeer;
49053
49549
  this.peerColor = params.peerColor;
49054
49550
  this.hostId = params.hostId;
49551
+ this.offerMinStars = params.offerMinStars;
49055
49552
  }
49056
49553
  static async read(_data, ..._args) {
49057
49554
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49074,9 +49571,11 @@ var Raw;
49074
49571
  let releasedBy = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
49075
49572
  let valueAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49076
49573
  let valueCurrency = flags & (1 << 8) ? await index_js_1.Primitive.String.read(_data) : undefined;
49574
+ let valueUsdAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49077
49575
  let themePeer = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
49078
49576
  let peerColor = flags & (1 << 11) ? await index_js_1.TLObject.read(_data) : undefined;
49079
49577
  let hostId = flags & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
49578
+ let offerMinStars = flags & (1 << 13) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49080
49579
  return new Raw.StarGiftUnique({
49081
49580
  requirePremium: requirePremium,
49082
49581
  resaleTonOnly: resaleTonOnly,
@@ -49097,9 +49596,11 @@ var Raw;
49097
49596
  releasedBy: releasedBy,
49098
49597
  valueAmount: valueAmount,
49099
49598
  valueCurrency: valueCurrency,
49599
+ valueUsdAmount: valueUsdAmount,
49100
49600
  themePeer: themePeer,
49101
49601
  peerColor: peerColor,
49102
49602
  hostId: hostId,
49603
+ offerMinStars: offerMinStars,
49103
49604
  });
49104
49605
  }
49105
49606
  write() {
@@ -49117,9 +49618,11 @@ var Raw;
49117
49618
  flags |= this.releasedBy !== undefined ? 1 << 5 : 0;
49118
49619
  flags |= this.valueAmount !== undefined ? 1 << 8 : 0;
49119
49620
  flags |= this.valueCurrency !== undefined ? 1 << 8 : 0;
49621
+ flags |= this.valueUsdAmount !== undefined ? 1 << 8 : 0;
49120
49622
  flags |= this.themePeer !== undefined ? 1 << 10 : 0;
49121
49623
  flags |= this.peerColor !== undefined ? 1 << 11 : 0;
49122
49624
  flags |= this.hostId !== undefined ? 1 << 12 : 0;
49625
+ flags |= this.offerMinStars !== undefined ? 1 << 13 : 0;
49123
49626
  b.write(index_js_1.Primitive.Int.write(flags));
49124
49627
  if (this.id !== undefined) {
49125
49628
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -49169,6 +49672,9 @@ var Raw;
49169
49672
  if (this.valueCurrency !== undefined) {
49170
49673
  b.write(index_js_1.Primitive.String.write(this.valueCurrency));
49171
49674
  }
49675
+ if (this.valueUsdAmount !== undefined) {
49676
+ b.write(index_js_1.Primitive.Long.write(this.valueUsdAmount));
49677
+ }
49172
49678
  if (this.themePeer !== undefined) {
49173
49679
  b.write(this.themePeer.write());
49174
49680
  }
@@ -49178,6 +49684,9 @@ var Raw;
49178
49684
  if (this.hostId !== undefined) {
49179
49685
  b.write(this.hostId.write());
49180
49686
  }
49687
+ if (this.offerMinStars !== undefined) {
49688
+ b.write(index_js_1.Primitive.Int.write(this.offerMinStars));
49689
+ }
49181
49690
  return deps_js_1.Buffer.from(b.buffer);
49182
49691
  }
49183
49692
  }
@@ -49895,11 +50404,12 @@ var Raw;
49895
50404
  collectionId;
49896
50405
  prepaidUpgradeHash;
49897
50406
  dropOriginalDetailsStars;
50407
+ giftNum;
49898
50408
  constructor(params) {
49899
50409
  super();
49900
50410
  this.classType = 'types';
49901
50411
  this.className = 'SavedStarGift';
49902
- this.constructorId = 0x8983a452;
50412
+ this.constructorId = 0xead6805e;
49903
50413
  this.subclassOfId = 0x8e2b3c14;
49904
50414
  this._slots = [
49905
50415
  'nameHidden',
@@ -49923,6 +50433,7 @@ var Raw;
49923
50433
  'collectionId',
49924
50434
  'prepaidUpgradeHash',
49925
50435
  'dropOriginalDetailsStars',
50436
+ 'giftNum',
49926
50437
  ];
49927
50438
  this.nameHidden = params.nameHidden;
49928
50439
  this.unsaved = params.unsaved;
@@ -49945,6 +50456,7 @@ var Raw;
49945
50456
  this.collectionId = params.collectionId;
49946
50457
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
49947
50458
  this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
50459
+ this.giftNum = params.giftNum;
49948
50460
  }
49949
50461
  static async read(_data, ..._args) {
49950
50462
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49969,6 +50481,7 @@ var Raw;
49969
50481
  let collectionId = flags & (1 << 15) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
49970
50482
  let prepaidUpgradeHash = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
49971
50483
  let dropOriginalDetailsStars = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
50484
+ let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49972
50485
  return new Raw.SavedStarGift({
49973
50486
  nameHidden: nameHidden,
49974
50487
  unsaved: unsaved,
@@ -49991,6 +50504,7 @@ var Raw;
49991
50504
  collectionId: collectionId,
49992
50505
  prepaidUpgradeHash: prepaidUpgradeHash,
49993
50506
  dropOriginalDetailsStars: dropOriginalDetailsStars,
50507
+ giftNum: giftNum,
49994
50508
  });
49995
50509
  }
49996
50510
  write() {
@@ -50016,6 +50530,7 @@ var Raw;
50016
50530
  flags |= this.collectionId ? 1 << 15 : 0;
50017
50531
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 16 : 0;
50018
50532
  flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 18 : 0;
50533
+ flags |= this.giftNum !== undefined ? 1 << 19 : 0;
50019
50534
  b.write(index_js_1.Primitive.Int.write(flags));
50020
50535
  if (this.fromId !== undefined) {
50021
50536
  b.write(this.fromId.write());
@@ -50062,6 +50577,9 @@ var Raw;
50062
50577
  if (this.dropOriginalDetailsStars !== undefined) {
50063
50578
  b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
50064
50579
  }
50580
+ if (this.giftNum !== undefined) {
50581
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
50582
+ }
50065
50583
  return deps_js_1.Buffer.from(b.buffer);
50066
50584
  }
50067
50585
  }
@@ -50386,6 +50904,7 @@ var Raw;
50386
50904
  disallowLimitedStargifts;
50387
50905
  disallowUniqueStargifts;
50388
50906
  disallowPremiumGifts;
50907
+ disallowStargiftsFromChannels;
50389
50908
  constructor(params) {
50390
50909
  super();
50391
50910
  this.classType = 'types';
@@ -50397,11 +50916,13 @@ var Raw;
50397
50916
  'disallowLimitedStargifts',
50398
50917
  'disallowUniqueStargifts',
50399
50918
  'disallowPremiumGifts',
50919
+ 'disallowStargiftsFromChannels',
50400
50920
  ];
50401
50921
  this.disallowUnlimitedStargifts = params.disallowUnlimitedStargifts;
50402
50922
  this.disallowLimitedStargifts = params.disallowLimitedStargifts;
50403
50923
  this.disallowUniqueStargifts = params.disallowUniqueStargifts;
50404
50924
  this.disallowPremiumGifts = params.disallowPremiumGifts;
50925
+ this.disallowStargiftsFromChannels = params.disallowStargiftsFromChannels;
50405
50926
  }
50406
50927
  static async read(_data, ..._args) {
50407
50928
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -50409,11 +50930,13 @@ var Raw;
50409
50930
  let disallowLimitedStargifts = flags & (1 << 1) ? true : false;
50410
50931
  let disallowUniqueStargifts = flags & (1 << 2) ? true : false;
50411
50932
  let disallowPremiumGifts = flags & (1 << 3) ? true : false;
50933
+ let disallowStargiftsFromChannels = flags & (1 << 4) ? true : false;
50412
50934
  return new Raw.DisallowedGiftsSettings({
50413
50935
  disallowUnlimitedStargifts: disallowUnlimitedStargifts,
50414
50936
  disallowLimitedStargifts: disallowLimitedStargifts,
50415
50937
  disallowUniqueStargifts: disallowUniqueStargifts,
50416
50938
  disallowPremiumGifts: disallowPremiumGifts,
50939
+ disallowStargiftsFromChannels: disallowStargiftsFromChannels,
50417
50940
  });
50418
50941
  }
50419
50942
  write() {
@@ -50424,6 +50947,7 @@ var Raw;
50424
50947
  flags |= this.disallowLimitedStargifts ? 1 << 1 : 0;
50425
50948
  flags |= this.disallowUniqueStargifts ? 1 << 2 : 0;
50426
50949
  flags |= this.disallowPremiumGifts ? 1 << 3 : 0;
50950
+ flags |= this.disallowStargiftsFromChannels ? 1 << 4 : 0;
50427
50951
  b.write(index_js_1.Primitive.Int.write(flags));
50428
50952
  return deps_js_1.Buffer.from(b.buffer);
50429
50953
  }
@@ -50722,7 +51246,7 @@ var Raw;
50722
51246
  super();
50723
51247
  this.classType = 'types';
50724
51248
  this.className = 'TodoCompletion';
50725
- this.constructorId = 0x4cc120b7;
51249
+ this.constructorId = 0x221bb5e4;
50726
51250
  this.subclassOfId = 0xbae65b7b;
50727
51251
  this._slots = ['id', 'completedBy', 'date'];
50728
51252
  this.id = params.id;
@@ -50731,7 +51255,7 @@ var Raw;
50731
51255
  }
50732
51256
  static async read(_data, ..._args) {
50733
51257
  let id = await index_js_1.Primitive.Int.read(_data);
50734
- let completedBy = await index_js_1.Primitive.Long.read(_data);
51258
+ let completedBy = await index_js_1.TLObject.read(_data);
50735
51259
  let date = await index_js_1.Primitive.Int.read(_data);
50736
51260
  return new Raw.TodoCompletion({ id: id, completedBy: completedBy, date: date });
50737
51261
  }
@@ -50742,7 +51266,7 @@ var Raw;
50742
51266
  b.write(index_js_1.Primitive.Int.write(this.id));
50743
51267
  }
50744
51268
  if (this.completedBy !== undefined) {
50745
- b.write(index_js_1.Primitive.Long.write(this.completedBy));
51269
+ b.write(this.completedBy.write());
50746
51270
  }
50747
51271
  if (this.date !== undefined) {
50748
51272
  b.write(index_js_1.Primitive.Int.write(this.date));
@@ -51273,6 +51797,942 @@ var Raw;
51273
51797
  }
51274
51798
  }
51275
51799
  Raw.StarGiftUpgradePrice = StarGiftUpgradePrice;
51800
+ class GroupCallMessage extends index_js_1.TLObject {
51801
+ fromAdmin;
51802
+ id;
51803
+ fromId;
51804
+ date;
51805
+ message;
51806
+ paidMessageStars;
51807
+ constructor(params) {
51808
+ super();
51809
+ this.classType = 'types';
51810
+ this.className = 'GroupCallMessage';
51811
+ this.constructorId = 0x1a8afc7e;
51812
+ this.subclassOfId = 0x60ce5a22;
51813
+ this._slots = ['fromAdmin', 'id', 'fromId', 'date', 'message', 'paidMessageStars'];
51814
+ this.fromAdmin = params.fromAdmin;
51815
+ this.id = params.id;
51816
+ this.fromId = params.fromId;
51817
+ this.date = params.date;
51818
+ this.message = params.message;
51819
+ this.paidMessageStars = params.paidMessageStars;
51820
+ }
51821
+ static async read(_data, ..._args) {
51822
+ let flags = await index_js_1.Primitive.Int.read(_data);
51823
+ let fromAdmin = flags & (1 << 1) ? true : false;
51824
+ let id = await index_js_1.Primitive.Int.read(_data);
51825
+ let fromId = await index_js_1.TLObject.read(_data);
51826
+ let date = await index_js_1.Primitive.Int.read(_data);
51827
+ let message = await index_js_1.TLObject.read(_data);
51828
+ let paidMessageStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
51829
+ return new Raw.GroupCallMessage({
51830
+ fromAdmin: fromAdmin,
51831
+ id: id,
51832
+ fromId: fromId,
51833
+ date: date,
51834
+ message: message,
51835
+ paidMessageStars: paidMessageStars,
51836
+ });
51837
+ }
51838
+ write() {
51839
+ const b = new deps_js_1.BytesIO();
51840
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51841
+ let flags = 0;
51842
+ flags |= this.fromAdmin ? 1 << 1 : 0;
51843
+ flags |= this.paidMessageStars !== undefined ? 1 << 0 : 0;
51844
+ b.write(index_js_1.Primitive.Int.write(flags));
51845
+ if (this.id !== undefined) {
51846
+ b.write(index_js_1.Primitive.Int.write(this.id));
51847
+ }
51848
+ if (this.fromId !== undefined) {
51849
+ b.write(this.fromId.write());
51850
+ }
51851
+ if (this.date !== undefined) {
51852
+ b.write(index_js_1.Primitive.Int.write(this.date));
51853
+ }
51854
+ if (this.message !== undefined) {
51855
+ b.write(this.message.write());
51856
+ }
51857
+ if (this.paidMessageStars !== undefined) {
51858
+ b.write(index_js_1.Primitive.Long.write(this.paidMessageStars));
51859
+ }
51860
+ return deps_js_1.Buffer.from(b.buffer);
51861
+ }
51862
+ }
51863
+ Raw.GroupCallMessage = GroupCallMessage;
51864
+ class GroupCallDonor extends index_js_1.TLObject {
51865
+ top;
51866
+ my;
51867
+ peerId;
51868
+ stars;
51869
+ constructor(params) {
51870
+ super();
51871
+ this.classType = 'types';
51872
+ this.className = 'GroupCallDonor';
51873
+ this.constructorId = 0xee430c85;
51874
+ this.subclassOfId = 0x14f28bb0;
51875
+ this._slots = ['top', 'my', 'peerId', 'stars'];
51876
+ this.top = params.top;
51877
+ this.my = params.my;
51878
+ this.peerId = params.peerId;
51879
+ this.stars = params.stars;
51880
+ }
51881
+ static async read(_data, ..._args) {
51882
+ let flags = await index_js_1.Primitive.Int.read(_data);
51883
+ let top = flags & (1 << 0) ? true : false;
51884
+ let my = flags & (1 << 1) ? true : false;
51885
+ let peerId = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
51886
+ let stars = await index_js_1.Primitive.Long.read(_data);
51887
+ return new Raw.GroupCallDonor({ top: top, my: my, peerId: peerId, stars: stars });
51888
+ }
51889
+ write() {
51890
+ const b = new deps_js_1.BytesIO();
51891
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51892
+ let flags = 0;
51893
+ flags |= this.top ? 1 << 0 : 0;
51894
+ flags |= this.my ? 1 << 1 : 0;
51895
+ flags |= this.peerId !== undefined ? 1 << 3 : 0;
51896
+ b.write(index_js_1.Primitive.Int.write(flags));
51897
+ if (this.peerId !== undefined) {
51898
+ b.write(this.peerId.write());
51899
+ }
51900
+ if (this.stars !== undefined) {
51901
+ b.write(index_js_1.Primitive.Long.write(this.stars));
51902
+ }
51903
+ return deps_js_1.Buffer.from(b.buffer);
51904
+ }
51905
+ }
51906
+ Raw.GroupCallDonor = GroupCallDonor;
51907
+ class RecentStory extends index_js_1.TLObject {
51908
+ live;
51909
+ maxId;
51910
+ constructor(params) {
51911
+ super();
51912
+ this.classType = 'types';
51913
+ this.className = 'RecentStory';
51914
+ this.constructorId = 0x711d692d;
51915
+ this.subclassOfId = 0x26f1adcd;
51916
+ this._slots = ['live', 'maxId'];
51917
+ this.live = params.live;
51918
+ this.maxId = params.maxId;
51919
+ }
51920
+ static async read(_data, ..._args) {
51921
+ let flags = await index_js_1.Primitive.Int.read(_data);
51922
+ let live = flags & (1 << 0) ? true : false;
51923
+ let maxId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
51924
+ return new Raw.RecentStory({ live: live, maxId: maxId });
51925
+ }
51926
+ write() {
51927
+ const b = new deps_js_1.BytesIO();
51928
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51929
+ let flags = 0;
51930
+ flags |= this.live ? 1 << 0 : 0;
51931
+ flags |= this.maxId !== undefined ? 1 << 1 : 0;
51932
+ b.write(index_js_1.Primitive.Int.write(flags));
51933
+ if (this.maxId !== undefined) {
51934
+ b.write(index_js_1.Primitive.Int.write(this.maxId));
51935
+ }
51936
+ return deps_js_1.Buffer.from(b.buffer);
51937
+ }
51938
+ }
51939
+ Raw.RecentStory = RecentStory;
51940
+ class AuctionBidLevel extends index_js_1.TLObject {
51941
+ pos;
51942
+ amount;
51943
+ date;
51944
+ constructor(params) {
51945
+ super();
51946
+ this.classType = 'types';
51947
+ this.className = 'AuctionBidLevel';
51948
+ this.constructorId = 0x310240cc;
51949
+ this.subclassOfId = 0xba444ad7;
51950
+ this._slots = ['pos', 'amount', 'date'];
51951
+ this.pos = params.pos;
51952
+ this.amount = params.amount;
51953
+ this.date = params.date;
51954
+ }
51955
+ static async read(_data, ..._args) {
51956
+ let pos = await index_js_1.Primitive.Int.read(_data);
51957
+ let amount = await index_js_1.Primitive.Long.read(_data);
51958
+ let date = await index_js_1.Primitive.Int.read(_data);
51959
+ return new Raw.AuctionBidLevel({ pos: pos, amount: amount, date: date });
51960
+ }
51961
+ write() {
51962
+ const b = new deps_js_1.BytesIO();
51963
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51964
+ if (this.pos !== undefined) {
51965
+ b.write(index_js_1.Primitive.Int.write(this.pos));
51966
+ }
51967
+ if (this.amount !== undefined) {
51968
+ b.write(index_js_1.Primitive.Long.write(this.amount));
51969
+ }
51970
+ if (this.date !== undefined) {
51971
+ b.write(index_js_1.Primitive.Int.write(this.date));
51972
+ }
51973
+ return deps_js_1.Buffer.from(b.buffer);
51974
+ }
51975
+ }
51976
+ Raw.AuctionBidLevel = AuctionBidLevel;
51977
+ class StarGiftAuctionStateNotModified extends index_js_1.TLObject {
51978
+ constructor() {
51979
+ super();
51980
+ this.classType = 'types';
51981
+ this.className = 'StarGiftAuctionStateNotModified';
51982
+ this.constructorId = 0xfe333952;
51983
+ this.subclassOfId = 0x229414fb;
51984
+ this._slots = [];
51985
+ }
51986
+ static async read(_data, ..._args) {
51987
+ return new Raw.StarGiftAuctionStateNotModified();
51988
+ }
51989
+ write() {
51990
+ const b = new deps_js_1.BytesIO();
51991
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51992
+ return deps_js_1.Buffer.from(b.buffer);
51993
+ }
51994
+ }
51995
+ Raw.StarGiftAuctionStateNotModified = StarGiftAuctionStateNotModified;
51996
+ class StarGiftAuctionState extends index_js_1.TLObject {
51997
+ version;
51998
+ startDate;
51999
+ endDate;
52000
+ minBidAmount;
52001
+ bidLevels;
52002
+ topBidders;
52003
+ nextRoundAt;
52004
+ lastGiftNum;
52005
+ giftsLeft;
52006
+ currentRound;
52007
+ totalRounds;
52008
+ rounds;
52009
+ constructor(params) {
52010
+ super();
52011
+ this.classType = 'types';
52012
+ this.className = 'StarGiftAuctionState';
52013
+ this.constructorId = 0x771a4e66;
52014
+ this.subclassOfId = 0x229414fb;
52015
+ this._slots = [
52016
+ 'version',
52017
+ 'startDate',
52018
+ 'endDate',
52019
+ 'minBidAmount',
52020
+ 'bidLevels',
52021
+ 'topBidders',
52022
+ 'nextRoundAt',
52023
+ 'lastGiftNum',
52024
+ 'giftsLeft',
52025
+ 'currentRound',
52026
+ 'totalRounds',
52027
+ 'rounds',
52028
+ ];
52029
+ this.version = params.version;
52030
+ this.startDate = params.startDate;
52031
+ this.endDate = params.endDate;
52032
+ this.minBidAmount = params.minBidAmount;
52033
+ this.bidLevels = params.bidLevels;
52034
+ this.topBidders = params.topBidders;
52035
+ this.nextRoundAt = params.nextRoundAt;
52036
+ this.lastGiftNum = params.lastGiftNum;
52037
+ this.giftsLeft = params.giftsLeft;
52038
+ this.currentRound = params.currentRound;
52039
+ this.totalRounds = params.totalRounds;
52040
+ this.rounds = params.rounds;
52041
+ }
52042
+ static async read(_data, ..._args) {
52043
+ let version = await index_js_1.Primitive.Int.read(_data);
52044
+ let startDate = await index_js_1.Primitive.Int.read(_data);
52045
+ let endDate = await index_js_1.Primitive.Int.read(_data);
52046
+ let minBidAmount = await index_js_1.Primitive.Long.read(_data);
52047
+ let bidLevels = await index_js_1.TLObject.read(_data);
52048
+ let topBidders = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Long);
52049
+ let nextRoundAt = await index_js_1.Primitive.Int.read(_data);
52050
+ let lastGiftNum = await index_js_1.Primitive.Int.read(_data);
52051
+ let giftsLeft = await index_js_1.Primitive.Int.read(_data);
52052
+ let currentRound = await index_js_1.Primitive.Int.read(_data);
52053
+ let totalRounds = await index_js_1.Primitive.Int.read(_data);
52054
+ let rounds = await index_js_1.TLObject.read(_data);
52055
+ return new Raw.StarGiftAuctionState({
52056
+ version: version,
52057
+ startDate: startDate,
52058
+ endDate: endDate,
52059
+ minBidAmount: minBidAmount,
52060
+ bidLevels: bidLevels,
52061
+ topBidders: topBidders,
52062
+ nextRoundAt: nextRoundAt,
52063
+ lastGiftNum: lastGiftNum,
52064
+ giftsLeft: giftsLeft,
52065
+ currentRound: currentRound,
52066
+ totalRounds: totalRounds,
52067
+ rounds: rounds,
52068
+ });
52069
+ }
52070
+ write() {
52071
+ const b = new deps_js_1.BytesIO();
52072
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52073
+ if (this.version !== undefined) {
52074
+ b.write(index_js_1.Primitive.Int.write(this.version));
52075
+ }
52076
+ if (this.startDate !== undefined) {
52077
+ b.write(index_js_1.Primitive.Int.write(this.startDate));
52078
+ }
52079
+ if (this.endDate !== undefined) {
52080
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
52081
+ }
52082
+ if (this.minBidAmount !== undefined) {
52083
+ b.write(index_js_1.Primitive.Long.write(this.minBidAmount));
52084
+ }
52085
+ if (this.bidLevels) {
52086
+ b.write(index_js_1.Primitive.Vector.write(this.bidLevels));
52087
+ }
52088
+ if (this.topBidders) {
52089
+ b.write(index_js_1.Primitive.Vector.write(this.topBidders, index_js_1.Primitive.Long));
52090
+ }
52091
+ if (this.nextRoundAt !== undefined) {
52092
+ b.write(index_js_1.Primitive.Int.write(this.nextRoundAt));
52093
+ }
52094
+ if (this.lastGiftNum !== undefined) {
52095
+ b.write(index_js_1.Primitive.Int.write(this.lastGiftNum));
52096
+ }
52097
+ if (this.giftsLeft !== undefined) {
52098
+ b.write(index_js_1.Primitive.Int.write(this.giftsLeft));
52099
+ }
52100
+ if (this.currentRound !== undefined) {
52101
+ b.write(index_js_1.Primitive.Int.write(this.currentRound));
52102
+ }
52103
+ if (this.totalRounds !== undefined) {
52104
+ b.write(index_js_1.Primitive.Int.write(this.totalRounds));
52105
+ }
52106
+ if (this.rounds) {
52107
+ b.write(index_js_1.Primitive.Vector.write(this.rounds));
52108
+ }
52109
+ return deps_js_1.Buffer.from(b.buffer);
52110
+ }
52111
+ }
52112
+ Raw.StarGiftAuctionState = StarGiftAuctionState;
52113
+ class StarGiftAuctionStateFinished extends index_js_1.TLObject {
52114
+ startDate;
52115
+ endDate;
52116
+ averagePrice;
52117
+ listedCount;
52118
+ fragmentListedCount;
52119
+ fragmentListedUrl;
52120
+ constructor(params) {
52121
+ super();
52122
+ this.classType = 'types';
52123
+ this.className = 'StarGiftAuctionStateFinished';
52124
+ this.constructorId = 0x972dabbf;
52125
+ this.subclassOfId = 0x229414fb;
52126
+ this._slots = [
52127
+ 'startDate',
52128
+ 'endDate',
52129
+ 'averagePrice',
52130
+ 'listedCount',
52131
+ 'fragmentListedCount',
52132
+ 'fragmentListedUrl',
52133
+ ];
52134
+ this.startDate = params.startDate;
52135
+ this.endDate = params.endDate;
52136
+ this.averagePrice = params.averagePrice;
52137
+ this.listedCount = params.listedCount;
52138
+ this.fragmentListedCount = params.fragmentListedCount;
52139
+ this.fragmentListedUrl = params.fragmentListedUrl;
52140
+ }
52141
+ static async read(_data, ..._args) {
52142
+ let flags = await index_js_1.Primitive.Int.read(_data);
52143
+ let startDate = await index_js_1.Primitive.Int.read(_data);
52144
+ let endDate = await index_js_1.Primitive.Int.read(_data);
52145
+ let averagePrice = await index_js_1.Primitive.Long.read(_data);
52146
+ let listedCount = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52147
+ let fragmentListedCount = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52148
+ let fragmentListedUrl = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
52149
+ return new Raw.StarGiftAuctionStateFinished({
52150
+ startDate: startDate,
52151
+ endDate: endDate,
52152
+ averagePrice: averagePrice,
52153
+ listedCount: listedCount,
52154
+ fragmentListedCount: fragmentListedCount,
52155
+ fragmentListedUrl: fragmentListedUrl,
52156
+ });
52157
+ }
52158
+ write() {
52159
+ const b = new deps_js_1.BytesIO();
52160
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52161
+ let flags = 0;
52162
+ flags |= this.listedCount !== undefined ? 1 << 0 : 0;
52163
+ flags |= this.fragmentListedCount !== undefined ? 1 << 1 : 0;
52164
+ flags |= this.fragmentListedUrl !== undefined ? 1 << 1 : 0;
52165
+ b.write(index_js_1.Primitive.Int.write(flags));
52166
+ if (this.startDate !== undefined) {
52167
+ b.write(index_js_1.Primitive.Int.write(this.startDate));
52168
+ }
52169
+ if (this.endDate !== undefined) {
52170
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
52171
+ }
52172
+ if (this.averagePrice !== undefined) {
52173
+ b.write(index_js_1.Primitive.Long.write(this.averagePrice));
52174
+ }
52175
+ if (this.listedCount !== undefined) {
52176
+ b.write(index_js_1.Primitive.Int.write(this.listedCount));
52177
+ }
52178
+ if (this.fragmentListedCount !== undefined) {
52179
+ b.write(index_js_1.Primitive.Int.write(this.fragmentListedCount));
52180
+ }
52181
+ if (this.fragmentListedUrl !== undefined) {
52182
+ b.write(index_js_1.Primitive.String.write(this.fragmentListedUrl));
52183
+ }
52184
+ return deps_js_1.Buffer.from(b.buffer);
52185
+ }
52186
+ }
52187
+ Raw.StarGiftAuctionStateFinished = StarGiftAuctionStateFinished;
52188
+ class StarGiftAuctionUserState extends index_js_1.TLObject {
52189
+ returned;
52190
+ bidAmount;
52191
+ bidDate;
52192
+ minBidAmount;
52193
+ bidPeer;
52194
+ acquiredCount;
52195
+ constructor(params) {
52196
+ super();
52197
+ this.classType = 'types';
52198
+ this.className = 'StarGiftAuctionUserState';
52199
+ this.constructorId = 0x2eeed1c4;
52200
+ this.subclassOfId = 0x52a0eae;
52201
+ this._slots = [
52202
+ 'returned',
52203
+ 'bidAmount',
52204
+ 'bidDate',
52205
+ 'minBidAmount',
52206
+ 'bidPeer',
52207
+ 'acquiredCount',
52208
+ ];
52209
+ this.returned = params.returned;
52210
+ this.bidAmount = params.bidAmount;
52211
+ this.bidDate = params.bidDate;
52212
+ this.minBidAmount = params.minBidAmount;
52213
+ this.bidPeer = params.bidPeer;
52214
+ this.acquiredCount = params.acquiredCount;
52215
+ }
52216
+ static async read(_data, ..._args) {
52217
+ let flags = await index_js_1.Primitive.Int.read(_data);
52218
+ let returned = flags & (1 << 1) ? true : false;
52219
+ let bidAmount = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52220
+ let bidDate = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52221
+ let minBidAmount = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52222
+ let bidPeer = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
52223
+ let acquiredCount = await index_js_1.Primitive.Int.read(_data);
52224
+ return new Raw.StarGiftAuctionUserState({
52225
+ returned: returned,
52226
+ bidAmount: bidAmount,
52227
+ bidDate: bidDate,
52228
+ minBidAmount: minBidAmount,
52229
+ bidPeer: bidPeer,
52230
+ acquiredCount: acquiredCount,
52231
+ });
52232
+ }
52233
+ write() {
52234
+ const b = new deps_js_1.BytesIO();
52235
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52236
+ let flags = 0;
52237
+ flags |= this.returned ? 1 << 1 : 0;
52238
+ flags |= this.bidAmount !== undefined ? 1 << 0 : 0;
52239
+ flags |= this.bidDate !== undefined ? 1 << 0 : 0;
52240
+ flags |= this.minBidAmount !== undefined ? 1 << 0 : 0;
52241
+ flags |= this.bidPeer !== undefined ? 1 << 0 : 0;
52242
+ b.write(index_js_1.Primitive.Int.write(flags));
52243
+ if (this.bidAmount !== undefined) {
52244
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
52245
+ }
52246
+ if (this.bidDate !== undefined) {
52247
+ b.write(index_js_1.Primitive.Int.write(this.bidDate));
52248
+ }
52249
+ if (this.minBidAmount !== undefined) {
52250
+ b.write(index_js_1.Primitive.Long.write(this.minBidAmount));
52251
+ }
52252
+ if (this.bidPeer !== undefined) {
52253
+ b.write(this.bidPeer.write());
52254
+ }
52255
+ if (this.acquiredCount !== undefined) {
52256
+ b.write(index_js_1.Primitive.Int.write(this.acquiredCount));
52257
+ }
52258
+ return deps_js_1.Buffer.from(b.buffer);
52259
+ }
52260
+ }
52261
+ Raw.StarGiftAuctionUserState = StarGiftAuctionUserState;
52262
+ class StarGiftAuctionAcquiredGift extends index_js_1.TLObject {
52263
+ nameHidden;
52264
+ peer;
52265
+ date;
52266
+ bidAmount;
52267
+ round;
52268
+ pos;
52269
+ message;
52270
+ giftNum;
52271
+ constructor(params) {
52272
+ super();
52273
+ this.classType = 'types';
52274
+ this.className = 'StarGiftAuctionAcquiredGift';
52275
+ this.constructorId = 0x42b00348;
52276
+ this.subclassOfId = 0x270d5233;
52277
+ this._slots = [
52278
+ 'nameHidden',
52279
+ 'peer',
52280
+ 'date',
52281
+ 'bidAmount',
52282
+ 'round',
52283
+ 'pos',
52284
+ 'message',
52285
+ 'giftNum',
52286
+ ];
52287
+ this.nameHidden = params.nameHidden;
52288
+ this.peer = params.peer;
52289
+ this.date = params.date;
52290
+ this.bidAmount = params.bidAmount;
52291
+ this.round = params.round;
52292
+ this.pos = params.pos;
52293
+ this.message = params.message;
52294
+ this.giftNum = params.giftNum;
52295
+ }
52296
+ static async read(_data, ..._args) {
52297
+ let flags = await index_js_1.Primitive.Int.read(_data);
52298
+ let nameHidden = flags & (1 << 0) ? true : false;
52299
+ let peer = await index_js_1.TLObject.read(_data);
52300
+ let date = await index_js_1.Primitive.Int.read(_data);
52301
+ let bidAmount = await index_js_1.Primitive.Long.read(_data);
52302
+ let round = await index_js_1.Primitive.Int.read(_data);
52303
+ let pos = await index_js_1.Primitive.Int.read(_data);
52304
+ let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
52305
+ let giftNum = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52306
+ return new Raw.StarGiftAuctionAcquiredGift({
52307
+ nameHidden: nameHidden,
52308
+ peer: peer,
52309
+ date: date,
52310
+ bidAmount: bidAmount,
52311
+ round: round,
52312
+ pos: pos,
52313
+ message: message,
52314
+ giftNum: giftNum,
52315
+ });
52316
+ }
52317
+ write() {
52318
+ const b = new deps_js_1.BytesIO();
52319
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52320
+ let flags = 0;
52321
+ flags |= this.nameHidden ? 1 << 0 : 0;
52322
+ flags |= this.message !== undefined ? 1 << 1 : 0;
52323
+ flags |= this.giftNum !== undefined ? 1 << 2 : 0;
52324
+ b.write(index_js_1.Primitive.Int.write(flags));
52325
+ if (this.peer !== undefined) {
52326
+ b.write(this.peer.write());
52327
+ }
52328
+ if (this.date !== undefined) {
52329
+ b.write(index_js_1.Primitive.Int.write(this.date));
52330
+ }
52331
+ if (this.bidAmount !== undefined) {
52332
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
52333
+ }
52334
+ if (this.round !== undefined) {
52335
+ b.write(index_js_1.Primitive.Int.write(this.round));
52336
+ }
52337
+ if (this.pos !== undefined) {
52338
+ b.write(index_js_1.Primitive.Int.write(this.pos));
52339
+ }
52340
+ if (this.message !== undefined) {
52341
+ b.write(this.message.write());
52342
+ }
52343
+ if (this.giftNum !== undefined) {
52344
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
52345
+ }
52346
+ return deps_js_1.Buffer.from(b.buffer);
52347
+ }
52348
+ }
52349
+ Raw.StarGiftAuctionAcquiredGift = StarGiftAuctionAcquiredGift;
52350
+ class StarGiftActiveAuctionState extends index_js_1.TLObject {
52351
+ gift;
52352
+ state;
52353
+ userState;
52354
+ constructor(params) {
52355
+ super();
52356
+ this.classType = 'types';
52357
+ this.className = 'StarGiftActiveAuctionState';
52358
+ this.constructorId = 0xd31bc45d;
52359
+ this.subclassOfId = 0xb95bf5e9;
52360
+ this._slots = ['gift', 'state', 'userState'];
52361
+ this.gift = params.gift;
52362
+ this.state = params.state;
52363
+ this.userState = params.userState;
52364
+ }
52365
+ static async read(_data, ..._args) {
52366
+ let gift = await index_js_1.TLObject.read(_data);
52367
+ let state = await index_js_1.TLObject.read(_data);
52368
+ let userState = await index_js_1.TLObject.read(_data);
52369
+ return new Raw.StarGiftActiveAuctionState({ gift: gift, state: state, userState: userState });
52370
+ }
52371
+ write() {
52372
+ const b = new deps_js_1.BytesIO();
52373
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52374
+ if (this.gift !== undefined) {
52375
+ b.write(this.gift.write());
52376
+ }
52377
+ if (this.state !== undefined) {
52378
+ b.write(this.state.write());
52379
+ }
52380
+ if (this.userState !== undefined) {
52381
+ b.write(this.userState.write());
52382
+ }
52383
+ return deps_js_1.Buffer.from(b.buffer);
52384
+ }
52385
+ }
52386
+ Raw.StarGiftActiveAuctionState = StarGiftActiveAuctionState;
52387
+ class InputStarGiftAuction extends index_js_1.TLObject {
52388
+ giftId;
52389
+ constructor(params) {
52390
+ super();
52391
+ this.classType = 'types';
52392
+ this.className = 'InputStarGiftAuction';
52393
+ this.constructorId = 0x2e16c98;
52394
+ this.subclassOfId = 0x41a1eaaa;
52395
+ this._slots = ['giftId'];
52396
+ this.giftId = params.giftId;
52397
+ }
52398
+ static async read(_data, ..._args) {
52399
+ let giftId = await index_js_1.Primitive.Long.read(_data);
52400
+ return new Raw.InputStarGiftAuction({ giftId: giftId });
52401
+ }
52402
+ write() {
52403
+ const b = new deps_js_1.BytesIO();
52404
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52405
+ if (this.giftId !== undefined) {
52406
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
52407
+ }
52408
+ return deps_js_1.Buffer.from(b.buffer);
52409
+ }
52410
+ }
52411
+ Raw.InputStarGiftAuction = InputStarGiftAuction;
52412
+ class InputStarGiftAuctionSlug extends index_js_1.TLObject {
52413
+ slug;
52414
+ constructor(params) {
52415
+ super();
52416
+ this.classType = 'types';
52417
+ this.className = 'InputStarGiftAuctionSlug';
52418
+ this.constructorId = 0x7ab58308;
52419
+ this.subclassOfId = 0x41a1eaaa;
52420
+ this._slots = ['slug'];
52421
+ this.slug = params.slug;
52422
+ }
52423
+ static async read(_data, ..._args) {
52424
+ let slug = await index_js_1.Primitive.String.read(_data);
52425
+ return new Raw.InputStarGiftAuctionSlug({ slug: slug });
52426
+ }
52427
+ write() {
52428
+ const b = new deps_js_1.BytesIO();
52429
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52430
+ if (this.slug !== undefined) {
52431
+ b.write(index_js_1.Primitive.String.write(this.slug));
52432
+ }
52433
+ return deps_js_1.Buffer.from(b.buffer);
52434
+ }
52435
+ }
52436
+ Raw.InputStarGiftAuctionSlug = InputStarGiftAuctionSlug;
52437
+ class Passkey extends index_js_1.TLObject {
52438
+ id;
52439
+ name;
52440
+ date;
52441
+ softwareEmojiId;
52442
+ lastUsageDate;
52443
+ constructor(params) {
52444
+ super();
52445
+ this.classType = 'types';
52446
+ this.className = 'Passkey';
52447
+ this.constructorId = 0x98613ebf;
52448
+ this.subclassOfId = 0xcf380de0;
52449
+ this._slots = ['id', 'name', 'date', 'softwareEmojiId', 'lastUsageDate'];
52450
+ this.id = params.id;
52451
+ this.name = params.name;
52452
+ this.date = params.date;
52453
+ this.softwareEmojiId = params.softwareEmojiId;
52454
+ this.lastUsageDate = params.lastUsageDate;
52455
+ }
52456
+ static async read(_data, ..._args) {
52457
+ let flags = await index_js_1.Primitive.Int.read(_data);
52458
+ let id = await index_js_1.Primitive.String.read(_data);
52459
+ let name = await index_js_1.Primitive.String.read(_data);
52460
+ let date = await index_js_1.Primitive.Int.read(_data);
52461
+ let softwareEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52462
+ let lastUsageDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52463
+ return new Raw.Passkey({
52464
+ id: id,
52465
+ name: name,
52466
+ date: date,
52467
+ softwareEmojiId: softwareEmojiId,
52468
+ lastUsageDate: lastUsageDate,
52469
+ });
52470
+ }
52471
+ write() {
52472
+ const b = new deps_js_1.BytesIO();
52473
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52474
+ let flags = 0;
52475
+ flags |= this.softwareEmojiId !== undefined ? 1 << 0 : 0;
52476
+ flags |= this.lastUsageDate !== undefined ? 1 << 1 : 0;
52477
+ b.write(index_js_1.Primitive.Int.write(flags));
52478
+ if (this.id !== undefined) {
52479
+ b.write(index_js_1.Primitive.String.write(this.id));
52480
+ }
52481
+ if (this.name !== undefined) {
52482
+ b.write(index_js_1.Primitive.String.write(this.name));
52483
+ }
52484
+ if (this.date !== undefined) {
52485
+ b.write(index_js_1.Primitive.Int.write(this.date));
52486
+ }
52487
+ if (this.softwareEmojiId !== undefined) {
52488
+ b.write(index_js_1.Primitive.Long.write(this.softwareEmojiId));
52489
+ }
52490
+ if (this.lastUsageDate !== undefined) {
52491
+ b.write(index_js_1.Primitive.Int.write(this.lastUsageDate));
52492
+ }
52493
+ return deps_js_1.Buffer.from(b.buffer);
52494
+ }
52495
+ }
52496
+ Raw.Passkey = Passkey;
52497
+ class InputPasskeyResponseRegister extends index_js_1.TLObject {
52498
+ clientData;
52499
+ attestationData;
52500
+ constructor(params) {
52501
+ super();
52502
+ this.classType = 'types';
52503
+ this.className = 'InputPasskeyResponseRegister';
52504
+ this.constructorId = 0x3e63935c;
52505
+ this.subclassOfId = 0x1ef0c7cd;
52506
+ this._slots = ['clientData', 'attestationData'];
52507
+ this.clientData = params.clientData;
52508
+ this.attestationData = params.attestationData;
52509
+ }
52510
+ static async read(_data, ..._args) {
52511
+ let clientData = await index_js_1.TLObject.read(_data);
52512
+ let attestationData = await index_js_1.Primitive.Bytes.read(_data);
52513
+ return new Raw.InputPasskeyResponseRegister({
52514
+ clientData: clientData,
52515
+ attestationData: attestationData,
52516
+ });
52517
+ }
52518
+ write() {
52519
+ const b = new deps_js_1.BytesIO();
52520
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52521
+ if (this.clientData !== undefined) {
52522
+ b.write(this.clientData.write());
52523
+ }
52524
+ if (this.attestationData !== undefined) {
52525
+ b.write(index_js_1.Primitive.Bytes.write(this.attestationData));
52526
+ }
52527
+ return deps_js_1.Buffer.from(b.buffer);
52528
+ }
52529
+ }
52530
+ Raw.InputPasskeyResponseRegister = InputPasskeyResponseRegister;
52531
+ class InputPasskeyResponseLogin extends index_js_1.TLObject {
52532
+ clientData;
52533
+ authenticatorData;
52534
+ signature;
52535
+ userHandle;
52536
+ constructor(params) {
52537
+ super();
52538
+ this.classType = 'types';
52539
+ this.className = 'InputPasskeyResponseLogin';
52540
+ this.constructorId = 0xc31fc14a;
52541
+ this.subclassOfId = 0x1ef0c7cd;
52542
+ this._slots = ['clientData', 'authenticatorData', 'signature', 'userHandle'];
52543
+ this.clientData = params.clientData;
52544
+ this.authenticatorData = params.authenticatorData;
52545
+ this.signature = params.signature;
52546
+ this.userHandle = params.userHandle;
52547
+ }
52548
+ static async read(_data, ..._args) {
52549
+ let clientData = await index_js_1.TLObject.read(_data);
52550
+ let authenticatorData = await index_js_1.Primitive.Bytes.read(_data);
52551
+ let signature = await index_js_1.Primitive.Bytes.read(_data);
52552
+ let userHandle = await index_js_1.Primitive.String.read(_data);
52553
+ return new Raw.InputPasskeyResponseLogin({
52554
+ clientData: clientData,
52555
+ authenticatorData: authenticatorData,
52556
+ signature: signature,
52557
+ userHandle: userHandle,
52558
+ });
52559
+ }
52560
+ write() {
52561
+ const b = new deps_js_1.BytesIO();
52562
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52563
+ if (this.clientData !== undefined) {
52564
+ b.write(this.clientData.write());
52565
+ }
52566
+ if (this.authenticatorData !== undefined) {
52567
+ b.write(index_js_1.Primitive.Bytes.write(this.authenticatorData));
52568
+ }
52569
+ if (this.signature !== undefined) {
52570
+ b.write(index_js_1.Primitive.Bytes.write(this.signature));
52571
+ }
52572
+ if (this.userHandle !== undefined) {
52573
+ b.write(index_js_1.Primitive.String.write(this.userHandle));
52574
+ }
52575
+ return deps_js_1.Buffer.from(b.buffer);
52576
+ }
52577
+ }
52578
+ Raw.InputPasskeyResponseLogin = InputPasskeyResponseLogin;
52579
+ class InputPasskeyCredentialPublicKey extends index_js_1.TLObject {
52580
+ id;
52581
+ rawId;
52582
+ response;
52583
+ constructor(params) {
52584
+ super();
52585
+ this.classType = 'types';
52586
+ this.className = 'InputPasskeyCredentialPublicKey';
52587
+ this.constructorId = 0x3c27b78f;
52588
+ this.subclassOfId = 0x1eb1222e;
52589
+ this._slots = ['id', 'rawId', 'response'];
52590
+ this.id = params.id;
52591
+ this.rawId = params.rawId;
52592
+ this.response = params.response;
52593
+ }
52594
+ static async read(_data, ..._args) {
52595
+ let id = await index_js_1.Primitive.String.read(_data);
52596
+ let rawId = await index_js_1.Primitive.String.read(_data);
52597
+ let response = await index_js_1.TLObject.read(_data);
52598
+ return new Raw.InputPasskeyCredentialPublicKey({ id: id, rawId: rawId, response: response });
52599
+ }
52600
+ write() {
52601
+ const b = new deps_js_1.BytesIO();
52602
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52603
+ if (this.id !== undefined) {
52604
+ b.write(index_js_1.Primitive.String.write(this.id));
52605
+ }
52606
+ if (this.rawId !== undefined) {
52607
+ b.write(index_js_1.Primitive.String.write(this.rawId));
52608
+ }
52609
+ if (this.response !== undefined) {
52610
+ b.write(this.response.write());
52611
+ }
52612
+ return deps_js_1.Buffer.from(b.buffer);
52613
+ }
52614
+ }
52615
+ Raw.InputPasskeyCredentialPublicKey = InputPasskeyCredentialPublicKey;
52616
+ class StarGiftBackground extends index_js_1.TLObject {
52617
+ centerColor;
52618
+ edgeColor;
52619
+ textColor;
52620
+ constructor(params) {
52621
+ super();
52622
+ this.classType = 'types';
52623
+ this.className = 'StarGiftBackground';
52624
+ this.constructorId = 0xaff56398;
52625
+ this.subclassOfId = 0x3c51a28;
52626
+ this._slots = ['centerColor', 'edgeColor', 'textColor'];
52627
+ this.centerColor = params.centerColor;
52628
+ this.edgeColor = params.edgeColor;
52629
+ this.textColor = params.textColor;
52630
+ }
52631
+ static async read(_data, ..._args) {
52632
+ let centerColor = await index_js_1.Primitive.Int.read(_data);
52633
+ let edgeColor = await index_js_1.Primitive.Int.read(_data);
52634
+ let textColor = await index_js_1.Primitive.Int.read(_data);
52635
+ return new Raw.StarGiftBackground({
52636
+ centerColor: centerColor,
52637
+ edgeColor: edgeColor,
52638
+ textColor: textColor,
52639
+ });
52640
+ }
52641
+ write() {
52642
+ const b = new deps_js_1.BytesIO();
52643
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52644
+ if (this.centerColor !== undefined) {
52645
+ b.write(index_js_1.Primitive.Int.write(this.centerColor));
52646
+ }
52647
+ if (this.edgeColor !== undefined) {
52648
+ b.write(index_js_1.Primitive.Int.write(this.edgeColor));
52649
+ }
52650
+ if (this.textColor !== undefined) {
52651
+ b.write(index_js_1.Primitive.Int.write(this.textColor));
52652
+ }
52653
+ return deps_js_1.Buffer.from(b.buffer);
52654
+ }
52655
+ }
52656
+ Raw.StarGiftBackground = StarGiftBackground;
52657
+ class StarGiftAuctionRound extends index_js_1.TLObject {
52658
+ num;
52659
+ duration;
52660
+ constructor(params) {
52661
+ super();
52662
+ this.classType = 'types';
52663
+ this.className = 'StarGiftAuctionRound';
52664
+ this.constructorId = 0x3aae0528;
52665
+ this.subclassOfId = 0x44e92c34;
52666
+ this._slots = ['num', 'duration'];
52667
+ this.num = params.num;
52668
+ this.duration = params.duration;
52669
+ }
52670
+ static async read(_data, ..._args) {
52671
+ let num = await index_js_1.Primitive.Int.read(_data);
52672
+ let duration = await index_js_1.Primitive.Int.read(_data);
52673
+ return new Raw.StarGiftAuctionRound({ num: num, duration: duration });
52674
+ }
52675
+ write() {
52676
+ const b = new deps_js_1.BytesIO();
52677
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52678
+ if (this.num !== undefined) {
52679
+ b.write(index_js_1.Primitive.Int.write(this.num));
52680
+ }
52681
+ if (this.duration !== undefined) {
52682
+ b.write(index_js_1.Primitive.Int.write(this.duration));
52683
+ }
52684
+ return deps_js_1.Buffer.from(b.buffer);
52685
+ }
52686
+ }
52687
+ Raw.StarGiftAuctionRound = StarGiftAuctionRound;
52688
+ class StarGiftAuctionRoundExtendable extends index_js_1.TLObject {
52689
+ num;
52690
+ duration;
52691
+ extendTop;
52692
+ extendWindow;
52693
+ constructor(params) {
52694
+ super();
52695
+ this.classType = 'types';
52696
+ this.className = 'StarGiftAuctionRoundExtendable';
52697
+ this.constructorId = 0xaa021e5;
52698
+ this.subclassOfId = 0x44e92c34;
52699
+ this._slots = ['num', 'duration', 'extendTop', 'extendWindow'];
52700
+ this.num = params.num;
52701
+ this.duration = params.duration;
52702
+ this.extendTop = params.extendTop;
52703
+ this.extendWindow = params.extendWindow;
52704
+ }
52705
+ static async read(_data, ..._args) {
52706
+ let num = await index_js_1.Primitive.Int.read(_data);
52707
+ let duration = await index_js_1.Primitive.Int.read(_data);
52708
+ let extendTop = await index_js_1.Primitive.Int.read(_data);
52709
+ let extendWindow = await index_js_1.Primitive.Int.read(_data);
52710
+ return new Raw.StarGiftAuctionRoundExtendable({
52711
+ num: num,
52712
+ duration: duration,
52713
+ extendTop: extendTop,
52714
+ extendWindow: extendWindow,
52715
+ });
52716
+ }
52717
+ write() {
52718
+ const b = new deps_js_1.BytesIO();
52719
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52720
+ if (this.num !== undefined) {
52721
+ b.write(index_js_1.Primitive.Int.write(this.num));
52722
+ }
52723
+ if (this.duration !== undefined) {
52724
+ b.write(index_js_1.Primitive.Int.write(this.duration));
52725
+ }
52726
+ if (this.extendTop !== undefined) {
52727
+ b.write(index_js_1.Primitive.Int.write(this.extendTop));
52728
+ }
52729
+ if (this.extendWindow !== undefined) {
52730
+ b.write(index_js_1.Primitive.Int.write(this.extendWindow));
52731
+ }
52732
+ return deps_js_1.Buffer.from(b.buffer);
52733
+ }
52734
+ }
52735
+ Raw.StarGiftAuctionRoundExtendable = StarGiftAuctionRoundExtendable;
51276
52736
  class InvokeAfterMsg extends index_js_1.TLObject {
51277
52737
  __response__;
51278
52738
  msgId;
@@ -57003,6 +58463,31 @@ var Raw;
57003
58463
  }
57004
58464
  }
57005
58465
  auth.LoggedOut = LoggedOut;
58466
+ class PasskeyLoginOptions extends index_js_1.TLObject {
58467
+ options;
58468
+ constructor(params) {
58469
+ super();
58470
+ this.classType = 'types';
58471
+ this.className = 'auth.PasskeyLoginOptions';
58472
+ this.constructorId = 0xe2037789;
58473
+ this.subclassOfId = 0xd9793032;
58474
+ this._slots = ['options'];
58475
+ this.options = params.options;
58476
+ }
58477
+ static async read(_data, ..._args) {
58478
+ let options = await index_js_1.TLObject.read(_data);
58479
+ return new Raw.auth.PasskeyLoginOptions({ options: options });
58480
+ }
58481
+ write() {
58482
+ const b = new deps_js_1.BytesIO();
58483
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
58484
+ if (this.options !== undefined) {
58485
+ b.write(this.options.write());
58486
+ }
58487
+ return deps_js_1.Buffer.from(b.buffer);
58488
+ }
58489
+ }
58490
+ auth.PasskeyLoginOptions = PasskeyLoginOptions;
57006
58491
  class SendCode extends index_js_1.TLObject {
57007
58492
  __response__;
57008
58493
  phoneNumber;
@@ -57900,6 +59385,85 @@ var Raw;
57900
59385
  }
57901
59386
  }
57902
59387
  auth.CheckPaidAuth = CheckPaidAuth;
59388
+ class InitPasskeyLogin extends index_js_1.TLObject {
59389
+ __response__;
59390
+ apiId;
59391
+ apiHash;
59392
+ constructor(params) {
59393
+ super();
59394
+ this.classType = 'functions';
59395
+ this.className = 'auth.InitPasskeyLogin';
59396
+ this.constructorId = 0x518ad0b7;
59397
+ this.subclassOfId = 0xd9793032;
59398
+ this._slots = ['apiId', 'apiHash'];
59399
+ this.apiId = params.apiId;
59400
+ this.apiHash = params.apiHash;
59401
+ }
59402
+ static async read(_data, ..._args) {
59403
+ let apiId = await index_js_1.Primitive.Int.read(_data);
59404
+ let apiHash = await index_js_1.Primitive.String.read(_data);
59405
+ return new Raw.auth.InitPasskeyLogin({ apiId: apiId, apiHash: apiHash });
59406
+ }
59407
+ write() {
59408
+ const b = new deps_js_1.BytesIO();
59409
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
59410
+ if (this.apiId !== undefined) {
59411
+ b.write(index_js_1.Primitive.Int.write(this.apiId));
59412
+ }
59413
+ if (this.apiHash !== undefined) {
59414
+ b.write(index_js_1.Primitive.String.write(this.apiHash));
59415
+ }
59416
+ return deps_js_1.Buffer.from(b.buffer);
59417
+ }
59418
+ }
59419
+ auth.InitPasskeyLogin = InitPasskeyLogin;
59420
+ class FinishPasskeyLogin extends index_js_1.TLObject {
59421
+ __response__;
59422
+ credential;
59423
+ fromDcId;
59424
+ fromAuthKeyId;
59425
+ constructor(params) {
59426
+ super();
59427
+ this.classType = 'functions';
59428
+ this.className = 'auth.FinishPasskeyLogin';
59429
+ this.constructorId = 0x9857ad07;
59430
+ this.subclassOfId = 0xb9e04e39;
59431
+ this._slots = ['credential', 'fromDcId', 'fromAuthKeyId'];
59432
+ this.credential = params.credential;
59433
+ this.fromDcId = params.fromDcId;
59434
+ this.fromAuthKeyId = params.fromAuthKeyId;
59435
+ }
59436
+ static async read(_data, ..._args) {
59437
+ let flags = await index_js_1.Primitive.Int.read(_data);
59438
+ let credential = await index_js_1.TLObject.read(_data);
59439
+ let fromDcId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
59440
+ let fromAuthKeyId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
59441
+ return new Raw.auth.FinishPasskeyLogin({
59442
+ credential: credential,
59443
+ fromDcId: fromDcId,
59444
+ fromAuthKeyId: fromAuthKeyId,
59445
+ });
59446
+ }
59447
+ write() {
59448
+ const b = new deps_js_1.BytesIO();
59449
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
59450
+ let flags = 0;
59451
+ flags |= this.fromDcId !== undefined ? 1 << 0 : 0;
59452
+ flags |= this.fromAuthKeyId !== undefined ? 1 << 0 : 0;
59453
+ b.write(index_js_1.Primitive.Int.write(flags));
59454
+ if (this.credential !== undefined) {
59455
+ b.write(this.credential.write());
59456
+ }
59457
+ if (this.fromDcId !== undefined) {
59458
+ b.write(index_js_1.Primitive.Int.write(this.fromDcId));
59459
+ }
59460
+ if (this.fromAuthKeyId !== undefined) {
59461
+ b.write(index_js_1.Primitive.Long.write(this.fromAuthKeyId));
59462
+ }
59463
+ return deps_js_1.Buffer.from(b.buffer);
59464
+ }
59465
+ }
59466
+ auth.FinishPasskeyLogin = FinishPasskeyLogin;
57903
59467
  })(auth = Raw.auth || (Raw.auth = {}));
57904
59468
  let contacts;
57905
59469
  (function (contacts_1) {
@@ -63176,6 +64740,7 @@ var Raw;
63176
64740
  replyMarkup;
63177
64741
  entities;
63178
64742
  scheduleDate;
64743
+ scheduleRepeatPeriod;
63179
64744
  sendAs;
63180
64745
  quickReplyShortcut;
63181
64746
  effect;
@@ -63185,7 +64750,7 @@ var Raw;
63185
64750
  super();
63186
64751
  this.classType = 'functions';
63187
64752
  this.className = 'messages.SendMessage';
63188
- this.constructorId = 0xfe05dc9a;
64753
+ this.constructorId = 0x545cd15a;
63189
64754
  this.subclassOfId = 0x8af52aac;
63190
64755
  this._slots = [
63191
64756
  'noWebpage',
@@ -63203,6 +64768,7 @@ var Raw;
63203
64768
  'replyMarkup',
63204
64769
  'entities',
63205
64770
  'scheduleDate',
64771
+ 'scheduleRepeatPeriod',
63206
64772
  'sendAs',
63207
64773
  'quickReplyShortcut',
63208
64774
  'effect',
@@ -63224,6 +64790,7 @@ var Raw;
63224
64790
  this.replyMarkup = params.replyMarkup;
63225
64791
  this.entities = params.entities;
63226
64792
  this.scheduleDate = params.scheduleDate;
64793
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63227
64794
  this.sendAs = params.sendAs;
63228
64795
  this.quickReplyShortcut = params.quickReplyShortcut;
63229
64796
  this.effect = params.effect;
@@ -63247,6 +64814,7 @@ var Raw;
63247
64814
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
63248
64815
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
63249
64816
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64817
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63250
64818
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63251
64819
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
63252
64820
  let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -63268,6 +64836,7 @@ var Raw;
63268
64836
  replyMarkup: replyMarkup,
63269
64837
  entities: entities,
63270
64838
  scheduleDate: scheduleDate,
64839
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63271
64840
  sendAs: sendAs,
63272
64841
  quickReplyShortcut: quickReplyShortcut,
63273
64842
  effect: effect,
@@ -63291,6 +64860,7 @@ var Raw;
63291
64860
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
63292
64861
  flags |= this.entities ? 1 << 3 : 0;
63293
64862
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
64863
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63294
64864
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63295
64865
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
63296
64866
  flags |= this.effect !== undefined ? 1 << 18 : 0;
@@ -63318,6 +64888,9 @@ var Raw;
63318
64888
  if (this.scheduleDate !== undefined) {
63319
64889
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63320
64890
  }
64891
+ if (this.scheduleRepeatPeriod !== undefined) {
64892
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
64893
+ }
63321
64894
  if (this.sendAs !== undefined) {
63322
64895
  b.write(this.sendAs.write());
63323
64896
  }
@@ -63354,6 +64927,7 @@ var Raw;
63354
64927
  replyMarkup;
63355
64928
  entities;
63356
64929
  scheduleDate;
64930
+ scheduleRepeatPeriod;
63357
64931
  sendAs;
63358
64932
  quickReplyShortcut;
63359
64933
  effect;
@@ -63363,7 +64937,7 @@ var Raw;
63363
64937
  super();
63364
64938
  this.classType = 'functions';
63365
64939
  this.className = 'messages.SendMedia';
63366
- this.constructorId = 0xac55d9c1;
64940
+ this.constructorId = 0x330e77f;
63367
64941
  this.subclassOfId = 0x8af52aac;
63368
64942
  this._slots = [
63369
64943
  'silent',
@@ -63381,6 +64955,7 @@ var Raw;
63381
64955
  'replyMarkup',
63382
64956
  'entities',
63383
64957
  'scheduleDate',
64958
+ 'scheduleRepeatPeriod',
63384
64959
  'sendAs',
63385
64960
  'quickReplyShortcut',
63386
64961
  'effect',
@@ -63402,6 +64977,7 @@ var Raw;
63402
64977
  this.replyMarkup = params.replyMarkup;
63403
64978
  this.entities = params.entities;
63404
64979
  this.scheduleDate = params.scheduleDate;
64980
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63405
64981
  this.sendAs = params.sendAs;
63406
64982
  this.quickReplyShortcut = params.quickReplyShortcut;
63407
64983
  this.effect = params.effect;
@@ -63425,6 +65001,7 @@ var Raw;
63425
65001
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
63426
65002
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
63427
65003
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65004
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63428
65005
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63429
65006
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
63430
65007
  let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -63446,6 +65023,7 @@ var Raw;
63446
65023
  replyMarkup: replyMarkup,
63447
65024
  entities: entities,
63448
65025
  scheduleDate: scheduleDate,
65026
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63449
65027
  sendAs: sendAs,
63450
65028
  quickReplyShortcut: quickReplyShortcut,
63451
65029
  effect: effect,
@@ -63468,6 +65046,7 @@ var Raw;
63468
65046
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
63469
65047
  flags |= this.entities ? 1 << 3 : 0;
63470
65048
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
65049
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63471
65050
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63472
65051
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
63473
65052
  flags |= this.effect !== undefined ? 1 << 18 : 0;
@@ -63498,6 +65077,9 @@ var Raw;
63498
65077
  if (this.scheduleDate !== undefined) {
63499
65078
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63500
65079
  }
65080
+ if (this.scheduleRepeatPeriod !== undefined) {
65081
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
65082
+ }
63501
65083
  if (this.sendAs !== undefined) {
63502
65084
  b.write(this.sendAs.write());
63503
65085
  }
@@ -63533,8 +65115,10 @@ var Raw;
63533
65115
  topMsgId;
63534
65116
  replyTo;
63535
65117
  scheduleDate;
65118
+ scheduleRepeatPeriod;
63536
65119
  sendAs;
63537
65120
  quickReplyShortcut;
65121
+ effect;
63538
65122
  videoTimestamp;
63539
65123
  allowPaidStars;
63540
65124
  suggestedPost;
@@ -63542,7 +65126,7 @@ var Raw;
63542
65126
  super();
63543
65127
  this.classType = 'functions';
63544
65128
  this.className = 'messages.ForwardMessages';
63545
- this.constructorId = 0x978928ca;
65129
+ this.constructorId = 0x13704a7c;
63546
65130
  this.subclassOfId = 0x8af52aac;
63547
65131
  this._slots = [
63548
65132
  'silent',
@@ -63559,8 +65143,10 @@ var Raw;
63559
65143
  'topMsgId',
63560
65144
  'replyTo',
63561
65145
  'scheduleDate',
65146
+ 'scheduleRepeatPeriod',
63562
65147
  'sendAs',
63563
65148
  'quickReplyShortcut',
65149
+ 'effect',
63564
65150
  'videoTimestamp',
63565
65151
  'allowPaidStars',
63566
65152
  'suggestedPost',
@@ -63579,8 +65165,10 @@ var Raw;
63579
65165
  this.topMsgId = params.topMsgId;
63580
65166
  this.replyTo = params.replyTo;
63581
65167
  this.scheduleDate = params.scheduleDate;
65168
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63582
65169
  this.sendAs = params.sendAs;
63583
65170
  this.quickReplyShortcut = params.quickReplyShortcut;
65171
+ this.effect = params.effect;
63584
65172
  this.videoTimestamp = params.videoTimestamp;
63585
65173
  this.allowPaidStars = params.allowPaidStars;
63586
65174
  this.suggestedPost = params.suggestedPost;
@@ -63601,8 +65189,10 @@ var Raw;
63601
65189
  let topMsgId = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63602
65190
  let replyTo = flags & (1 << 22) ? await index_js_1.TLObject.read(_data) : undefined;
63603
65191
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65192
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63604
65193
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63605
65194
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
65195
+ let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
63606
65196
  let videoTimestamp = flags & (1 << 20) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63607
65197
  let allowPaidStars = flags & (1 << 21) ? await index_js_1.Primitive.Long.read(_data) : undefined;
63608
65198
  let suggestedPost = flags & (1 << 23) ? await index_js_1.TLObject.read(_data) : undefined;
@@ -63621,8 +65211,10 @@ var Raw;
63621
65211
  topMsgId: topMsgId,
63622
65212
  replyTo: replyTo,
63623
65213
  scheduleDate: scheduleDate,
65214
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63624
65215
  sendAs: sendAs,
63625
65216
  quickReplyShortcut: quickReplyShortcut,
65217
+ effect: effect,
63626
65218
  videoTimestamp: videoTimestamp,
63627
65219
  allowPaidStars: allowPaidStars,
63628
65220
  suggestedPost: suggestedPost,
@@ -63642,8 +65234,10 @@ var Raw;
63642
65234
  flags |= this.topMsgId !== undefined ? 1 << 9 : 0;
63643
65235
  flags |= this.replyTo !== undefined ? 1 << 22 : 0;
63644
65236
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
65237
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63645
65238
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63646
65239
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
65240
+ flags |= this.effect !== undefined ? 1 << 18 : 0;
63647
65241
  flags |= this.videoTimestamp !== undefined ? 1 << 20 : 0;
63648
65242
  flags |= this.allowPaidStars !== undefined ? 1 << 21 : 0;
63649
65243
  flags |= this.suggestedPost !== undefined ? 1 << 23 : 0;
@@ -63669,12 +65263,18 @@ var Raw;
63669
65263
  if (this.scheduleDate !== undefined) {
63670
65264
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63671
65265
  }
65266
+ if (this.scheduleRepeatPeriod !== undefined) {
65267
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
65268
+ }
63672
65269
  if (this.sendAs !== undefined) {
63673
65270
  b.write(this.sendAs.write());
63674
65271
  }
63675
65272
  if (this.quickReplyShortcut !== undefined) {
63676
65273
  b.write(this.quickReplyShortcut.write());
63677
65274
  }
65275
+ if (this.effect !== undefined) {
65276
+ b.write(index_js_1.Primitive.Long.write(this.effect));
65277
+ }
63678
65278
  if (this.videoTimestamp !== undefined) {
63679
65279
  b.write(index_js_1.Primitive.Int.write(this.videoTimestamp));
63680
65280
  }
@@ -65497,12 +67097,13 @@ var Raw;
65497
67097
  replyMarkup;
65498
67098
  entities;
65499
67099
  scheduleDate;
67100
+ scheduleRepeatPeriod;
65500
67101
  quickReplyShortcutId;
65501
67102
  constructor(params) {
65502
67103
  super();
65503
67104
  this.classType = 'functions';
65504
67105
  this.className = 'messages.EditMessage';
65505
- this.constructorId = 0xdfd14005;
67106
+ this.constructorId = 0x51e842e1;
65506
67107
  this.subclassOfId = 0x8af52aac;
65507
67108
  this._slots = [
65508
67109
  'noWebpage',
@@ -65514,6 +67115,7 @@ var Raw;
65514
67115
  'replyMarkup',
65515
67116
  'entities',
65516
67117
  'scheduleDate',
67118
+ 'scheduleRepeatPeriod',
65517
67119
  'quickReplyShortcutId',
65518
67120
  ];
65519
67121
  this.noWebpage = params.noWebpage;
@@ -65525,6 +67127,7 @@ var Raw;
65525
67127
  this.replyMarkup = params.replyMarkup;
65526
67128
  this.entities = params.entities;
65527
67129
  this.scheduleDate = params.scheduleDate;
67130
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
65528
67131
  this.quickReplyShortcutId = params.quickReplyShortcutId;
65529
67132
  }
65530
67133
  static async read(_data, ..._args) {
@@ -65538,6 +67141,7 @@ var Raw;
65538
67141
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
65539
67142
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
65540
67143
  let scheduleDate = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
67144
+ let scheduleRepeatPeriod = flags & (1 << 18) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65541
67145
  let quickReplyShortcutId = flags & (1 << 17) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65542
67146
  return new Raw.messages.EditMessage({
65543
67147
  noWebpage: noWebpage,
@@ -65549,6 +67153,7 @@ var Raw;
65549
67153
  replyMarkup: replyMarkup,
65550
67154
  entities: entities,
65551
67155
  scheduleDate: scheduleDate,
67156
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
65552
67157
  quickReplyShortcutId: quickReplyShortcutId,
65553
67158
  });
65554
67159
  }
@@ -65563,6 +67168,7 @@ var Raw;
65563
67168
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
65564
67169
  flags |= this.entities ? 1 << 3 : 0;
65565
67170
  flags |= this.scheduleDate !== undefined ? 1 << 15 : 0;
67171
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 18 : 0;
65566
67172
  flags |= this.quickReplyShortcutId !== undefined ? 1 << 17 : 0;
65567
67173
  b.write(index_js_1.Primitive.Int.write(flags));
65568
67174
  if (this.peer !== undefined) {
@@ -65586,6 +67192,9 @@ var Raw;
65586
67192
  if (this.scheduleDate !== undefined) {
65587
67193
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
65588
67194
  }
67195
+ if (this.scheduleRepeatPeriod !== undefined) {
67196
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
67197
+ }
65589
67198
  if (this.quickReplyShortcutId !== undefined) {
65590
67199
  b.write(index_js_1.Primitive.Int.write(this.quickReplyShortcutId));
65591
67200
  }
@@ -75802,6 +77411,56 @@ var Raw;
75802
77411
  }
75803
77412
  }
75804
77413
  account.SavedMusicIds = SavedMusicIds;
77414
+ class Passkeys extends index_js_1.TLObject {
77415
+ passkeys;
77416
+ constructor(params) {
77417
+ super();
77418
+ this.classType = 'types';
77419
+ this.className = 'account.Passkeys';
77420
+ this.constructorId = 0xf8e0aa1c;
77421
+ this.subclassOfId = 0x24dd205e;
77422
+ this._slots = ['passkeys'];
77423
+ this.passkeys = params.passkeys;
77424
+ }
77425
+ static async read(_data, ..._args) {
77426
+ let passkeys = await index_js_1.TLObject.read(_data);
77427
+ return new Raw.account.Passkeys({ passkeys: passkeys });
77428
+ }
77429
+ write() {
77430
+ const b = new deps_js_1.BytesIO();
77431
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
77432
+ if (this.passkeys) {
77433
+ b.write(index_js_1.Primitive.Vector.write(this.passkeys));
77434
+ }
77435
+ return deps_js_1.Buffer.from(b.buffer);
77436
+ }
77437
+ }
77438
+ account.Passkeys = Passkeys;
77439
+ class PasskeyRegistrationOptions extends index_js_1.TLObject {
77440
+ options;
77441
+ constructor(params) {
77442
+ super();
77443
+ this.classType = 'types';
77444
+ this.className = 'account.PasskeyRegistrationOptions';
77445
+ this.constructorId = 0xe16b5ce1;
77446
+ this.subclassOfId = 0x341d83e4;
77447
+ this._slots = ['options'];
77448
+ this.options = params.options;
77449
+ }
77450
+ static async read(_data, ..._args) {
77451
+ let options = await index_js_1.TLObject.read(_data);
77452
+ return new Raw.account.PasskeyRegistrationOptions({ options: options });
77453
+ }
77454
+ write() {
77455
+ const b = new deps_js_1.BytesIO();
77456
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
77457
+ if (this.options !== undefined) {
77458
+ b.write(this.options.write());
77459
+ }
77460
+ return deps_js_1.Buffer.from(b.buffer);
77461
+ }
77462
+ }
77463
+ account.PasskeyRegistrationOptions = PasskeyRegistrationOptions;
75805
77464
  class RegisterDevice extends index_js_1.TLObject {
75806
77465
  __response__;
75807
77466
  noMuted;
@@ -79526,6 +81185,98 @@ var Raw;
79526
81185
  }
79527
81186
  }
79528
81187
  account.GetUniqueGiftChatThemes = GetUniqueGiftChatThemes;
81188
+ class InitPasskeyRegistration extends index_js_1.TLObject {
81189
+ __response__;
81190
+ constructor() {
81191
+ super();
81192
+ this.classType = 'functions';
81193
+ this.className = 'account.InitPasskeyRegistration';
81194
+ this.constructorId = 0x429547e8;
81195
+ this.subclassOfId = 0x341d83e4;
81196
+ this._slots = [];
81197
+ }
81198
+ static async read(_data, ..._args) {
81199
+ return new Raw.account.InitPasskeyRegistration();
81200
+ }
81201
+ write() {
81202
+ const b = new deps_js_1.BytesIO();
81203
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81204
+ return deps_js_1.Buffer.from(b.buffer);
81205
+ }
81206
+ }
81207
+ account.InitPasskeyRegistration = InitPasskeyRegistration;
81208
+ class RegisterPasskey extends index_js_1.TLObject {
81209
+ __response__;
81210
+ credential;
81211
+ constructor(params) {
81212
+ super();
81213
+ this.classType = 'functions';
81214
+ this.className = 'account.RegisterPasskey';
81215
+ this.constructorId = 0x55b41fd6;
81216
+ this.subclassOfId = 0xcf380de0;
81217
+ this._slots = ['credential'];
81218
+ this.credential = params.credential;
81219
+ }
81220
+ static async read(_data, ..._args) {
81221
+ let credential = await index_js_1.TLObject.read(_data);
81222
+ return new Raw.account.RegisterPasskey({ credential: credential });
81223
+ }
81224
+ write() {
81225
+ const b = new deps_js_1.BytesIO();
81226
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81227
+ if (this.credential !== undefined) {
81228
+ b.write(this.credential.write());
81229
+ }
81230
+ return deps_js_1.Buffer.from(b.buffer);
81231
+ }
81232
+ }
81233
+ account.RegisterPasskey = RegisterPasskey;
81234
+ class GetPasskeys extends index_js_1.TLObject {
81235
+ __response__;
81236
+ constructor() {
81237
+ super();
81238
+ this.classType = 'functions';
81239
+ this.className = 'account.GetPasskeys';
81240
+ this.constructorId = 0xea1f0c52;
81241
+ this.subclassOfId = 0x24dd205e;
81242
+ this._slots = [];
81243
+ }
81244
+ static async read(_data, ..._args) {
81245
+ return new Raw.account.GetPasskeys();
81246
+ }
81247
+ write() {
81248
+ const b = new deps_js_1.BytesIO();
81249
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81250
+ return deps_js_1.Buffer.from(b.buffer);
81251
+ }
81252
+ }
81253
+ account.GetPasskeys = GetPasskeys;
81254
+ class DeletePasskey extends index_js_1.TLObject {
81255
+ __response__;
81256
+ id;
81257
+ constructor(params) {
81258
+ super();
81259
+ this.classType = 'functions';
81260
+ this.className = 'account.DeletePasskey';
81261
+ this.constructorId = 0xf5b5563f;
81262
+ this.subclassOfId = 0xf5b399ac;
81263
+ this._slots = ['id'];
81264
+ this.id = params.id;
81265
+ }
81266
+ static async read(_data, ..._args) {
81267
+ let id = await index_js_1.Primitive.String.read(_data);
81268
+ return new Raw.account.DeletePasskey({ id: id });
81269
+ }
81270
+ write() {
81271
+ const b = new deps_js_1.BytesIO();
81272
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81273
+ if (this.id !== undefined) {
81274
+ b.write(index_js_1.Primitive.String.write(this.id));
81275
+ }
81276
+ return deps_js_1.Buffer.from(b.buffer);
81277
+ }
81278
+ }
81279
+ account.DeletePasskey = DeletePasskey;
79529
81280
  })(account = Raw.account || (Raw.account = {}));
79530
81281
  let channels;
79531
81282
  (function (channels) {
@@ -81063,6 +82814,7 @@ var Raw;
81063
82814
  class GetSendAs extends index_js_1.TLObject {
81064
82815
  __response__;
81065
82816
  forPaidReactions;
82817
+ forLiveStories;
81066
82818
  peer;
81067
82819
  constructor(params) {
81068
82820
  super();
@@ -81070,21 +82822,28 @@ var Raw;
81070
82822
  this.className = 'channels.GetSendAs';
81071
82823
  this.constructorId = 0xe785a43f;
81072
82824
  this.subclassOfId = 0x38cb8d21;
81073
- this._slots = ['forPaidReactions', 'peer'];
82825
+ this._slots = ['forPaidReactions', 'forLiveStories', 'peer'];
81074
82826
  this.forPaidReactions = params.forPaidReactions;
82827
+ this.forLiveStories = params.forLiveStories;
81075
82828
  this.peer = params.peer;
81076
82829
  }
81077
82830
  static async read(_data, ..._args) {
81078
82831
  let flags = await index_js_1.Primitive.Int.read(_data);
81079
82832
  let forPaidReactions = flags & (1 << 0) ? true : false;
82833
+ let forLiveStories = flags & (1 << 1) ? true : false;
81080
82834
  let peer = await index_js_1.TLObject.read(_data);
81081
- return new Raw.channels.GetSendAs({ forPaidReactions: forPaidReactions, peer: peer });
82835
+ return new Raw.channels.GetSendAs({
82836
+ forPaidReactions: forPaidReactions,
82837
+ forLiveStories: forLiveStories,
82838
+ peer: peer,
82839
+ });
81082
82840
  }
81083
82841
  write() {
81084
82842
  const b = new deps_js_1.BytesIO();
81085
82843
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81086
82844
  let flags = 0;
81087
82845
  flags |= this.forPaidReactions ? 1 << 0 : 0;
82846
+ flags |= this.forLiveStories ? 1 << 1 : 0;
81088
82847
  b.write(index_js_1.Primitive.Int.write(flags));
81089
82848
  if (this.peer !== undefined) {
81090
82849
  b.write(this.peer.write());
@@ -82620,7 +84379,7 @@ var Raw;
82620
84379
  giveawayMsgId;
82621
84380
  toId;
82622
84381
  date;
82623
- months;
84382
+ days;
82624
84383
  usedDate;
82625
84384
  chats;
82626
84385
  users;
@@ -82628,7 +84387,7 @@ var Raw;
82628
84387
  super();
82629
84388
  this.classType = 'types';
82630
84389
  this.className = 'payments.CheckedGiftCode';
82631
- this.constructorId = 0x284a1096;
84390
+ this.constructorId = 0xeb983f8f;
82632
84391
  this.subclassOfId = 0x5b2997e8;
82633
84392
  this._slots = [
82634
84393
  'viaGiveaway',
@@ -82636,7 +84395,7 @@ var Raw;
82636
84395
  'giveawayMsgId',
82637
84396
  'toId',
82638
84397
  'date',
82639
- 'months',
84398
+ 'days',
82640
84399
  'usedDate',
82641
84400
  'chats',
82642
84401
  'users',
@@ -82646,7 +84405,7 @@ var Raw;
82646
84405
  this.giveawayMsgId = params.giveawayMsgId;
82647
84406
  this.toId = params.toId;
82648
84407
  this.date = params.date;
82649
- this.months = params.months;
84408
+ this.days = params.days;
82650
84409
  this.usedDate = params.usedDate;
82651
84410
  this.chats = params.chats;
82652
84411
  this.users = params.users;
@@ -82658,7 +84417,7 @@ var Raw;
82658
84417
  let giveawayMsgId = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
82659
84418
  let toId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
82660
84419
  let date = await index_js_1.Primitive.Int.read(_data);
82661
- let months = await index_js_1.Primitive.Int.read(_data);
84420
+ let days = await index_js_1.Primitive.Int.read(_data);
82662
84421
  let usedDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
82663
84422
  let chats = await index_js_1.TLObject.read(_data);
82664
84423
  let users = await index_js_1.TLObject.read(_data);
@@ -82668,7 +84427,7 @@ var Raw;
82668
84427
  giveawayMsgId: giveawayMsgId,
82669
84428
  toId: toId,
82670
84429
  date: date,
82671
- months: months,
84430
+ days: days,
82672
84431
  usedDate: usedDate,
82673
84432
  chats: chats,
82674
84433
  users: users,
@@ -82696,8 +84455,8 @@ var Raw;
82696
84455
  if (this.date !== undefined) {
82697
84456
  b.write(index_js_1.Primitive.Int.write(this.date));
82698
84457
  }
82699
- if (this.months !== undefined) {
82700
- b.write(index_js_1.Primitive.Int.write(this.months));
84458
+ if (this.days !== undefined) {
84459
+ b.write(index_js_1.Primitive.Int.write(this.days));
82701
84460
  }
82702
84461
  if (this.usedDate !== undefined) {
82703
84462
  b.write(index_js_1.Primitive.Int.write(this.usedDate));
@@ -83716,6 +85475,194 @@ var Raw;
83716
85475
  }
83717
85476
  }
83718
85477
  payments.CheckCanSendGiftResultFail = CheckCanSendGiftResultFail;
85478
+ class StarGiftAuctionState extends index_js_1.TLObject {
85479
+ gift;
85480
+ state;
85481
+ userState;
85482
+ timeout;
85483
+ users;
85484
+ chats;
85485
+ constructor(params) {
85486
+ super();
85487
+ this.classType = 'types';
85488
+ this.className = 'payments.StarGiftAuctionState';
85489
+ this.constructorId = 0x6b39f4ec;
85490
+ this.subclassOfId = 0x1a318599;
85491
+ this._slots = ['gift', 'state', 'userState', 'timeout', 'users', 'chats'];
85492
+ this.gift = params.gift;
85493
+ this.state = params.state;
85494
+ this.userState = params.userState;
85495
+ this.timeout = params.timeout;
85496
+ this.users = params.users;
85497
+ this.chats = params.chats;
85498
+ }
85499
+ static async read(_data, ..._args) {
85500
+ let gift = await index_js_1.TLObject.read(_data);
85501
+ let state = await index_js_1.TLObject.read(_data);
85502
+ let userState = await index_js_1.TLObject.read(_data);
85503
+ let timeout = await index_js_1.Primitive.Int.read(_data);
85504
+ let users = await index_js_1.TLObject.read(_data);
85505
+ let chats = await index_js_1.TLObject.read(_data);
85506
+ return new Raw.payments.StarGiftAuctionState({
85507
+ gift: gift,
85508
+ state: state,
85509
+ userState: userState,
85510
+ timeout: timeout,
85511
+ users: users,
85512
+ chats: chats,
85513
+ });
85514
+ }
85515
+ write() {
85516
+ const b = new deps_js_1.BytesIO();
85517
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85518
+ if (this.gift !== undefined) {
85519
+ b.write(this.gift.write());
85520
+ }
85521
+ if (this.state !== undefined) {
85522
+ b.write(this.state.write());
85523
+ }
85524
+ if (this.userState !== undefined) {
85525
+ b.write(this.userState.write());
85526
+ }
85527
+ if (this.timeout !== undefined) {
85528
+ b.write(index_js_1.Primitive.Int.write(this.timeout));
85529
+ }
85530
+ if (this.users) {
85531
+ b.write(index_js_1.Primitive.Vector.write(this.users));
85532
+ }
85533
+ if (this.chats) {
85534
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
85535
+ }
85536
+ return deps_js_1.Buffer.from(b.buffer);
85537
+ }
85538
+ }
85539
+ payments.StarGiftAuctionState = StarGiftAuctionState;
85540
+ class StarGiftAuctionAcquiredGifts extends index_js_1.TLObject {
85541
+ gifts;
85542
+ users;
85543
+ chats;
85544
+ constructor(params) {
85545
+ super();
85546
+ this.classType = 'types';
85547
+ this.className = 'payments.StarGiftAuctionAcquiredGifts';
85548
+ this.constructorId = 0x7d5bd1f0;
85549
+ this.subclassOfId = 0xa7080a1b;
85550
+ this._slots = ['gifts', 'users', 'chats'];
85551
+ this.gifts = params.gifts;
85552
+ this.users = params.users;
85553
+ this.chats = params.chats;
85554
+ }
85555
+ static async read(_data, ..._args) {
85556
+ let gifts = await index_js_1.TLObject.read(_data);
85557
+ let users = await index_js_1.TLObject.read(_data);
85558
+ let chats = await index_js_1.TLObject.read(_data);
85559
+ return new Raw.payments.StarGiftAuctionAcquiredGifts({
85560
+ gifts: gifts,
85561
+ users: users,
85562
+ chats: chats,
85563
+ });
85564
+ }
85565
+ write() {
85566
+ const b = new deps_js_1.BytesIO();
85567
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85568
+ if (this.gifts) {
85569
+ b.write(index_js_1.Primitive.Vector.write(this.gifts));
85570
+ }
85571
+ if (this.users) {
85572
+ b.write(index_js_1.Primitive.Vector.write(this.users));
85573
+ }
85574
+ if (this.chats) {
85575
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
85576
+ }
85577
+ return deps_js_1.Buffer.from(b.buffer);
85578
+ }
85579
+ }
85580
+ payments.StarGiftAuctionAcquiredGifts = StarGiftAuctionAcquiredGifts;
85581
+ class StarGiftActiveAuctionsNotModified extends index_js_1.TLObject {
85582
+ constructor() {
85583
+ super();
85584
+ this.classType = 'types';
85585
+ this.className = 'payments.StarGiftActiveAuctionsNotModified';
85586
+ this.constructorId = 0xdb33dad0;
85587
+ this.subclassOfId = 0x917dd0c7;
85588
+ this._slots = [];
85589
+ }
85590
+ static async read(_data, ..._args) {
85591
+ return new Raw.payments.StarGiftActiveAuctionsNotModified();
85592
+ }
85593
+ write() {
85594
+ const b = new deps_js_1.BytesIO();
85595
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85596
+ return deps_js_1.Buffer.from(b.buffer);
85597
+ }
85598
+ }
85599
+ payments.StarGiftActiveAuctionsNotModified = StarGiftActiveAuctionsNotModified;
85600
+ class StarGiftActiveAuctions extends index_js_1.TLObject {
85601
+ auctions;
85602
+ users;
85603
+ chats;
85604
+ constructor(params) {
85605
+ super();
85606
+ this.classType = 'types';
85607
+ this.className = 'payments.StarGiftActiveAuctions';
85608
+ this.constructorId = 0xaef6abbc;
85609
+ this.subclassOfId = 0x917dd0c7;
85610
+ this._slots = ['auctions', 'users', 'chats'];
85611
+ this.auctions = params.auctions;
85612
+ this.users = params.users;
85613
+ this.chats = params.chats;
85614
+ }
85615
+ static async read(_data, ..._args) {
85616
+ let auctions = await index_js_1.TLObject.read(_data);
85617
+ let users = await index_js_1.TLObject.read(_data);
85618
+ let chats = await index_js_1.TLObject.read(_data);
85619
+ return new Raw.payments.StarGiftActiveAuctions({
85620
+ auctions: auctions,
85621
+ users: users,
85622
+ chats: chats,
85623
+ });
85624
+ }
85625
+ write() {
85626
+ const b = new deps_js_1.BytesIO();
85627
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85628
+ if (this.auctions) {
85629
+ b.write(index_js_1.Primitive.Vector.write(this.auctions));
85630
+ }
85631
+ if (this.users) {
85632
+ b.write(index_js_1.Primitive.Vector.write(this.users));
85633
+ }
85634
+ if (this.chats) {
85635
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
85636
+ }
85637
+ return deps_js_1.Buffer.from(b.buffer);
85638
+ }
85639
+ }
85640
+ payments.StarGiftActiveAuctions = StarGiftActiveAuctions;
85641
+ class StarGiftUpgradeAttributes extends index_js_1.TLObject {
85642
+ attributes;
85643
+ constructor(params) {
85644
+ super();
85645
+ this.classType = 'types';
85646
+ this.className = 'payments.StarGiftUpgradeAttributes';
85647
+ this.constructorId = 0x46c6e36f;
85648
+ this.subclassOfId = 0xf46acef;
85649
+ this._slots = ['attributes'];
85650
+ this.attributes = params.attributes;
85651
+ }
85652
+ static async read(_data, ..._args) {
85653
+ let attributes = await index_js_1.TLObject.read(_data);
85654
+ return new Raw.payments.StarGiftUpgradeAttributes({ attributes: attributes });
85655
+ }
85656
+ write() {
85657
+ const b = new deps_js_1.BytesIO();
85658
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85659
+ if (this.attributes) {
85660
+ b.write(index_js_1.Primitive.Vector.write(this.attributes));
85661
+ }
85662
+ return deps_js_1.Buffer.from(b.buffer);
85663
+ }
85664
+ }
85665
+ payments.StarGiftUpgradeAttributes = StarGiftUpgradeAttributes;
83719
85666
  class GetPaymentForm extends index_js_1.TLObject {
83720
85667
  __response__;
83721
85668
  invoice;
@@ -85853,6 +87800,216 @@ var Raw;
85853
87800
  }
85854
87801
  }
85855
87802
  payments.CheckCanSendGift = CheckCanSendGift;
87803
+ class GetStarGiftAuctionState extends index_js_1.TLObject {
87804
+ __response__;
87805
+ auction;
87806
+ version;
87807
+ constructor(params) {
87808
+ super();
87809
+ this.classType = 'functions';
87810
+ this.className = 'payments.GetStarGiftAuctionState';
87811
+ this.constructorId = 0x5c9ff4d6;
87812
+ this.subclassOfId = 0x1a318599;
87813
+ this._slots = ['auction', 'version'];
87814
+ this.auction = params.auction;
87815
+ this.version = params.version;
87816
+ }
87817
+ static async read(_data, ..._args) {
87818
+ let auction = await index_js_1.TLObject.read(_data);
87819
+ let version = await index_js_1.Primitive.Int.read(_data);
87820
+ return new Raw.payments.GetStarGiftAuctionState({ auction: auction, version: version });
87821
+ }
87822
+ write() {
87823
+ const b = new deps_js_1.BytesIO();
87824
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87825
+ if (this.auction !== undefined) {
87826
+ b.write(this.auction.write());
87827
+ }
87828
+ if (this.version !== undefined) {
87829
+ b.write(index_js_1.Primitive.Int.write(this.version));
87830
+ }
87831
+ return deps_js_1.Buffer.from(b.buffer);
87832
+ }
87833
+ }
87834
+ payments.GetStarGiftAuctionState = GetStarGiftAuctionState;
87835
+ class GetStarGiftAuctionAcquiredGifts extends index_js_1.TLObject {
87836
+ __response__;
87837
+ giftId;
87838
+ constructor(params) {
87839
+ super();
87840
+ this.classType = 'functions';
87841
+ this.className = 'payments.GetStarGiftAuctionAcquiredGifts';
87842
+ this.constructorId = 0x6ba2cbec;
87843
+ this.subclassOfId = 0xa7080a1b;
87844
+ this._slots = ['giftId'];
87845
+ this.giftId = params.giftId;
87846
+ }
87847
+ static async read(_data, ..._args) {
87848
+ let giftId = await index_js_1.Primitive.Long.read(_data);
87849
+ return new Raw.payments.GetStarGiftAuctionAcquiredGifts({ giftId: giftId });
87850
+ }
87851
+ write() {
87852
+ const b = new deps_js_1.BytesIO();
87853
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87854
+ if (this.giftId !== undefined) {
87855
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
87856
+ }
87857
+ return deps_js_1.Buffer.from(b.buffer);
87858
+ }
87859
+ }
87860
+ payments.GetStarGiftAuctionAcquiredGifts = GetStarGiftAuctionAcquiredGifts;
87861
+ class GetStarGiftActiveAuctions extends index_js_1.TLObject {
87862
+ __response__;
87863
+ hash;
87864
+ constructor(params) {
87865
+ super();
87866
+ this.classType = 'functions';
87867
+ this.className = 'payments.GetStarGiftActiveAuctions';
87868
+ this.constructorId = 0xa5d0514d;
87869
+ this.subclassOfId = 0x917dd0c7;
87870
+ this._slots = ['hash'];
87871
+ this.hash = params.hash;
87872
+ }
87873
+ static async read(_data, ..._args) {
87874
+ let hash = await index_js_1.Primitive.Long.read(_data);
87875
+ return new Raw.payments.GetStarGiftActiveAuctions({ hash: hash });
87876
+ }
87877
+ write() {
87878
+ const b = new deps_js_1.BytesIO();
87879
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87880
+ if (this.hash !== undefined) {
87881
+ b.write(index_js_1.Primitive.Long.write(this.hash));
87882
+ }
87883
+ return deps_js_1.Buffer.from(b.buffer);
87884
+ }
87885
+ }
87886
+ payments.GetStarGiftActiveAuctions = GetStarGiftActiveAuctions;
87887
+ class ResolveStarGiftOffer extends index_js_1.TLObject {
87888
+ __response__;
87889
+ decline;
87890
+ offerMsgId;
87891
+ constructor(params) {
87892
+ super();
87893
+ this.classType = 'functions';
87894
+ this.className = 'payments.ResolveStarGiftOffer';
87895
+ this.constructorId = 0xe9ce781c;
87896
+ this.subclassOfId = 0x8af52aac;
87897
+ this._slots = ['decline', 'offerMsgId'];
87898
+ this.decline = params.decline;
87899
+ this.offerMsgId = params.offerMsgId;
87900
+ }
87901
+ static async read(_data, ..._args) {
87902
+ let flags = await index_js_1.Primitive.Int.read(_data);
87903
+ let decline = flags & (1 << 0) ? true : false;
87904
+ let offerMsgId = await index_js_1.Primitive.Int.read(_data);
87905
+ return new Raw.payments.ResolveStarGiftOffer({ decline: decline, offerMsgId: offerMsgId });
87906
+ }
87907
+ write() {
87908
+ const b = new deps_js_1.BytesIO();
87909
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87910
+ let flags = 0;
87911
+ flags |= this.decline ? 1 << 0 : 0;
87912
+ b.write(index_js_1.Primitive.Int.write(flags));
87913
+ if (this.offerMsgId !== undefined) {
87914
+ b.write(index_js_1.Primitive.Int.write(this.offerMsgId));
87915
+ }
87916
+ return deps_js_1.Buffer.from(b.buffer);
87917
+ }
87918
+ }
87919
+ payments.ResolveStarGiftOffer = ResolveStarGiftOffer;
87920
+ class SendStarGiftOffer extends index_js_1.TLObject {
87921
+ __response__;
87922
+ peer;
87923
+ slug;
87924
+ price;
87925
+ duration;
87926
+ randomId;
87927
+ allowPaidStars;
87928
+ constructor(params) {
87929
+ super();
87930
+ this.classType = 'functions';
87931
+ this.className = 'payments.SendStarGiftOffer';
87932
+ this.constructorId = 0x8fb86b41;
87933
+ this.subclassOfId = 0x8af52aac;
87934
+ this._slots = ['peer', 'slug', 'price', 'duration', 'randomId', 'allowPaidStars'];
87935
+ this.peer = params.peer;
87936
+ this.slug = params.slug;
87937
+ this.price = params.price;
87938
+ this.duration = params.duration;
87939
+ this.randomId = params.randomId;
87940
+ this.allowPaidStars = params.allowPaidStars;
87941
+ }
87942
+ static async read(_data, ..._args) {
87943
+ let flags = await index_js_1.Primitive.Int.read(_data);
87944
+ let peer = await index_js_1.TLObject.read(_data);
87945
+ let slug = await index_js_1.Primitive.String.read(_data);
87946
+ let price = await index_js_1.TLObject.read(_data);
87947
+ let duration = await index_js_1.Primitive.Int.read(_data);
87948
+ let randomId = await index_js_1.Primitive.Long.read(_data);
87949
+ let allowPaidStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
87950
+ return new Raw.payments.SendStarGiftOffer({
87951
+ peer: peer,
87952
+ slug: slug,
87953
+ price: price,
87954
+ duration: duration,
87955
+ randomId: randomId,
87956
+ allowPaidStars: allowPaidStars,
87957
+ });
87958
+ }
87959
+ write() {
87960
+ const b = new deps_js_1.BytesIO();
87961
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87962
+ let flags = 0;
87963
+ flags |= this.allowPaidStars !== undefined ? 1 << 0 : 0;
87964
+ b.write(index_js_1.Primitive.Int.write(flags));
87965
+ if (this.peer !== undefined) {
87966
+ b.write(this.peer.write());
87967
+ }
87968
+ if (this.slug !== undefined) {
87969
+ b.write(index_js_1.Primitive.String.write(this.slug));
87970
+ }
87971
+ if (this.price !== undefined) {
87972
+ b.write(this.price.write());
87973
+ }
87974
+ if (this.duration !== undefined) {
87975
+ b.write(index_js_1.Primitive.Int.write(this.duration));
87976
+ }
87977
+ if (this.randomId !== undefined) {
87978
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
87979
+ }
87980
+ if (this.allowPaidStars !== undefined) {
87981
+ b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
87982
+ }
87983
+ return deps_js_1.Buffer.from(b.buffer);
87984
+ }
87985
+ }
87986
+ payments.SendStarGiftOffer = SendStarGiftOffer;
87987
+ class GetStarGiftUpgradeAttributes extends index_js_1.TLObject {
87988
+ __response__;
87989
+ giftId;
87990
+ constructor(params) {
87991
+ super();
87992
+ this.classType = 'functions';
87993
+ this.className = 'payments.GetStarGiftUpgradeAttributes';
87994
+ this.constructorId = 0x6d038b58;
87995
+ this.subclassOfId = 0xf46acef;
87996
+ this._slots = ['giftId'];
87997
+ this.giftId = params.giftId;
87998
+ }
87999
+ static async read(_data, ..._args) {
88000
+ let giftId = await index_js_1.Primitive.Long.read(_data);
88001
+ return new Raw.payments.GetStarGiftUpgradeAttributes({ giftId: giftId });
88002
+ }
88003
+ write() {
88004
+ const b = new deps_js_1.BytesIO();
88005
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
88006
+ if (this.giftId !== undefined) {
88007
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
88008
+ }
88009
+ return deps_js_1.Buffer.from(b.buffer);
88010
+ }
88011
+ }
88012
+ payments.GetStarGiftUpgradeAttributes = GetStarGiftUpgradeAttributes;
85856
88013
  })(payments = Raw.payments || (Raw.payments = {}));
85857
88014
  let phone;
85858
88015
  (function (phone) {
@@ -86122,6 +88279,54 @@ var Raw;
86122
88279
  }
86123
88280
  }
86124
88281
  phone.GroupCallStreamRtmpUrl = GroupCallStreamRtmpUrl;
88282
+ class GroupCallStars extends index_js_1.TLObject {
88283
+ totalStars;
88284
+ topDonors;
88285
+ chats;
88286
+ users;
88287
+ constructor(params) {
88288
+ super();
88289
+ this.classType = 'types';
88290
+ this.className = 'phone.GroupCallStars';
88291
+ this.constructorId = 0x9d1dbd26;
88292
+ this.subclassOfId = 0xb447801a;
88293
+ this._slots = ['totalStars', 'topDonors', 'chats', 'users'];
88294
+ this.totalStars = params.totalStars;
88295
+ this.topDonors = params.topDonors;
88296
+ this.chats = params.chats;
88297
+ this.users = params.users;
88298
+ }
88299
+ static async read(_data, ..._args) {
88300
+ let totalStars = await index_js_1.Primitive.Long.read(_data);
88301
+ let topDonors = await index_js_1.TLObject.read(_data);
88302
+ let chats = await index_js_1.TLObject.read(_data);
88303
+ let users = await index_js_1.TLObject.read(_data);
88304
+ return new Raw.phone.GroupCallStars({
88305
+ totalStars: totalStars,
88306
+ topDonors: topDonors,
88307
+ chats: chats,
88308
+ users: users,
88309
+ });
88310
+ }
88311
+ write() {
88312
+ const b = new deps_js_1.BytesIO();
88313
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
88314
+ if (this.totalStars !== undefined) {
88315
+ b.write(index_js_1.Primitive.Long.write(this.totalStars));
88316
+ }
88317
+ if (this.topDonors) {
88318
+ b.write(index_js_1.Primitive.Vector.write(this.topDonors));
88319
+ }
88320
+ if (this.chats) {
88321
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
88322
+ }
88323
+ if (this.users) {
88324
+ b.write(index_js_1.Primitive.Vector.write(this.users));
88325
+ }
88326
+ return deps_js_1.Buffer.from(b.buffer);
88327
+ }
88328
+ }
88329
+ phone.GroupCallStars = GroupCallStars;
86125
88330
  class GetCallConfig extends index_js_1.TLObject {
86126
88331
  __response__;
86127
88332
  constructor() {
@@ -86726,17 +88931,25 @@ var Raw;
86726
88931
  call;
86727
88932
  joinMuted;
86728
88933
  messagesEnabled;
88934
+ sendPaidMessagesStars;
86729
88935
  constructor(params) {
86730
88936
  super();
86731
88937
  this.classType = 'functions';
86732
88938
  this.className = 'phone.ToggleGroupCallSettings';
86733
- this.constructorId = 0xe9723804;
88939
+ this.constructorId = 0x974392f2;
86734
88940
  this.subclassOfId = 0x8af52aac;
86735
- this._slots = ['resetInviteHash', 'call', 'joinMuted', 'messagesEnabled'];
88941
+ this._slots = [
88942
+ 'resetInviteHash',
88943
+ 'call',
88944
+ 'joinMuted',
88945
+ 'messagesEnabled',
88946
+ 'sendPaidMessagesStars',
88947
+ ];
86736
88948
  this.resetInviteHash = params.resetInviteHash;
86737
88949
  this.call = params.call;
86738
88950
  this.joinMuted = params.joinMuted;
86739
88951
  this.messagesEnabled = params.messagesEnabled;
88952
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
86740
88953
  }
86741
88954
  static async read(_data, ..._args) {
86742
88955
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -86744,11 +88957,13 @@ var Raw;
86744
88957
  let call = await index_js_1.TLObject.read(_data);
86745
88958
  let joinMuted = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
86746
88959
  let messagesEnabled = flags & (1 << 2) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
88960
+ let sendPaidMessagesStars = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
86747
88961
  return new Raw.phone.ToggleGroupCallSettings({
86748
88962
  resetInviteHash: resetInviteHash,
86749
88963
  call: call,
86750
88964
  joinMuted: joinMuted,
86751
88965
  messagesEnabled: messagesEnabled,
88966
+ sendPaidMessagesStars: sendPaidMessagesStars,
86752
88967
  });
86753
88968
  }
86754
88969
  write() {
@@ -86758,6 +88973,7 @@ var Raw;
86758
88973
  flags |= this.resetInviteHash ? 1 << 1 : 0;
86759
88974
  flags |= this.joinMuted !== undefined ? 1 << 0 : 0;
86760
88975
  flags |= this.messagesEnabled !== undefined ? 1 << 2 : 0;
88976
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 3 : 0;
86761
88977
  b.write(index_js_1.Primitive.Int.write(flags));
86762
88978
  if (this.call !== undefined) {
86763
88979
  b.write(this.call.write());
@@ -86768,6 +88984,9 @@ var Raw;
86768
88984
  if (this.messagesEnabled !== undefined) {
86769
88985
  b.write(index_js_1.Primitive.Bool.write(this.messagesEnabled));
86770
88986
  }
88987
+ if (this.sendPaidMessagesStars !== undefined) {
88988
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
88989
+ }
86771
88990
  return deps_js_1.Buffer.from(b.buffer);
86772
88991
  }
86773
88992
  }
@@ -87314,26 +89533,37 @@ var Raw;
87314
89533
  phone.GetGroupCallStreamChannels = GetGroupCallStreamChannels;
87315
89534
  class GetGroupCallStreamRtmpUrl extends index_js_1.TLObject {
87316
89535
  __response__;
89536
+ liveStory;
87317
89537
  peer;
87318
89538
  revoke;
87319
89539
  constructor(params) {
87320
89540
  super();
87321
89541
  this.classType = 'functions';
87322
89542
  this.className = 'phone.GetGroupCallStreamRtmpUrl';
87323
- this.constructorId = 0xdeb3abbf;
89543
+ this.constructorId = 0x5af4c73a;
87324
89544
  this.subclassOfId = 0xd1f515cb;
87325
- this._slots = ['peer', 'revoke'];
89545
+ this._slots = ['liveStory', 'peer', 'revoke'];
89546
+ this.liveStory = params.liveStory;
87326
89547
  this.peer = params.peer;
87327
89548
  this.revoke = params.revoke;
87328
89549
  }
87329
89550
  static async read(_data, ..._args) {
89551
+ let flags = await index_js_1.Primitive.Int.read(_data);
89552
+ let liveStory = flags & (1 << 0) ? true : false;
87330
89553
  let peer = await index_js_1.TLObject.read(_data);
87331
89554
  let revoke = await index_js_1.Primitive.Bool.read(_data);
87332
- return new Raw.phone.GetGroupCallStreamRtmpUrl({ peer: peer, revoke: revoke });
89555
+ return new Raw.phone.GetGroupCallStreamRtmpUrl({
89556
+ liveStory: liveStory,
89557
+ peer: peer,
89558
+ revoke: revoke,
89559
+ });
87333
89560
  }
87334
89561
  write() {
87335
89562
  const b = new deps_js_1.BytesIO();
87336
89563
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89564
+ let flags = 0;
89565
+ flags |= this.liveStory ? 1 << 0 : 0;
89566
+ b.write(index_js_1.Primitive.Int.write(flags));
87337
89567
  if (this.peer !== undefined) {
87338
89568
  b.write(this.peer.write());
87339
89569
  }
@@ -87656,30 +89886,43 @@ var Raw;
87656
89886
  call;
87657
89887
  randomId;
87658
89888
  message;
89889
+ allowPaidStars;
89890
+ sendAs;
87659
89891
  constructor(params) {
87660
89892
  super();
87661
89893
  this.classType = 'functions';
87662
89894
  this.className = 'phone.SendGroupCallMessage';
87663
- this.constructorId = 0x87893014;
87664
- this.subclassOfId = 0xf5b399ac;
87665
- this._slots = ['call', 'randomId', 'message'];
89895
+ this.constructorId = 0xb1d11410;
89896
+ this.subclassOfId = 0x8af52aac;
89897
+ this._slots = ['call', 'randomId', 'message', 'allowPaidStars', 'sendAs'];
87666
89898
  this.call = params.call;
87667
89899
  this.randomId = params.randomId;
87668
89900
  this.message = params.message;
89901
+ this.allowPaidStars = params.allowPaidStars;
89902
+ this.sendAs = params.sendAs;
87669
89903
  }
87670
89904
  static async read(_data, ..._args) {
89905
+ let flags = await index_js_1.Primitive.Int.read(_data);
87671
89906
  let call = await index_js_1.TLObject.read(_data);
87672
89907
  let randomId = await index_js_1.Primitive.Long.read(_data);
87673
89908
  let message = await index_js_1.TLObject.read(_data);
89909
+ let allowPaidStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
89910
+ let sendAs = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
87674
89911
  return new Raw.phone.SendGroupCallMessage({
87675
89912
  call: call,
87676
89913
  randomId: randomId,
87677
89914
  message: message,
89915
+ allowPaidStars: allowPaidStars,
89916
+ sendAs: sendAs,
87678
89917
  });
87679
89918
  }
87680
89919
  write() {
87681
89920
  const b = new deps_js_1.BytesIO();
87682
89921
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89922
+ let flags = 0;
89923
+ flags |= this.allowPaidStars !== undefined ? 1 << 0 : 0;
89924
+ flags |= this.sendAs !== undefined ? 1 << 1 : 0;
89925
+ b.write(index_js_1.Primitive.Int.write(flags));
87683
89926
  if (this.call !== undefined) {
87684
89927
  b.write(this.call.write());
87685
89928
  }
@@ -87689,6 +89932,12 @@ var Raw;
87689
89932
  if (this.message !== undefined) {
87690
89933
  b.write(this.message.write());
87691
89934
  }
89935
+ if (this.allowPaidStars !== undefined) {
89936
+ b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
89937
+ }
89938
+ if (this.sendAs !== undefined) {
89939
+ b.write(this.sendAs.write());
89940
+ }
87692
89941
  return deps_js_1.Buffer.from(b.buffer);
87693
89942
  }
87694
89943
  }
@@ -87728,6 +89977,150 @@ var Raw;
87728
89977
  }
87729
89978
  }
87730
89979
  phone.SendGroupCallEncryptedMessage = SendGroupCallEncryptedMessage;
89980
+ class DeleteGroupCallMessages extends index_js_1.TLObject {
89981
+ __response__;
89982
+ reportSpam;
89983
+ call;
89984
+ messages;
89985
+ constructor(params) {
89986
+ super();
89987
+ this.classType = 'functions';
89988
+ this.className = 'phone.DeleteGroupCallMessages';
89989
+ this.constructorId = 0xf64f54f7;
89990
+ this.subclassOfId = 0x8af52aac;
89991
+ this._slots = ['reportSpam', 'call', 'messages'];
89992
+ this.reportSpam = params.reportSpam;
89993
+ this.call = params.call;
89994
+ this.messages = params.messages;
89995
+ }
89996
+ static async read(_data, ..._args) {
89997
+ let flags = await index_js_1.Primitive.Int.read(_data);
89998
+ let reportSpam = flags & (1 << 0) ? true : false;
89999
+ let call = await index_js_1.TLObject.read(_data);
90000
+ let messages = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
90001
+ return new Raw.phone.DeleteGroupCallMessages({
90002
+ reportSpam: reportSpam,
90003
+ call: call,
90004
+ messages: messages,
90005
+ });
90006
+ }
90007
+ write() {
90008
+ const b = new deps_js_1.BytesIO();
90009
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
90010
+ let flags = 0;
90011
+ flags |= this.reportSpam ? 1 << 0 : 0;
90012
+ b.write(index_js_1.Primitive.Int.write(flags));
90013
+ if (this.call !== undefined) {
90014
+ b.write(this.call.write());
90015
+ }
90016
+ if (this.messages) {
90017
+ b.write(index_js_1.Primitive.Vector.write(this.messages, index_js_1.Primitive.Int));
90018
+ }
90019
+ return deps_js_1.Buffer.from(b.buffer);
90020
+ }
90021
+ }
90022
+ phone.DeleteGroupCallMessages = DeleteGroupCallMessages;
90023
+ class DeleteGroupCallParticipantMessages extends index_js_1.TLObject {
90024
+ __response__;
90025
+ reportSpam;
90026
+ call;
90027
+ participant;
90028
+ constructor(params) {
90029
+ super();
90030
+ this.classType = 'functions';
90031
+ this.className = 'phone.DeleteGroupCallParticipantMessages';
90032
+ this.constructorId = 0x1dbfeca0;
90033
+ this.subclassOfId = 0x8af52aac;
90034
+ this._slots = ['reportSpam', 'call', 'participant'];
90035
+ this.reportSpam = params.reportSpam;
90036
+ this.call = params.call;
90037
+ this.participant = params.participant;
90038
+ }
90039
+ static async read(_data, ..._args) {
90040
+ let flags = await index_js_1.Primitive.Int.read(_data);
90041
+ let reportSpam = flags & (1 << 0) ? true : false;
90042
+ let call = await index_js_1.TLObject.read(_data);
90043
+ let participant = await index_js_1.TLObject.read(_data);
90044
+ return new Raw.phone.DeleteGroupCallParticipantMessages({
90045
+ reportSpam: reportSpam,
90046
+ call: call,
90047
+ participant: participant,
90048
+ });
90049
+ }
90050
+ write() {
90051
+ const b = new deps_js_1.BytesIO();
90052
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
90053
+ let flags = 0;
90054
+ flags |= this.reportSpam ? 1 << 0 : 0;
90055
+ b.write(index_js_1.Primitive.Int.write(flags));
90056
+ if (this.call !== undefined) {
90057
+ b.write(this.call.write());
90058
+ }
90059
+ if (this.participant !== undefined) {
90060
+ b.write(this.participant.write());
90061
+ }
90062
+ return deps_js_1.Buffer.from(b.buffer);
90063
+ }
90064
+ }
90065
+ phone.DeleteGroupCallParticipantMessages = DeleteGroupCallParticipantMessages;
90066
+ class GetGroupCallStars extends index_js_1.TLObject {
90067
+ __response__;
90068
+ call;
90069
+ constructor(params) {
90070
+ super();
90071
+ this.classType = 'functions';
90072
+ this.className = 'phone.GetGroupCallStars';
90073
+ this.constructorId = 0x6f636302;
90074
+ this.subclassOfId = 0xb447801a;
90075
+ this._slots = ['call'];
90076
+ this.call = params.call;
90077
+ }
90078
+ static async read(_data, ..._args) {
90079
+ let call = await index_js_1.TLObject.read(_data);
90080
+ return new Raw.phone.GetGroupCallStars({ call: call });
90081
+ }
90082
+ write() {
90083
+ const b = new deps_js_1.BytesIO();
90084
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
90085
+ if (this.call !== undefined) {
90086
+ b.write(this.call.write());
90087
+ }
90088
+ return deps_js_1.Buffer.from(b.buffer);
90089
+ }
90090
+ }
90091
+ phone.GetGroupCallStars = GetGroupCallStars;
90092
+ class SaveDefaultSendAs extends index_js_1.TLObject {
90093
+ __response__;
90094
+ call;
90095
+ sendAs;
90096
+ constructor(params) {
90097
+ super();
90098
+ this.classType = 'functions';
90099
+ this.className = 'phone.SaveDefaultSendAs';
90100
+ this.constructorId = 0x4167add1;
90101
+ this.subclassOfId = 0xf5b399ac;
90102
+ this._slots = ['call', 'sendAs'];
90103
+ this.call = params.call;
90104
+ this.sendAs = params.sendAs;
90105
+ }
90106
+ static async read(_data, ..._args) {
90107
+ let call = await index_js_1.TLObject.read(_data);
90108
+ let sendAs = await index_js_1.TLObject.read(_data);
90109
+ return new Raw.phone.SaveDefaultSendAs({ call: call, sendAs: sendAs });
90110
+ }
90111
+ write() {
90112
+ const b = new deps_js_1.BytesIO();
90113
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
90114
+ if (this.call !== undefined) {
90115
+ b.write(this.call.write());
90116
+ }
90117
+ if (this.sendAs !== undefined) {
90118
+ b.write(this.sendAs.write());
90119
+ }
90120
+ return deps_js_1.Buffer.from(b.buffer);
90121
+ }
90122
+ }
90123
+ phone.SaveDefaultSendAs = SaveDefaultSendAs;
87731
90124
  })(phone = Raw.phone || (Raw.phone = {}));
87732
90125
  let stats;
87733
90126
  (function (stats) {
@@ -92438,8 +94831,8 @@ var Raw;
92438
94831
  super();
92439
94832
  this.classType = 'functions';
92440
94833
  this.className = 'stories.GetPeerMaxIDs';
92441
- this.constructorId = 0x535983c3;
92442
- this.subclassOfId = 0x5026710f;
94834
+ this.constructorId = 0x78499170;
94835
+ this.subclassOfId = 0x3cb69156;
92443
94836
  this._slots = ['id'];
92444
94837
  this.id = params.id;
92445
94838
  }
@@ -92922,6 +95315,109 @@ var Raw;
92922
95315
  }
92923
95316
  }
92924
95317
  stories_1.GetAlbumStories = GetAlbumStories;
95318
+ class StartLive extends index_js_1.TLObject {
95319
+ __response__;
95320
+ pinned;
95321
+ noforwards;
95322
+ rtmpStream;
95323
+ peer;
95324
+ caption;
95325
+ entities;
95326
+ privacyRules;
95327
+ randomId;
95328
+ messagesEnabled;
95329
+ sendPaidMessagesStars;
95330
+ constructor(params) {
95331
+ super();
95332
+ this.classType = 'functions';
95333
+ this.className = 'stories.StartLive';
95334
+ this.constructorId = 0xd069ccde;
95335
+ this.subclassOfId = 0x8af52aac;
95336
+ this._slots = [
95337
+ 'pinned',
95338
+ 'noforwards',
95339
+ 'rtmpStream',
95340
+ 'peer',
95341
+ 'caption',
95342
+ 'entities',
95343
+ 'privacyRules',
95344
+ 'randomId',
95345
+ 'messagesEnabled',
95346
+ 'sendPaidMessagesStars',
95347
+ ];
95348
+ this.pinned = params.pinned;
95349
+ this.noforwards = params.noforwards;
95350
+ this.rtmpStream = params.rtmpStream;
95351
+ this.peer = params.peer;
95352
+ this.caption = params.caption;
95353
+ this.entities = params.entities;
95354
+ this.privacyRules = params.privacyRules;
95355
+ this.randomId = params.randomId;
95356
+ this.messagesEnabled = params.messagesEnabled;
95357
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
95358
+ }
95359
+ static async read(_data, ..._args) {
95360
+ let flags = await index_js_1.Primitive.Int.read(_data);
95361
+ let pinned = flags & (1 << 2) ? true : false;
95362
+ let noforwards = flags & (1 << 4) ? true : false;
95363
+ let rtmpStream = flags & (1 << 5) ? true : false;
95364
+ let peer = await index_js_1.TLObject.read(_data);
95365
+ let caption = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
95366
+ let entities = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
95367
+ let privacyRules = await index_js_1.TLObject.read(_data);
95368
+ let randomId = await index_js_1.Primitive.Long.read(_data);
95369
+ let messagesEnabled = flags & (1 << 6) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
95370
+ let sendPaidMessagesStars = flags & (1 << 7) ? await index_js_1.Primitive.Long.read(_data) : undefined;
95371
+ return new Raw.stories.StartLive({
95372
+ pinned: pinned,
95373
+ noforwards: noforwards,
95374
+ rtmpStream: rtmpStream,
95375
+ peer: peer,
95376
+ caption: caption,
95377
+ entities: entities,
95378
+ privacyRules: privacyRules,
95379
+ randomId: randomId,
95380
+ messagesEnabled: messagesEnabled,
95381
+ sendPaidMessagesStars: sendPaidMessagesStars,
95382
+ });
95383
+ }
95384
+ write() {
95385
+ const b = new deps_js_1.BytesIO();
95386
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
95387
+ let flags = 0;
95388
+ flags |= this.pinned ? 1 << 2 : 0;
95389
+ flags |= this.noforwards ? 1 << 4 : 0;
95390
+ flags |= this.rtmpStream ? 1 << 5 : 0;
95391
+ flags |= this.caption !== undefined ? 1 << 0 : 0;
95392
+ flags |= this.entities ? 1 << 1 : 0;
95393
+ flags |= this.messagesEnabled !== undefined ? 1 << 6 : 0;
95394
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 7 : 0;
95395
+ b.write(index_js_1.Primitive.Int.write(flags));
95396
+ if (this.peer !== undefined) {
95397
+ b.write(this.peer.write());
95398
+ }
95399
+ if (this.caption !== undefined) {
95400
+ b.write(index_js_1.Primitive.String.write(this.caption));
95401
+ }
95402
+ if (this.entities) {
95403
+ b.write(index_js_1.Primitive.Vector.write(this.entities));
95404
+ }
95405
+ if (this.privacyRules) {
95406
+ b.write(index_js_1.Primitive.Vector.write(this.privacyRules));
95407
+ }
95408
+ if (this.randomId !== undefined) {
95409
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
95410
+ }
95411
+ if (this.messagesEnabled !== undefined) {
95412
+ b.write(index_js_1.Primitive.Bool.write(this.messagesEnabled));
95413
+ }
95414
+ if (this.sendPaidMessagesStars !== undefined) {
95415
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
95416
+ }
95417
+ return deps_js_1.Buffer.from(b.buffer);
95418
+ }
95419
+ }
95420
+ stories_1.StartLive = StartLive;
92925
95421
  })(stories = Raw.stories || (Raw.stories = {}));
92926
95422
  let premium;
92927
95423
  (function (premium) {