@tgsnake/skema 1.5.0 → 1.6.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 = 218;
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,12 @@ var Raw;
9400
9453
  savedId;
9401
9454
  prepaidUpgradeHash;
9402
9455
  giftMsgId;
9456
+ toId;
9403
9457
  constructor(params) {
9404
9458
  super();
9405
9459
  this.classType = 'types';
9406
9460
  this.className = 'MessageActionStarGift';
9407
- this.constructorId = 0xf24de7fa;
9461
+ this.constructorId = 0xdb596550;
9408
9462
  this.subclassOfId = 0x8680d126;
9409
9463
  this._slots = [
9410
9464
  'nameHidden',
@@ -9415,6 +9469,7 @@ var Raw;
9415
9469
  'canUpgrade',
9416
9470
  'prepaidUpgrade',
9417
9471
  'upgradeSeparate',
9472
+ 'auctionAcquired',
9418
9473
  'gift',
9419
9474
  'message',
9420
9475
  'convertStars',
@@ -9425,6 +9480,7 @@ var Raw;
9425
9480
  'savedId',
9426
9481
  'prepaidUpgradeHash',
9427
9482
  'giftMsgId',
9483
+ 'toId',
9428
9484
  ];
9429
9485
  this.nameHidden = params.nameHidden;
9430
9486
  this.saved = params.saved;
@@ -9434,6 +9490,7 @@ var Raw;
9434
9490
  this.canUpgrade = params.canUpgrade;
9435
9491
  this.prepaidUpgrade = params.prepaidUpgrade;
9436
9492
  this.upgradeSeparate = params.upgradeSeparate;
9493
+ this.auctionAcquired = params.auctionAcquired;
9437
9494
  this.gift = params.gift;
9438
9495
  this.message = params.message;
9439
9496
  this.convertStars = params.convertStars;
@@ -9444,6 +9501,7 @@ var Raw;
9444
9501
  this.savedId = params.savedId;
9445
9502
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
9446
9503
  this.giftMsgId = params.giftMsgId;
9504
+ this.toId = params.toId;
9447
9505
  }
9448
9506
  static async read(_data, ..._args) {
9449
9507
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -9455,6 +9513,7 @@ var Raw;
9455
9513
  let canUpgrade = flags & (1 << 10) ? true : false;
9456
9514
  let prepaidUpgrade = flags & (1 << 13) ? true : false;
9457
9515
  let upgradeSeparate = flags & (1 << 16) ? true : false;
9516
+ let auctionAcquired = flags & (1 << 17) ? true : false;
9458
9517
  let gift = await index_js_1.TLObject.read(_data);
9459
9518
  let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
9460
9519
  let convertStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9465,6 +9524,7 @@ var Raw;
9465
9524
  let savedId = flags & (1 << 12) ? await index_js_1.Primitive.Long.read(_data) : undefined;
9466
9525
  let prepaidUpgradeHash = flags & (1 << 14) ? await index_js_1.Primitive.String.read(_data) : undefined;
9467
9526
  let giftMsgId = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9527
+ let toId = flags & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
9468
9528
  return new Raw.MessageActionStarGift({
9469
9529
  nameHidden: nameHidden,
9470
9530
  saved: saved,
@@ -9474,6 +9534,7 @@ var Raw;
9474
9534
  canUpgrade: canUpgrade,
9475
9535
  prepaidUpgrade: prepaidUpgrade,
9476
9536
  upgradeSeparate: upgradeSeparate,
9537
+ auctionAcquired: auctionAcquired,
9477
9538
  gift: gift,
9478
9539
  message: message,
9479
9540
  convertStars: convertStars,
@@ -9484,6 +9545,7 @@ var Raw;
9484
9545
  savedId: savedId,
9485
9546
  prepaidUpgradeHash: prepaidUpgradeHash,
9486
9547
  giftMsgId: giftMsgId,
9548
+ toId: toId,
9487
9549
  });
9488
9550
  }
9489
9551
  write() {
@@ -9498,6 +9560,7 @@ var Raw;
9498
9560
  flags |= this.canUpgrade ? 1 << 10 : 0;
9499
9561
  flags |= this.prepaidUpgrade ? 1 << 13 : 0;
9500
9562
  flags |= this.upgradeSeparate ? 1 << 16 : 0;
9563
+ flags |= this.auctionAcquired ? 1 << 17 : 0;
9501
9564
  flags |= this.message !== undefined ? 1 << 1 : 0;
9502
9565
  flags |= this.convertStars !== undefined ? 1 << 4 : 0;
9503
9566
  flags |= this.upgradeMsgId !== undefined ? 1 << 5 : 0;
@@ -9507,6 +9570,7 @@ var Raw;
9507
9570
  flags |= this.savedId !== undefined ? 1 << 12 : 0;
9508
9571
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 14 : 0;
9509
9572
  flags |= this.giftMsgId !== undefined ? 1 << 15 : 0;
9573
+ flags |= this.toId !== undefined ? 1 << 18 : 0;
9510
9574
  b.write(index_js_1.Primitive.Int.write(flags));
9511
9575
  if (this.gift !== undefined) {
9512
9576
  b.write(this.gift.write());
@@ -9538,6 +9602,9 @@ var Raw;
9538
9602
  if (this.giftMsgId !== undefined) {
9539
9603
  b.write(index_js_1.Primitive.Int.write(this.giftMsgId));
9540
9604
  }
9605
+ if (this.toId !== undefined) {
9606
+ b.write(this.toId.write());
9607
+ }
9541
9608
  return deps_js_1.Buffer.from(b.buffer);
9542
9609
  }
9543
9610
  }
@@ -15724,32 +15791,36 @@ var Raw;
15724
15791
  }
15725
15792
  Raw.UpdateGroupCallParticipants = UpdateGroupCallParticipants;
15726
15793
  class UpdateGroupCall extends index_js_1.TLObject {
15727
- chatId;
15794
+ liveStory;
15795
+ peer;
15728
15796
  call;
15729
15797
  constructor(params) {
15730
15798
  super();
15731
15799
  this.classType = 'types';
15732
15800
  this.className = 'UpdateGroupCall';
15733
- this.constructorId = 0x97d64341;
15801
+ this.constructorId = 0x9d2216e0;
15734
15802
  this.subclassOfId = 0x9f89304e;
15735
- this._slots = ['chatId', 'call'];
15736
- this.chatId = params.chatId;
15803
+ this._slots = ['liveStory', 'peer', 'call'];
15804
+ this.liveStory = params.liveStory;
15805
+ this.peer = params.peer;
15737
15806
  this.call = params.call;
15738
15807
  }
15739
15808
  static async read(_data, ..._args) {
15740
15809
  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;
15810
+ let liveStory = flags & (1 << 2) ? true : false;
15811
+ let peer = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
15742
15812
  let call = await index_js_1.TLObject.read(_data);
15743
- return new Raw.UpdateGroupCall({ chatId: chatId, call: call });
15813
+ return new Raw.UpdateGroupCall({ liveStory: liveStory, peer: peer, call: call });
15744
15814
  }
15745
15815
  write() {
15746
15816
  const b = new deps_js_1.BytesIO();
15747
15817
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
15748
15818
  let flags = 0;
15749
- flags |= this.chatId !== undefined ? 1 << 0 : 0;
15819
+ flags |= this.liveStory ? 1 << 2 : 0;
15820
+ flags |= this.peer !== undefined ? 1 << 1 : 0;
15750
15821
  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));
15822
+ if (this.peer !== undefined) {
15823
+ b.write(this.peer.write());
15753
15824
  }
15754
15825
  if (this.call !== undefined) {
15755
15826
  b.write(this.call.write());
@@ -17864,32 +17935,21 @@ var Raw;
17864
17935
  Raw.UpdateMonoForumNoPaidException = UpdateMonoForumNoPaidException;
17865
17936
  class UpdateGroupCallMessage extends index_js_1.TLObject {
17866
17937
  call;
17867
- fromId;
17868
- randomId;
17869
17938
  message;
17870
17939
  constructor(params) {
17871
17940
  super();
17872
17941
  this.classType = 'types';
17873
17942
  this.className = 'UpdateGroupCallMessage';
17874
- this.constructorId = 0x78c314e0;
17943
+ this.constructorId = 0xd8326f0d;
17875
17944
  this.subclassOfId = 0x9f89304e;
17876
- this._slots = ['call', 'fromId', 'randomId', 'message'];
17945
+ this._slots = ['call', 'message'];
17877
17946
  this.call = params.call;
17878
- this.fromId = params.fromId;
17879
- this.randomId = params.randomId;
17880
17947
  this.message = params.message;
17881
17948
  }
17882
17949
  static async read(_data, ..._args) {
17883
17950
  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
17951
  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
- });
17952
+ return new Raw.UpdateGroupCallMessage({ call: call, message: message });
17893
17953
  }
17894
17954
  write() {
17895
17955
  const b = new deps_js_1.BytesIO();
@@ -17897,12 +17957,6 @@ var Raw;
17897
17957
  if (this.call !== undefined) {
17898
17958
  b.write(this.call.write());
17899
17959
  }
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
17960
  if (this.message !== undefined) {
17907
17961
  b.write(this.message.write());
17908
17962
  }
@@ -18024,6 +18078,99 @@ var Raw;
18024
18078
  }
18025
18079
  }
18026
18080
  Raw.UpdatePinnedForumTopics = UpdatePinnedForumTopics;
18081
+ class UpdateDeleteGroupCallMessages extends index_js_1.TLObject {
18082
+ call;
18083
+ messages;
18084
+ constructor(params) {
18085
+ super();
18086
+ this.classType = 'types';
18087
+ this.className = 'UpdateDeleteGroupCallMessages';
18088
+ this.constructorId = 0x3e85e92c;
18089
+ this.subclassOfId = 0x9f89304e;
18090
+ this._slots = ['call', 'messages'];
18091
+ this.call = params.call;
18092
+ this.messages = params.messages;
18093
+ }
18094
+ static async read(_data, ..._args) {
18095
+ let call = await index_js_1.TLObject.read(_data);
18096
+ let messages = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
18097
+ return new Raw.UpdateDeleteGroupCallMessages({ call: call, messages: messages });
18098
+ }
18099
+ write() {
18100
+ const b = new deps_js_1.BytesIO();
18101
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18102
+ if (this.call !== undefined) {
18103
+ b.write(this.call.write());
18104
+ }
18105
+ if (this.messages) {
18106
+ b.write(index_js_1.Primitive.Vector.write(this.messages, index_js_1.Primitive.Int));
18107
+ }
18108
+ return deps_js_1.Buffer.from(b.buffer);
18109
+ }
18110
+ }
18111
+ Raw.UpdateDeleteGroupCallMessages = UpdateDeleteGroupCallMessages;
18112
+ class UpdateStarGiftAuctionState extends index_js_1.TLObject {
18113
+ giftId;
18114
+ state;
18115
+ constructor(params) {
18116
+ super();
18117
+ this.classType = 'types';
18118
+ this.className = 'UpdateStarGiftAuctionState';
18119
+ this.constructorId = 0x48e246c2;
18120
+ this.subclassOfId = 0x9f89304e;
18121
+ this._slots = ['giftId', 'state'];
18122
+ this.giftId = params.giftId;
18123
+ this.state = params.state;
18124
+ }
18125
+ static async read(_data, ..._args) {
18126
+ let giftId = await index_js_1.Primitive.Long.read(_data);
18127
+ let state = await index_js_1.TLObject.read(_data);
18128
+ return new Raw.UpdateStarGiftAuctionState({ giftId: giftId, state: state });
18129
+ }
18130
+ write() {
18131
+ const b = new deps_js_1.BytesIO();
18132
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18133
+ if (this.giftId !== undefined) {
18134
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
18135
+ }
18136
+ if (this.state !== undefined) {
18137
+ b.write(this.state.write());
18138
+ }
18139
+ return deps_js_1.Buffer.from(b.buffer);
18140
+ }
18141
+ }
18142
+ Raw.UpdateStarGiftAuctionState = UpdateStarGiftAuctionState;
18143
+ class UpdateStarGiftAuctionUserState extends index_js_1.TLObject {
18144
+ giftId;
18145
+ userState;
18146
+ constructor(params) {
18147
+ super();
18148
+ this.classType = 'types';
18149
+ this.className = 'UpdateStarGiftAuctionUserState';
18150
+ this.constructorId = 0xdc58f31e;
18151
+ this.subclassOfId = 0x9f89304e;
18152
+ this._slots = ['giftId', 'userState'];
18153
+ this.giftId = params.giftId;
18154
+ this.userState = params.userState;
18155
+ }
18156
+ static async read(_data, ..._args) {
18157
+ let giftId = await index_js_1.Primitive.Long.read(_data);
18158
+ let userState = await index_js_1.TLObject.read(_data);
18159
+ return new Raw.UpdateStarGiftAuctionUserState({ giftId: giftId, userState: userState });
18160
+ }
18161
+ write() {
18162
+ const b = new deps_js_1.BytesIO();
18163
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18164
+ if (this.giftId !== undefined) {
18165
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
18166
+ }
18167
+ if (this.userState !== undefined) {
18168
+ b.write(this.userState.write());
18169
+ }
18170
+ return deps_js_1.Buffer.from(b.buffer);
18171
+ }
18172
+ }
18173
+ Raw.UpdateStarGiftAuctionUserState = UpdateStarGiftAuctionUserState;
18027
18174
  class UpdatesTooLong extends index_js_1.TLObject {
18028
18175
  constructor() {
18029
18176
  super();
@@ -20689,6 +20836,25 @@ var Raw;
20689
20836
  }
20690
20837
  }
20691
20838
  Raw.InputPrivacyKeyNoPaidMessages = InputPrivacyKeyNoPaidMessages;
20839
+ class InputPrivacyKeySavedMusic extends index_js_1.TLObject {
20840
+ constructor() {
20841
+ super();
20842
+ this.classType = 'types';
20843
+ this.className = 'InputPrivacyKeySavedMusic';
20844
+ this.constructorId = 0x4dbe9226;
20845
+ this.subclassOfId = 0x53627f8;
20846
+ this._slots = [];
20847
+ }
20848
+ static async read(_data, ..._args) {
20849
+ return new Raw.InputPrivacyKeySavedMusic();
20850
+ }
20851
+ write() {
20852
+ const b = new deps_js_1.BytesIO();
20853
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
20854
+ return deps_js_1.Buffer.from(b.buffer);
20855
+ }
20856
+ }
20857
+ Raw.InputPrivacyKeySavedMusic = InputPrivacyKeySavedMusic;
20692
20858
  class PrivacyKeyStatusTimestamp extends index_js_1.TLObject {
20693
20859
  constructor() {
20694
20860
  super();
@@ -20936,6 +21102,25 @@ var Raw;
20936
21102
  }
20937
21103
  }
20938
21104
  Raw.PrivacyKeyNoPaidMessages = PrivacyKeyNoPaidMessages;
