@tgsnake/skema 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/raw/Raw.js CHANGED
@@ -5,7 +5,7 @@ const index_js_1 = require("@/raw/core/index.js");
5
5
  const deps_js_1 = require("@/deps.js");
6
6
  var Raw;
7
7
  (function (Raw) {
8
- Raw.Layer = 218;
8
+ Raw.Layer = 220;
9
9
  Raw.HighestSCLayer = 144;
10
10
  class ResPQ extends index_js_1.TLObject {
11
11
  nonce;
@@ -9454,11 +9454,12 @@ var Raw;
9454
9454
  prepaidUpgradeHash;
9455
9455
  giftMsgId;
9456
9456
  toId;
9457
+ giftNum;
9457
9458
  constructor(params) {
9458
9459
  super();
9459
9460
  this.classType = 'types';
9460
9461
  this.className = 'MessageActionStarGift';
9461
- this.constructorId = 0xdb596550;
9462
+ this.constructorId = 0xea2c31d3;
9462
9463
  this.subclassOfId = 0x8680d126;
9463
9464
  this._slots = [
9464
9465
  'nameHidden',
@@ -9481,6 +9482,7 @@ var Raw;
9481
9482
  'prepaidUpgradeHash',
9482
9483
  'giftMsgId',
9483
9484
  'toId',
9485
+ 'giftNum',
9484
9486
  ];
9485
9487
  this.nameHidden = params.nameHidden;
9486
9488
  this.saved = params.saved;
@@ -9502,6 +9504,7 @@ var Raw;
9502
9504
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
9503
9505
  this.giftMsgId = params.giftMsgId;
9504
9506
  this.toId = params.toId;
9507
+ this.giftNum = params.giftNum;
9505
9508
  }
9506
9509
  static async read(_data, ..._args) {
9507
9510
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -9525,6 +9528,7 @@ var Raw;
9525
9528
  let prepaidUpgradeHash = flags & (1 << 14) ? await index_js_1.Primitive.String.read(_data) : undefined;
9526
9529
  let giftMsgId = flags & (1 << 15) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9527
9530
  let toId = flags & (1 << 18) ? await index_js_1.TLObject.read(_data) : undefined;
9531
+ let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9528
9532
  return new Raw.MessageActionStarGift({
9529
9533
  nameHidden: nameHidden,
9530
9534
  saved: saved,
@@ -9546,6 +9550,7 @@ var Raw;
9546
9550
  prepaidUpgradeHash: prepaidUpgradeHash,
9547
9551
  giftMsgId: giftMsgId,
9548
9552
  toId: toId,
9553
+ giftNum: giftNum,
9549
9554
  });
9550
9555
  }
9551
9556
  write() {
@@ -9571,6 +9576,7 @@ var Raw;
9571
9576
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 14 : 0;
9572
9577
  flags |= this.giftMsgId !== undefined ? 1 << 15 : 0;
9573
9578
  flags |= this.toId !== undefined ? 1 << 18 : 0;
9579
+ flags |= this.giftNum !== undefined ? 1 << 19 : 0;
9574
9580
  b.write(index_js_1.Primitive.Int.write(flags));
9575
9581
  if (this.gift !== undefined) {
9576
9582
  b.write(this.gift.write());
@@ -9605,6 +9611,9 @@ var Raw;
9605
9611
  if (this.toId !== undefined) {
9606
9612
  b.write(this.toId.write());
9607
9613
  }
9614
+ if (this.giftNum !== undefined) {
9615
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
9616
+ }
9608
9617
  return deps_js_1.Buffer.from(b.buffer);
9609
9618
  }
9610
9619
  }
@@ -9616,6 +9625,7 @@ var Raw;
9616
9625
  refunded;
9617
9626
  prepaidUpgrade;
9618
9627
  assigned;
9628
+ fromOffer;
9619
9629
  gift;
9620
9630
  canExportAt;
9621
9631
  transferStars;
@@ -9639,6 +9649,7 @@ var Raw;
9639
9649
  'refunded',
9640
9650
  'prepaidUpgrade',
9641
9651
  'assigned',
9652
+ 'fromOffer',
9642
9653
  'gift',
9643
9654
  'canExportAt',
9644
9655
  'transferStars',
@@ -9656,6 +9667,7 @@ var Raw;
9656
9667
  this.refunded = params.refunded;
9657
9668
  this.prepaidUpgrade = params.prepaidUpgrade;
9658
9669
  this.assigned = params.assigned;
9670
+ this.fromOffer = params.fromOffer;
9659
9671
  this.gift = params.gift;
9660
9672
  this.canExportAt = params.canExportAt;
9661
9673
  this.transferStars = params.transferStars;
@@ -9675,6 +9687,7 @@ var Raw;
9675
9687
  let refunded = flags & (1 << 5) ? true : false;
9676
9688
  let prepaidUpgrade = flags & (1 << 11) ? true : false;
9677
9689
  let assigned = flags & (1 << 13) ? true : false;
9690
+ let fromOffer = flags & (1 << 14) ? true : false;
9678
9691
  let gift = await index_js_1.TLObject.read(_data);
9679
9692
  let canExportAt = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9680
9693
  let transferStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9692,6 +9705,7 @@ var Raw;
9692
9705
  refunded: refunded,
9693
9706
  prepaidUpgrade: prepaidUpgrade,
9694
9707
  assigned: assigned,
9708
+ fromOffer: fromOffer,
9695
9709
  gift: gift,
9696
9710
  canExportAt: canExportAt,
9697
9711
  transferStars: transferStars,
@@ -9714,6 +9728,7 @@ var Raw;
9714
9728
  flags |= this.refunded ? 1 << 5 : 0;
9715
9729
  flags |= this.prepaidUpgrade ? 1 << 11 : 0;
9716
9730
  flags |= this.assigned ? 1 << 13 : 0;
9731
+ flags |= this.fromOffer ? 1 << 14 : 0;
9717
9732
  flags |= this.canExportAt !== undefined ? 1 << 3 : 0;
9718
9733
  flags |= this.transferStars !== undefined ? 1 << 4 : 0;
9719
9734
  flags |= this.fromId !== undefined ? 1 << 6 : 0;
@@ -10136,6 +10151,102 @@ var Raw;
10136
10151
  }
10137
10152
  }
10138
10153
  Raw.MessageActionSuggestBirthday = MessageActionSuggestBirthday;
10154
+ class MessageActionStarGiftPurchaseOffer extends index_js_1.TLObject {
10155
+ accepted;
10156
+ declined;
10157
+ gift;
10158
+ price;
10159
+ expiresAt;
10160
+ constructor(params) {
10161
+ super();
10162
+ this.classType = 'types';
10163
+ this.className = 'MessageActionStarGiftPurchaseOffer';
10164
+ this.constructorId = 0x774278d4;
10165
+ this.subclassOfId = 0x8680d126;
10166
+ this._slots = ['accepted', 'declined', 'gift', 'price', 'expiresAt'];
10167
+ this.accepted = params.accepted;
10168
+ this.declined = params.declined;
10169
+ this.gift = params.gift;
10170
+ this.price = params.price;
10171
+ this.expiresAt = params.expiresAt;
10172
+ }
10173
+ static async read(_data, ..._args) {
10174
+ let flags = await index_js_1.Primitive.Int.read(_data);
10175
+ let accepted = flags & (1 << 0) ? true : false;
10176
+ let declined = flags & (1 << 1) ? true : false;
10177
+ let gift = await index_js_1.TLObject.read(_data);
10178
+ let price = await index_js_1.TLObject.read(_data);
10179
+ let expiresAt = await index_js_1.Primitive.Int.read(_data);
10180
+ return new Raw.MessageActionStarGiftPurchaseOffer({
10181
+ accepted: accepted,
10182
+ declined: declined,
10183
+ gift: gift,
10184
+ price: price,
10185
+ expiresAt: expiresAt,
10186
+ });
10187
+ }
10188
+ write() {
10189
+ const b = new deps_js_1.BytesIO();
10190
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
10191
+ let flags = 0;
10192
+ flags |= this.accepted ? 1 << 0 : 0;
10193
+ flags |= this.declined ? 1 << 1 : 0;
10194
+ b.write(index_js_1.Primitive.Int.write(flags));
10195
+ if (this.gift !== undefined) {
10196
+ b.write(this.gift.write());
10197
+ }
10198
+ if (this.price !== undefined) {
10199
+ b.write(this.price.write());
10200
+ }
10201
+ if (this.expiresAt !== undefined) {
10202
+ b.write(index_js_1.Primitive.Int.write(this.expiresAt));
10203
+ }
10204
+ return deps_js_1.Buffer.from(b.buffer);
10205
+ }
10206
+ }
10207
+ Raw.MessageActionStarGiftPurchaseOffer = MessageActionStarGiftPurchaseOffer;
10208
+ class MessageActionStarGiftPurchaseOfferDeclined extends index_js_1.TLObject {
10209
+ expired;
10210
+ gift;
10211
+ price;
10212
+ constructor(params) {
10213
+ super();
10214
+ this.classType = 'types';
10215
+ this.className = 'MessageActionStarGiftPurchaseOfferDeclined';
10216
+ this.constructorId = 0x73ada76b;
10217
+ this.subclassOfId = 0x8680d126;
10218
+ this._slots = ['expired', 'gift', 'price'];
10219
+ this.expired = params.expired;
10220
+ this.gift = params.gift;
10221
+ this.price = params.price;
10222
+ }
10223
+ static async read(_data, ..._args) {
10224
+ let flags = await index_js_1.Primitive.Int.read(_data);
10225
+ let expired = flags & (1 << 0) ? true : false;
10226
+ let gift = await index_js_1.TLObject.read(_data);
10227
+ let price = await index_js_1.TLObject.read(_data);
10228
+ return new Raw.MessageActionStarGiftPurchaseOfferDeclined({
10229
+ expired: expired,
10230
+ gift: gift,
10231
+ price: price,
10232
+ });
10233
+ }
10234
+ write() {
10235
+ const b = new deps_js_1.BytesIO();
10236
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
10237
+ let flags = 0;
10238
+ flags |= this.expired ? 1 << 0 : 0;
10239
+ b.write(index_js_1.Primitive.Int.write(flags));
10240
+ if (this.gift !== undefined) {
10241
+ b.write(this.gift.write());
10242
+ }
10243
+ if (this.price !== undefined) {
10244
+ b.write(this.price.write());
10245
+ }
10246
+ return deps_js_1.Buffer.from(b.buffer);
10247
+ }
10248
+ }
10249
+ Raw.MessageActionStarGiftPurchaseOfferDeclined = MessageActionStarGiftPurchaseOfferDeclined;
10139
10250
  class Dialog extends index_js_1.TLObject {
10140
10251
  pinned;
10141
10252
  unreadMark;
@@ -37957,35 +38068,20 @@ var Raw;
37957
38068
  class WebPageAttributeStarGiftAuction extends index_js_1.TLObject {
37958
38069
  gift;
37959
38070
  endDate;
37960
- centerColor;
37961
- edgeColor;
37962
- textColor;
37963
38071
  constructor(params) {
37964
38072
  super();
37965
38073
  this.classType = 'types';
37966
38074
  this.className = 'WebPageAttributeStarGiftAuction';
37967
- this.constructorId = 0x34986ab;
38075
+ this.constructorId = 0x1c641c2;
37968
38076
  this.subclassOfId = 0xafcfe9c7;
37969
- this._slots = ['gift', 'endDate', 'centerColor', 'edgeColor', 'textColor'];
38077
+ this._slots = ['gift', 'endDate'];
37970
38078
  this.gift = params.gift;
37971
38079
  this.endDate = params.endDate;
37972
- this.centerColor = params.centerColor;
37973
- this.edgeColor = params.edgeColor;
37974
- this.textColor = params.textColor;
37975
38080
  }
37976
38081
  static async read(_data, ..._args) {
37977
38082
  let gift = await index_js_1.TLObject.read(_data);
37978
38083
  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
- });
38084
+ return new Raw.WebPageAttributeStarGiftAuction({ gift: gift, endDate: endDate });
37989
38085
  }
37990
38086
  write() {
37991
38087
  const b = new deps_js_1.BytesIO();
@@ -37996,15 +38092,6 @@ var Raw;
37996
38092
  if (this.endDate !== undefined) {
37997
38093
  b.write(index_js_1.Primitive.Int.write(this.endDate));
37998
38094
  }
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
38095
  return deps_js_1.Buffer.from(b.buffer);
38009
38096
  }
38010
38097
  }
@@ -48238,6 +48325,7 @@ var Raw;
48238
48325
  stargiftDropOriginalDetails;
48239
48326
  phonegroupMessage;
48240
48327
  stargiftAuctionBid;
48328
+ offer;
48241
48329
  id;
48242
48330
  amount;
48243
48331
  date;
@@ -48281,6 +48369,7 @@ var Raw;
48281
48369
  'stargiftDropOriginalDetails',
48282
48370
  'phonegroupMessage',
48283
48371
  'stargiftAuctionBid',
48372
+ 'offer',
48284
48373
  'id',
48285
48374
  'amount',
48286
48375
  'date',
@@ -48318,6 +48407,7 @@ var Raw;
48318
48407
  this.stargiftDropOriginalDetails = params.stargiftDropOriginalDetails;
48319
48408
  this.phonegroupMessage = params.phonegroupMessage;
48320
48409
  this.stargiftAuctionBid = params.stargiftAuctionBid;
48410
+ this.offer = params.offer;
48321
48411
  this.id = params.id;
48322
48412
  this.amount = params.amount;
48323
48413
  this.date = params.date;
@@ -48357,6 +48447,7 @@ var Raw;
48357
48447
  let stargiftDropOriginalDetails = flags & (1 << 26) ? true : false;
48358
48448
  let phonegroupMessage = flags & (1 << 27) ? true : false;
48359
48449
  let stargiftAuctionBid = flags & (1 << 28) ? true : false;
48450
+ let offer = flags & (1 << 29) ? true : false;
48360
48451
  let id = await index_js_1.Primitive.String.read(_data);
48361
48452
  let amount = await index_js_1.TLObject.read(_data);
48362
48453
  let date = await index_js_1.Primitive.Int.read(_data);
@@ -48394,6 +48485,7 @@ var Raw;
48394
48485
  stargiftDropOriginalDetails: stargiftDropOriginalDetails,
48395
48486
  phonegroupMessage: phonegroupMessage,
48396
48487
  stargiftAuctionBid: stargiftAuctionBid,
48488
+ offer: offer,
48397
48489
  id: id,
48398
48490
  amount: amount,
48399
48491
  date: date,
@@ -48436,6 +48528,7 @@ var Raw;
48436
48528
  flags |= this.stargiftDropOriginalDetails ? 1 << 26 : 0;
48437
48529
  flags |= this.phonegroupMessage ? 1 << 27 : 0;
48438
48530
  flags |= this.stargiftAuctionBid ? 1 << 28 : 0;
48531
+ flags |= this.offer ? 1 << 29 : 0;
48439
48532
  flags |= this.title !== undefined ? 1 << 0 : 0;
48440
48533
  flags |= this.description !== undefined ? 1 << 1 : 0;
48441
48534
  flags |= this.photo !== undefined ? 1 << 2 : 0;
@@ -49150,11 +49243,14 @@ var Raw;
49150
49243
  lockedUntilDate;
49151
49244
  auctionSlug;
49152
49245
  giftsPerRound;
49246
+ auctionStartDate;
49247
+ upgradeVariants;
49248
+ background;
49153
49249
  constructor(params) {
49154
49250
  super();
49155
49251
  this.classType = 'types';
49156
49252
  this.className = 'StarGift';
49157
- this.constructorId = 0x1b9a4d7f;
49253
+ this.constructorId = 0x313a9547;
49158
49254
  this.subclassOfId = 0xc31c590b;
49159
49255
  this._slots = [
49160
49256
  'limited',
@@ -49182,6 +49278,9 @@ var Raw;
49182
49278
  'lockedUntilDate',
49183
49279
  'auctionSlug',
49184
49280
  'giftsPerRound',
49281
+ 'auctionStartDate',
49282
+ 'upgradeVariants',
49283
+ 'background',
49185
49284
  ];
49186
49285
  this.limited = params.limited;
49187
49286
  this.soldOut = params.soldOut;
@@ -49208,6 +49307,9 @@ var Raw;
49208
49307
  this.lockedUntilDate = params.lockedUntilDate;
49209
49308
  this.auctionSlug = params.auctionSlug;
49210
49309
  this.giftsPerRound = params.giftsPerRound;
49310
+ this.auctionStartDate = params.auctionStartDate;
49311
+ this.upgradeVariants = params.upgradeVariants;
49312
+ this.background = params.background;
49211
49313
  }
49212
49314
  static async read(_data, ..._args) {
49213
49315
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49236,6 +49338,9 @@ var Raw;
49236
49338
  let lockedUntilDate = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49237
49339
  let auctionSlug = flags & (1 << 11) ? await index_js_1.Primitive.String.read(_data) : undefined;
49238
49340
  let giftsPerRound = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49341
+ let auctionStartDate = flags & (1 << 11) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49342
+ let upgradeVariants = flags & (1 << 12) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49343
+ let background = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
49239
49344
  return new Raw.StarGift({
49240
49345
  limited: limited,
49241
49346
  soldOut: soldOut,
@@ -49262,6 +49367,9 @@ var Raw;
49262
49367
  lockedUntilDate: lockedUntilDate,
49263
49368
  auctionSlug: auctionSlug,
49264
49369
  giftsPerRound: giftsPerRound,
49370
+ auctionStartDate: auctionStartDate,
49371
+ upgradeVariants: upgradeVariants,
49372
+ background: background,
49265
49373
  });
49266
49374
  }
49267
49375
  write() {
@@ -49289,6 +49397,9 @@ var Raw;
49289
49397
  flags |= this.lockedUntilDate !== undefined ? 1 << 9 : 0;
49290
49398
  flags |= this.auctionSlug !== undefined ? 1 << 11 : 0;
49291
49399
  flags |= this.giftsPerRound !== undefined ? 1 << 11 : 0;
49400
+ flags |= this.auctionStartDate !== undefined ? 1 << 11 : 0;
49401
+ flags |= this.upgradeVariants !== undefined ? 1 << 12 : 0;
49402
+ flags |= this.background !== undefined ? 1 << 13 : 0;
49292
49403
  b.write(index_js_1.Primitive.Int.write(flags));
49293
49404
  if (this.id !== undefined) {
49294
49405
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -49344,6 +49455,15 @@ var Raw;
49344
49455
  if (this.giftsPerRound !== undefined) {
49345
49456
  b.write(index_js_1.Primitive.Int.write(this.giftsPerRound));
49346
49457
  }
49458
+ if (this.auctionStartDate !== undefined) {
49459
+ b.write(index_js_1.Primitive.Int.write(this.auctionStartDate));
49460
+ }
49461
+ if (this.upgradeVariants !== undefined) {
49462
+ b.write(index_js_1.Primitive.Int.write(this.upgradeVariants));
49463
+ }
49464
+ if (this.background !== undefined) {
49465
+ b.write(this.background.write());
49466
+ }
49347
49467
  return deps_js_1.Buffer.from(b.buffer);
49348
49468
  }
49349
49469
  }
@@ -49368,14 +49488,16 @@ var Raw;
49368
49488
  releasedBy;
49369
49489
  valueAmount;
49370
49490
  valueCurrency;
49491
+ valueUsdAmount;
49371
49492
  themePeer;
49372
49493
  peerColor;
49373
49494
  hostId;
49495
+ offerMinStars;
49374
49496
  constructor(params) {
49375
49497
  super();
49376
49498
  this.classType = 'types';
49377
49499
  this.className = 'StarGiftUnique';
49378
- this.constructorId = 0xb0bf741b;
49500
+ this.constructorId = 0x569d64c9;
49379
49501
  this.subclassOfId = 0xc31c590b;
49380
49502
  this._slots = [
49381
49503
  'requirePremium',
@@ -49397,9 +49519,11 @@ var Raw;
49397
49519
  'releasedBy',
49398
49520
  'valueAmount',
49399
49521
  'valueCurrency',
49522
+ 'valueUsdAmount',
49400
49523
  'themePeer',
49401
49524
  'peerColor',
49402
49525
  'hostId',
49526
+ 'offerMinStars',
49403
49527
  ];
49404
49528
  this.requirePremium = params.requirePremium;
49405
49529
  this.resaleTonOnly = params.resaleTonOnly;
@@ -49420,9 +49544,11 @@ var Raw;
49420
49544
  this.releasedBy = params.releasedBy;
49421
49545
  this.valueAmount = params.valueAmount;
49422
49546
  this.valueCurrency = params.valueCurrency;
49547
+ this.valueUsdAmount = params.valueUsdAmount;
49423
49548
  this.themePeer = params.themePeer;
49424
49549
  this.peerColor = params.peerColor;
49425
49550
  this.hostId = params.hostId;
49551
+ this.offerMinStars = params.offerMinStars;
49426
49552
  }