21105
+ class PrivacyKeySavedMusic extends index_js_1.TLObject {
21106
+ constructor() {
21107
+ super();
21108
+ this.classType = 'types';
21109
+ this.className = 'PrivacyKeySavedMusic';
21110
+ this.constructorId = 0xff7a571b;
21111
+ this.subclassOfId = 0x824651c3;
21112
+ this._slots = [];
21113
+ }
21114
+ static async read(_data, ..._args) {
21115
+ return new Raw.PrivacyKeySavedMusic();
21116
+ }
21117
+ write() {
21118
+ const b = new deps_js_1.BytesIO();
21119
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
21120
+ return deps_js_1.Buffer.from(b.buffer);
21121
+ }
21122
+ }
21123
+ Raw.PrivacyKeySavedMusic = PrivacyKeySavedMusic;
20939
21124
  class InputPrivacyValueAllowContacts extends index_js_1.TLObject {
20940
21125
  constructor() {
20941
21126
  super();
@@ -37769,6 +37954,61 @@ var Raw;
37769
37954
  }
37770
37955
  }
37771
37956
  Raw.WebPageAttributeStarGiftCollection = WebPageAttributeStarGiftCollection;
37957
+ class WebPageAttributeStarGiftAuction extends index_js_1.TLObject {
37958
+ gift;
37959
+ endDate;
37960
+ centerColor;
37961
+ edgeColor;
37962
+ textColor;
37963
+ constructor(params) {
37964
+ super();
37965
+ this.classType = 'types';
37966
+ this.className = 'WebPageAttributeStarGiftAuction';
37967
+ this.constructorId = 0x34986ab;
37968
+ this.subclassOfId = 0xafcfe9c7;
37969
+ this._slots = ['gift', 'endDate', 'centerColor', 'edgeColor', 'textColor'];
37970
+ this.gift = params.gift;
37971
+ this.endDate = params.endDate;
37972
+ this.centerColor = params.centerColor;
37973
+ this.edgeColor = params.edgeColor;
37974
+ this.textColor = params.textColor;
37975
+ }
37976
+ static async read(_data, ..._args) {
37977
+ let gift = await index_js_1.TLObject.read(_data);
37978
+ let endDate = await index_js_1.Primitive.Int.read(_data);
37979
+ let centerColor = await index_js_1.Primitive.Int.read(_data);
37980
+ let edgeColor = await index_js_1.Primitive.Int.read(_data);
37981
+ let textColor = await index_js_1.Primitive.Int.read(_data);
37982
+ return new Raw.WebPageAttributeStarGiftAuction({
37983
+ gift: gift,
37984
+ endDate: endDate,
37985
+ centerColor: centerColor,
37986
+ edgeColor: edgeColor,
37987
+ textColor: textColor,
37988
+ });
37989
+ }
37990
+ write() {
37991
+ const b = new deps_js_1.BytesIO();
37992
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
37993
+ if (this.gift !== undefined) {
37994
+ b.write(this.gift.write());
37995
+ }
37996
+ if (this.endDate !== undefined) {
37997
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
37998
+ }
37999
+ if (this.centerColor !== undefined) {
38000
+ b.write(index_js_1.Primitive.Int.write(this.centerColor));
38001
+ }
38002
+ if (this.edgeColor !== undefined) {
38003
+ b.write(index_js_1.Primitive.Int.write(this.edgeColor));
38004
+ }
38005
+ if (this.textColor !== undefined) {
38006
+ b.write(index_js_1.Primitive.Int.write(this.textColor));
38007
+ }
38008
+ return deps_js_1.Buffer.from(b.buffer);
38009
+ }
38010
+ }
38011
+ Raw.WebPageAttributeStarGiftAuction = WebPageAttributeStarGiftAuction;
37772
38012
  class BankCardOpenUrl extends index_js_1.TLObject {
37773
38013
  url;
37774
38014
  name;
@@ -38945,11 +39185,13 @@ var Raw;
38945
39185
  unmutedVideoLimit;
38946
39186
  version;
38947
39187
  inviteLink;
39188
+ sendPaidMessagesStars;
39189
+ defaultSendAs;
38948
39190
  constructor(params) {
38949
39191
  super();
38950
39192
  this.classType = 'types';
38951
39193
  this.className = 'GroupCall';
38952
- this.constructorId = 0x553b0ba1;
39194
+ this.constructorId = 0xefb2b617;
38953
39195
  this.subclassOfId = 0x20b4f320;
38954
39196
  this._slots = [
38955
39197
  'joinMuted',
@@ -38976,6 +39218,8 @@ var Raw;
38976
39218
  'unmutedVideoLimit',
38977
39219
  'version',
38978
39220
  'inviteLink',
39221
+ 'sendPaidMessagesStars',
39222
+ 'defaultSendAs',
38979
39223
  ];
38980
39224
  this.joinMuted = params.joinMuted;
38981
39225
  this.canChangeJoinMuted = params.canChangeJoinMuted;
@@ -39001,6 +39245,8 @@ var Raw;
39001
39245
  this.unmutedVideoLimit = params.unmutedVideoLimit;
39002
39246
  this.version = params.version;
39003
39247
  this.inviteLink = params.inviteLink;
39248
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
39249
+ this.defaultSendAs = params.defaultSendAs;
39004
39250
  }
39005
39251
  static async read(_data, ..._args) {
39006
39252
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -39028,6 +39274,8 @@ var Raw;
39028
39274
  let unmutedVideoLimit = await index_js_1.Primitive.Int.read(_data);
39029
39275
  let version = await index_js_1.Primitive.Int.read(_data);
39030
39276
  let inviteLink = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
39277
+ let sendPaidMessagesStars = flags & (1 << 20) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39278
+ let defaultSendAs = flags & (1 << 21) ? await index_js_1.TLObject.read(_data) : undefined;
39031
39279
  return new Raw.GroupCall({
39032
39280
  joinMuted: joinMuted,
39033
39281
  canChangeJoinMuted: canChangeJoinMuted,
@@ -39053,6 +39301,8 @@ var Raw;
39053
39301
  unmutedVideoLimit: unmutedVideoLimit,
39054
39302
  version: version,
39055
39303
  inviteLink: inviteLink,
39304
+ sendPaidMessagesStars: sendPaidMessagesStars,
39305
+ defaultSendAs: defaultSendAs,
39056
39306
  });
39057
39307
  }
39058
39308
  write() {
@@ -39078,6 +39328,8 @@ var Raw;
39078
39328
  flags |= this.scheduleDate !== undefined ? 1 << 7 : 0;
39079
39329
  flags |= this.unmutedVideoCount !== undefined ? 1 << 10 : 0;
39080
39330
  flags |= this.inviteLink !== undefined ? 1 << 16 : 0;
39331
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 20 : 0;
39332
+ flags |= this.defaultSendAs !== undefined ? 1 << 21 : 0;
39081
39333
  b.write(index_js_1.Primitive.Int.write(flags));
39082
39334
  if (this.id !== undefined) {
39083
39335
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -39112,6 +39364,12 @@ var Raw;
39112
39364
  if (this.inviteLink !== undefined) {
39113
39365
  b.write(index_js_1.Primitive.String.write(this.inviteLink));
39114
39366
  }
39367
+ if (this.sendPaidMessagesStars !== undefined) {
39368
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
39369
+ }
39370
+ if (this.defaultSendAs !== undefined) {
39371
+ b.write(this.defaultSendAs.write());
39372
+ }
39115
39373
  return deps_js_1.Buffer.from(b.buffer);
39116
39374
  }
39117
39375
  }
@@ -39217,11 +39475,12 @@ var Raw;
39217
39475
  raiseHandRating;
39218
39476
  video;
39219
39477
  presentation;
39478
+ paidStarsTotal;
39220
39479
  constructor(params) {
39221
39480
  super();
39222
39481
  this.classType = 'types';
39223
39482
  this.className = 'GroupCallParticipant';
39224
- this.constructorId = 0xeba636fe;
39483
+ this.constructorId = 0x2a3dc7ac;
39225
39484
  this.subclassOfId = 0xc01aaf4c;
39226
39485
  this._slots = [
39227
39486
  'muted',
@@ -39243,6 +39502,7 @@ var Raw;
39243
39502
  'raiseHandRating',
39244
39503
  'video',
39245
39504
  'presentation',
39505
+ 'paidStarsTotal',
39246
39506
  ];
39247
39507
  this.muted = params.muted;
39248
39508
  this.left = params.left;
@@ -39263,6 +39523,7 @@ var Raw;
39263
39523
  this.raiseHandRating = params.raiseHandRating;
39264
39524
  this.video = params.video;
39265
39525
  this.presentation = params.presentation;
39526
+ this.paidStarsTotal = params.paidStarsTotal;
39266
39527
  }
39267
39528
  static async read(_data, ..._args) {
39268
39529
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -39285,6 +39546,7 @@ var Raw;
39285
39546
  let raiseHandRating = flags & (1 << 13) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39286
39547
  let video = flags & (1 << 6) ? await index_js_1.TLObject.read(_data) : undefined;
39287
39548
  let presentation = flags & (1 << 14) ? await index_js_1.TLObject.read(_data) : undefined;
39549
+ let paidStarsTotal = flags & (1 << 16) ? await index_js_1.Primitive.Long.read(_data) : undefined;
39288
39550
  return new Raw.GroupCallParticipant({
39289
39551
  muted: muted,
39290
39552
  left: left,
@@ -39305,6 +39567,7 @@ var Raw;
39305
39567
  raiseHandRating: raiseHandRating,
39306
39568
  video: video,
39307
39569
  presentation: presentation,
39570
+ paidStarsTotal: paidStarsTotal,
39308
39571
  });
39309
39572
  }
39310
39573
  write() {
@@ -39327,6 +39590,7 @@ var Raw;
39327
39590
  flags |= this.raiseHandRating !== undefined ? 1 << 13 : 0;
39328
39591
  flags |= this.video !== undefined ? 1 << 6 : 0;
39329
39592
  flags |= this.presentation !== undefined ? 1 << 14 : 0;
39593
+ flags |= this.paidStarsTotal !== undefined ? 1 << 16 : 0;
39330
39594
  b.write(index_js_1.Primitive.Int.write(flags));
39331
39595
  if (this.peer !== undefined) {
39332
39596
  b.write(this.peer.write());
@@ -39355,6 +39619,9 @@ var Raw;
39355
39619
  if (this.presentation !== undefined) {
39356
39620
  b.write(this.presentation.write());
39357
39621
  }
39622
+ if (this.paidStarsTotal !== undefined) {
39623
+ b.write(index_js_1.Primitive.Long.write(this.paidStarsTotal));
39624
+ }
39358
39625
  return deps_js_1.Buffer.from(b.buffer);
39359
39626
  }
39360
39627
  }
@@ -41466,6 +41733,69 @@ var Raw;
41466
41733
  }
41467
41734
  }
41468
41735
  Raw.InputInvoiceStarGiftDropOriginalDetails = InputInvoiceStarGiftDropOriginalDetails;