49427
49553
  static async read(_data, ..._args) {
49428
49554
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49445,9 +49571,11 @@ var Raw;
49445
49571
  let releasedBy = flags & (1 << 5) ? await index_js_1.TLObject.read(_data) : undefined;
49446
49572
  let valueAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49447
49573
  let valueCurrency = flags & (1 << 8) ? await index_js_1.Primitive.String.read(_data) : undefined;
49574
+ let valueUsdAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49448
49575
  let themePeer = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
49449
49576
  let peerColor = flags & (1 << 11) ? await index_js_1.TLObject.read(_data) : undefined;
49450
49577
  let hostId = flags & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
49578
+ let offerMinStars = flags & (1 << 13) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49451
49579
  return new Raw.StarGiftUnique({
49452
49580
  requirePremium: requirePremium,
49453
49581
  resaleTonOnly: resaleTonOnly,
@@ -49468,9 +49596,11 @@ var Raw;
49468
49596
  releasedBy: releasedBy,
49469
49597
  valueAmount: valueAmount,
49470
49598
  valueCurrency: valueCurrency,
49599
+ valueUsdAmount: valueUsdAmount,
49471
49600
  themePeer: themePeer,
49472
49601
  peerColor: peerColor,
49473
49602
  hostId: hostId,
49603
+ offerMinStars: offerMinStars,
49474
49604
  });
49475
49605
  }
49476
49606
  write() {
@@ -49488,9 +49618,11 @@ var Raw;
49488
49618
  flags |= this.releasedBy !== undefined ? 1 << 5 : 0;
49489
49619
  flags |= this.valueAmount !== undefined ? 1 << 8 : 0;
49490
49620
  flags |= this.valueCurrency !== undefined ? 1 << 8 : 0;
49621
+ flags |= this.valueUsdAmount !== undefined ? 1 << 8 : 0;
49491
49622
  flags |= this.themePeer !== undefined ? 1 << 10 : 0;
49492
49623
  flags |= this.peerColor !== undefined ? 1 << 11 : 0;
49493
49624
  flags |= this.hostId !== undefined ? 1 << 12 : 0;
49625
+ flags |= this.offerMinStars !== undefined ? 1 << 13 : 0;
49494
49626
  b.write(index_js_1.Primitive.Int.write(flags));
49495
49627
  if (this.id !== undefined) {
49496
49628
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -49540,6 +49672,9 @@ var Raw;
49540
49672
  if (this.valueCurrency !== undefined) {
49541
49673
  b.write(index_js_1.Primitive.String.write(this.valueCurrency));
49542
49674
  }
49675
+ if (this.valueUsdAmount !== undefined) {
49676
+ b.write(index_js_1.Primitive.Long.write(this.valueUsdAmount));
49677
+ }
49543
49678
  if (this.themePeer !== undefined) {
49544
49679
  b.write(this.themePeer.write());
49545
49680
  }
@@ -49549,6 +49684,9 @@ var Raw;
49549
49684
  if (this.hostId !== undefined) {
49550
49685
  b.write(this.hostId.write());
49551
49686
  }
49687
+ if (this.offerMinStars !== undefined) {
49688
+ b.write(index_js_1.Primitive.Int.write(this.offerMinStars));
49689
+ }
49552
49690
  return deps_js_1.Buffer.from(b.buffer);
49553
49691
  }
49554
49692
  }
@@ -50266,11 +50404,12 @@ var Raw;
50266
50404
  collectionId;
50267
50405
  prepaidUpgradeHash;
50268
50406
  dropOriginalDetailsStars;
50407
+ giftNum;
50269
50408
  constructor(params) {
50270
50409
  super();
50271
50410
  this.classType = 'types';
50272
50411
  this.className = 'SavedStarGift';
50273
- this.constructorId = 0x8983a452;
50412
+ this.constructorId = 0xead6805e;
50274
50413
  this.subclassOfId = 0x8e2b3c14;
50275
50414
  this._slots = [
50276
50415
  'nameHidden',
@@ -50294,6 +50433,7 @@ var Raw;
50294
50433
  'collectionId',
50295
50434
  'prepaidUpgradeHash',
50296
50435
  'dropOriginalDetailsStars',
50436
+ 'giftNum',
50297
50437
  ];
50298
50438
  this.nameHidden = params.nameHidden;
50299
50439
  this.unsaved = params.unsaved;
@@ -50316,6 +50456,7 @@ var Raw;
50316
50456
  this.collectionId = params.collectionId;
50317
50457
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
50318
50458
  this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
50459
+ this.giftNum = params.giftNum;
50319
50460
  }
50320
50461
  static async read(_data, ..._args) {
50321
50462
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -50340,6 +50481,7 @@ var Raw;
50340
50481
  let collectionId = flags & (1 << 15) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
50341
50482
  let prepaidUpgradeHash = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
50342
50483
  let dropOriginalDetailsStars = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
50484
+ let giftNum = flags & (1 << 19) ? await index_js_1.Primitive.Int.read(_data) : undefined;
50343
50485
  return new Raw.SavedStarGift({
50344
50486
  nameHidden: nameHidden,
50345
50487
  unsaved: unsaved,
@@ -50362,6 +50504,7 @@ var Raw;
50362
50504
  collectionId: collectionId,
50363
50505
  prepaidUpgradeHash: prepaidUpgradeHash,
50364
50506
  dropOriginalDetailsStars: dropOriginalDetailsStars,
50507
+ giftNum: giftNum,
50365
50508
  });
50366
50509
  }
50367
50510
  write() {
@@ -50387,6 +50530,7 @@ var Raw;
50387
50530
  flags |= this.collectionId ? 1 << 15 : 0;
50388
50531
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 16 : 0;
50389
50532
  flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 18 : 0;
50533
+ flags |= this.giftNum !== undefined ? 1 << 19 : 0;
50390
50534
  b.write(index_js_1.Primitive.Int.write(flags));
50391
50535
  if (this.fromId !== undefined) {
50392
50536
  b.write(this.fromId.write());
@@ -50433,6 +50577,9 @@ var Raw;
50433
50577
  if (this.dropOriginalDetailsStars !== undefined) {
50434
50578
  b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
50435
50579
  }
50580
+ if (this.giftNum !== undefined) {
50581
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
50582
+ }
50436
50583
  return deps_js_1.Buffer.from(b.buffer);
50437
50584
  }
50438
50585
  }
@@ -51717,7 +51864,6 @@ var Raw;
51717
51864
  class GroupCallDonor extends index_js_1.TLObject {
51718
51865
  top;
51719
51866
  my;
51720
- anonymous;
51721
51867
  peerId;
51722
51868
  stars;
51723
51869
  constructor(params) {
@@ -51726,10 +51872,9 @@ var Raw;
51726
51872
  this.className = 'GroupCallDonor';
51727
51873
  this.constructorId = 0xee430c85;
51728
51874
  this.subclassOfId = 0x14f28bb0;
51729
- this._slots = ['top', 'my', 'anonymous', 'peerId', 'stars'];
51875
+ this._slots = ['top', 'my', 'peerId', 'stars'];
51730
51876
  this.top = params.top;
51731
51877
  this.my = params.my;
51732
- this.anonymous = params.anonymous;
51733
51878
  this.peerId = params.peerId;
51734
51879
  this.stars = params.stars;
51735
51880
  }
@@ -51737,16 +51882,9 @@ var Raw;
51737
51882
  let flags = await index_js_1.Primitive.Int.read(_data);
51738
51883
  let top = flags & (1 << 0) ? true : false;
51739
51884
  let my = flags & (1 << 1) ? true : false;
51740
- let anonymous = flags & (1 << 2) ? true : false;
51741
51885
  let peerId = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
51742
51886
  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
- });
51887
+ return new Raw.GroupCallDonor({ top: top, my: my, peerId: peerId, stars: stars });
51750
51888
  }
51751
51889
  write() {
51752
51890
  const b = new deps_js_1.BytesIO();
@@ -51754,7 +51892,6 @@ var Raw;
51754
51892
  let flags = 0;
51755
51893
  flags |= this.top ? 1 << 0 : 0;
51756
51894
  flags |= this.my ? 1 << 1 : 0;
51757
- flags |= this.anonymous ? 1 << 2 : 0;
51758
51895
  flags |= this.peerId !== undefined ? 1 << 3 : 0;
51759
51896
  b.write(index_js_1.Primitive.Int.write(flags));
51760
51897
  if (this.peerId !== undefined) {
@@ -51864,14 +52001,16 @@ var Raw;
51864
52001
  bidLevels;
51865
52002
  topBidders;
51866
52003
  nextRoundAt;
52004
+ lastGiftNum;
51867
52005
  giftsLeft;
51868
52006
  currentRound;
51869
52007
  totalRounds;
52008
+ rounds;
51870
52009
  constructor(params) {
51871
52010
  super();
51872
52011
  this.classType = 'types';
51873
52012
  this.className = 'StarGiftAuctionState';
51874
- this.constructorId = 0x5db04f4b;
52013
+ this.constructorId = 0x771a4e66;
51875
52014
  this.subclassOfId = 0x229414fb;
51876
52015
  this._slots = [
51877
52016
  'version',
@@ -51881,9 +52020,11 @@ var Raw;
51881
52020
  'bidLevels',
51882
52021
  'topBidders',
51883
52022
  'nextRoundAt',
52023
+ 'lastGiftNum',
51884
52024
  'giftsLeft',
51885
52025
  'currentRound',
51886
52026
  'totalRounds',
52027
+ 'rounds',
51887
52028
  ];
51888
52029
  this.version = params.version;
51889
52030
  this.startDate = params.startDate;
@@ -51892,9 +52033,11 @@ var Raw;
51892
52033
  this.bidLevels = params.bidLevels;
51893
52034
  this.topBidders = params.topBidders;
51894
52035
  this.nextRoundAt = params.nextRoundAt;
52036
+ this.lastGiftNum = params.lastGiftNum;
51895
52037
  this.giftsLeft = params.giftsLeft;
51896
52038
  this.currentRound = params.currentRound;
51897
52039
  this.totalRounds = params.totalRounds;
52040
+ this.rounds = params.rounds;
51898
52041
  }
51899
52042
  static async read(_data, ..._args) {
51900
52043
  let version = await index_js_1.Primitive.Int.read(_data);
@@ -51904,9 +52047,11 @@ var Raw;
51904
52047
  let bidLevels = await index_js_1.TLObject.read(_data);
51905
52048
  let topBidders = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Long);
51906
52049
  let nextRoundAt = await index_js_1.Primitive.Int.read(_data);
52050
+ let lastGiftNum = await index_js_1.Primitive.Int.read(_data);
51907
52051
  let giftsLeft = await index_js_1.Primitive.Int.read(_data);
51908
52052
  let currentRound = await index_js_1.Primitive.Int.read(_data);
51909
52053
  let totalRounds = await index_js_1.Primitive.Int.read(_data);
52054
+ let rounds = await index_js_1.TLObject.read(_data);
51910
52055
  return new Raw.StarGiftAuctionState({
51911
52056
  version: version,
51912
52057
  startDate: startDate,
@@ -51915,9 +52060,11 @@ var Raw;
51915
52060
  bidLevels: bidLevels,
51916
52061
  topBidders: topBidders,
51917
52062
  nextRoundAt: nextRoundAt,
52063
+ lastGiftNum: lastGiftNum,
51918
52064
  giftsLeft: giftsLeft,
51919
52065
  currentRound: currentRound,
51920
52066
  totalRounds: totalRounds,
52067
+ rounds: rounds,
51921
52068
  });
51922
52069
  }
51923
52070
  write() {
@@ -51944,6 +52091,9 @@ var Raw;
51944
52091
  if (this.nextRoundAt !== undefined) {
51945
52092
  b.write(index_js_1.Primitive.Int.write(this.nextRoundAt));
51946
52093
  }
52094
+ if (this.lastGiftNum !== undefined) {
52095
+ b.write(index_js_1.Primitive.Int.write(this.lastGiftNum));
52096
+ }
51947
52097
  if (this.giftsLeft !== undefined) {
51948
52098
  b.write(index_js_1.Primitive.Int.write(this.giftsLeft));
51949
52099
  }
@@ -51953,6 +52103,9 @@ var Raw;
51953
52103
  if (this.totalRounds !== undefined) {
51954
52104
  b.write(index_js_1.Primitive.Int.write(this.totalRounds));
51955
52105
  }
52106
+ if (this.rounds) {
52107
+ b.write(index_js_1.Primitive.Vector.write(this.rounds));
52108
+ }
51956
52109
  return deps_js_1.Buffer.from(b.buffer);
51957
52110
  }
51958
52111
  }
@@ -51961,30 +52114,55 @@ var Raw;
51961
52114
  startDate;
51962
52115
  endDate;
51963
52116
  averagePrice;
52117
+ listedCount;
52118
+ fragmentListedCount;
52119
+ fragmentListedUrl;
51964
52120
  constructor(params) {
51965
52121
  super();
51966
52122
  this.classType = 'types';
51967
52123
  this.className = 'StarGiftAuctionStateFinished';
51968
- this.constructorId = 0x7d967c3a;
52124
+ this.constructorId = 0x972dabbf;
51969
52125
  this.subclassOfId = 0x229414fb;
51970
- this._slots = ['startDate', 'endDate', 'averagePrice'];
52126
+ this._slots = [
52127
+ 'startDate',
52128
+ 'endDate',
52129
+ 'averagePrice',
52130
+ 'listedCount',
52131
+ 'fragmentListedCount',
52132
+ 'fragmentListedUrl',
52133
+ ];
51971
52134
  this.startDate = params.startDate;
51972
52135
  this.endDate = params.endDate;
51973
52136
  this.averagePrice = params.averagePrice;
52137
+ this.listedCount = params.listedCount;
52138
+ this.fragmentListedCount = params.fragmentListedCount;
52139
+ this.fragmentListedUrl = params.fragmentListedUrl;
51974
52140
  }
51975
52141
  static async read(_data, ..._args) {
52142
+ let flags = await index_js_1.Primitive.Int.read(_data);
51976
52143
  let startDate = await index_js_1.Primitive.Int.read(_data);
51977
52144
  let endDate = await index_js_1.Primitive.Int.read(_data);
51978
52145
  let averagePrice = await index_js_1.Primitive.Long.read(_data);
52146
+ let listedCount = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52147
+ let fragmentListedCount = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52148
+ let fragmentListedUrl = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
51979
52149
  return new Raw.StarGiftAuctionStateFinished({
51980
52150
  startDate: startDate,
51981
52151
  endDate: endDate,
51982
52152
  averagePrice: averagePrice,
52153
+ listedCount: listedCount,
52154
+ fragmentListedCount: fragmentListedCount,
52155
+ fragmentListedUrl: fragmentListedUrl,
51983
52156
  });
51984
52157
  }
51985
52158
  write() {
51986
52159
  const b = new deps_js_1.BytesIO();
51987
52160
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52161
+ let flags = 0;
52162
+ flags |= this.listedCount !== undefined ? 1 << 0 : 0;
52163
+ flags |= this.fragmentListedCount !== undefined ? 1 << 1 : 0;
52164
+ flags |= this.fragmentListedUrl !== undefined ? 1 << 1 : 0;
52165
+ b.write(index_js_1.Primitive.Int.write(flags));
51988
52166
  if (this.startDate !== undefined) {
51989
52167
  b.write(index_js_1.Primitive.Int.write(this.startDate));
51990
52168
  }
@@ -51994,6 +52172,15 @@ var Raw;
51994
52172
  if (this.averagePrice !== undefined) {
51995
52173
  b.write(index_js_1.Primitive.Long.write(this.averagePrice));
51996
52174
  }
52175
+ if (this.listedCount !== undefined) {
52176
+ b.write(index_js_1.Primitive.Int.write(this.listedCount));
52177
+ }
52178
+ if (this.fragmentListedCount !== undefined) {
52179
+ b.write(index_js_1.Primitive.Int.write(this.fragmentListedCount));
52180
+ }
52181
+ if (this.fragmentListedUrl !== undefined) {
52182
+ b.write(index_js_1.Primitive.String.write(this.fragmentListedUrl));
52183
+ }
51997
52184
  return deps_js_1.Buffer.from(b.buffer);
51998
52185
  }
51999
52186
  }
@@ -52080,13 +52267,23 @@ var Raw;
52080
52267
  round;
52081
52268
  pos;
52082
52269
  message;
52270
+ giftNum;
52083
52271
  constructor(params) {
52084
52272
  super();
52085
52273
  this.classType = 'types';
52086
52274
  this.className = 'StarGiftAuctionAcquiredGift';
52087
- this.constructorId = 0xab60e20b;
52275
+ this.constructorId = 0x42b00348;
52088
52276
  this.subclassOfId = 0x270d5233;
52089
- this._slots = ['nameHidden', 'peer', 'date', 'bidAmount', 'round', 'pos', 'message'];
52277
+ this._slots = [
52278
+ 'nameHidden',
52279
+ 'peer',
52280
+ 'date',
52281
+ 'bidAmount',
52282
+ 'round',
52283
+ 'pos',
52284
+ 'message',
52285
+ 'giftNum',
52286
+ ];
52090
52287
  this.nameHidden = params.nameHidden;
52091
52288
  this.peer = params.peer;
52092
52289
  this.date = params.date;
@@ -52094,6 +52291,7 @@ var Raw;
52094
52291
  this.round = params.round;
52095
52292
  this.pos = params.pos;
52096
52293
  this.message = params.message;
52294
+ this.giftNum = params.giftNum;
52097
52295
  }
52098
52296
  static async read(_data, ..._args) {
52099
52297
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -52104,6 +52302,7 @@ var Raw;
52104
52302
  let round = await index_js_1.Primitive.Int.read(_data);
52105
52303
  let pos = await index_js_1.Primitive.Int.read(_data);
52106
52304
  let message = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
52305
+ let giftNum = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52107
52306
  return new Raw.StarGiftAuctionAcquiredGift({
52108
52307
  nameHidden: nameHidden,
52109
52308
  peer: peer,
@@ -52112,6 +52311,7 @@ var Raw;
52112
52311
  round: round,
52113
52312
  pos: pos,
52114
52313
  message: message,
52314
+ giftNum: giftNum,
52115
52315
  });
52116
52316
  }
52117
52317
  write() {
@@ -52120,6 +52320,7 @@ var Raw;
52120
52320
  let flags = 0;
52121
52321
  flags |= this.nameHidden ? 1 << 0 : 0;
52122
52322
  flags |= this.message !== undefined ? 1 << 1 : 0;
52323
+ flags |= this.giftNum !== undefined ? 1 << 2 : 0;
52123
52324
  b.write(index_js_1.Primitive.Int.write(flags));
52124
52325
  if (this.peer !== undefined) {
52125
52326
  b.write(this.peer.write());
@@ -52139,6 +52340,9 @@ var Raw;
52139
52340
  if (this.message !== undefined) {
52140
52341
  b.write(this.message.write());
52141
52342
  }
52343
+ if (this.giftNum !== undefined) {
52344
+ b.write(index_js_1.Primitive.Int.write(this.giftNum));
52345
+ }
52142
52346
  return deps_js_1.Buffer.from(b.buffer);
52143
52347
  }
52144
52348
  }
@@ -52230,6 +52434,305 @@ var Raw;
52230
52434
  }
52231
52435
  }
52232
52436
  Raw.InputStarGiftAuctionSlug = InputStarGiftAuctionSlug;