41736
+ class InputInvoiceStarGiftAuctionBid extends index_js_1.TLObject {
41737
+ hideName;
41738
+ updateBid;
41739
+ peer;
41740
+ giftId;
41741
+ bidAmount;
41742
+ message;
41743
+ constructor(params) {
41744
+ super();
41745
+ this.classType = 'types';
41746
+ this.className = 'InputInvoiceStarGiftAuctionBid';
41747
+ this.constructorId = 0x1ecafa10;
41748
+ this.subclassOfId = 0x726e9bfe;
41749
+ this._slots = ['hideName', 'updateBid', 'peer', 'giftId', 'bidAmount', 'message'];
41750
+ this.hideName = params.hideName;
41751
+ this.updateBid = params.updateBid;
41752
+ this.peer = params.peer;
41753
+ this.giftId = params.giftId;
41754
+ this.bidAmount = params.bidAmount;
41755
+ this.message = params.message;
41756
+ }
41757
+ static async read(_data, ..._args) {
41758
+ let flags = await index_js_1.Primitive.Int.read(_data);
41759
+ let hideName = flags & (1 << 0) ? true : false;
41760
+ let updateBid = flags & (1 << 2) ? true : false;
41761
+ let peer = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
41762
+ let giftId = await index_js_1.Primitive.Long.read(_data);
41763
+ let bidAmount = await index_js_1.Primitive.Long.read(_data);
41764
+ let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
41765
+ return new Raw.InputInvoiceStarGiftAuctionBid({
41766
+ hideName: hideName,
41767
+ updateBid: updateBid,
41768
+ peer: peer,
41769
+ giftId: giftId,
41770
+ bidAmount: bidAmount,
41771
+ message: message,
41772
+ });
41773
+ }
41774
+ write() {
41775
+ const b = new deps_js_1.BytesIO();
41776
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
41777
+ let flags = 0;
41778
+ flags |= this.hideName ? 1 << 0 : 0;
41779
+ flags |= this.updateBid ? 1 << 2 : 0;
41780
+ flags |= this.peer !== undefined ? 1 << 3 : 0;
41781
+ flags |= this.message !== undefined ? 1 << 1 : 0;
41782
+ b.write(index_js_1.Primitive.Int.write(flags));
41783
+ if (this.peer !== undefined) {
41784
+ b.write(this.peer.write());
41785
+ }
41786
+ if (this.giftId !== undefined) {
41787
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
41788
+ }
41789
+ if (this.bidAmount !== undefined) {
41790
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
41791
+ }
41792
+ if (this.message !== undefined) {
41793
+ b.write(this.message.write());
41794
+ }
41795
+ return deps_js_1.Buffer.from(b.buffer);
41796
+ }
41797
+ }
41798
+ Raw.InputInvoiceStarGiftAuctionBid = InputInvoiceStarGiftAuctionBid;
41469
41799
  class InputStorePaymentPremiumSubscription extends index_js_1.TLObject {
41470
41800
  restore;
41471
41801
  upgrade;
@@ -43958,6 +44288,7 @@ var Raw;
43958
44288
  Raw.StoryItemDeleted = StoryItemDeleted;
43959
44289
  class StoryItemSkipped extends index_js_1.TLObject {
43960
44290
  closeFriends;
44291
+ live;
43961
44292
  id;
43962
44293
  date;
43963
44294
  expireDate;
@@ -43967,8 +44298,9 @@ var Raw;
43967
44298
  this.className = 'StoryItemSkipped';
43968
44299
  this.constructorId = 0xffadc913;
43969
44300
  this.subclassOfId = 0xd477b133;
43970
- this._slots = ['closeFriends', 'id', 'date', 'expireDate'];
44301
+ this._slots = ['closeFriends', 'live', 'id', 'date', 'expireDate'];
43971
44302
  this.closeFriends = params.closeFriends;
44303
+ this.live = params.live;
43972
44304
  this.id = params.id;
43973
44305
  this.date = params.date;
43974
44306
  this.expireDate = params.expireDate;
@@ -43976,11 +44308,13 @@ var Raw;
43976
44308
  static async read(_data, ..._args) {
43977
44309
  let flags = await index_js_1.Primitive.Int.read(_data);
43978
44310
  let closeFriends = flags & (1 << 8) ? true : false;
44311
+ let live = flags & (1 << 9) ? true : false;
43979
44312
  let id = await index_js_1.Primitive.Int.read(_data);
43980
44313
  let date = await index_js_1.Primitive.Int.read(_data);
43981
44314
  let expireDate = await index_js_1.Primitive.Int.read(_data);
43982
44315
  return new Raw.StoryItemSkipped({
43983
44316
  closeFriends: closeFriends,
44317
+ live: live,
43984
44318
  id: id,
43985
44319
  date: date,
43986
44320
  expireDate: expireDate,
@@ -43991,6 +44325,7 @@ var Raw;
43991
44325
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
43992
44326
  let flags = 0;
43993
44327
  flags |= this.closeFriends ? 1 << 8 : 0;
44328
+ flags |= this.live ? 1 << 9 : 0;
43994
44329
  b.write(index_js_1.Primitive.Int.write(flags));
43995
44330
  if (this.id !== undefined) {
43996
44331
  b.write(index_js_1.Primitive.Int.write(this.id));
@@ -47901,6 +48236,8 @@ var Raw;
47901
48236
  postsSearch;
47902
48237
  stargiftPrepaidUpgrade;
47903
48238
  stargiftDropOriginalDetails;
48239
+ phonegroupMessage;
48240
+ stargiftAuctionBid;
47904
48241
  id;
47905
48242
  amount;
47906
48243
  date;
@@ -47942,6 +48279,8 @@ var Raw;
47942
48279
  'postsSearch',
47943
48280
  'stargiftPrepaidUpgrade',
47944
48281
  'stargiftDropOriginalDetails',
48282
+ 'phonegroupMessage',
48283
+ 'stargiftAuctionBid',
47945
48284
  'id',
47946
48285
  'amount',
47947
48286
  'date',
@@ -47977,6 +48316,8 @@ var Raw;
47977
48316
  this.postsSearch = params.postsSearch;
47978
48317
  this.stargiftPrepaidUpgrade = params.stargiftPrepaidUpgrade;
47979
48318
  this.stargiftDropOriginalDetails = params.stargiftDropOriginalDetails;
48319
+ this.phonegroupMessage = params.phonegroupMessage;
48320
+ this.stargiftAuctionBid = params.stargiftAuctionBid;
47980
48321
  this.id = params.id;
47981
48322
  this.amount = params.amount;
47982
48323
  this.date = params.date;
@@ -48014,6 +48355,8 @@ var Raw;
48014
48355
  let postsSearch = flags & (1 << 24) ? true : false;
48015
48356
  let stargiftPrepaidUpgrade = flags & (1 << 25) ? true : false;
48016
48357
  let stargiftDropOriginalDetails = flags & (1 << 26) ? true : false;
48358
+ let phonegroupMessage = flags & (1 << 27) ? true : false;
48359
+ let stargiftAuctionBid = flags & (1 << 28) ? true : false;
48017
48360
  let id = await index_js_1.Primitive.String.read(_data);
48018
48361
  let amount = await index_js_1.TLObject.read(_data);
48019
48362
  let date = await index_js_1.Primitive.Int.read(_data);
@@ -48049,6 +48392,8 @@ var Raw;
48049
48392
  postsSearch: postsSearch,
48050
48393
  stargiftPrepaidUpgrade: stargiftPrepaidUpgrade,
48051
48394
  stargiftDropOriginalDetails: stargiftDropOriginalDetails,
48395
+ phonegroupMessage: phonegroupMessage,
48396
+ stargiftAuctionBid: stargiftAuctionBid,
48052
48397
  id: id,
48053
48398
  amount: amount,
48054
48399
  date: date,
@@ -48089,6 +48434,8 @@ var Raw;
48089
48434
  flags |= this.postsSearch ? 1 << 24 : 0;
48090
48435
  flags |= this.stargiftPrepaidUpgrade ? 1 << 25 : 0;
48091
48436
  flags |= this.stargiftDropOriginalDetails ? 1 << 26 : 0;
48437
+ flags |= this.phonegroupMessage ? 1 << 27 : 0;
48438
+ flags |= this.stargiftAuctionBid ? 1 << 28 : 0;
48092
48439
  flags |= this.title !== undefined ? 1 << 0 : 0;
48093
48440
  flags |= this.description !== undefined ? 1 << 1 : 0;
48094
48441
  flags |= this.photo !== undefined ? 1 << 2 : 0;
@@ -48784,6 +49131,7 @@ var Raw;
48784
49131
  requirePremium;
48785
49132
  limitedPerUser;
48786
49133
  peerColorAvailable;
49134
+ auction;
48787
49135
  id;
48788
49136
  sticker;
48789
49137
  stars;
@@ -48800,11 +49148,13 @@ var Raw;
48800
49148
  perUserTotal;
48801
49149
  perUserRemains;
48802
49150
  lockedUntilDate;
49151
+ auctionSlug;
49152
+ giftsPerRound;
48803
49153
  constructor(params) {
48804
49154
  super();
48805
49155
  this.classType = 'types';
48806
49156
  this.className = 'StarGift';
48807
- this.constructorId = 0x80ac53c3;
49157
+ this.constructorId = 0x1b9a4d7f;
48808
49158
  this.subclassOfId = 0xc31c590b;
48809
49159
  this._slots = [
48810
49160
  'limited',
@@ -48813,6 +49163,7 @@ var Raw;
48813
49163
  'requirePremium',
48814
49164
  'limitedPerUser',
48815
49165
  'peerColorAvailable',
49166
+ 'auction',
48816
49167
  'id',
48817
49168
  'sticker',
48818
49169
  'stars',
@@ -48829,6 +49180,8 @@ var Raw;
48829
49180
  'perUserTotal',
48830
49181
  'perUserRemains',
48831
49182
  'lockedUntilDate',
49183
+ 'auctionSlug',
49184
+ 'giftsPerRound',
48832
49185
  ];
48833
49186
  this.limited = params.limited;
48834
49187
  this.soldOut = params.soldOut;
@@ -48836,6 +49189,7 @@ var Raw;
48836
49189
  this.requirePremium = params.requirePremium;
48837
49190
  this.limitedPerUser = params.limitedPerUser;
48838
49191
  this.peerColorAvailable = params.peerColorAvailable;
49192
+ this.auction = params.auction;
48839
49193
  this.id = params.id;
48840
49194
  this.sticker = params.sticker;
48841
49195
  this.stars = params.stars;
@@ -48852,6 +49206,8 @@ var Raw;
48852
49206
  this.perUserTotal = params.perUserTotal;
48853
49207
  this.perUserRemains = params.perUserRemains;
48854
49208
  this.lockedUntilDate = params.lockedUntilDate;
49209
+ this.auctionSlug = params.auctionSlug;
49210
+ this.giftsPerRound = params.giftsPerRound;
48855
49211
  }
48856
49212
  static async read(_data, ..._args) {
48857
49213
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -48861,6 +49217,7 @@ var Raw;
48861
49217
  let requirePremium = flags & (1 << 7) ? true : false;
48862
49218
  let limitedPerUser = flags & (1 << 8) ? true : false;
48863
49219
  let peerColorAvailable = flags & (1 << 10) ? true : false;
49220
+ let auction = flags & (1 << 11) ? true : false;
48864
49221
  let id = await index_js_1.Primitive.Long.read(_data);
48865
49222
  let sticker = await index_js_1.TLObject.read(_data);
48866
49223
  let stars = await index_js_1.Primitive.Long.read(_data);
@@ -48877,6 +49234,8 @@ var Raw;
48877
49234
  let perUserTotal = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48878
49235
  let perUserRemains = flags & (1 << 8) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48879
49236
  let lockedUntilDate = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49237
+ let auctionSlug = flags & (1 << 11) ? await index_js_1.Primitive.String.read(_data) : undefined;
49238
+ let giftsPerRound = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
48880
49239
  return new Raw.StarGift({
48881
49240
  limited: limited,
48882
49241
  soldOut: soldOut,
@@ -48884,6 +49243,7 @@ var Raw;
48884
49243
  requirePremium: requirePremium,
48885
49244
  limitedPerUser: limitedPerUser,
48886
49245
  peerColorAvailable: peerColorAvailable,
49246
+ auction: auction,
48887
49247
  id: id,
48888
49248
  sticker: sticker,
48889
49249
  stars: stars,
@@ -48900,6 +49260,8 @@ var Raw;
48900
49260
  perUserTotal: perUserTotal,
48901
49261
  perUserRemains: perUserRemains,
48902
49262
  lockedUntilDate: lockedUntilDate,
49263
+ auctionSlug: auctionSlug,
49264
+ giftsPerRound: giftsPerRound,
48903
49265
  });
48904
49266
  }
48905
49267
  write() {
@@ -48912,6 +49274,7 @@ var Raw;
48912
49274
  flags |= this.requirePremium ? 1 << 7 : 0;
48913
49275
  flags |= this.limitedPerUser ? 1 << 8 : 0;
48914
49276
  flags |= this.peerColorAvailable ? 1 << 10 : 0;
49277
+ flags |= this.auction ? 1 << 11 : 0;
48915
49278
  flags |= this.availabilityRemains !== undefined ? 1 << 0 : 0;
48916
49279
  flags |= this.availabilityTotal !== undefined ? 1 << 0 : 0;
48917
49280
  flags |= this.availabilityResale !== undefined ? 1 << 4 : 0;
@@ -48924,6 +49287,8 @@ var Raw;
48924
49287
  flags |= this.perUserTotal !== undefined ? 1 << 8 : 0;
48925
49288
  flags |= this.perUserRemains !== undefined ? 1 << 8 : 0;
48926
49289
  flags |= this.lockedUntilDate !== undefined ? 1 << 9 : 0;
49290
+ flags |= this.auctionSlug !== undefined ? 1 << 11 : 0;
49291
+ flags |= this.giftsPerRound !== undefined ? 1 << 11 : 0;
48927
49292
  b.write(index_js_1.Primitive.Int.write(flags));
48928
49293
  if (this.id !== undefined) {
48929
49294
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -48973,6 +49338,12 @@ var Raw;
48973
49338
  if (this.lockedUntilDate !== undefined) {
48974
49339
  b.write(index_js_1.Primitive.Int.write(this.lockedUntilDate));
48975
49340
  }
49341
+ if (this.auctionSlug !== undefined) {
49342
+ b.write(index_js_1.Primitive.String.write(this.auctionSlug));
49343
+ }
49344
+ if (this.giftsPerRound !== undefined) {
49345
+ b.write(index_js_1.Primitive.Int.write(this.giftsPerRound));
49346
+ }
48976
49347
  return deps_js_1.Buffer.from(b.buffer);
48977
49348
  }
48978
49349
  }
@@ -50386,6 +50757,7 @@ var Raw;
50386
50757
  disallowLimitedStargifts;
50387
50758
  disallowUniqueStargifts;
50388
50759
  disallowPremiumGifts;
50760
+ disallowStargiftsFromChannels;
50389
50761
  constructor(params) {
50390
50762
  super();
50391
50763
  this.classType = 'types';
@@ -50397,11 +50769,13 @@ var Raw;
50397
50769
  'disallowLimitedStargifts',
50398
50770
  'disallowUniqueStargifts',
50399
50771
  'disallowPremiumGifts',
50772
+ 'disallowStargiftsFromChannels',
50400
50773
  ];
50401
50774
  this.disallowUnlimitedStargifts = params.disallowUnlimitedStargifts;
50402
50775
  this.disallowLimitedStargifts = params.disallowLimitedStargifts;
50403
50776
  this.disallowUniqueStargifts = params.disallowUniqueStargifts;
50404
50777
  this.disallowPremiumGifts = params.disallowPremiumGifts;
50778
+ this.disallowStargiftsFromChannels = params.disallowStargiftsFromChannels;
50405
50779
  }
50406
50780
  static async read(_data, ..._args) {
50407
50781
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -50409,11 +50783,13 @@ var Raw;
50409
50783
  let disallowLimitedStargifts = flags & (1 << 1) ? true : false;
50410
50784
  let disallowUniqueStargifts = flags & (1 << 2) ? true : false;
50411
50785
  let disallowPremiumGifts = flags & (1 << 3) ? true : false;
50786
+ let disallowStargiftsFromChannels = flags & (1 << 4) ? true : false;
50412
50787
  return new Raw.DisallowedGiftsSettings({
50413
50788
  disallowUnlimitedStargifts: disallowUnlimitedStargifts,
50414
50789
  disallowLimitedStargifts: disallowLimitedStargifts,
50415
50790
  disallowUniqueStargifts: disallowUniqueStargifts,
50416
50791
  disallowPremiumGifts: disallowPremiumGifts,
50792
+ disallowStargiftsFromChannels: disallowStargiftsFromChannels,
50417
50793
  });
50418
50794
  }
50419
50795
  write() {
@@ -50424,6 +50800,7 @@ var Raw;
50424
50800
  flags |= this.disallowLimitedStargifts ? 1 << 1 : 0;
50425
50801
  flags |= this.disallowUniqueStargifts ? 1 << 2 : 0;
50426
50802
  flags |= this.disallowPremiumGifts ? 1 << 3 : 0;
50803
+ flags |= this.disallowStargiftsFromChannels ? 1 << 4 : 0;
50427
50804
  b.write(index_js_1.Primitive.Int.write(flags));
50428
50805
  return deps_js_1.Buffer.from(b.buffer);
50429
50806
  }
@@ -50722,7 +51099,7 @@ var Raw;
50722
51099
  super();
50723
51100
  this.classType = 'types';
50724
51101
  this.className = 'TodoCompletion';
50725
- this.constructorId = 0x4cc120b7;
51102
+ this.constructorId = 0x221bb5e4;
50726
51103
  this.subclassOfId = 0xbae65b7b;
50727
51104
  this._slots = ['id', 'completedBy', 'date'];
50728
51105
  this.id = params.id;
@@ -50731,7 +51108,7 @@ var Raw;
50731
51108
  }
50732
51109
  static async read(_data, ..._args) {
50733
51110
  let id = await index_js_1.Primitive.Int.read(_data);
50734
- let completedBy = await index_js_1.Primitive.Long.read(_data);
51111
+ let completedBy = await index_js_1.TLObject.read(_data);
50735
51112
  let date = await index_js_1.Primitive.Int.read(_data);
50736
51113
  return new Raw.TodoCompletion({ id: id, completedBy: completedBy, date: date });
50737
51114
  }
@@ -50742,7 +51119,7 @@ var Raw;
50742
51119
  b.write(index_js_1.Primitive.Int.write(this.id));
50743
51120
  }
50744
51121
  if (this.completedBy !== undefined) {
50745
- b.write(index_js_1.Primitive.Long.write(this.completedBy));
51122
+ b.write(this.completedBy.write());
50746
51123
  }
50747
51124
  if (this.date !== undefined) {
50748
51125
  b.write(index_js_1.Primitive.Int.write(this.date));
@@ -51273,6 +51650,586 @@ var Raw;
51273
51650
  }
51274
51651
  }
51275
51652
  Raw.StarGiftUpgradePrice = StarGiftUpgradePrice;
51653
+ class GroupCallMessage extends index_js_1.TLObject {
51654
+ fromAdmin;
51655
+ id;
51656
+ fromId;
51657
+ date;
51658
+ message;
51659
+ paidMessageStars;
51660
+ constructor(params) {
51661
+ super();
51662
+ this.classType = 'types';
51663
+ this.className = 'GroupCallMessage';
51664
+ this.constructorId = 0x1a8afc7e;
51665
+ this.subclassOfId = 0x60ce5a22;
51666
+ this._slots = ['fromAdmin', 'id', 'fromId', 'date', 'message', 'paidMessageStars'];
51667
+ this.fromAdmin = params.fromAdmin;
51668
+ this.id = params.id;
51669
+ this.fromId = params.fromId;
51670
+ this.date = params.date;
51671
+ this.message = params.message;
51672
+ this.paidMessageStars = params.paidMessageStars;
51673
+ }
51674
+ static async read(_data, ..._args) {
51675
+ let flags = await index_js_1.Primitive.Int.read(_data);
51676
+ let fromAdmin = flags & (1 << 1) ? true : false;
51677
+ let id = await index_js_1.Primitive.Int.read(_data);
51678
+ let fromId = await index_js_1.TLObject.read(_data);
51679
+ let date = await index_js_1.Primitive.Int.read(_data);
51680
+ let message = await index_js_1.TLObject.read(_data);
51681
+ let paidMessageStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
51682
+ return new Raw.GroupCallMessage({
51683
+ fromAdmin: fromAdmin,
51684
+ id: id,
51685
+ fromId: fromId,
51686
+ date: date,
51687
+ message: message,
51688
+ paidMessageStars: paidMessageStars,
51689
+ });
51690
+ }
51691
+ write() {
51692
+ const b = new deps_js_1.BytesIO();
51693
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51694
+ let flags = 0;
51695
+ flags |= this.fromAdmin ? 1 << 1 : 0;
51696
+ flags |= this.paidMessageStars !== undefined ? 1 << 0 : 0;
51697
+ b.write(index_js_1.Primitive.Int.write(flags));
51698
+ if (this.id !== undefined) {
51699
+ b.write(index_js_1.Primitive.Int.write(this.id));
51700
+ }
51701
+ if (this.fromId !== undefined) {
51702
+ b.write(this.fromId.write());
51703
+ }
51704
+ if (this.date !== undefined) {
51705
+ b.write(index_js_1.Primitive.Int.write(this.date));
51706
+ }
51707
+ if (this.message !== undefined) {
51708
+ b.write(this.message.write());
51709
+ }
51710
+ if (this.paidMessageStars !== undefined) {
51711
+ b.write(index_js_1.Primitive.Long.write(this.paidMessageStars));
51712
+ }
51713
+ return deps_js_1.Buffer.from(b.buffer);
51714
+ }
51715
+ }
51716
+ Raw.GroupCallMessage = GroupCallMessage;
51717
+ class GroupCallDonor extends index_js_1.TLObject {
51718
+ top;
51719
+ my;
51720
+ anonymous;
51721
+ peerId;
51722
+ stars;
51723
+ constructor(params) {
51724
+ super();
51725
+ this.classType = 'types';
51726
+ this.className = 'GroupCallDonor';
51727
+ this.constructorId = 0xee430c85;
51728
+ this.subclassOfId = 0x14f28bb0;
51729
+ this._slots = ['top', 'my', 'anonymous', 'peerId', 'stars'];
51730
+ this.top = params.top;
51731
+ this.my = params.my;
51732
+ this.anonymous = params.anonymous;
51733
+ this.peerId = params.peerId;
51734
+ this.stars = params.stars;
51735
+ }
51736
+ static async read(_data, ..._args) {
51737
+ let flags = await index_js_1.Primitive.Int.read(_data);
51738
+ let top = flags & (1 << 0) ? true : false;
51739
+ let my = flags & (1 << 1) ? true : false;
51740
+ let anonymous = flags & (1 << 2) ? true : false;
51741
+ let peerId = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
51742
+ let stars = await index_js_1.Primitive.Long.read(_data);
51743
+ return new Raw.GroupCallDonor({
51744
+ top: top,
51745
+ my: my,
51746
+ anonymous: anonymous,
51747
+ peerId: peerId,
51748
+ stars: stars,
51749
+ });
51750
+ }
51751
+ write() {
51752
+ const b = new deps_js_1.BytesIO();
51753
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51754
+ let flags = 0;
51755
+ flags |= this.top ? 1 << 0 : 0;
51756
+ flags |= this.my ? 1 << 1 : 0;
51757
+ flags |= this.anonymous ? 1 << 2 : 0;
51758
+ flags |= this.peerId !== undefined ? 1 << 3 : 0;
51759
+ b.write(index_js_1.Primitive.Int.write(flags));
51760
+ if (this.peerId !== undefined) {
51761
+ b.write(this.peerId.write());
51762
+ }
51763
+ if (this.stars !== undefined) {
51764
+ b.write(index_js_1.Primitive.Long.write(this.stars));
51765
+ }
51766
+ return deps_js_1.Buffer.from(b.buffer);
51767
+ }
51768
+ }
51769
+ Raw.GroupCallDonor = GroupCallDonor;
51770
+ class RecentStory extends index_js_1.TLObject {
51771
+ live;
51772
+ maxId;
51773
+ constructor(params) {
51774
+ super();
51775
+ this.classType = 'types';
51776
+ this.className = 'RecentStory';
51777
+ this.constructorId = 0x711d692d;
51778
+ this.subclassOfId = 0x26f1adcd;
51779
+ this._slots = ['live', 'maxId'];
51780
+ this.live = params.live;
51781
+ this.maxId = params.maxId;
51782
+ }
51783
+ static async read(_data, ..._args) {
51784
+ let flags = await index_js_1.Primitive.Int.read(_data);
51785
+ let live = flags & (1 << 0) ? true : false;
51786
+ let maxId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
51787
+ return new Raw.RecentStory({ live: live, maxId: maxId });
51788
+ }
51789
+ write() {
51790
+ const b = new deps_js_1.BytesIO();
51791
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51792
+ let flags = 0;
51793
+ flags |= this.live ? 1 << 0 : 0;
51794
+ flags |= this.maxId !== undefined ? 1 << 1 : 0;
51795
+ b.write(index_js_1.Primitive.Int.write(flags));
51796
+ if (this.maxId !== undefined) {
51797
+ b.write(index_js_1.Primitive.Int.write(this.maxId));
51798
+ }
51799
+ return deps_js_1.Buffer.from(b.buffer);
51800
+ }
51801
+ }
51802
+ Raw.RecentStory = RecentStory;
51803
+ class AuctionBidLevel extends index_js_1.TLObject {
51804
+ pos;
51805
+ amount;
51806
+ date;
51807
+ constructor(params) {
51808
+ super();
51809
+ this.classType = 'types';
51810
+ this.className = 'AuctionBidLevel';
51811
+ this.constructorId = 0x310240cc;
51812
+ this.subclassOfId = 0xba444ad7;
51813
+ this._slots = ['pos', 'amount', 'date'];
51814
+ this.pos = params.pos;
51815
+ this.amount = params.amount;
51816
+ this.date = params.date;
51817
+ }
51818
+ static async read(_data, ..._args) {
51819
+ let pos = await index_js_1.Primitive.Int.read(_data);
51820
+ let amount = await index_js_1.Primitive.Long.read(_data);
51821
+ let date = await index_js_1.Primitive.Int.read(_data);
51822
+ return new Raw.AuctionBidLevel({ pos: pos, amount: amount, date: date });
51823
+ }
51824
+ write() {
51825
+ const b = new deps_js_1.BytesIO();
51826
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51827
+ if (this.pos !== undefined) {
51828
+ b.write(index_js_1.Primitive.Int.write(this.pos));
51829
+ }
51830
+ if (this.amount !== undefined) {
51831
+ b.write(index_js_1.Primitive.Long.write(this.amount));
51832
+ }
51833
+ if (this.date !== undefined) {
51834
+ b.write(index_js_1.Primitive.Int.write(this.date));
51835
+ }
51836
+ return deps_js_1.Buffer.from(b.buffer);
51837
+ }
51838
+ }
51839
+ Raw.AuctionBidLevel = AuctionBidLevel;
51840
+ class StarGiftAuctionStateNotModified extends index_js_1.TLObject {
51841
+ constructor() {
51842
+ super();
51843
+ this.classType = 'types';
51844
+ this.className = 'StarGiftAuctionStateNotModified';
51845
+ this.constructorId = 0xfe333952;
51846
+ this.subclassOfId = 0x229414fb;
51847
+ this._slots = [];
51848
+ }
51849
+ static async read(_data, ..._args) {
51850
+ return new Raw.StarGiftAuctionStateNotModified();
51851
+ }
51852
+ write() {
51853
+ const b = new deps_js_1.BytesIO();
51854
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51855
+ return deps_js_1.Buffer.from(b.buffer);
51856
+ }
51857
+ }
51858
+ Raw.StarGiftAuctionStateNotModified = StarGiftAuctionStateNotModified;
51859
+ class StarGiftAuctionState extends index_js_1.TLObject {
51860
+ version;
51861
+ startDate;
51862
+ endDate;
51863
+ minBidAmount;
51864
+ bidLevels;
51865
+ topBidders;
51866
+ nextRoundAt;
51867
+ giftsLeft;
51868
+ currentRound;
51869
+ totalRounds;
51870
+ constructor(params) {
51871
+ super();
51872
+ this.classType = 'types';
51873
+ this.className = 'StarGiftAuctionState';
51874
+ this.constructorId = 0x5db04f4b;
51875
+ this.subclassOfId = 0x229414fb;
51876
+ this._slots = [
51877
+ 'version',
51878
+ 'startDate',
51879
+ 'endDate',
51880
+ 'minBidAmount',
51881
+ 'bidLevels',
51882
+ 'topBidders',
51883
+ 'nextRoundAt',
51884
+ 'giftsLeft',
51885
+ 'currentRound',
51886
+ 'totalRounds',
51887
+ ];
51888
+ this.version = params.version;
51889
+ this.startDate = params.startDate;
51890
+ this.endDate = params.endDate;
51891
+ this.minBidAmount = params.minBidAmount;
51892
+ this.bidLevels = params.bidLevels;
51893
+ this.topBidders = params.topBidders;
51894
+ this.nextRoundAt = params.nextRoundAt;
51895
+ this.giftsLeft = params.giftsLeft;
51896
+ this.currentRound = params.currentRound;
51897
+ this.totalRounds = params.totalRounds;
51898
+ }
51899
+ static async read(_data, ..._args) {
51900
+ let version = await index_js_1.Primitive.Int.read(_data);
51901
+ let startDate = await index_js_1.Primitive.Int.read(_data);
51902
+ let endDate = await index_js_1.Primitive.Int.read(_data);
51903
+ let minBidAmount = await index_js_1.Primitive.Long.read(_data);
51904
+ let bidLevels = await index_js_1.TLObject.read(_data);
51905
+ let topBidders = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Long);
51906
+ let nextRoundAt = await index_js_1.Primitive.Int.read(_data);
51907
+ let giftsLeft = await index_js_1.Primitive.Int.read(_data);
51908
+ let currentRound = await index_js_1.Primitive.Int.read(_data);
51909
+ let totalRounds = await index_js_1.Primitive.Int.read(_data);
51910
+ return new Raw.StarGiftAuctionState({
51911
+ version: version,
51912
+ startDate: startDate,
51913
+ endDate: endDate,
51914
+ minBidAmount: minBidAmount,
51915
+ bidLevels: bidLevels,
51916
+ topBidders: topBidders,
51917
+ nextRoundAt: nextRoundAt,
51918
+ giftsLeft: giftsLeft,
51919
+ currentRound: currentRound,
51920
+ totalRounds: totalRounds,
51921
+ });
51922
+ }
51923
+ write() {
51924
+ const b = new deps_js_1.BytesIO();
51925
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51926
+ if (this.version !== undefined) {
51927
+ b.write(index_js_1.Primitive.Int.write(this.version));
51928
+ }
51929
+ if (this.startDate !== undefined) {
51930
+ b.write(index_js_1.Primitive.Int.write(this.startDate));
51931
+ }
51932
+ if (this.endDate !== undefined) {
51933
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
51934
+ }
51935
+ if (this.minBidAmount !== undefined) {
51936
+ b.write(index_js_1.Primitive.Long.write(this.minBidAmount));
51937
+ }
51938
+ if (this.bidLevels) {
51939
+ b.write(index_js_1.Primitive.Vector.write(this.bidLevels));
51940
+ }
51941
+ if (this.topBidders) {
51942
+ b.write(index_js_1.Primitive.Vector.write(this.topBidders, index_js_1.Primitive.Long));
51943
+ }
51944
+ if (this.nextRoundAt !== undefined) {
51945
+ b.write(index_js_1.Primitive.Int.write(this.nextRoundAt));
51946
+ }
51947
+ if (this.giftsLeft !== undefined) {
51948
+ b.write(index_js_1.Primitive.Int.write(this.giftsLeft));
51949
+ }
51950
+ if (this.currentRound !== undefined) {
51951
+ b.write(index_js_1.Primitive.Int.write(this.currentRound));
51952
+ }
51953
+ if (this.totalRounds !== undefined) {
51954
+ b.write(index_js_1.Primitive.Int.write(this.totalRounds));
51955
+ }
51956
+ return deps_js_1.Buffer.from(b.buffer);
51957
+ }
51958
+ }
51959
+ Raw.StarGiftAuctionState = StarGiftAuctionState;
51960
+ class StarGiftAuctionStateFinished extends index_js_1.TLObject {
51961
+ startDate;
51962
+ endDate;
51963
+ averagePrice;
51964
+ constructor(params) {
51965
+ super();
51966
+ this.classType = 'types';
51967
+ this.className = 'StarGiftAuctionStateFinished';
51968
+ this.constructorId = 0x7d967c3a;
51969
+ this.subclassOfId = 0x229414fb;
51970
+ this._slots = ['startDate', 'endDate', 'averagePrice'];
51971
+ this.startDate = params.startDate;
51972
+ this.endDate = params.endDate;
51973
+ this.averagePrice = params.averagePrice;
51974
+ }
51975
+ static async read(_data, ..._args) {
51976
+ let startDate = await index_js_1.Primitive.Int.read(_data);
51977
+ let endDate = await index_js_1.Primitive.Int.read(_data);
51978
+ let averagePrice = await index_js_1.Primitive.Long.read(_data);
51979
+ return new Raw.StarGiftAuctionStateFinished({
51980
+ startDate: startDate,
51981
+ endDate: endDate,
51982
+ averagePrice: averagePrice,
51983
+ });
51984
+ }
51985
+ write() {
51986
+ const b = new deps_js_1.BytesIO();
51987
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51988
+ if (this.startDate !== undefined) {
51989
+ b.write(index_js_1.Primitive.Int.write(this.startDate));
51990
+ }
51991
+ if (this.endDate !== undefined) {
51992
+ b.write(index_js_1.Primitive.Int.write(this.endDate));
51993
+ }
51994
+ if (this.averagePrice !== undefined) {
51995
+ b.write(index_js_1.Primitive.Long.write(this.averagePrice));
51996
+ }
51997
+ return deps_js_1.Buffer.from(b.buffer);
51998
+ }
51999
+ }
52000
+ Raw.StarGiftAuctionStateFinished = StarGiftAuctionStateFinished;
52001
+ class StarGiftAuctionUserState extends index_js_1.TLObject {
52002
+ returned;
52003
+ bidAmount;
52004
+ bidDate;
52005
+ minBidAmount;
52006
+ bidPeer;
52007
+ acquiredCount;
52008
+ constructor(params) {
52009
+ super();
52010
+ this.classType = 'types';
52011
+ this.className = 'StarGiftAuctionUserState';
52012
+ this.constructorId = 0x2eeed1c4;
52013
+ this.subclassOfId = 0x52a0eae;
52014
+ this._slots = [
52015
+ 'returned',
52016
+ 'bidAmount',
52017
+ 'bidDate',
52018
+ 'minBidAmount',
52019
+ 'bidPeer',
52020
+ 'acquiredCount',
52021
+ ];
52022
+ this.returned = params.returned;
52023
+ this.bidAmount = params.bidAmount;
52024
+ this.bidDate = params.bidDate;
52025
+ this.minBidAmount = params.minBidAmount;
52026
+ this.bidPeer = params.bidPeer;
52027
+ this.acquiredCount = params.acquiredCount;
52028
+ }
52029
+ static async read(_data, ..._args) {
52030
+ let flags = await index_js_1.Primitive.Int.read(_data);
52031
+ let returned = flags & (1 << 1) ? true : false;
52032
+ let bidAmount = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52033
+ let bidDate = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52034
+ let minBidAmount = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52035
+ let bidPeer = flags & (1 << 0) ? await index_js_1.TLObject.read(_data) : undefined;
52036
+ let acquiredCount = await index_js_1.Primitive.Int.read(_data);
52037
+ return new Raw.StarGiftAuctionUserState({
52038
+ returned: returned,
52039
+ bidAmount: bidAmount,
52040
+ bidDate: bidDate,
52041
+ minBidAmount: minBidAmount,
52042
+ bidPeer: bidPeer,
52043
+ acquiredCount: acquiredCount,
52044
+ });
52045
+ }
52046
+ write() {
52047
+ const b = new deps_js_1.BytesIO();
52048
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52049
+ let flags = 0;
52050
+ flags |= this.returned ? 1 << 1 : 0;
52051
+ flags |= this.bidAmount !== undefined ? 1 << 0 : 0;
52052
+ flags |= this.bidDate !== undefined ? 1 << 0 : 0;
52053
+ flags |= this.minBidAmount !== undefined ? 1 << 0 : 0;
52054
+ flags |= this.bidPeer !== undefined ? 1 << 0 : 0;
52055
+ b.write(index_js_1.Primitive.Int.write(flags));
52056
+ if (this.bidAmount !== undefined) {
52057
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
52058
+ }
52059
+ if (this.bidDate !== undefined) {
52060
+ b.write(index_js_1.Primitive.Int.write(this.bidDate));
52061
+ }
52062
+ if (this.minBidAmount !== undefined) {
52063
+ b.write(index_js_1.Primitive.Long.write(this.minBidAmount));
52064
+ }
52065
+ if (this.bidPeer !== undefined) {
52066
+ b.write(this.bidPeer.write());
52067
+ }
52068
+ if (this.acquiredCount !== undefined) {
52069
+ b.write(index_js_1.Primitive.Int.write(this.acquiredCount));
52070
+ }
52071
+ return deps_js_1.Buffer.from(b.buffer);
52072
+ }
52073
+ }
52074
+ Raw.StarGiftAuctionUserState = StarGiftAuctionUserState;
52075
+ class StarGiftAuctionAcquiredGift extends index_js_1.TLObject {
52076
+ nameHidden;
52077
+ peer;
52078
+ date;
52079
+ bidAmount;
52080
+ round;
52081
+ pos;
52082
+ message;
52083
+ constructor(params) {
52084
+ super();
52085
+ this.classType = 'types';
52086
+ this.className = 'StarGiftAuctionAcquiredGift';
52087
+ this.constructorId = 0xab60e20b;
52088
+ this.subclassOfId = 0x270d5233;
52089
+ this._slots = ['nameHidden', 'peer', 'date', 'bidAmount', 'round', 'pos', 'message'];
52090
+ this.nameHidden = params.nameHidden;
52091
+ this.peer = params.peer;
52092
+ this.date = params.date;
52093
+ this.bidAmount = params.bidAmount;
52094
+ this.round = params.round;
52095
+ this.pos = params.pos;
52096
+ this.message = params.message;
52097
+ }
52098
+ static async read(_data, ..._args) {
52099
+ let flags = await index_js_1.Primitive.Int.read(_data);
52100
+ let nameHidden = flags & (1 << 0) ? true : false;
52101
+ let peer = await index_js_1.TLObject.read(_data);
52102
+ let date = await index_js_1.Primitive.Int.read(_data);
52103
+ let bidAmount = await index_js_1.Primitive.Long.read(_data);
52104
+ let round = await index_js_1.Primitive.Int.read(_data);
52105
+ let pos = await index_js_1.Primitive.Int.read(_data);
52106
+ let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
52107
+ return new Raw.StarGiftAuctionAcquiredGift({
52108
+ nameHidden: nameHidden,
52109
+ peer: peer,
52110
+ date: date,
52111
+ bidAmount: bidAmount,
52112
+ round: round,
52113
+ pos: pos,
52114
+ message: message,
52115
+ });
52116
+ }
52117
+ write() {
52118
+ const b = new deps_js_1.BytesIO();
52119
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52120
+ let flags = 0;
52121
+ flags |= this.nameHidden ? 1 << 0 : 0;
52122
+ flags |= this.message !== undefined ? 1 << 1 : 0;
52123
+ b.write(index_js_1.Primitive.Int.write(flags));
52124
+ if (this.peer !== undefined) {
52125
+ b.write(this.peer.write());
52126
+ }
52127
+ if (this.date !== undefined) {
52128
+ b.write(index_js_1.Primitive.Int.write(this.date));
52129
+ }
52130
+ if (this.bidAmount !== undefined) {
52131
+ b.write(index_js_1.Primitive.Long.write(this.bidAmount));
52132
+ }
52133
+ if (this.round !== undefined) {
52134
+ b.write(index_js_1.Primitive.Int.write(this.round));
52135
+ }
52136
+ if (this.pos !== undefined) {
52137
+ b.write(index_js_1.Primitive.Int.write(this.pos));
52138
+ }
52139
+ if (this.message !== undefined) {
52140
+ b.write(this.message.write());
52141
+ }
52142
+ return deps_js_1.Buffer.from(b.buffer);
52143
+ }
52144
+ }
52145
+ Raw.StarGiftAuctionAcquiredGift = StarGiftAuctionAcquiredGift;
52146
+ class StarGiftActiveAuctionState extends index_js_1.TLObject {
52147
+ gift;
52148
+ state;
52149
+ userState;
52150
+ constructor(params) {
52151
+ super();
52152
+ this.classType = 'types';
52153
+ this.className = 'StarGiftActiveAuctionState';
52154
+ this.constructorId = 0xd31bc45d;
52155
+ this.subclassOfId = 0xb95bf5e9;
52156
+ this._slots = ['gift', 'state', 'userState'];
52157
+ this.gift = params.gift;
52158
+ this.state = params.state;
52159
+ this.userState = params.userState;
52160
+ }
52161
+ static async read(_data, ..._args) {
52162
+ let gift = await index_js_1.TLObject.read(_data);
52163
+ let state = await index_js_1.TLObject.read(_data);
52164
+ let userState = await index_js_1.TLObject.read(_data);
52165
+ return new Raw.StarGiftActiveAuctionState({ gift: gift, state: state, userState: userState });
52166
+ }
52167
+ write() {
52168
+ const b = new deps_js_1.BytesIO();
52169
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52170
+ if (this.gift !== undefined) {
52171
+ b.write(this.gift.write());
52172
+ }
52173
+ if (this.state !== undefined) {
52174
+ b.write(this.state.write());
52175
+ }
52176
+ if (this.userState !== undefined) {
52177
+ b.write(this.userState.write());
52178
+ }
52179
+ return deps_js_1.Buffer.from(b.buffer);
52180
+ }
52181
+ }
52182
+ Raw.StarGiftActiveAuctionState = StarGiftActiveAuctionState;
52183
+ class InputStarGiftAuction extends index_js_1.TLObject {
52184
+ giftId;
52185
+ constructor(params) {
52186
+ super();
52187
+ this.classType = 'types';
52188
+ this.className = 'InputStarGiftAuction';
52189
+ this.constructorId = 0x2e16c98;
52190
+ this.subclassOfId = 0x41a1eaaa;
52191
+ this._slots = ['giftId'];
52192
+ this.giftId = params.giftId;
52193
+ }
52194
+ static async read(_data, ..._args) {
52195
+ let giftId = await index_js_1.Primitive.Long.read(_data);
52196
+ return new Raw.InputStarGiftAuction({ giftId: giftId });
52197
+ }
52198
+ write() {
52199
+ const b = new deps_js_1.BytesIO();
52200
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52201
+ if (this.giftId !== undefined) {
52202
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
52203
+ }
52204
+ return deps_js_1.Buffer.from(b.buffer);
52205
+ }
52206
+ }
52207
+ Raw.InputStarGiftAuction = InputStarGiftAuction;
52208
+ class InputStarGiftAuctionSlug extends index_js_1.TLObject {
52209
+ slug;
52210
+ constructor(params) {
52211
+ super();
52212
+ this.classType = 'types';
52213
+ this.className = 'InputStarGiftAuctionSlug';
52214
+ this.constructorId = 0x7ab58308;
52215
+ this.subclassOfId = 0x41a1eaaa;
52216
+ this._slots = ['slug'];
52217
+ this.slug = params.slug;
52218
+ }
52219
+ static async read(_data, ..._args) {
52220
+ let slug = await index_js_1.Primitive.String.read(_data);
52221
+ return new Raw.InputStarGiftAuctionSlug({ slug: slug });
52222
+ }
52223
+ write() {
52224
+ const b = new deps_js_1.BytesIO();
52225
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52226
+ if (this.slug !== undefined) {
52227
+ b.write(index_js_1.Primitive.String.write(this.slug));
52228
+ }
52229
+ return deps_js_1.Buffer.from(b.buffer);
52230
+ }
52231
+ }
52232
+ Raw.InputStarGiftAuctionSlug = InputStarGiftAuctionSlug;
51276
52233
  class InvokeAfterMsg extends index_js_1.TLObject {
51277
52234
  __response__;
51278
52235
  msgId;
@@ -63176,6 +64133,7 @@ var Raw;
63176
64133
  replyMarkup;
63177
64134
  entities;
63178
64135
  scheduleDate;
64136
+ scheduleRepeatPeriod;
63179
64137
  sendAs;
63180
64138
  quickReplyShortcut;
63181
64139
  effect;
@@ -63185,7 +64143,7 @@ var Raw;
63185
64143
  super();
63186
64144
  this.classType = 'functions';
63187
64145
  this.className = 'messages.SendMessage';
63188
- this.constructorId = 0xfe05dc9a;
64146
+ this.constructorId = 0x545cd15a;
63189
64147
  this.subclassOfId = 0x8af52aac;
63190
64148
  this._slots = [
63191
64149
  'noWebpage',
@@ -63203,6 +64161,7 @@ var Raw;
63203
64161
  'replyMarkup',
63204
64162
  'entities',
63205
64163
  'scheduleDate',
64164
+ 'scheduleRepeatPeriod',
63206
64165
  'sendAs',
63207
64166
  'quickReplyShortcut',
63208
64167
  'effect',
@@ -63224,6 +64183,7 @@ var Raw;
63224
64183
  this.replyMarkup = params.replyMarkup;
63225
64184
  this.entities = params.entities;
63226
64185
  this.scheduleDate = params.scheduleDate;
64186
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63227
64187
  this.sendAs = params.sendAs;
63228
64188
  this.quickReplyShortcut = params.quickReplyShortcut;
63229
64189
  this.effect = params.effect;
@@ -63247,6 +64207,7 @@ var Raw;
63247
64207
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
63248
64208
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
63249
64209
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64210
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63250
64211
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63251
64212
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
63252
64213
  let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -63268,6 +64229,7 @@ var Raw;
63268
64229
  replyMarkup: replyMarkup,
63269
64230
  entities: entities,
63270
64231
  scheduleDate: scheduleDate,
64232
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63271
64233
  sendAs: sendAs,
63272
64234
  quickReplyShortcut: quickReplyShortcut,
63273
64235
  effect: effect,
@@ -63291,6 +64253,7 @@ var Raw;
63291
64253
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
63292
64254
  flags |= this.entities ? 1 << 3 : 0;
63293
64255
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
64256
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63294
64257
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63295
64258
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
63296
64259
  flags |= this.effect !== undefined ? 1 << 18 : 0;
@@ -63318,6 +64281,9 @@ var Raw;
63318
64281
  if (this.scheduleDate !== undefined) {
63319
64282
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63320
64283
  }
64284
+ if (this.scheduleRepeatPeriod !== undefined) {
64285
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
64286
+ }
63321
64287
  if (this.sendAs !== undefined) {
63322
64288
  b.write(this.sendAs.write());
63323
64289
  }
@@ -63354,6 +64320,7 @@ var Raw;
63354
64320
  replyMarkup;
63355
64321
  entities;
63356
64322
  scheduleDate;
64323
+ scheduleRepeatPeriod;
63357
64324
  sendAs;
63358
64325
  quickReplyShortcut;
63359
64326
  effect;
@@ -63363,7 +64330,7 @@ var Raw;
63363
64330
  super();
63364
64331
  this.classType = 'functions';
63365
64332
  this.className = 'messages.SendMedia';
63366
- this.constructorId = 0xac55d9c1;
64333
+ this.constructorId = 0x330e77f;
63367
64334
  this.subclassOfId = 0x8af52aac;
63368
64335
  this._slots = [
63369
64336
  'silent',
@@ -63381,6 +64348,7 @@ var Raw;
63381
64348
  'replyMarkup',
63382
64349
  'entities',
63383
64350
  'scheduleDate',
64351
+ 'scheduleRepeatPeriod',
63384
64352
  'sendAs',
63385
64353
  'quickReplyShortcut',
63386
64354
  'effect',
@@ -63402,6 +64370,7 @@ var Raw;
63402
64370
  this.replyMarkup = params.replyMarkup;
63403
64371
  this.entities = params.entities;
63404
64372
  this.scheduleDate = params.scheduleDate;
64373
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63405
64374
  this.sendAs = params.sendAs;
63406
64375
  this.quickReplyShortcut = params.quickReplyShortcut;
63407
64376
  this.effect = params.effect;
@@ -63425,6 +64394,7 @@ var Raw;
63425
64394
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
63426
64395
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
63427
64396
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64397
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63428
64398
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63429
64399
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
63430
64400
  let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -63446,6 +64416,7 @@ var Raw;
63446
64416
  replyMarkup: replyMarkup,
63447
64417
  entities: entities,
63448
64418
  scheduleDate: scheduleDate,
64419
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63449
64420
  sendAs: sendAs,
63450
64421
  quickReplyShortcut: quickReplyShortcut,
63451
64422
  effect: effect,
@@ -63468,6 +64439,7 @@ var Raw;
63468
64439
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
63469
64440
  flags |= this.entities ? 1 << 3 : 0;
63470
64441
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
64442
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63471
64443
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63472
64444
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
63473
64445
  flags |= this.effect !== undefined ? 1 << 18 : 0;
@@ -63498,6 +64470,9 @@ var Raw;
63498
64470
  if (this.scheduleDate !== undefined) {
63499
64471
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63500
64472
  }
64473
+ if (this.scheduleRepeatPeriod !== undefined) {
64474
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
64475
+ }
63501
64476
  if (this.sendAs !== undefined) {
63502
64477
  b.write(this.sendAs.write());
63503
64478
  }
@@ -63533,6 +64508,7 @@ var Raw;
63533
64508
  topMsgId;
63534
64509
  replyTo;
63535
64510
  scheduleDate;
64511
+ scheduleRepeatPeriod;
63536
64512
  sendAs;
63537
64513
  quickReplyShortcut;
63538
64514
  videoTimestamp;
@@ -63542,7 +64518,7 @@ var Raw;
63542
64518
  super();
63543
64519
  this.classType = 'functions';
63544
64520
  this.className = 'messages.ForwardMessages';
63545
- this.constructorId = 0x978928ca;
64521
+ this.constructorId = 0x41d41ade;
63546
64522
  this.subclassOfId = 0x8af52aac;
63547
64523
  this._slots = [
63548
64524
  'silent',
@@ -63559,6 +64535,7 @@ var Raw;
63559
64535
  'topMsgId',
63560
64536
  'replyTo',
63561
64537
  'scheduleDate',
64538
+ 'scheduleRepeatPeriod',
63562
64539
  'sendAs',
63563
64540
  'quickReplyShortcut',
63564
64541
  'videoTimestamp',
@@ -63579,6 +64556,7 @@ var Raw;
63579
64556
  this.topMsgId = params.topMsgId;
63580
64557
  this.replyTo = params.replyTo;
63581
64558
  this.scheduleDate = params.scheduleDate;
64559
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
63582
64560
  this.sendAs = params.sendAs;
63583
64561
  this.quickReplyShortcut = params.quickReplyShortcut;
63584
64562
  this.videoTimestamp = params.videoTimestamp;
@@ -63601,6 +64579,7 @@ var Raw;
63601
64579
  let topMsgId = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63602
64580
  let replyTo = flags & (1 << 22) ? await index_js_1.TLObject.read(_data) : undefined;
63603
64581
  let scheduleDate = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64582
+ let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
63604
64583
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
63605
64584
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
63606
64585
  let videoTimestamp = flags & (1 << 20) ? await index_js_1.Primitive.Int.read(_data) : undefined;
@@ -63621,6 +64600,7 @@ var Raw;
63621
64600
  topMsgId: topMsgId,
63622
64601
  replyTo: replyTo,
63623
64602
  scheduleDate: scheduleDate,
64603
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
63624
64604
  sendAs: sendAs,
63625
64605
  quickReplyShortcut: quickReplyShortcut,
63626
64606
  videoTimestamp: videoTimestamp,
@@ -63642,6 +64622,7 @@ var Raw;
63642
64622
  flags |= this.topMsgId !== undefined ? 1 << 9 : 0;
63643
64623
  flags |= this.replyTo !== undefined ? 1 << 22 : 0;
63644
64624
  flags |= this.scheduleDate !== undefined ? 1 << 10 : 0;
64625
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
63645
64626
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
63646
64627
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
63647
64628
  flags |= this.videoTimestamp !== undefined ? 1 << 20 : 0;
@@ -63669,6 +64650,9 @@ var Raw;
63669
64650
  if (this.scheduleDate !== undefined) {
63670
64651
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
63671
64652
  }
64653
+ if (this.scheduleRepeatPeriod !== undefined) {
64654
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
64655
+ }
63672
64656
  if (this.sendAs !== undefined) {
63673
64657
  b.write(this.sendAs.write());
63674
64658
  }
@@ -65497,12 +66481,13 @@ var Raw;
65497
66481
  replyMarkup;
65498
66482
  entities;
65499
66483
  scheduleDate;
66484
+ scheduleRepeatPeriod;
65500
66485
  quickReplyShortcutId;
65501
66486
  constructor(params) {
65502
66487
  super();
65503
66488
  this.classType = 'functions';
65504
66489
  this.className = 'messages.EditMessage';
65505
- this.constructorId = 0xdfd14005;
66490
+ this.constructorId = 0x51e842e1;
65506
66491
  this.subclassOfId = 0x8af52aac;
65507
66492
  this._slots = [
65508
66493
  'noWebpage',
@@ -65514,6 +66499,7 @@ var Raw;
65514
66499
  'replyMarkup',
65515
66500
  'entities',
65516
66501
  'scheduleDate',
66502
+ 'scheduleRepeatPeriod',
65517
66503
  'quickReplyShortcutId',
65518
66504
  ];
65519
66505
  this.noWebpage = params.noWebpage;
@@ -65525,6 +66511,7 @@ var Raw;
65525
66511
  this.replyMarkup = params.replyMarkup;
65526
66512
  this.entities = params.entities;
65527
66513
  this.scheduleDate = params.scheduleDate;
66514
+ this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
65528
66515
  this.quickReplyShortcutId = params.quickReplyShortcutId;
65529
66516
  }
65530
66517
  static async read(_data, ..._args) {
@@ -65538,6 +66525,7 @@ var Raw;
65538
66525
  let replyMarkup = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
65539
66526
  let entities = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : [];
65540
66527
  let scheduleDate = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
66528
+ let scheduleRepeatPeriod = flags & (1 << 18) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65541
66529
  let quickReplyShortcutId = flags & (1 << 17) ? await index_js_1.Primitive.Int.read(_data) : undefined;
65542
66530
  return new Raw.messages.EditMessage({
65543
66531
  noWebpage: noWebpage,
@@ -65549,6 +66537,7 @@ var Raw;
65549
66537
  replyMarkup: replyMarkup,
65550
66538
  entities: entities,
65551
66539
  scheduleDate: scheduleDate,
66540
+ scheduleRepeatPeriod: scheduleRepeatPeriod,
65552
66541
  quickReplyShortcutId: quickReplyShortcutId,
65553
66542
  });
65554
66543
  }
@@ -65563,6 +66552,7 @@ var Raw;
65563
66552
  flags |= this.replyMarkup !== undefined ? 1 << 2 : 0;
65564
66553
  flags |= this.entities ? 1 << 3 : 0;
65565
66554
  flags |= this.scheduleDate !== undefined ? 1 << 15 : 0;
66555
+ flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 18 : 0;
65566
66556
  flags |= this.quickReplyShortcutId !== undefined ? 1 << 17 : 0;
65567
66557
  b.write(index_js_1.Primitive.Int.write(flags));
65568
66558
  if (this.peer !== undefined) {
@@ -65586,6 +66576,9 @@ var Raw;
65586
66576
  if (this.scheduleDate !== undefined) {
65587
66577
  b.write(index_js_1.Primitive.Int.write(this.scheduleDate));
65588
66578
  }
66579
+ if (this.scheduleRepeatPeriod !== undefined) {
66580
+ b.write(index_js_1.Primitive.Int.write(this.scheduleRepeatPeriod));
66581
+ }
65589
66582
  if (this.quickReplyShortcutId !== undefined) {
65590
66583
  b.write(index_js_1.Primitive.Int.write(this.quickReplyShortcutId));
65591
66584
  }
@@ -81063,6 +82056,7 @@ var Raw;
81063
82056
  class GetSendAs extends index_js_1.TLObject {
81064
82057
  __response__;
81065
82058
  forPaidReactions;
82059
+ forLiveStories;
81066
82060
  peer;
81067
82061
  constructor(params) {
81068
82062
  super();
@@ -81070,21 +82064,28 @@ var Raw;
81070
82064
  this.className = 'channels.GetSendAs';
81071
82065
  this.constructorId = 0xe785a43f;
81072
82066
  this.subclassOfId = 0x38cb8d21;
81073
- this._slots = ['forPaidReactions', 'peer'];
82067
+ this._slots = ['forPaidReactions', 'forLiveStories', 'peer'];
81074
82068
  this.forPaidReactions = params.forPaidReactions;
82069
+ this.forLiveStories = params.forLiveStories;
81075
82070
  this.peer = params.peer;
81076
82071
  }
81077
82072
  static async read(_data, ..._args) {
81078
82073
  let flags = await index_js_1.Primitive.Int.read(_data);
81079
82074
  let forPaidReactions = flags & (1 << 0) ? true : false;
82075
+ let forLiveStories = flags & (1 << 1) ? true : false;
81080
82076
  let peer = await index_js_1.TLObject.read(_data);
81081
- return new Raw.channels.GetSendAs({ forPaidReactions: forPaidReactions, peer: peer });
82077
+ return new Raw.channels.GetSendAs({
82078
+ forPaidReactions: forPaidReactions,
82079
+ forLiveStories: forLiveStories,
82080
+ peer: peer,
82081
+ });
81082
82082
  }
81083
82083
  write() {
81084
82084
  const b = new deps_js_1.BytesIO();
81085
82085
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81086
82086
  let flags = 0;
81087
82087
  flags |= this.forPaidReactions ? 1 << 0 : 0;
82088
+ flags |= this.forLiveStories ? 1 << 1 : 0;
81088
82089
  b.write(index_js_1.Primitive.Int.write(flags));
81089
82090
  if (this.peer !== undefined) {
81090
82091
  b.write(this.peer.write());
@@ -82620,7 +83621,7 @@ var Raw;
82620
83621
  giveawayMsgId;
82621
83622
  toId;
82622
83623
  date;
82623
- months;
83624
+ days;
82624
83625
  usedDate;
82625
83626
  chats;
82626
83627
  users;
@@ -82628,7 +83629,7 @@ var Raw;
82628
83629
  super();
82629
83630
  this.classType = 'types';
82630
83631
  this.className = 'payments.CheckedGiftCode';
82631
- this.constructorId = 0x284a1096;
83632
+ this.constructorId = 0xeb983f8f;
82632
83633
  this.subclassOfId = 0x5b2997e8;
82633
83634
  this._slots = [
82634
83635
  'viaGiveaway',
@@ -82636,7 +83637,7 @@ var Raw;
82636
83637
  'giveawayMsgId',
82637
83638
  'toId',
82638
83639
  'date',
82639
- 'months',
83640
+ 'days',
82640
83641
  'usedDate',
82641
83642
  'chats',
82642
83643
  'users',
@@ -82646,7 +83647,7 @@ var Raw;
82646
83647
  this.giveawayMsgId = params.giveawayMsgId;
82647
83648
  this.toId = params.toId;
82648
83649
  this.date = params.date;
82649
- this.months = params.months;
83650
+ this.days = params.days;
82650
83651
  this.usedDate = params.usedDate;
82651
83652
  this.chats = params.chats;
82652
83653
  this.users = params.users;
@@ -82658,7 +83659,7 @@ var Raw;
82658
83659
  let giveawayMsgId = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
82659
83660
  let toId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
82660
83661
  let date = await index_js_1.Primitive.Int.read(_data);
82661
- let months = await index_js_1.Primitive.Int.read(_data);
83662
+ let days = await index_js_1.Primitive.Int.read(_data);
82662
83663
  let usedDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
82663
83664
  let chats = await index_js_1.TLObject.read(_data);
82664
83665
  let users = await index_js_1.TLObject.read(_data);
@@ -82668,7 +83669,7 @@ var Raw;
82668
83669
  giveawayMsgId: giveawayMsgId,
82669
83670
  toId: toId,
82670
83671
  date: date,
82671
- months: months,
83672
+ days: days,
82672
83673
  usedDate: usedDate,
82673
83674
  chats: chats,
82674
83675
  users: users,
@@ -82696,8 +83697,8 @@ var Raw;
82696
83697
  if (this.date !== undefined) {
82697
83698
  b.write(index_js_1.Primitive.Int.write(this.date));
82698
83699
  }
82699
- if (this.months !== undefined) {
82700
- b.write(index_js_1.Primitive.Int.write(this.months));
83700
+ if (this.days !== undefined) {
83701
+ b.write(index_js_1.Primitive.Int.write(this.days));
82701
83702
  }
82702
83703
  if (this.usedDate !== undefined) {
82703
83704
  b.write(index_js_1.Primitive.Int.write(this.usedDate));
@@ -83716,6 +84717,152 @@ var Raw;
83716
84717
  }
83717
84718
  }
83718
84719
  payments.CheckCanSendGiftResultFail = CheckCanSendGiftResultFail;
84720
+ class StarGiftAuctionState extends index_js_1.TLObject {
84721
+ gift;
84722
+ state;
84723
+ userState;
84724
+ timeout;
84725
+ users;
84726
+ constructor(params) {
84727
+ super();
84728
+ this.classType = 'types';
84729
+ this.className = 'payments.StarGiftAuctionState';
84730
+ this.constructorId = 0xe98e474;
84731
+ this.subclassOfId = 0x1a318599;
84732
+ this._slots = ['gift', 'state', 'userState', 'timeout', 'users'];
84733
+ this.gift = params.gift;
84734
+ this.state = params.state;
84735
+ this.userState = params.userState;
84736
+ this.timeout = params.timeout;
84737
+ this.users = params.users;
84738
+ }
84739
+ static async read(_data, ..._args) {
84740
+ let gift = await index_js_1.TLObject.read(_data);
84741
+ let state = await index_js_1.TLObject.read(_data);
84742
+ let userState = await index_js_1.TLObject.read(_data);
84743
+ let timeout = await index_js_1.Primitive.Int.read(_data);
84744
+ let users = await index_js_1.TLObject.read(_data);
84745
+ return new Raw.payments.StarGiftAuctionState({
84746
+ gift: gift,
84747
+ state: state,
84748
+ userState: userState,
84749
+ timeout: timeout,
84750
+ users: users,
84751
+ });
84752
+ }
84753
+ write() {
84754
+ const b = new deps_js_1.BytesIO();
84755
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
84756
+ if (this.gift !== undefined) {
84757
+ b.write(this.gift.write());
84758
+ }
84759
+ if (this.state !== undefined) {
84760
+ b.write(this.state.write());
84761
+ }
84762
+ if (this.userState !== undefined) {
84763
+ b.write(this.userState.write());
84764
+ }
84765
+ if (this.timeout !== undefined) {
84766
+ b.write(index_js_1.Primitive.Int.write(this.timeout));
84767
+ }
84768
+ if (this.users) {
84769
+ b.write(index_js_1.Primitive.Vector.write(this.users));
84770
+ }
84771
+ return deps_js_1.Buffer.from(b.buffer);
84772
+ }
84773
+ }
84774
+ payments.StarGiftAuctionState = StarGiftAuctionState;
84775
+ class StarGiftAuctionAcquiredGifts extends index_js_1.TLObject {
84776
+ gifts;
84777
+ users;
84778
+ chats;
84779
+ constructor(params) {
84780
+ super();
84781
+ this.classType = 'types';
84782
+ this.className = 'payments.StarGiftAuctionAcquiredGifts';
84783
+ this.constructorId = 0x7d5bd1f0;
84784
+ this.subclassOfId = 0xa7080a1b;
84785
+ this._slots = ['gifts', 'users', 'chats'];
84786
+ this.gifts = params.gifts;
84787
+ this.users = params.users;
84788
+ this.chats = params.chats;
84789
+ }
84790
+ static async read(_data, ..._args) {
84791
+ let gifts = await index_js_1.TLObject.read(_data);
84792
+ let users = await index_js_1.TLObject.read(_data);
84793
+ let chats = await index_js_1.TLObject.read(_data);
84794
+ return new Raw.payments.StarGiftAuctionAcquiredGifts({
84795
+ gifts: gifts,
84796
+ users: users,
84797
+ chats: chats,
84798
+ });
84799
+ }
84800
+ write() {
84801
+ const b = new deps_js_1.BytesIO();
84802
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
84803
+ if (this.gifts) {
84804
+ b.write(index_js_1.Primitive.Vector.write(this.gifts));
84805
+ }
84806
+ if (this.users) {
84807
+ b.write(index_js_1.Primitive.Vector.write(this.users));
84808
+ }
84809
+ if (this.chats) {
84810
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
84811
+ }
84812
+ return deps_js_1.Buffer.from(b.buffer);
84813
+ }
84814
+ }
84815
+ payments.StarGiftAuctionAcquiredGifts = StarGiftAuctionAcquiredGifts;
84816
+ class StarGiftActiveAuctionsNotModified extends index_js_1.TLObject {
84817
+ constructor() {
84818
+ super();
84819
+ this.classType = 'types';
84820
+ this.className = 'payments.StarGiftActiveAuctionsNotModified';
84821
+ this.constructorId = 0xdb33dad0;
84822
+ this.subclassOfId = 0x917dd0c7;
84823
+ this._slots = [];
84824
+ }
84825
+ static async read(_data, ..._args) {
84826
+ return new Raw.payments.StarGiftActiveAuctionsNotModified();
84827
+ }
84828
+ write() {
84829
+ const b = new deps_js_1.BytesIO();
84830
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
84831
+ return deps_js_1.Buffer.from(b.buffer);
84832
+ }
84833
+ }
84834
+ payments.StarGiftActiveAuctionsNotModified = StarGiftActiveAuctionsNotModified;
84835
+ class StarGiftActiveAuctions extends index_js_1.TLObject {
84836
+ auctions;
84837
+ users;
84838
+ constructor(params) {
84839
+ super();
84840
+ this.classType = 'types';
84841
+ this.className = 'payments.StarGiftActiveAuctions';
84842
+ this.constructorId = 0x97f187d8;
84843
+ this.subclassOfId = 0x917dd0c7;
84844
+ this._slots = ['auctions', 'users'];
84845
+ this.auctions = params.auctions;
84846
+ this.users = params.users;
84847
+ }
84848
+ static async read(_data, ..._args) {
84849
+ let auctions = await index_js_1.TLObject.read(_data);
84850
+ let users = await index_js_1.TLObject.read(_data);
84851
+ return new Raw.payments.StarGiftActiveAuctions({ auctions: auctions, users: users });
84852
+ }
84853
+ write() {
84854
+ const b = new deps_js_1.BytesIO();
84855
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
84856
+ if (this.auctions) {
84857
+ b.write(index_js_1.Primitive.Vector.write(this.auctions));
84858
+ }
84859
+ if (this.users) {
84860
+ b.write(index_js_1.Primitive.Vector.write(this.users));
84861
+ }
84862
+ return deps_js_1.Buffer.from(b.buffer);
84863
+ }
84864
+ }
84865
+ payments.StarGiftActiveAuctions = StarGiftActiveAuctions;
83719
84866
  class GetPaymentForm extends index_js_1.TLObject {
83720
84867
  __response__;
83721
84868
  invoice;
@@ -85853,6 +87000,90 @@ var Raw;
85853
87000
  }
85854
87001
  }
85855
87002
  payments.CheckCanSendGift = CheckCanSendGift;
87003
+ class GetStarGiftAuctionState extends index_js_1.TLObject {
87004
+ __response__;
87005
+ auction;
87006
+ version;
87007
+ constructor(params) {
87008
+ super();
87009
+ this.classType = 'functions';
87010
+ this.className = 'payments.GetStarGiftAuctionState';
87011
+ this.constructorId = 0x5c9ff4d6;
87012
+ this.subclassOfId = 0x1a318599;
87013
+ this._slots = ['auction', 'version'];
87014
+ this.auction = params.auction;
87015
+ this.version = params.version;
87016
+ }
87017
+ static async read(_data, ..._args) {
87018
+ let auction = await index_js_1.TLObject.read(_data);
87019
+ let version = await index_js_1.Primitive.Int.read(_data);
87020
+ return new Raw.payments.GetStarGiftAuctionState({ auction: auction, version: version });
87021
+ }
87022
+ write() {
87023
+ const b = new deps_js_1.BytesIO();
87024
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87025
+ if (this.auction !== undefined) {
87026
+ b.write(this.auction.write());
87027
+ }
87028
+ if (this.version !== undefined) {
87029
+ b.write(index_js_1.Primitive.Int.write(this.version));
87030
+ }
87031
+ return deps_js_1.Buffer.from(b.buffer);
87032
+ }
87033
+ }
87034
+ payments.GetStarGiftAuctionState = GetStarGiftAuctionState;
87035
+ class GetStarGiftAuctionAcquiredGifts extends index_js_1.TLObject {
87036
+ __response__;
87037
+ giftId;
87038
+ constructor(params) {
87039
+ super();
87040
+ this.classType = 'functions';
87041
+ this.className = 'payments.GetStarGiftAuctionAcquiredGifts';
87042
+ this.constructorId = 0x6ba2cbec;
87043
+ this.subclassOfId = 0xa7080a1b;
87044
+ this._slots = ['giftId'];
87045
+ this.giftId = params.giftId;
87046
+ }
87047
+ static async read(_data, ..._args) {
87048
+ let giftId = await index_js_1.Primitive.Long.read(_data);
87049
+ return new Raw.payments.GetStarGiftAuctionAcquiredGifts({ giftId: giftId });
87050
+ }
87051
+ write() {
87052
+ const b = new deps_js_1.BytesIO();
87053
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87054
+ if (this.giftId !== undefined) {
87055
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
87056
+ }
87057
+ return deps_js_1.Buffer.from(b.buffer);
87058
+ }
87059
+ }
87060
+ payments.GetStarGiftAuctionAcquiredGifts = GetStarGiftAuctionAcquiredGifts;
87061
+ class GetStarGiftActiveAuctions extends index_js_1.TLObject {
87062
+ __response__;
87063
+ hash;
87064
+ constructor(params) {
87065
+ super();
87066
+ this.classType = 'functions';
87067
+ this.className = 'payments.GetStarGiftActiveAuctions';
87068
+ this.constructorId = 0xa5d0514d;
87069
+ this.subclassOfId = 0x917dd0c7;
87070
+ this._slots = ['hash'];
87071
+ this.hash = params.hash;
87072
+ }
87073
+ static async read(_data, ..._args) {
87074
+ let hash = await index_js_1.Primitive.Long.read(_data);
87075
+ return new Raw.payments.GetStarGiftActiveAuctions({ hash: hash });
87076
+ }
87077
+ write() {
87078
+ const b = new deps_js_1.BytesIO();
87079
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87080
+ if (this.hash !== undefined) {
87081
+ b.write(index_js_1.Primitive.Long.write(this.hash));
87082
+ }
87083
+ return deps_js_1.Buffer.from(b.buffer);
87084
+ }
87085
+ }
87086
+ payments.GetStarGiftActiveAuctions = GetStarGiftActiveAuctions;
85856
87087
  })(payments = Raw.payments || (Raw.payments = {}));
85857
87088
  let phone;
85858
87089
  (function (phone) {
@@ -86122,6 +87353,54 @@ var Raw;
86122
87353
  }
86123
87354
  }
86124
87355
  phone.GroupCallStreamRtmpUrl = GroupCallStreamRtmpUrl;
87356
+ class GroupCallStars extends index_js_1.TLObject {
87357
+ totalStars;
87358
+ topDonors;
87359
+ chats;
87360
+ users;
87361
+ constructor(params) {
87362
+ super();
87363
+ this.classType = 'types';
87364
+ this.className = 'phone.GroupCallStars';
87365
+ this.constructorId = 0x9d1dbd26;
87366
+ this.subclassOfId = 0xb447801a;
87367
+ this._slots = ['totalStars', 'topDonors', 'chats', 'users'];
87368
+ this.totalStars = params.totalStars;
87369
+ this.topDonors = params.topDonors;
87370
+ this.chats = params.chats;
87371
+ this.users = params.users;
87372
+ }
87373
+ static async read(_data, ..._args) {
87374
+ let totalStars = await index_js_1.Primitive.Long.read(_data);
87375
+ let topDonors = await index_js_1.TLObject.read(_data);
87376
+ let chats = await index_js_1.TLObject.read(_data);
87377
+ let users = await index_js_1.TLObject.read(_data);
87378
+ return new Raw.phone.GroupCallStars({
87379
+ totalStars: totalStars,
87380
+ topDonors: topDonors,
87381
+ chats: chats,
87382
+ users: users,
87383
+ });
87384
+ }
87385
+ write() {
87386
+ const b = new deps_js_1.BytesIO();
87387
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87388
+ if (this.totalStars !== undefined) {
87389
+ b.write(index_js_1.Primitive.Long.write(this.totalStars));
87390
+ }
87391
+ if (this.topDonors) {
87392
+ b.write(index_js_1.Primitive.Vector.write(this.topDonors));
87393
+ }
87394
+ if (this.chats) {
87395
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
87396
+ }
87397
+ if (this.users) {
87398
+ b.write(index_js_1.Primitive.Vector.write(this.users));
87399
+ }
87400
+ return deps_js_1.Buffer.from(b.buffer);
87401
+ }
87402
+ }
87403
+ phone.GroupCallStars = GroupCallStars;
86125
87404
  class GetCallConfig extends index_js_1.TLObject {
86126
87405
  __response__;
86127
87406
  constructor() {
@@ -86726,17 +88005,25 @@ var Raw;
86726
88005
  call;
86727
88006
  joinMuted;
86728
88007
  messagesEnabled;
88008
+ sendPaidMessagesStars;
86729
88009
  constructor(params) {
86730
88010
  super();
86731
88011
  this.classType = 'functions';
86732
88012
  this.className = 'phone.ToggleGroupCallSettings';
86733
- this.constructorId = 0xe9723804;
88013
+ this.constructorId = 0x974392f2;
86734
88014
  this.subclassOfId = 0x8af52aac;
86735
- this._slots = ['resetInviteHash', 'call', 'joinMuted', 'messagesEnabled'];
88015
+ this._slots = [
88016
+ 'resetInviteHash',
88017
+ 'call',
88018
+ 'joinMuted',
88019
+ 'messagesEnabled',
88020
+ 'sendPaidMessagesStars',
88021
+ ];
86736
88022
  this.resetInviteHash = params.resetInviteHash;
86737
88023
  this.call = params.call;
86738
88024
  this.joinMuted = params.joinMuted;
86739
88025
  this.messagesEnabled = params.messagesEnabled;
88026
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
86740
88027
  }
86741
88028
  static async read(_data, ..._args) {
86742
88029
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -86744,11 +88031,13 @@ var Raw;
86744
88031
  let call = await index_js_1.TLObject.read(_data);
86745
88032
  let joinMuted = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
86746
88033
  let messagesEnabled = flags & (1 << 2) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
88034
+ let sendPaidMessagesStars = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
86747
88035
  return new Raw.phone.ToggleGroupCallSettings({
86748
88036
  resetInviteHash: resetInviteHash,
86749
88037
  call: call,
86750
88038
  joinMuted: joinMuted,
86751
88039
  messagesEnabled: messagesEnabled,
88040
+ sendPaidMessagesStars: sendPaidMessagesStars,
86752
88041
  });
86753
88042
  }
86754
88043
  write() {
@@ -86758,6 +88047,7 @@ var Raw;
86758
88047
  flags |= this.resetInviteHash ? 1 << 1 : 0;
86759
88048
  flags |= this.joinMuted !== undefined ? 1 << 0 : 0;
86760
88049
  flags |= this.messagesEnabled !== undefined ? 1 << 2 : 0;
88050
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 3 : 0;
86761
88051
  b.write(index_js_1.Primitive.Int.write(flags));
86762
88052
  if (this.call !== undefined) {
86763
88053
  b.write(this.call.write());
@@ -86768,6 +88058,9 @@ var Raw;
86768
88058
  if (this.messagesEnabled !== undefined) {
86769
88059
  b.write(index_js_1.Primitive.Bool.write(this.messagesEnabled));
86770
88060
  }
88061
+ if (this.sendPaidMessagesStars !== undefined) {
88062
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
88063
+ }
86771
88064
  return deps_js_1.Buffer.from(b.buffer);
86772
88065
  }
86773
88066
  }
@@ -87314,26 +88607,37 @@ var Raw;
87314
88607
  phone.GetGroupCallStreamChannels = GetGroupCallStreamChannels;
87315
88608
  class GetGroupCallStreamRtmpUrl extends index_js_1.TLObject {
87316
88609
  __response__;
88610
+ liveStory;
87317
88611
  peer;
87318
88612
  revoke;
87319
88613
  constructor(params) {
87320
88614
  super();
87321
88615
  this.classType = 'functions';
87322
88616
  this.className = 'phone.GetGroupCallStreamRtmpUrl';
87323
- this.constructorId = 0xdeb3abbf;
88617
+ this.constructorId = 0x5af4c73a;
87324
88618
  this.subclassOfId = 0xd1f515cb;
87325
- this._slots = ['peer', 'revoke'];
88619
+ this._slots = ['liveStory', 'peer', 'revoke'];
88620
+ this.liveStory = params.liveStory;
87326
88621
  this.peer = params.peer;
87327
88622
  this.revoke = params.revoke;
87328
88623
  }
87329
88624
  static async read(_data, ..._args) {
88625
+ let flags = await index_js_1.Primitive.Int.read(_data);
88626
+ let liveStory = flags & (1 << 0) ? true : false;
87330
88627
  let peer = await index_js_1.TLObject.read(_data);
87331
88628
  let revoke = await index_js_1.Primitive.Bool.read(_data);
87332
- return new Raw.phone.GetGroupCallStreamRtmpUrl({ peer: peer, revoke: revoke });
88629
+ return new Raw.phone.GetGroupCallStreamRtmpUrl({
88630
+ liveStory: liveStory,
88631
+ peer: peer,
88632
+ revoke: revoke,
88633
+ });
87333
88634
  }
87334
88635
  write() {
87335
88636
  const b = new deps_js_1.BytesIO();
87336
88637
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
88638
+ let flags = 0;
88639
+ flags |= this.liveStory ? 1 << 0 : 0;
88640
+ b.write(index_js_1.Primitive.Int.write(flags));
87337
88641
  if (this.peer !== undefined) {
87338
88642
  b.write(this.peer.write());
87339
88643
  }
@@ -87656,30 +88960,43 @@ var Raw;
87656
88960
  call;
87657
88961
  randomId;
87658
88962
  message;
88963
+ allowPaidStars;
88964
+ sendAs;
87659
88965
  constructor(params) {
87660
88966
  super();
87661
88967
  this.classType = 'functions';
87662
88968
  this.className = 'phone.SendGroupCallMessage';
87663
- this.constructorId = 0x87893014;
87664
- this.subclassOfId = 0xf5b399ac;
87665
- this._slots = ['call', 'randomId', 'message'];
88969
+ this.constructorId = 0xb1d11410;
88970
+ this.subclassOfId = 0x8af52aac;
88971
+ this._slots = ['call', 'randomId', 'message', 'allowPaidStars', 'sendAs'];
87666
88972
  this.call = params.call;
87667
88973
  this.randomId = params.randomId;
87668
88974
  this.message = params.message;
88975
+ this.allowPaidStars = params.allowPaidStars;
88976
+ this.sendAs = params.sendAs;
87669
88977
  }
87670
88978
  static async read(_data, ..._args) {
88979
+ let flags = await index_js_1.Primitive.Int.read(_data);
87671
88980
  let call = await index_js_1.TLObject.read(_data);
87672
88981
  let randomId = await index_js_1.Primitive.Long.read(_data);
87673
88982
  let message = await index_js_1.TLObject.read(_data);
88983
+ let allowPaidStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
88984
+ let sendAs = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
87674
88985
  return new Raw.phone.SendGroupCallMessage({
87675
88986
  call: call,
87676
88987
  randomId: randomId,
87677
88988
  message: message,
88989
+ allowPaidStars: allowPaidStars,
88990
+ sendAs: sendAs,
87678
88991
  });
87679
88992
  }
87680
88993
  write() {
87681
88994
  const b = new deps_js_1.BytesIO();
87682
88995
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
88996
+ let flags = 0;
88997
+ flags |= this.allowPaidStars !== undefined ? 1 << 0 : 0;
88998
+ flags |= this.sendAs !== undefined ? 1 << 1 : 0;
88999
+ b.write(index_js_1.Primitive.Int.write(flags));
87683
89000
  if (this.call !== undefined) {
87684
89001
  b.write(this.call.write());
87685
89002
  }
@@ -87689,6 +89006,12 @@ var Raw;
87689
89006
  if (this.message !== undefined) {
87690
89007
  b.write(this.message.write());
87691
89008
  }
89009
+ if (this.allowPaidStars !== undefined) {
89010
+ b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
89011
+ }
89012
+ if (this.sendAs !== undefined) {
89013
+ b.write(this.sendAs.write());
89014
+ }
87692
89015
  return deps_js_1.Buffer.from(b.buffer);
87693
89016
  }
87694
89017
  }
@@ -87728,6 +89051,150 @@ var Raw;
87728
89051
  }
87729
89052
  }
87730
89053
  phone.SendGroupCallEncryptedMessage = SendGroupCallEncryptedMessage;
89054
+ class DeleteGroupCallMessages extends index_js_1.TLObject {
89055
+ __response__;
89056
+ reportSpam;
89057
+ call;
89058
+ messages;
89059
+ constructor(params) {
89060
+ super();
89061
+ this.classType = 'functions';
89062
+ this.className = 'phone.DeleteGroupCallMessages';
89063
+ this.constructorId = 0xf64f54f7;
89064
+ this.subclassOfId = 0x8af52aac;
89065
+ this._slots = ['reportSpam', 'call', 'messages'];
89066
+ this.reportSpam = params.reportSpam;
89067
+ this.call = params.call;
89068
+ this.messages = params.messages;
89069
+ }
89070
+ static async read(_data, ..._args) {
89071
+ let flags = await index_js_1.Primitive.Int.read(_data);
89072
+ let reportSpam = flags & (1 << 0) ? true : false;
89073
+ let call = await index_js_1.TLObject.read(_data);
89074
+ let messages = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
89075
+ return new Raw.phone.DeleteGroupCallMessages({
89076
+ reportSpam: reportSpam,
89077
+ call: call,
89078
+ messages: messages,
89079
+ });
89080
+ }
89081
+ write() {
89082
+ const b = new deps_js_1.BytesIO();
89083
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89084
+ let flags = 0;
89085
+ flags |= this.reportSpam ? 1 << 0 : 0;
89086
+ b.write(index_js_1.Primitive.Int.write(flags));
89087
+ if (this.call !== undefined) {
89088
+ b.write(this.call.write());
89089
+ }
89090
+ if (this.messages) {
89091
+ b.write(index_js_1.Primitive.Vector.write(this.messages, index_js_1.Primitive.Int));
89092
+ }
89093
+ return deps_js_1.Buffer.from(b.buffer);
89094
+ }
89095
+ }
89096
+ phone.DeleteGroupCallMessages = DeleteGroupCallMessages;
89097
+ class DeleteGroupCallParticipantMessages extends index_js_1.TLObject {
89098
+ __response__;
89099
+ reportSpam;
89100
+ call;
89101
+ participant;
89102
+ constructor(params) {
89103
+ super();
89104
+ this.classType = 'functions';
89105
+ this.className = 'phone.DeleteGroupCallParticipantMessages';
89106
+ this.constructorId = 0x1dbfeca0;
89107
+ this.subclassOfId = 0x8af52aac;
89108
+ this._slots = ['reportSpam', 'call', 'participant'];
89109
+ this.reportSpam = params.reportSpam;
89110
+ this.call = params.call;
89111
+ this.participant = params.participant;
89112
+ }
89113
+ static async read(_data, ..._args) {
89114
+ let flags = await index_js_1.Primitive.Int.read(_data);
89115
+ let reportSpam = flags & (1 << 0) ? true : false;
89116
+ let call = await index_js_1.TLObject.read(_data);
89117
+ let participant = await index_js_1.TLObject.read(_data);
89118
+ return new Raw.phone.DeleteGroupCallParticipantMessages({
89119
+ reportSpam: reportSpam,
89120
+ call: call,
89121
+ participant: participant,
89122
+ });
89123
+ }
89124
+ write() {
89125
+ const b = new deps_js_1.BytesIO();
89126
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89127
+ let flags = 0;
89128
+ flags |= this.reportSpam ? 1 << 0 : 0;
89129
+ b.write(index_js_1.Primitive.Int.write(flags));
89130
+ if (this.call !== undefined) {
89131
+ b.write(this.call.write());
89132
+ }
89133
+ if (this.participant !== undefined) {
89134
+ b.write(this.participant.write());
89135
+ }
89136
+ return deps_js_1.Buffer.from(b.buffer);
89137
+ }
89138
+ }
89139
+ phone.DeleteGroupCallParticipantMessages = DeleteGroupCallParticipantMessages;
89140
+ class GetGroupCallStars extends index_js_1.TLObject {
89141
+ __response__;
89142
+ call;
89143
+ constructor(params) {
89144
+ super();
89145
+ this.classType = 'functions';
89146
+ this.className = 'phone.GetGroupCallStars';
89147
+ this.constructorId = 0x6f636302;
89148
+ this.subclassOfId = 0xb447801a;
89149
+ this._slots = ['call'];
89150
+ this.call = params.call;
89151
+ }
89152
+ static async read(_data, ..._args) {
89153
+ let call = await index_js_1.TLObject.read(_data);
89154
+ return new Raw.phone.GetGroupCallStars({ call: call });
89155
+ }
89156
+ write() {
89157
+ const b = new deps_js_1.BytesIO();
89158
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89159
+ if (this.call !== undefined) {
89160
+ b.write(this.call.write());
89161
+ }
89162
+ return deps_js_1.Buffer.from(b.buffer);
89163
+ }
89164
+ }
89165
+ phone.GetGroupCallStars = GetGroupCallStars;
89166
+ class SaveDefaultSendAs extends index_js_1.TLObject {
89167
+ __response__;
89168
+ call;
89169
+ sendAs;
89170
+ constructor(params) {
89171
+ super();
89172
+ this.classType = 'functions';
89173
+ this.className = 'phone.SaveDefaultSendAs';
89174
+ this.constructorId = 0x4167add1;
89175
+ this.subclassOfId = 0xf5b399ac;
89176
+ this._slots = ['call', 'sendAs'];
89177
+ this.call = params.call;
89178
+ this.sendAs = params.sendAs;
89179
+ }
89180
+ static async read(_data, ..._args) {
89181
+ let call = await index_js_1.TLObject.read(_data);
89182
+ let sendAs = await index_js_1.TLObject.read(_data);
89183
+ return new Raw.phone.SaveDefaultSendAs({ call: call, sendAs: sendAs });
89184
+ }
89185
+ write() {
89186
+ const b = new deps_js_1.BytesIO();
89187
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89188
+ if (this.call !== undefined) {
89189
+ b.write(this.call.write());
89190
+ }
89191
+ if (this.sendAs !== undefined) {
89192
+ b.write(this.sendAs.write());
89193
+ }
89194
+ return deps_js_1.Buffer.from(b.buffer);
89195
+ }
89196
+ }
89197
+ phone.SaveDefaultSendAs = SaveDefaultSendAs;
87731
89198
  })(phone = Raw.phone || (Raw.phone = {}));
87732
89199
  let stats;
87733
89200
  (function (stats) {
@@ -92438,8 +93905,8 @@ var Raw;
92438
93905
  super();
92439
93906
  this.classType = 'functions';
92440
93907
  this.className = 'stories.GetPeerMaxIDs';
92441
- this.constructorId = 0x535983c3;
92442
- this.subclassOfId = 0x5026710f;
93908
+ this.constructorId = 0x78499170;
93909
+ this.subclassOfId = 0x3cb69156;
92443
93910
  this._slots = ['id'];
92444
93911
  this.id = params.id;
92445
93912
  }
@@ -92922,6 +94389,109 @@ var Raw;
92922
94389
  }
92923
94390
  }
92924
94391
  stories_1.GetAlbumStories = GetAlbumStories;
94392
+ class StartLive extends index_js_1.TLObject {
94393
+ __response__;
94394
+ pinned;
94395
+ noforwards;
94396
+ rtmpStream;
94397
+ peer;
94398
+ caption;
94399
+ entities;
94400
+ privacyRules;
94401
+ randomId;
94402
+ messagesEnabled;
94403
+ sendPaidMessagesStars;
94404
+ constructor(params) {
94405
+ super();
94406
+ this.classType = 'functions';
94407
+ this.className = 'stories.StartLive';
94408
+ this.constructorId = 0xd069ccde;
94409
+ this.subclassOfId = 0x8af52aac;
94410
+ this._slots = [
94411
+ 'pinned',
94412
+ 'noforwards',
94413
+ 'rtmpStream',
94414
+ 'peer',
94415
+ 'caption',
94416
+ 'entities',
94417
+ 'privacyRules',
94418
+ 'randomId',
94419
+ 'messagesEnabled',
94420
+ 'sendPaidMessagesStars',
94421
+ ];
94422
+ this.pinned = params.pinned;
94423
+ this.noforwards = params.noforwards;
94424
+ this.rtmpStream = params.rtmpStream;
94425
+ this.peer = params.peer;
94426
+ this.caption = params.caption;
94427
+ this.entities = params.entities;
94428
+ this.privacyRules = params.privacyRules;
94429
+ this.randomId = params.randomId;
94430
+ this.messagesEnabled = params.messagesEnabled;
94431
+ this.sendPaidMessagesStars = params.sendPaidMessagesStars;
94432
+ }
94433
+ static async read(_data, ..._args) {
94434
+ let flags = await index_js_1.Primitive.Int.read(_data);
94435
+ let pinned = flags & (1 << 2) ? true : false;
94436
+ let noforwards = flags & (1 << 4) ? true : false;
94437
+ let rtmpStream = flags & (1 << 5) ? true : false;
94438
+ let peer = await index_js_1.TLObject.read(_data);
94439
+ let caption = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
94440
+ let entities = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : [];
94441
+ let privacyRules = await index_js_1.TLObject.read(_data);
94442
+ let randomId = await index_js_1.Primitive.Long.read(_data);
94443
+ let messagesEnabled = flags & (1 << 6) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
94444
+ let sendPaidMessagesStars = flags & (1 << 7) ? await index_js_1.Primitive.Long.read(_data) : undefined;
94445
+ return new Raw.stories.StartLive({
94446
+ pinned: pinned,
94447
+ noforwards: noforwards,
94448
+ rtmpStream: rtmpStream,
94449
+ peer: peer,
94450
+ caption: caption,
94451
+ entities: entities,
94452
+ privacyRules: privacyRules,
94453
+ randomId: randomId,
94454
+ messagesEnabled: messagesEnabled,
94455
+ sendPaidMessagesStars: sendPaidMessagesStars,
94456
+ });
94457
+ }
94458
+ write() {
94459
+ const b = new deps_js_1.BytesIO();
94460
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
94461
+ let flags = 0;
94462
+ flags |= this.pinned ? 1 << 2 : 0;
94463
+ flags |= this.noforwards ? 1 << 4 : 0;
94464
+ flags |= this.rtmpStream ? 1 << 5 : 0;
94465
+ flags |= this.caption !== undefined ? 1 << 0 : 0;
94466
+ flags |= this.entities ? 1 << 1 : 0;
94467
+ flags |= this.messagesEnabled !== undefined ? 1 << 6 : 0;
94468
+ flags |= this.sendPaidMessagesStars !== undefined ? 1 << 7 : 0;
94469
+ b.write(index_js_1.Primitive.Int.write(flags));
94470
+ if (this.peer !== undefined) {
94471
+ b.write(this.peer.write());
94472
+ }
94473
+ if (this.caption !== undefined) {
94474
+ b.write(index_js_1.Primitive.String.write(this.caption));
94475
+ }
94476
+ if (this.entities) {
94477
+ b.write(index_js_1.Primitive.Vector.write(this.entities));
94478
+ }
94479
+ if (this.privacyRules) {
94480
+ b.write(index_js_1.Primitive.Vector.write(this.privacyRules));
94481
+ }
94482
+ if (this.randomId !== undefined) {
94483
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
94484
+ }
94485
+ if (this.messagesEnabled !== undefined) {
94486
+ b.write(index_js_1.Primitive.Bool.write(this.messagesEnabled));
94487
+ }
94488
+ if (this.sendPaidMessagesStars !== undefined) {
94489
+ b.write(index_js_1.Primitive.Long.write(this.sendPaidMessagesStars));
94490
+ }
94491
+ return deps_js_1.Buffer.from(b.buffer);
94492
+ }
94493
+ }
94494
+ stories_1.StartLive = StartLive;
92925
94495
  })(stories = Raw.stories || (Raw.stories = {}));
92926
94496
  let premium;
92927
94497
  (function (premium) {