52437
+ class Passkey extends index_js_1.TLObject {
52438
+ id;
52439
+ name;
52440
+ date;
52441
+ softwareEmojiId;
52442
+ lastUsageDate;
52443
+ constructor(params) {
52444
+ super();
52445
+ this.classType = 'types';
52446
+ this.className = 'Passkey';
52447
+ this.constructorId = 0x98613ebf;
52448
+ this.subclassOfId = 0xcf380de0;
52449
+ this._slots = ['id', 'name', 'date', 'softwareEmojiId', 'lastUsageDate'];
52450
+ this.id = params.id;
52451
+ this.name = params.name;
52452
+ this.date = params.date;
52453
+ this.softwareEmojiId = params.softwareEmojiId;
52454
+ this.lastUsageDate = params.lastUsageDate;
52455
+ }
52456
+ static async read(_data, ..._args) {
52457
+ let flags = await index_js_1.Primitive.Int.read(_data);
52458
+ let id = await index_js_1.Primitive.String.read(_data);
52459
+ let name = await index_js_1.Primitive.String.read(_data);
52460
+ let date = await index_js_1.Primitive.Int.read(_data);
52461
+ let softwareEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
52462
+ let lastUsageDate = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
52463
+ return new Raw.Passkey({
52464
+ id: id,
52465
+ name: name,
52466
+ date: date,
52467
+ softwareEmojiId: softwareEmojiId,
52468
+ lastUsageDate: lastUsageDate,
52469
+ });
52470
+ }
52471
+ write() {
52472
+ const b = new deps_js_1.BytesIO();
52473
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52474
+ let flags = 0;
52475
+ flags |= this.softwareEmojiId !== undefined ? 1 << 0 : 0;
52476
+ flags |= this.lastUsageDate !== undefined ? 1 << 1 : 0;
52477
+ b.write(index_js_1.Primitive.Int.write(flags));
52478
+ if (this.id !== undefined) {
52479
+ b.write(index_js_1.Primitive.String.write(this.id));
52480
+ }
52481
+ if (this.name !== undefined) {
52482
+ b.write(index_js_1.Primitive.String.write(this.name));
52483
+ }
52484
+ if (this.date !== undefined) {
52485
+ b.write(index_js_1.Primitive.Int.write(this.date));
52486
+ }
52487
+ if (this.softwareEmojiId !== undefined) {
52488
+ b.write(index_js_1.Primitive.Long.write(this.softwareEmojiId));
52489
+ }
52490
+ if (this.lastUsageDate !== undefined) {
52491
+ b.write(index_js_1.Primitive.Int.write(this.lastUsageDate));
52492
+ }
52493
+ return deps_js_1.Buffer.from(b.buffer);
52494
+ }
52495
+ }
52496
+ Raw.Passkey = Passkey;
52497
+ class InputPasskeyResponseRegister extends index_js_1.TLObject {
52498
+ clientData;
52499
+ attestationData;
52500
+ constructor(params) {
52501
+ super();
52502
+ this.classType = 'types';
52503
+ this.className = 'InputPasskeyResponseRegister';
52504
+ this.constructorId = 0x3e63935c;
52505
+ this.subclassOfId = 0x1ef0c7cd;
52506
+ this._slots = ['clientData', 'attestationData'];
52507
+ this.clientData = params.clientData;
52508
+ this.attestationData = params.attestationData;
52509
+ }
52510
+ static async read(_data, ..._args) {
52511
+ let clientData = await index_js_1.TLObject.read(_data);
52512
+ let attestationData = await index_js_1.Primitive.Bytes.read(_data);
52513
+ return new Raw.InputPasskeyResponseRegister({
52514
+ clientData: clientData,
52515
+ attestationData: attestationData,
52516
+ });
52517
+ }
52518
+ write() {
52519
+ const b = new deps_js_1.BytesIO();
52520
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52521
+ if (this.clientData !== undefined) {
52522
+ b.write(this.clientData.write());
52523
+ }
52524
+ if (this.attestationData !== undefined) {
52525
+ b.write(index_js_1.Primitive.Bytes.write(this.attestationData));
52526
+ }
52527
+ return deps_js_1.Buffer.from(b.buffer);
52528
+ }
52529
+ }
52530
+ Raw.InputPasskeyResponseRegister = InputPasskeyResponseRegister;
52531
+ class InputPasskeyResponseLogin extends index_js_1.TLObject {
52532
+ clientData;
52533
+ authenticatorData;
52534
+ signature;
52535
+ userHandle;
52536
+ constructor(params) {
52537
+ super();
52538
+ this.classType = 'types';
52539
+ this.className = 'InputPasskeyResponseLogin';
52540
+ this.constructorId = 0xc31fc14a;
52541
+ this.subclassOfId = 0x1ef0c7cd;
52542
+ this._slots = ['clientData', 'authenticatorData', 'signature', 'userHandle'];
52543
+ this.clientData = params.clientData;
52544
+ this.authenticatorData = params.authenticatorData;
52545
+ this.signature = params.signature;
52546
+ this.userHandle = params.userHandle;
52547
+ }
52548
+ static async read(_data, ..._args) {
52549
+ let clientData = await index_js_1.TLObject.read(_data);
52550
+ let authenticatorData = await index_js_1.Primitive.Bytes.read(_data);
52551
+ let signature = await index_js_1.Primitive.Bytes.read(_data);
52552
+ let userHandle = await index_js_1.Primitive.String.read(_data);
52553
+ return new Raw.InputPasskeyResponseLogin({
52554
+ clientData: clientData,
52555
+ authenticatorData: authenticatorData,
52556
+ signature: signature,
52557
+ userHandle: userHandle,
52558
+ });
52559
+ }
52560
+ write() {
52561
+ const b = new deps_js_1.BytesIO();
52562
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52563
+ if (this.clientData !== undefined) {
52564
+ b.write(this.clientData.write());
52565
+ }
52566
+ if (this.authenticatorData !== undefined) {
52567
+ b.write(index_js_1.Primitive.Bytes.write(this.authenticatorData));
52568
+ }
52569
+ if (this.signature !== undefined) {
52570
+ b.write(index_js_1.Primitive.Bytes.write(this.signature));
52571
+ }
52572
+ if (this.userHandle !== undefined) {
52573
+ b.write(index_js_1.Primitive.String.write(this.userHandle));
52574
+ }
52575
+ return deps_js_1.Buffer.from(b.buffer);
52576
+ }
52577
+ }
52578
+ Raw.InputPasskeyResponseLogin = InputPasskeyResponseLogin;
52579
+ class InputPasskeyCredentialPublicKey extends index_js_1.TLObject {
52580
+ id;
52581
+ rawId;
52582
+ response;
52583
+ constructor(params) {
52584
+ super();
52585
+ this.classType = 'types';
52586
+ this.className = 'InputPasskeyCredentialPublicKey';
52587
+ this.constructorId = 0x3c27b78f;
52588
+ this.subclassOfId = 0x1eb1222e;
52589
+ this._slots = ['id', 'rawId', 'response'];
52590
+ this.id = params.id;
52591
+ this.rawId = params.rawId;
52592
+ this.response = params.response;
52593
+ }
52594
+ static async read(_data, ..._args) {
52595
+ let id = await index_js_1.Primitive.String.read(_data);
52596
+ let rawId = await index_js_1.Primitive.String.read(_data);
52597
+ let response = await index_js_1.TLObject.read(_data);
52598
+ return new Raw.InputPasskeyCredentialPublicKey({ id: id, rawId: rawId, response: response });
52599
+ }
52600
+ write() {
52601
+ const b = new deps_js_1.BytesIO();
52602
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52603
+ if (this.id !== undefined) {
52604
+ b.write(index_js_1.Primitive.String.write(this.id));
52605
+ }
52606
+ if (this.rawId !== undefined) {
52607
+ b.write(index_js_1.Primitive.String.write(this.rawId));
52608
+ }
52609
+ if (this.response !== undefined) {
52610
+ b.write(this.response.write());
52611
+ }
52612
+ return deps_js_1.Buffer.from(b.buffer);
52613
+ }
52614
+ }
52615
+ Raw.InputPasskeyCredentialPublicKey = InputPasskeyCredentialPublicKey;
52616
+ class StarGiftBackground extends index_js_1.TLObject {
52617
+ centerColor;
52618
+ edgeColor;
52619
+ textColor;
52620
+ constructor(params) {
52621
+ super();
52622
+ this.classType = 'types';
52623
+ this.className = 'StarGiftBackground';
52624
+ this.constructorId = 0xaff56398;
52625
+ this.subclassOfId = 0x3c51a28;
52626
+ this._slots = ['centerColor', 'edgeColor', 'textColor'];
52627
+ this.centerColor = params.centerColor;
52628
+ this.edgeColor = params.edgeColor;
52629
+ this.textColor = params.textColor;
52630
+ }
52631
+ static async read(_data, ..._args) {
52632
+ let centerColor = await index_js_1.Primitive.Int.read(_data);
52633
+ let edgeColor = await index_js_1.Primitive.Int.read(_data);
52634
+ let textColor = await index_js_1.Primitive.Int.read(_data);
52635
+ return new Raw.StarGiftBackground({
52636
+ centerColor: centerColor,
52637
+ edgeColor: edgeColor,
52638
+ textColor: textColor,
52639
+ });
52640
+ }
52641
+ write() {
52642
+ const b = new deps_js_1.BytesIO();
52643
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52644
+ if (this.centerColor !== undefined) {
52645
+ b.write(index_js_1.Primitive.Int.write(this.centerColor));
52646
+ }
52647
+ if (this.edgeColor !== undefined) {
52648
+ b.write(index_js_1.Primitive.Int.write(this.edgeColor));
52649
+ }
52650
+ if (this.textColor !== undefined) {
52651
+ b.write(index_js_1.Primitive.Int.write(this.textColor));
52652
+ }
52653
+ return deps_js_1.Buffer.from(b.buffer);
52654
+ }
52655
+ }
52656
+ Raw.StarGiftBackground = StarGiftBackground;
52657
+ class StarGiftAuctionRound extends index_js_1.TLObject {
52658
+ num;
52659
+ duration;
52660
+ constructor(params) {
52661
+ super();
52662
+ this.classType = 'types';
52663
+ this.className = 'StarGiftAuctionRound';
52664
+ this.constructorId = 0x3aae0528;
52665
+ this.subclassOfId = 0x44e92c34;
52666
+ this._slots = ['num', 'duration'];
52667
+ this.num = params.num;
52668
+ this.duration = params.duration;
52669
+ }
52670
+ static async read(_data, ..._args) {
52671
+ let num = await index_js_1.Primitive.Int.read(_data);
52672
+ let duration = await index_js_1.Primitive.Int.read(_data);
52673
+ return new Raw.StarGiftAuctionRound({ num: num, duration: duration });
52674
+ }
52675
+ write() {
52676
+ const b = new deps_js_1.BytesIO();
52677
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52678
+ if (this.num !== undefined) {
52679
+ b.write(index_js_1.Primitive.Int.write(this.num));
52680
+ }
52681
+ if (this.duration !== undefined) {
52682
+ b.write(index_js_1.Primitive.Int.write(this.duration));
52683
+ }
52684
+ return deps_js_1.Buffer.from(b.buffer);
52685
+ }
52686
+ }
52687
+ Raw.StarGiftAuctionRound = StarGiftAuctionRound;
52688
+ class StarGiftAuctionRoundExtendable extends index_js_1.TLObject {
52689
+ num;
52690
+ duration;
52691
+ extendTop;
52692
+ extendWindow;
52693
+ constructor(params) {
52694
+ super();
52695
+ this.classType = 'types';
52696
+ this.className = 'StarGiftAuctionRoundExtendable';
52697
+ this.constructorId = 0xaa021e5;
52698
+ this.subclassOfId = 0x44e92c34;
52699
+ this._slots = ['num', 'duration', 'extendTop', 'extendWindow'];
52700
+ this.num = params.num;
52701
+ this.duration = params.duration;
52702
+ this.extendTop = params.extendTop;
52703
+ this.extendWindow = params.extendWindow;
52704
+ }
52705
+ static async read(_data, ..._args) {
52706
+ let num = await index_js_1.Primitive.Int.read(_data);
52707
+ let duration = await index_js_1.Primitive.Int.read(_data);
52708
+ let extendTop = await index_js_1.Primitive.Int.read(_data);
52709
+ let extendWindow = await index_js_1.Primitive.Int.read(_data);
52710
+ return new Raw.StarGiftAuctionRoundExtendable({
52711
+ num: num,
52712
+ duration: duration,
52713
+ extendTop: extendTop,
52714
+ extendWindow: extendWindow,
52715
+ });
52716
+ }
52717
+ write() {
52718
+ const b = new deps_js_1.BytesIO();
52719
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
52720
+ if (this.num !== undefined) {
52721
+ b.write(index_js_1.Primitive.Int.write(this.num));
52722
+ }
52723
+ if (this.duration !== undefined) {
52724
+ b.write(index_js_1.Primitive.Int.write(this.duration));
52725
+ }
52726
+ if (this.extendTop !== undefined) {
52727
+ b.write(index_js_1.Primitive.Int.write(this.extendTop));
52728
+ }
52729
+ if (this.extendWindow !== undefined) {
52730
+ b.write(index_js_1.Primitive.Int.write(this.extendWindow));
52731
+ }
52732
+ return deps_js_1.Buffer.from(b.buffer);
52733
+ }
52734
+ }
52735
+ Raw.StarGiftAuctionRoundExtendable = StarGiftAuctionRoundExtendable;
52233
52736
  class InvokeAfterMsg extends index_js_1.TLObject {
52234
52737
  __response__;
52235
52738
  msgId;
@@ -57960,6 +58463,31 @@ var Raw;
57960
58463
  }
57961
58464
  }
57962
58465
  auth.LoggedOut = LoggedOut;
58466
+ class PasskeyLoginOptions extends index_js_1.TLObject {
58467
+ options;
58468
+ constructor(params) {
58469
+ super();
58470
+ this.classType = 'types';
58471
+ this.className = 'auth.PasskeyLoginOptions';
58472
+ this.constructorId = 0xe2037789;
58473
+ this.subclassOfId = 0xd9793032;
58474
+ this._slots = ['options'];
58475
+ this.options = params.options;
58476
+ }
58477
+ static async read(_data, ..._args) {
58478
+ let options = await index_js_1.TLObject.read(_data);
58479
+ return new Raw.auth.PasskeyLoginOptions({ options: options });
58480
+ }
58481
+ write() {
58482
+ const b = new deps_js_1.BytesIO();
58483
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
58484
+ if (this.options !== undefined) {
58485
+ b.write(this.options.write());
58486
+ }
58487
+ return deps_js_1.Buffer.from(b.buffer);
58488
+ }
58489
+ }
58490
+ auth.PasskeyLoginOptions = PasskeyLoginOptions;
57963
58491
  class SendCode extends index_js_1.TLObject {
57964
58492
  __response__;
57965
58493
  phoneNumber;
@@ -58857,6 +59385,85 @@ var Raw;
58857
59385
  }
58858
59386
  }
58859
59387
  auth.CheckPaidAuth = CheckPaidAuth;
59388
+ class InitPasskeyLogin extends index_js_1.TLObject {
59389
+ __response__;
59390
+ apiId;
59391
+ apiHash;
59392
+ constructor(params) {
59393
+ super();
59394
+ this.classType = 'functions';
59395
+ this.className = 'auth.InitPasskeyLogin';
59396
+ this.constructorId = 0x518ad0b7;
59397
+ this.subclassOfId = 0xd9793032;
59398
+ this._slots = ['apiId', 'apiHash'];
59399
+ this.apiId = params.apiId;
59400
+ this.apiHash = params.apiHash;
59401
+ }
59402
+ static async read(_data, ..._args) {
59403
+ let apiId = await index_js_1.Primitive.Int.read(_data);
59404
+ let apiHash = await index_js_1.Primitive.String.read(_data);
59405
+ return new Raw.auth.InitPasskeyLogin({ apiId: apiId, apiHash: apiHash });
59406
+ }
59407
+ write() {
59408
+ const b = new deps_js_1.BytesIO();
59409
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
59410
+ if (this.apiId !== undefined) {
59411
+ b.write(index_js_1.Primitive.Int.write(this.apiId));
59412
+ }
59413
+ if (this.apiHash !== undefined) {
59414
+ b.write(index_js_1.Primitive.String.write(this.apiHash));
59415
+ }
59416
+ return deps_js_1.Buffer.from(b.buffer);
59417
+ }
59418
+ }
59419
+ auth.InitPasskeyLogin = InitPasskeyLogin;
59420
+ class FinishPasskeyLogin extends index_js_1.TLObject {
59421
+ __response__;
59422
+ credential;
59423
+ fromDcId;
59424
+ fromAuthKeyId;
59425
+ constructor(params) {
59426
+ super();
59427
+ this.classType = 'functions';
59428
+ this.className = 'auth.FinishPasskeyLogin';
59429
+ this.constructorId = 0x9857ad07;
59430
+ this.subclassOfId = 0xb9e04e39;
59431
+ this._slots = ['credential', 'fromDcId', 'fromAuthKeyId'];
59432
+ this.credential = params.credential;
59433
+ this.fromDcId = params.fromDcId;
59434
+ this.fromAuthKeyId = params.fromAuthKeyId;
59435
+ }
59436
+ static async read(_data, ..._args) {
59437
+ let flags = await index_js_1.Primitive.Int.read(_data);
59438
+ let credential = await index_js_1.TLObject.read(_data);
59439
+ let fromDcId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
59440
+ let fromAuthKeyId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
59441
+ return new Raw.auth.FinishPasskeyLogin({
59442
+ credential: credential,
59443
+ fromDcId: fromDcId,
59444
+ fromAuthKeyId: fromAuthKeyId,
59445
+ });
59446
+ }
59447
+ write() {
59448
+ const b = new deps_js_1.BytesIO();
59449
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
59450
+ let flags = 0;
59451
+ flags |= this.fromDcId !== undefined ? 1 << 0 : 0;
59452
+ flags |= this.fromAuthKeyId !== undefined ? 1 << 0 : 0;
59453
+ b.write(index_js_1.Primitive.Int.write(flags));
59454
+ if (this.credential !== undefined) {
59455
+ b.write(this.credential.write());
59456
+ }
59457
+ if (this.fromDcId !== undefined) {
59458
+ b.write(index_js_1.Primitive.Int.write(this.fromDcId));
59459
+ }
59460
+ if (this.fromAuthKeyId !== undefined) {
59461
+ b.write(index_js_1.Primitive.Long.write(this.fromAuthKeyId));
59462
+ }
59463
+ return deps_js_1.Buffer.from(b.buffer);
59464
+ }
59465
+ }
59466
+ auth.FinishPasskeyLogin = FinishPasskeyLogin;
58860
59467
  })(auth = Raw.auth || (Raw.auth = {}));
58861
59468
  let contacts;
58862
59469
  (function (contacts_1) {
@@ -64511,6 +65118,7 @@ var Raw;
64511
65118
  scheduleRepeatPeriod;
64512
65119
  sendAs;
64513
65120
  quickReplyShortcut;
65121
+ effect;
64514
65122
  videoTimestamp;
64515
65123
  allowPaidStars;
64516
65124
  suggestedPost;
@@ -64518,7 +65126,7 @@ var Raw;
64518
65126
  super();
64519
65127
  this.classType = 'functions';
64520
65128
  this.className = 'messages.ForwardMessages';
64521
- this.constructorId = 0x41d41ade;
65129
+ this.constructorId = 0x13704a7c;
64522
65130
  this.subclassOfId = 0x8af52aac;
64523
65131
  this._slots = [
64524
65132
  'silent',
@@ -64538,6 +65146,7 @@ var Raw;
64538
65146
  'scheduleRepeatPeriod',
64539
65147
  'sendAs',
64540
65148
  'quickReplyShortcut',
65149
+ 'effect',
64541
65150
  'videoTimestamp',
64542
65151
  'allowPaidStars',
64543
65152
  'suggestedPost',
@@ -64559,6 +65168,7 @@ var Raw;
64559
65168
  this.scheduleRepeatPeriod = params.scheduleRepeatPeriod;
64560
65169
  this.sendAs = params.sendAs;
64561
65170
  this.quickReplyShortcut = params.quickReplyShortcut;
65171
+ this.effect = params.effect;
64562
65172
  this.videoTimestamp = params.videoTimestamp;
64563
65173
  this.allowPaidStars = params.allowPaidStars;
64564
65174
  this.suggestedPost = params.suggestedPost;
@@ -64582,6 +65192,7 @@ var Raw;
64582
65192
  let scheduleRepeatPeriod = flags & (1 << 24) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64583
65193
  let sendAs = flags & (1 << 13) ? await index_js_1.TLObject.read(_data) : undefined;
64584
65194
  let quickReplyShortcut = flags & (1 << 17) ? await index_js_1.TLObject.read(_data) : undefined;
65195
+ let effect = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
64585
65196
  let videoTimestamp = flags & (1 << 20) ? await index_js_1.Primitive.Int.read(_data) : undefined;
64586
65197
  let allowPaidStars = flags & (1 << 21) ? await index_js_1.Primitive.Long.read(_data) : undefined;
64587
65198
  let suggestedPost = flags & (1 << 23) ? await index_js_1.TLObject.read(_data) : undefined;
@@ -64603,6 +65214,7 @@ var Raw;
64603
65214
  scheduleRepeatPeriod: scheduleRepeatPeriod,
64604
65215
  sendAs: sendAs,
64605
65216
  quickReplyShortcut: quickReplyShortcut,
65217
+ effect: effect,
64606
65218
  videoTimestamp: videoTimestamp,
64607
65219
  allowPaidStars: allowPaidStars,
64608
65220
  suggestedPost: suggestedPost,
@@ -64625,6 +65237,7 @@ var Raw;
64625
65237
  flags |= this.scheduleRepeatPeriod !== undefined ? 1 << 24 : 0;
64626
65238
  flags |= this.sendAs !== undefined ? 1 << 13 : 0;
64627
65239
  flags |= this.quickReplyShortcut !== undefined ? 1 << 17 : 0;
65240
+ flags |= this.effect !== undefined ? 1 << 18 : 0;
64628
65241
  flags |= this.videoTimestamp !== undefined ? 1 << 20 : 0;
64629
65242
  flags |= this.allowPaidStars !== undefined ? 1 << 21 : 0;
64630
65243
  flags |= this.suggestedPost !== undefined ? 1 << 23 : 0;
@@ -64659,6 +65272,9 @@ var Raw;
64659
65272
  if (this.quickReplyShortcut !== undefined) {
64660
65273
  b.write(this.quickReplyShortcut.write());
64661
65274
  }
65275
+ if (this.effect !== undefined) {
65276
+ b.write(index_js_1.Primitive.Long.write(this.effect));
65277
+ }
64662
65278
  if (this.videoTimestamp !== undefined) {
64663
65279
  b.write(index_js_1.Primitive.Int.write(this.videoTimestamp));
64664
65280
  }
@@ -76795,6 +77411,56 @@ var Raw;
76795
77411
  }
76796
77412
  }
76797
77413
  account.SavedMusicIds = SavedMusicIds;
77414
+ class Passkeys extends index_js_1.TLObject {
77415
+ passkeys;
77416
+ constructor(params) {
77417
+ super();
77418
+ this.classType = 'types';
77419
+ this.className = 'account.Passkeys';
77420
+ this.constructorId = 0xf8e0aa1c;
77421
+ this.subclassOfId = 0x24dd205e;
77422
+ this._slots = ['passkeys'];
77423
+ this.passkeys = params.passkeys;
77424
+ }
77425
+ static async read(_data, ..._args) {
77426
+ let passkeys = await index_js_1.TLObject.read(_data);
77427
+ return new Raw.account.Passkeys({ passkeys: passkeys });
77428
+ }
77429
+ write() {
77430
+ const b = new deps_js_1.BytesIO();
77431
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
77432
+ if (this.passkeys) {
77433
+ b.write(index_js_1.Primitive.Vector.write(this.passkeys));
77434
+ }
77435
+ return deps_js_1.Buffer.from(b.buffer);
77436
+ }
77437
+ }
77438
+ account.Passkeys = Passkeys;
77439
+ class PasskeyRegistrationOptions extends index_js_1.TLObject {
77440
+ options;
77441
+ constructor(params) {
77442
+ super();
77443
+ this.classType = 'types';
77444
+ this.className = 'account.PasskeyRegistrationOptions';
77445
+ this.constructorId = 0xe16b5ce1;
77446
+ this.subclassOfId = 0x341d83e4;
77447
+ this._slots = ['options'];
77448
+ this.options = params.options;
77449
+ }
77450
+ static async read(_data, ..._args) {
77451
+ let options = await index_js_1.TLObject.read(_data);
77452
+ return new Raw.account.PasskeyRegistrationOptions({ options: options });
77453
+ }
77454
+ write() {
77455
+ const b = new deps_js_1.BytesIO();
77456
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
77457
+ if (this.options !== undefined) {
77458
+ b.write(this.options.write());
77459
+ }
77460
+ return deps_js_1.Buffer.from(b.buffer);
77461
+ }
77462
+ }
77463
+ account.PasskeyRegistrationOptions = PasskeyRegistrationOptions;
76798
77464
  class RegisterDevice extends index_js_1.TLObject {
76799
77465
  __response__;
76800
77466
  noMuted;
@@ -80519,6 +81185,98 @@ var Raw;
80519
81185
  }
80520
81186
  }
80521
81187
  account.GetUniqueGiftChatThemes = GetUniqueGiftChatThemes;
81188
+ class InitPasskeyRegistration extends index_js_1.TLObject {
81189
+ __response__;
81190
+ constructor() {
81191
+ super();
81192
+ this.classType = 'functions';
81193
+ this.className = 'account.InitPasskeyRegistration';
81194
+ this.constructorId = 0x429547e8;
81195
+ this.subclassOfId = 0x341d83e4;
81196
+ this._slots = [];
81197
+ }
81198
+ static async read(_data, ..._args) {
81199
+ return new Raw.account.InitPasskeyRegistration();
81200
+ }
81201
+ write() {
81202
+ const b = new deps_js_1.BytesIO();
81203
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81204
+ return deps_js_1.Buffer.from(b.buffer);
81205
+ }
81206
+ }
81207
+ account.InitPasskeyRegistration = InitPasskeyRegistration;
81208
+ class RegisterPasskey extends index_js_1.TLObject {
81209
+ __response__;
81210
+ credential;
81211
+ constructor(params) {
81212
+ super();
81213
+ this.classType = 'functions';
81214
+ this.className = 'account.RegisterPasskey';
81215
+ this.constructorId = 0x55b41fd6;
81216
+ this.subclassOfId = 0xcf380de0;
81217
+ this._slots = ['credential'];
81218
+ this.credential = params.credential;
81219
+ }
81220
+ static async read(_data, ..._args) {
81221
+ let credential = await index_js_1.TLObject.read(_data);
81222
+ return new Raw.account.RegisterPasskey({ credential: credential });
81223
+ }
81224
+ write() {
81225
+ const b = new deps_js_1.BytesIO();
81226
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81227
+ if (this.credential !== undefined) {
81228
+ b.write(this.credential.write());
81229
+ }
81230
+ return deps_js_1.Buffer.from(b.buffer);
81231
+ }
81232
+ }
81233
+ account.RegisterPasskey = RegisterPasskey;
81234
+ class GetPasskeys extends index_js_1.TLObject {
81235
+ __response__;
81236
+ constructor() {
81237
+ super();
81238
+ this.classType = 'functions';
81239
+ this.className = 'account.GetPasskeys';
81240
+ this.constructorId = 0xea1f0c52;
81241
+ this.subclassOfId = 0x24dd205e;
81242
+ this._slots = [];
81243
+ }
81244
+ static async read(_data, ..._args) {
81245
+ return new Raw.account.GetPasskeys();
81246
+ }
81247
+ write() {
81248
+ const b = new deps_js_1.BytesIO();
81249
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81250
+ return deps_js_1.Buffer.from(b.buffer);
81251
+ }
81252
+ }
81253
+ account.GetPasskeys = GetPasskeys;
81254
+ class DeletePasskey extends index_js_1.TLObject {
81255
+ __response__;
81256
+ id;
81257
+ constructor(params) {
81258
+ super();
81259
+ this.classType = 'functions';
81260
+ this.className = 'account.DeletePasskey';
81261
+ this.constructorId = 0xf5b5563f;
81262
+ this.subclassOfId = 0xf5b399ac;
81263
+ this._slots = ['id'];
81264
+ this.id = params.id;
81265
+ }
81266
+ static async read(_data, ..._args) {
81267
+ let id = await index_js_1.Primitive.String.read(_data);
81268
+ return new Raw.account.DeletePasskey({ id: id });
81269
+ }
81270
+ write() {
81271
+ const b = new deps_js_1.BytesIO();
81272
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
81273
+ if (this.id !== undefined) {
81274
+ b.write(index_js_1.Primitive.String.write(this.id));
81275
+ }
81276
+ return deps_js_1.Buffer.from(b.buffer);
81277
+ }
81278
+ }
81279
+ account.DeletePasskey = DeletePasskey;
80522
81280
  })(account = Raw.account || (Raw.account = {}));
80523
81281
  let channels;
80524
81282
  (function (channels) {
@@ -84723,18 +85481,20 @@ var Raw;
84723
85481
  userState;
84724
85482
  timeout;
84725
85483
  users;
85484
+ chats;
84726
85485
  constructor(params) {
84727
85486
  super();
84728
85487
  this.classType = 'types';
84729
85488
  this.className = 'payments.StarGiftAuctionState';
84730
- this.constructorId = 0xe98e474;
85489
+ this.constructorId = 0x6b39f4ec;
84731
85490
  this.subclassOfId = 0x1a318599;
84732
- this._slots = ['gift', 'state', 'userState', 'timeout', 'users'];
85491
+ this._slots = ['gift', 'state', 'userState', 'timeout', 'users', 'chats'];
84733
85492
  this.gift = params.gift;
84734
85493
  this.state = params.state;
84735
85494
  this.userState = params.userState;
84736
85495
  this.timeout = params.timeout;
84737
85496
  this.users = params.users;
85497
+ this.chats = params.chats;
84738
85498
  }
84739
85499
  static async read(_data, ..._args) {
84740
85500
  let gift = await index_js_1.TLObject.read(_data);
@@ -84742,12 +85502,14 @@ var Raw;
84742
85502
  let userState = await index_js_1.TLObject.read(_data);
84743
85503
  let timeout = await index_js_1.Primitive.Int.read(_data);
84744
85504
  let users = await index_js_1.TLObject.read(_data);
85505
+ let chats = await index_js_1.TLObject.read(_data);
84745
85506
  return new Raw.payments.StarGiftAuctionState({
84746
85507
  gift: gift,
84747
85508
  state: state,
84748
85509
  userState: userState,
84749
85510
  timeout: timeout,
84750
85511
  users: users,
85512
+ chats: chats,
84751
85513
  });
84752
85514
  }
84753
85515
  write() {
@@ -84768,6 +85530,9 @@ var Raw;
84768
85530
  if (this.users) {
84769
85531
  b.write(index_js_1.Primitive.Vector.write(this.users));
84770
85532
  }
85533
+ if (this.chats) {
85534
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
85535
+ }
84771
85536
  return deps_js_1.Buffer.from(b.buffer);
84772
85537
  }
84773
85538
  }
@@ -84835,20 +85600,27 @@ var Raw;
84835
85600
  class StarGiftActiveAuctions extends index_js_1.TLObject {
84836
85601
  auctions;
84837
85602
  users;
85603
+ chats;
84838
85604
  constructor(params) {
84839
85605
  super();
84840
85606
  this.classType = 'types';
84841
85607
  this.className = 'payments.StarGiftActiveAuctions';
84842
- this.constructorId = 0x97f187d8;
85608
+ this.constructorId = 0xaef6abbc;
84843
85609
  this.subclassOfId = 0x917dd0c7;
84844
- this._slots = ['auctions', 'users'];
85610
+ this._slots = ['auctions', 'users', 'chats'];
84845
85611
  this.auctions = params.auctions;
84846
85612
  this.users = params.users;
85613
+ this.chats = params.chats;
84847
85614
  }
84848
85615
  static async read(_data, ..._args) {
84849
85616
  let auctions = await index_js_1.TLObject.read(_data);
84850
85617
  let users = await index_js_1.TLObject.read(_data);
84851
- return new Raw.payments.StarGiftActiveAuctions({ auctions: auctions, users: users });
85618
+ let chats = await index_js_1.TLObject.read(_data);
85619
+ return new Raw.payments.StarGiftActiveAuctions({
85620
+ auctions: auctions,
85621
+ users: users,
85622
+ chats: chats,
85623
+ });
84852
85624
  }
84853
85625
  write() {
84854
85626
  const b = new deps_js_1.BytesIO();
@@ -84859,10 +85631,38 @@ var Raw;
84859
85631
  if (this.users) {
84860
85632
  b.write(index_js_1.Primitive.Vector.write(this.users));
84861
85633
  }
85634
+ if (this.chats) {
85635
+ b.write(index_js_1.Primitive.Vector.write(this.chats));
85636
+ }
84862
85637
  return deps_js_1.Buffer.from(b.buffer);
84863
85638
  }
84864
85639
  }
84865
85640
  payments.StarGiftActiveAuctions = StarGiftActiveAuctions;
85641
+ class StarGiftUpgradeAttributes extends index_js_1.TLObject {
85642
+ attributes;
85643
+ constructor(params) {
85644
+ super();
85645
+ this.classType = 'types';
85646
+ this.className = 'payments.StarGiftUpgradeAttributes';
85647
+ this.constructorId = 0x46c6e36f;
85648
+ this.subclassOfId = 0xf46acef;
85649
+ this._slots = ['attributes'];
85650
+ this.attributes = params.attributes;
85651
+ }
85652
+ static async read(_data, ..._args) {
85653
+ let attributes = await index_js_1.TLObject.read(_data);
85654
+ return new Raw.payments.StarGiftUpgradeAttributes({ attributes: attributes });
85655
+ }
85656
+ write() {
85657
+ const b = new deps_js_1.BytesIO();
85658
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
85659
+ if (this.attributes) {
85660
+ b.write(index_js_1.Primitive.Vector.write(this.attributes));
85661
+ }
85662
+ return deps_js_1.Buffer.from(b.buffer);
85663
+ }
85664
+ }
85665
+ payments.StarGiftUpgradeAttributes = StarGiftUpgradeAttributes;
84866
85666
  class GetPaymentForm extends index_js_1.TLObject {
84867
85667
  __response__;
84868
85668
  invoice;
@@ -87084,6 +87884,132 @@ var Raw;
87084
87884
  }
87085
87885
  }
87086
87886
  payments.GetStarGiftActiveAuctions = GetStarGiftActiveAuctions;
87887
+ class ResolveStarGiftOffer extends index_js_1.TLObject {
87888
+ __response__;
87889
+ decline;
87890
+ offerMsgId;
87891
+ constructor(params) {
87892
+ super();
87893
+ this.classType = 'functions';
87894
+ this.className = 'payments.ResolveStarGiftOffer';
87895
+ this.constructorId = 0xe9ce781c;
87896
+ this.subclassOfId = 0x8af52aac;
87897
+ this._slots = ['decline', 'offerMsgId'];
87898
+ this.decline = params.decline;
87899
+ this.offerMsgId = params.offerMsgId;
87900
+ }
87901
+ static async read(_data, ..._args) {
87902
+ let flags = await index_js_1.Primitive.Int.read(_data);
87903
+ let decline = flags & (1 << 0) ? true : false;
87904
+ let offerMsgId = await index_js_1.Primitive.Int.read(_data);
87905
+ return new Raw.payments.ResolveStarGiftOffer({ decline: decline, offerMsgId: offerMsgId });
87906
+ }
87907
+ write() {
87908
+ const b = new deps_js_1.BytesIO();
87909
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87910
+ let flags = 0;
87911
+ flags |= this.decline ? 1 << 0 : 0;
87912
+ b.write(index_js_1.Primitive.Int.write(flags));
87913
+ if (this.offerMsgId !== undefined) {
87914
+ b.write(index_js_1.Primitive.Int.write(this.offerMsgId));
87915
+ }
87916
+ return deps_js_1.Buffer.from(b.buffer);
87917
+ }
87918
+ }
87919
+ payments.ResolveStarGiftOffer = ResolveStarGiftOffer;
87920
+ class SendStarGiftOffer extends index_js_1.TLObject {
87921
+ __response__;
87922
+ peer;
87923
+ slug;
87924
+ price;
87925
+ duration;
87926
+ randomId;
87927
+ allowPaidStars;
87928
+ constructor(params) {
87929
+ super();
87930
+ this.classType = 'functions';
87931
+ this.className = 'payments.SendStarGiftOffer';
87932
+ this.constructorId = 0x8fb86b41;
87933
+ this.subclassOfId = 0x8af52aac;
87934
+ this._slots = ['peer', 'slug', 'price', 'duration', 'randomId', 'allowPaidStars'];
87935
+ this.peer = params.peer;
87936
+ this.slug = params.slug;
87937
+ this.price = params.price;
87938
+ this.duration = params.duration;
87939
+ this.randomId = params.randomId;
87940
+ this.allowPaidStars = params.allowPaidStars;
87941
+ }
87942
+ static async read(_data, ..._args) {
87943
+ let flags = await index_js_1.Primitive.Int.read(_data);
87944
+ let peer = await index_js_1.TLObject.read(_data);
87945
+ let slug = await index_js_1.Primitive.String.read(_data);
87946
+ let price = await index_js_1.TLObject.read(_data);
87947
+ let duration = await index_js_1.Primitive.Int.read(_data);
87948
+ let randomId = await index_js_1.Primitive.Long.read(_data);
87949
+ let allowPaidStars = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
87950
+ return new Raw.payments.SendStarGiftOffer({
87951
+ peer: peer,
87952
+ slug: slug,
87953
+ price: price,
87954
+ duration: duration,
87955
+ randomId: randomId,
87956
+ allowPaidStars: allowPaidStars,
87957
+ });
87958
+ }
87959
+ write() {
87960
+ const b = new deps_js_1.BytesIO();
87961
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87962
+ let flags = 0;
87963
+ flags |= this.allowPaidStars !== undefined ? 1 << 0 : 0;
87964
+ b.write(index_js_1.Primitive.Int.write(flags));
87965
+ if (this.peer !== undefined) {
87966
+ b.write(this.peer.write());
87967
+ }
87968
+ if (this.slug !== undefined) {
87969
+ b.write(index_js_1.Primitive.String.write(this.slug));
87970
+ }
87971
+ if (this.price !== undefined) {
87972
+ b.write(this.price.write());
87973
+ }
87974
+ if (this.duration !== undefined) {
87975
+ b.write(index_js_1.Primitive.Int.write(this.duration));
87976
+ }
87977
+ if (this.randomId !== undefined) {
87978
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
87979
+ }
87980
+ if (this.allowPaidStars !== undefined) {
87981
+ b.write(index_js_1.Primitive.Long.write(this.allowPaidStars));
87982
+ }
87983
+ return deps_js_1.Buffer.from(b.buffer);
87984
+ }
87985
+ }
87986
+ payments.SendStarGiftOffer = SendStarGiftOffer;
87987
+ class GetStarGiftUpgradeAttributes extends index_js_1.TLObject {
87988
+ __response__;
87989
+ giftId;
87990
+ constructor(params) {
87991
+ super();
87992
+ this.classType = 'functions';
87993
+ this.className = 'payments.GetStarGiftUpgradeAttributes';
87994
+ this.constructorId = 0x6d038b58;
87995
+ this.subclassOfId = 0xf46acef;
87996
+ this._slots = ['giftId'];
87997
+ this.giftId = params.giftId;
87998
+ }
87999
+ static async read(_data, ..._args) {
88000
+ let giftId = await index_js_1.Primitive.Long.read(_data);
88001
+ return new Raw.payments.GetStarGiftUpgradeAttributes({ giftId: giftId });
88002
+ }
88003
+ write() {
88004
+ const b = new deps_js_1.BytesIO();
88005
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
88006
+ if (this.giftId !== undefined) {
88007
+ b.write(index_js_1.Primitive.Long.write(this.giftId));
88008
+ }
88009
+ return deps_js_1.Buffer.from(b.buffer);
88010
+ }
88011
+ }
88012
+ payments.GetStarGiftUpgradeAttributes = GetStarGiftUpgradeAttributes;
87087
88013
  })(payments = Raw.payments || (Raw.payments = {}));
87088
88014
  let phone;
87089
88015
  (function (phone) {