@tgsnake/skema 1.4.0 → 1.5.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 = 214;
8
+ Raw.Layer = 216;
9
9
  Raw.HighestSCLayer = 144;
10
10
  class ResPQ extends index_js_1.TLObject {
11
11
  nonce;
@@ -4009,6 +4009,7 @@ var Raw;
4009
4009
  contactRequirePremium;
4010
4010
  botBusiness;
4011
4011
  botHasMainApp;
4012
+ botForumView;
4012
4013
  id;
4013
4014
  accessHash;
4014
4015
  firstName;
@@ -4061,6 +4062,7 @@ var Raw;
4061
4062
  'contactRequirePremium',
4062
4063
  'botBusiness',
4063
4064
  'botHasMainApp',
4065
+ 'botForumView',
4064
4066
  'id',
4065
4067
  'accessHash',
4066
4068
  'firstName',
@@ -4107,6 +4109,7 @@ var Raw;
4107
4109
  this.contactRequirePremium = params.contactRequirePremium;
4108
4110
  this.botBusiness = params.botBusiness;
4109
4111
  this.botHasMainApp = params.botHasMainApp;
4112
+ this.botForumView = params.botForumView;
4110
4113
  this.id = params.id;
4111
4114
  this.accessHash = params.accessHash;
4112
4115
  this.firstName = params.firstName;
@@ -4156,6 +4159,7 @@ var Raw;
4156
4159
  let contactRequirePremium = flags2 & (1 << 10) ? true : false;
4157
4160
  let botBusiness = flags2 & (1 << 11) ? true : false;
4158
4161
  let botHasMainApp = flags2 & (1 << 13) ? true : false;
4162
+ let botForumView = flags2 & (1 << 16) ? true : false;
4159
4163
  let id = await index_js_1.Primitive.Long.read(_data);
4160
4164
  let accessHash = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
4161
4165
  let firstName = flags & (1 << 1) ? await index_js_1.Primitive.String.read(_data) : undefined;
@@ -4202,6 +4206,7 @@ var Raw;
4202
4206
  contactRequirePremium: contactRequirePremium,
4203
4207
  botBusiness: botBusiness,
4204
4208
  botHasMainApp: botHasMainApp,
4209
+ botForumView: botForumView,
4205
4210
  id: id,
4206
4211
  accessHash: accessHash,
4207
4212
  firstName: firstName,
@@ -4267,6 +4272,7 @@ var Raw;
4267
4272
  flags2 |= this.contactRequirePremium ? 1 << 10 : 0;
4268
4273
  flags2 |= this.botBusiness ? 1 << 11 : 0;
4269
4274
  flags2 |= this.botHasMainApp ? 1 << 13 : 0;
4275
+ flags2 |= this.botForumView ? 1 << 16 : 0;
4270
4276
  flags2 |= this.usernames ? 1 << 0 : 0;
4271
4277
  flags2 |= this.storiesMaxId !== undefined ? 1 << 5 : 0;
4272
4278
  flags2 |= this.color !== undefined ? 1 << 8 : 0;
@@ -8752,6 +8758,7 @@ var Raw;
8752
8758
  }
8753
8759
  Raw.MessageActionGiftPremium = MessageActionGiftPremium;
8754
8760
  class MessageActionTopicCreate extends index_js_1.TLObject {
8761
+ titleMissing;
8755
8762
  title;
8756
8763
  iconColor;
8757
8764
  iconEmojiId;
@@ -8761,17 +8768,20 @@ var Raw;
8761
8768
  this.className = 'MessageActionTopicCreate';
8762
8769
  this.constructorId = 0xd999256;
8763
8770
  this.subclassOfId = 0x8680d126;
8764
- this._slots = ['title', 'iconColor', 'iconEmojiId'];
8771
+ this._slots = ['titleMissing', 'title', 'iconColor', 'iconEmojiId'];
8772
+ this.titleMissing = params.titleMissing;
8765
8773
  this.title = params.title;
8766
8774
  this.iconColor = params.iconColor;
8767
8775
  this.iconEmojiId = params.iconEmojiId;
8768
8776
  }
8769
8777
  static async read(_data, ..._args) {
8770
8778
  let flags = await index_js_1.Primitive.Int.read(_data);
8779
+ let titleMissing = flags & (1 << 1) ? true : false;
8771
8780
  let title = await index_js_1.Primitive.String.read(_data);
8772
8781
  let iconColor = await index_js_1.Primitive.Int.read(_data);
8773
8782
  let iconEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
8774
8783
  return new Raw.MessageActionTopicCreate({
8784
+ titleMissing: titleMissing,
8775
8785
  title: title,
8776
8786
  iconColor: iconColor,
8777
8787
  iconEmojiId: iconEmojiId,
@@ -8781,6 +8791,7 @@ var Raw;
8781
8791
  const b = new deps_js_1.BytesIO();
8782
8792
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
8783
8793
  let flags = 0;
8794
+ flags |= this.titleMissing ? 1 << 1 : 0;
8784
8795
  flags |= this.iconEmojiId !== undefined ? 1 << 0 : 0;
8785
8796
  b.write(index_js_1.Primitive.Int.write(flags));
8786
8797
  if (this.title !== undefined) {
@@ -9537,6 +9548,7 @@ var Raw;
9537
9548
  saved;
9538
9549
  refunded;
9539
9550
  prepaidUpgrade;
9551
+ assigned;
9540
9552
  gift;
9541
9553
  canExportAt;
9542
9554
  transferStars;
@@ -9546,11 +9558,12 @@ var Raw;
9546
9558
  resaleAmount;
9547
9559
  canTransferAt;
9548
9560
  canResellAt;
9561
+ dropOriginalDetailsStars;
9549
9562
  constructor(params) {
9550
9563
  super();
9551
9564
  this.classType = 'types';
9552
9565
  this.className = 'MessageActionStarGiftUnique';
9553
- this.constructorId = 0x34f762f3;
9566
+ this.constructorId = 0x95728543;
9554
9567
  this.subclassOfId = 0x8680d126;
9555
9568
  this._slots = [
9556
9569
  'upgrade',
@@ -9558,6 +9571,7 @@ var Raw;
9558
9571
  'saved',
9559
9572
  'refunded',
9560
9573
  'prepaidUpgrade',
9574
+ 'assigned',
9561
9575
  'gift',
9562
9576
  'canExportAt',
9563
9577
  'transferStars',
@@ -9567,12 +9581,14 @@ var Raw;
9567
9581
  'resaleAmount',
9568
9582
  'canTransferAt',
9569
9583
  'canResellAt',
9584
+ 'dropOriginalDetailsStars',
9570
9585
  ];
9571
9586
  this.upgrade = params.upgrade;
9572
9587
  this.transferred = params.transferred;
9573
9588
  this.saved = params.saved;
9574
9589
  this.refunded = params.refunded;
9575
9590
  this.prepaidUpgrade = params.prepaidUpgrade;
9591
+ this.assigned = params.assigned;
9576
9592
  this.gift = params.gift;
9577
9593
  this.canExportAt = params.canExportAt;
9578
9594
  this.transferStars = params.transferStars;
@@ -9582,6 +9598,7 @@ var Raw;
9582
9598
  this.resaleAmount = params.resaleAmount;
9583
9599
  this.canTransferAt = params.canTransferAt;
9584
9600
  this.canResellAt = params.canResellAt;
9601
+ this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
9585
9602
  }
9586
9603
  static async read(_data, ..._args) {
9587
9604
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -9590,6 +9607,7 @@ var Raw;
9590
9607
  let saved = flags & (1 << 2) ? true : false;
9591
9608
  let refunded = flags & (1 << 5) ? true : false;
9592
9609
  let prepaidUpgrade = flags & (1 << 11) ? true : false;
9610
+ let assigned = flags & (1 << 13) ? true : false;
9593
9611
  let gift = await index_js_1.TLObject.read(_data);
9594
9612
  let canExportAt = flags & (1 << 3) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9595
9613
  let transferStars = flags & (1 << 4) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -9599,12 +9617,14 @@ var Raw;
9599
9617
  let resaleAmount = flags & (1 << 8) ? await index_js_1.TLObject.read(_data) : undefined;
9600
9618
  let canTransferAt = flags & (1 << 9) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9601
9619
  let canResellAt = flags & (1 << 10) ? await index_js_1.Primitive.Int.read(_data) : undefined;
9620
+ let dropOriginalDetailsStars = flags & (1 << 12) ? await index_js_1.Primitive.Long.read(_data) : undefined;
9602
9621
  return new Raw.MessageActionStarGiftUnique({
9603
9622
  upgrade: upgrade,
9604
9623
  transferred: transferred,
9605
9624
  saved: saved,
9606
9625
  refunded: refunded,
9607
9626
  prepaidUpgrade: prepaidUpgrade,
9627
+ assigned: assigned,
9608
9628
  gift: gift,
9609
9629
  canExportAt: canExportAt,
9610
9630
  transferStars: transferStars,
@@ -9614,6 +9634,7 @@ var Raw;
9614
9634
  resaleAmount: resaleAmount,
9615
9635
  canTransferAt: canTransferAt,
9616
9636
  canResellAt: canResellAt,
9637
+ dropOriginalDetailsStars: dropOriginalDetailsStars,
9617
9638
  });
9618
9639
  }
9619
9640
  write() {
@@ -9625,6 +9646,7 @@ var Raw;
9625
9646
  flags |= this.saved ? 1 << 2 : 0;
9626
9647
  flags |= this.refunded ? 1 << 5 : 0;
9627
9648
  flags |= this.prepaidUpgrade ? 1 << 11 : 0;
9649
+ flags |= this.assigned ? 1 << 13 : 0;
9628
9650
  flags |= this.canExportAt !== undefined ? 1 << 3 : 0;
9629
9651
  flags |= this.transferStars !== undefined ? 1 << 4 : 0;
9630
9652
  flags |= this.fromId !== undefined ? 1 << 6 : 0;
@@ -9633,6 +9655,7 @@ var Raw;
9633
9655
  flags |= this.resaleAmount !== undefined ? 1 << 8 : 0;
9634
9656
  flags |= this.canTransferAt !== undefined ? 1 << 9 : 0;
9635
9657
  flags |= this.canResellAt !== undefined ? 1 << 10 : 0;
9658
+ flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 12 : 0;
9636
9659
  b.write(index_js_1.Primitive.Int.write(flags));
9637
9660
  if (this.gift !== undefined) {
9638
9661
  b.write(this.gift.write());
@@ -9661,6 +9684,9 @@ var Raw;
9661
9684
  if (this.canResellAt !== undefined) {
9662
9685
  b.write(index_js_1.Primitive.Int.write(this.canResellAt));
9663
9686
  }
9687
+ if (this.dropOriginalDetailsStars !== undefined) {
9688
+ b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
9689
+ }
9664
9690
  return deps_js_1.Buffer.from(b.buffer);
9665
9691
  }
9666
9692
  }
@@ -10018,6 +10044,31 @@ var Raw;
10018
10044
  }
10019
10045
  }
10020
10046
  Raw.MessageActionGiftTon = MessageActionGiftTon;
10047
+ class MessageActionSuggestBirthday extends index_js_1.TLObject {
10048
+ birthday;
10049
+ constructor(params) {
10050
+ super();
10051
+ this.classType = 'types';
10052
+ this.className = 'MessageActionSuggestBirthday';
10053
+ this.constructorId = 0x2c8f2a25;
10054
+ this.subclassOfId = 0x8680d126;
10055
+ this._slots = ['birthday'];
10056
+ this.birthday = params.birthday;
10057
+ }
10058
+ static async read(_data, ..._args) {
10059
+ let birthday = await index_js_1.TLObject.read(_data);
10060
+ return new Raw.MessageActionSuggestBirthday({ birthday: birthday });
10061
+ }
10062
+ write() {
10063
+ const b = new deps_js_1.BytesIO();
10064
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
10065
+ if (this.birthday !== undefined) {
10066
+ b.write(this.birthday.write());
10067
+ }
10068
+ return deps_js_1.Buffer.from(b.buffer);
10069
+ }
10070
+ }
10071
+ Raw.MessageActionSuggestBirthday = MessageActionSuggestBirthday;
10021
10072
  class Dialog extends index_js_1.TLObject {
10022
10073
  pinned;
10023
10074
  unreadMark;
@@ -11524,11 +11575,12 @@ var Raw;
11524
11575
  starsMyPendingRatingDate;
11525
11576
  mainTab;
11526
11577
  savedMusic;
11578
+ note;
11527
11579
  constructor(params) {
11528
11580
  super();
11529
11581
  this.classType = 'types';
11530
11582
  this.className = 'UserFull';
11531
- this.constructorId = 0xc577b5ad;
11583
+ this.constructorId = 0xa02bc13e;
11532
11584
  this.subclassOfId = 0x1f4661b9;
11533
11585
  this._slots = [
11534
11586
  'blocked',
@@ -11584,6 +11636,7 @@ var Raw;
11584
11636
  'starsMyPendingRatingDate',
11585
11637
  'mainTab',
11586
11638
  'savedMusic',
11639
+ 'note',
11587
11640
  ];
11588
11641
  this.blocked = params.blocked;
11589
11642
  this.phoneCallsAvailable = params.phoneCallsAvailable;
@@ -11638,6 +11691,7 @@ var Raw;
11638
11691
  this.starsMyPendingRatingDate = params.starsMyPendingRatingDate;
11639
11692
  this.mainTab = params.mainTab;
11640
11693
  this.savedMusic = params.savedMusic;
11694
+ this.note = params.note;
11641
11695
  }
11642
11696
  static async read(_data, ..._args) {
11643
11697
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -11695,6 +11749,7 @@ var Raw;
11695
11749
  let starsMyPendingRatingDate = flags2 & (1 << 18) ? await index_js_1.Primitive.Int.read(_data) : undefined;
11696
11750
  let mainTab = flags2 & (1 << 20) ? await index_js_1.TLObject.read(_data) : undefined;
11697
11751
  let savedMusic = flags2 & (1 << 21) ? await index_js_1.TLObject.read(_data) : undefined;
11752
+ let note = flags2 & (1 << 22) ? await index_js_1.TLObject.read(_data) : undefined;
11698
11753
  return new Raw.UserFull({
11699
11754
  blocked: blocked,
11700
11755
  phoneCallsAvailable: phoneCallsAvailable,
@@ -11749,6 +11804,7 @@ var Raw;
11749
11804
  starsMyPendingRatingDate: starsMyPendingRatingDate,
11750
11805
  mainTab: mainTab,
11751
11806
  savedMusic: savedMusic,
11807
+ note: note,
11752
11808
  });
11753
11809
  }
11754
11810
  write() {
@@ -11806,6 +11862,7 @@ var Raw;
11806
11862
  flags2 |= this.starsMyPendingRatingDate !== undefined ? 1 << 18 : 0;
11807
11863
  flags2 |= this.mainTab !== undefined ? 1 << 20 : 0;
11808
11864
  flags2 |= this.savedMusic !== undefined ? 1 << 21 : 0;
11865
+ flags2 |= this.note !== undefined ? 1 << 22 : 0;
11809
11866
  b.write(index_js_1.Primitive.Int.write(flags2));
11810
11867
  if (this.id !== undefined) {
11811
11868
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -11915,6 +11972,9 @@ var Raw;
11915
11972
  if (this.savedMusic !== undefined) {
11916
11973
  b.write(this.savedMusic.write());
11917
11974
  }
11975
+ if (this.note !== undefined) {
11976
+ b.write(this.note.write());
11977
+ }
11918
11978
  return deps_js_1.Buffer.from(b.buffer);
11919
11979
  }
11920
11980
  }
@@ -12449,28 +12509,38 @@ var Raw;
12449
12509
  Raw.UpdateDeleteMessages = UpdateDeleteMessages;
12450
12510
  class UpdateUserTyping extends index_js_1.TLObject {
12451
12511
  userId;
12512
+ topMsgId;
12452
12513
  action;
12453
12514
  constructor(params) {
12454
12515
  super();
12455
12516
  this.classType = 'types';
12456
12517
  this.className = 'UpdateUserTyping';
12457
- this.constructorId = 0xc01e857f;
12518
+ this.constructorId = 0x2a17bf5c;
12458
12519
  this.subclassOfId = 0x9f89304e;
12459
- this._slots = ['userId', 'action'];
12520
+ this._slots = ['userId', 'topMsgId', 'action'];
12460
12521
  this.userId = params.userId;
12522
+ this.topMsgId = params.topMsgId;
12461
12523
  this.action = params.action;
12462
12524
  }
12463
12525
  static async read(_data, ..._args) {
12526
+ let flags = await index_js_1.Primitive.Int.read(_data);
12464
12527
  let userId = await index_js_1.Primitive.Long.read(_data);
12528
+ let topMsgId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
12465
12529
  let action = await index_js_1.TLObject.read(_data);
12466
- return new Raw.UpdateUserTyping({ userId: userId, action: action });
12530
+ return new Raw.UpdateUserTyping({ userId: userId, topMsgId: topMsgId, action: action });
12467
12531
  }
12468
12532
  write() {
12469
12533
  const b = new deps_js_1.BytesIO();
12470
12534
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
12535
+ let flags = 0;
12536
+ flags |= this.topMsgId !== undefined ? 1 << 0 : 0;
12537
+ b.write(index_js_1.Primitive.Int.write(flags));
12471
12538
  if (this.userId !== undefined) {
12472
12539
  b.write(index_js_1.Primitive.Long.write(this.userId));
12473
12540
  }
12541
+ if (this.topMsgId !== undefined) {
12542
+ b.write(index_js_1.Primitive.Int.write(this.topMsgId));
12543
+ }
12474
12544
  if (this.action !== undefined) {
12475
12545
  b.write(this.action.write());
12476
12546
  }
@@ -13088,6 +13158,7 @@ var Raw;
13088
13158
  class UpdateReadHistoryInbox extends index_js_1.TLObject {
13089
13159
  folderId;
13090
13160
  peer;
13161
+ topMsgId;
13091
13162
  maxId;
13092
13163
  stillUnreadCount;
13093
13164
  pts;
@@ -13096,11 +13167,20 @@ var Raw;
13096
13167
  super();
13097
13168
  this.classType = 'types';
13098
13169
  this.className = 'UpdateReadHistoryInbox';
13099
- this.constructorId = 0x9c974fdf;
13170
+ this.constructorId = 0x9e84bc99;
13100
13171
  this.subclassOfId = 0x9f89304e;
13101
- this._slots = ['folderId', 'peer', 'maxId', 'stillUnreadCount', 'pts', 'ptsCount'];
13172
+ this._slots = [
13173
+ 'folderId',
13174
+ 'peer',
13175
+ 'topMsgId',
13176
+ 'maxId',
13177
+ 'stillUnreadCount',
13178
+ 'pts',
13179
+ 'ptsCount',
13180
+ ];
13102
13181
  this.folderId = params.folderId;
13103
13182
  this.peer = params.peer;
13183
+ this.topMsgId = params.topMsgId;
13104
13184
  this.maxId = params.maxId;
13105
13185
  this.stillUnreadCount = params.stillUnreadCount;
13106
13186
  this.pts = params.pts;
@@ -13110,6 +13190,7 @@ var Raw;
13110
13190
  let flags = await index_js_1.Primitive.Int.read(_data);
13111
13191
  let folderId = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
13112
13192
  let peer = await index_js_1.TLObject.read(_data);
13193
+ let topMsgId = flags & (1 << 1) ? await index_js_1.Primitive.Int.read(_data) : undefined;
13113
13194
  let maxId = await index_js_1.Primitive.Int.read(_data);
13114
13195
  let stillUnreadCount = await index_js_1.Primitive.Int.read(_data);
13115
13196
  let pts = await index_js_1.Primitive.Int.read(_data);
@@ -13117,6 +13198,7 @@ var Raw;
13117
13198
  return new Raw.UpdateReadHistoryInbox({
13118
13199
  folderId: folderId,
13119
13200
  peer: peer,
13201
+ topMsgId: topMsgId,
13120
13202
  maxId: maxId,
13121
13203
  stillUnreadCount: stillUnreadCount,
13122
13204
  pts: pts,
@@ -13128,6 +13210,7 @@ var Raw;
13128
13210
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
13129
13211
  let flags = 0;
13130
13212
  flags |= this.folderId !== undefined ? 1 << 0 : 0;
13213
+ flags |= this.topMsgId !== undefined ? 1 << 1 : 0;
13131
13214
  b.write(index_js_1.Primitive.Int.write(flags));
13132
13215
  if (this.folderId !== undefined) {
13133
13216
  b.write(index_js_1.Primitive.Int.write(this.folderId));
@@ -13135,6 +13218,9 @@ var Raw;
13135
13218
  if (this.peer !== undefined) {
13136
13219
  b.write(this.peer.write());
13137
13220
  }
13221
+ if (this.topMsgId !== undefined) {
13222
+ b.write(index_js_1.Primitive.Int.write(this.topMsgId));
13223
+ }
13138
13224
  if (this.maxId !== undefined) {
13139
13225
  b.write(index_js_1.Primitive.Int.write(this.maxId));
13140
13226
  }
@@ -16489,83 +16575,6 @@ var Raw;
16489
16575
  }
16490
16576
  }
16491
16577
  Raw.UpdateMessageExtendedMedia = UpdateMessageExtendedMedia;
16492
- class UpdateChannelPinnedTopic extends index_js_1.TLObject {
16493
- pinned;
16494
- channelId;
16495
- topicId;
16496
- constructor(params) {
16497
- super();
16498
- this.classType = 'types';
16499
- this.className = 'UpdateChannelPinnedTopic';
16500
- this.constructorId = 0x192efbe3;
16501
- this.subclassOfId = 0x9f89304e;
16502
- this._slots = ['pinned', 'channelId', 'topicId'];
16503
- this.pinned = params.pinned;
16504
- this.channelId = params.channelId;
16505
- this.topicId = params.topicId;
16506
- }
16507
- static async read(_data, ..._args) {
16508
- let flags = await index_js_1.Primitive.Int.read(_data);
16509
- let pinned = flags & (1 << 0) ? true : false;
16510
- let channelId = await index_js_1.Primitive.Long.read(_data);
16511
- let topicId = await index_js_1.Primitive.Int.read(_data);
16512
- return new Raw.UpdateChannelPinnedTopic({
16513
- pinned: pinned,
16514
- channelId: channelId,
16515
- topicId: topicId,
16516
- });
16517
- }
16518
- write() {
16519
- const b = new deps_js_1.BytesIO();
16520
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
16521
- let flags = 0;
16522
- flags |= this.pinned ? 1 << 0 : 0;
16523
- b.write(index_js_1.Primitive.Int.write(flags));
16524
- if (this.channelId !== undefined) {
16525
- b.write(index_js_1.Primitive.Long.write(this.channelId));
16526
- }
16527
- if (this.topicId !== undefined) {
16528
- b.write(index_js_1.Primitive.Int.write(this.topicId));
16529
- }
16530
- return deps_js_1.Buffer.from(b.buffer);
16531
- }
16532
- }
16533
- Raw.UpdateChannelPinnedTopic = UpdateChannelPinnedTopic;
16534
- class UpdateChannelPinnedTopics extends index_js_1.TLObject {
16535
- channelId;
16536
- order;
16537
- constructor(params) {
16538
- super();
16539
- this.classType = 'types';
16540
- this.className = 'UpdateChannelPinnedTopics';
16541
- this.constructorId = 0xfe198602;
16542
- this.subclassOfId = 0x9f89304e;
16543
- this._slots = ['channelId', 'order'];
16544
- this.channelId = params.channelId;
16545
- this.order = params.order;
16546
- }
16547
- static async read(_data, ..._args) {
16548
- let flags = await index_js_1.Primitive.Int.read(_data);
16549
- let channelId = await index_js_1.Primitive.Long.read(_data);
16550
- let order = flags & (1 << 0) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
16551
- return new Raw.UpdateChannelPinnedTopics({ channelId: channelId, order: order });
16552
- }
16553
- write() {
16554
- const b = new deps_js_1.BytesIO();
16555
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
16556
- let flags = 0;
16557
- flags |= this.order ? 1 << 0 : 0;
16558
- b.write(index_js_1.Primitive.Int.write(flags));
16559
- if (this.channelId !== undefined) {
16560
- b.write(index_js_1.Primitive.Long.write(this.channelId));
16561
- }
16562
- if (this.order) {
16563
- b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
16564
- }
16565
- return deps_js_1.Buffer.from(b.buffer);
16566
- }
16567
- }
16568
- Raw.UpdateChannelPinnedTopics = UpdateChannelPinnedTopics;
16569
16578
  class UpdateUser extends index_js_1.TLObject {
16570
16579
  userId;
16571
16580
  constructor(params) {
@@ -17853,6 +17862,168 @@ var Raw;
17853
17862
  }
17854
17863
  }
17855
17864
  Raw.UpdateMonoForumNoPaidException = UpdateMonoForumNoPaidException;
17865
+ class UpdateGroupCallMessage extends index_js_1.TLObject {
17866
+ call;
17867
+ fromId;
17868
+ randomId;
17869
+ message;
17870
+ constructor(params) {
17871
+ super();
17872
+ this.classType = 'types';
17873
+ this.className = 'UpdateGroupCallMessage';
17874
+ this.constructorId = 0x78c314e0;
17875
+ this.subclassOfId = 0x9f89304e;
17876
+ this._slots = ['call', 'fromId', 'randomId', 'message'];
17877
+ this.call = params.call;
17878
+ this.fromId = params.fromId;
17879
+ this.randomId = params.randomId;
17880
+ this.message = params.message;
17881
+ }
17882
+ static async read(_data, ..._args) {
17883
+ 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
+ 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
+ });
17893
+ }
17894
+ write() {
17895
+ const b = new deps_js_1.BytesIO();
17896
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
17897
+ if (this.call !== undefined) {
17898
+ b.write(this.call.write());
17899
+ }
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
+ if (this.message !== undefined) {
17907
+ b.write(this.message.write());
17908
+ }
17909
+ return deps_js_1.Buffer.from(b.buffer);
17910
+ }
17911
+ }
17912
+ Raw.UpdateGroupCallMessage = UpdateGroupCallMessage;
17913
+ class UpdateGroupCallEncryptedMessage extends index_js_1.TLObject {
17914
+ call;
17915
+ fromId;
17916
+ encryptedMessage;
17917
+ constructor(params) {
17918
+ super();
17919
+ this.classType = 'types';
17920
+ this.className = 'UpdateGroupCallEncryptedMessage';
17921
+ this.constructorId = 0xc957a766;
17922
+ this.subclassOfId = 0x9f89304e;
17923
+ this._slots = ['call', 'fromId', 'encryptedMessage'];
17924
+ this.call = params.call;
17925
+ this.fromId = params.fromId;
17926
+ this.encryptedMessage = params.encryptedMessage;
17927
+ }
17928
+ static async read(_data, ..._args) {
17929
+ let call = await index_js_1.TLObject.read(_data);
17930
+ let fromId = await index_js_1.TLObject.read(_data);
17931
+ let encryptedMessage = await index_js_1.Primitive.Bytes.read(_data);
17932
+ return new Raw.UpdateGroupCallEncryptedMessage({
17933
+ call: call,
17934
+ fromId: fromId,
17935
+ encryptedMessage: encryptedMessage,
17936
+ });
17937
+ }
17938
+ write() {
17939
+ const b = new deps_js_1.BytesIO();
17940
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
17941
+ if (this.call !== undefined) {
17942
+ b.write(this.call.write());
17943
+ }
17944
+ if (this.fromId !== undefined) {
17945
+ b.write(this.fromId.write());
17946
+ }
17947
+ if (this.encryptedMessage !== undefined) {
17948
+ b.write(index_js_1.Primitive.Bytes.write(this.encryptedMessage));
17949
+ }
17950
+ return deps_js_1.Buffer.from(b.buffer);
17951
+ }
17952
+ }
17953
+ Raw.UpdateGroupCallEncryptedMessage = UpdateGroupCallEncryptedMessage;
17954
+ class UpdatePinnedForumTopic extends index_js_1.TLObject {
17955
+ pinned;
17956
+ peer;
17957
+ topicId;
17958
+ constructor(params) {
17959
+ super();
17960
+ this.classType = 'types';
17961
+ this.className = 'UpdatePinnedForumTopic';
17962
+ this.constructorId = 0x683b2c52;
17963
+ this.subclassOfId = 0x9f89304e;
17964
+ this._slots = ['pinned', 'peer', 'topicId'];
17965
+ this.pinned = params.pinned;
17966
+ this.peer = params.peer;
17967
+ this.topicId = params.topicId;
17968
+ }
17969
+ static async read(_data, ..._args) {
17970
+ let flags = await index_js_1.Primitive.Int.read(_data);
17971
+ let pinned = flags & (1 << 0) ? true : false;
17972
+ let peer = await index_js_1.TLObject.read(_data);
17973
+ let topicId = await index_js_1.Primitive.Int.read(_data);
17974
+ return new Raw.UpdatePinnedForumTopic({ pinned: pinned, peer: peer, topicId: topicId });
17975
+ }
17976
+ write() {
17977
+ const b = new deps_js_1.BytesIO();
17978
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
17979
+ let flags = 0;
17980
+ flags |= this.pinned ? 1 << 0 : 0;
17981
+ b.write(index_js_1.Primitive.Int.write(flags));
17982
+ if (this.peer !== undefined) {
17983
+ b.write(this.peer.write());
17984
+ }
17985
+ if (this.topicId !== undefined) {
17986
+ b.write(index_js_1.Primitive.Int.write(this.topicId));
17987
+ }
17988
+ return deps_js_1.Buffer.from(b.buffer);
17989
+ }
17990
+ }
17991
+ Raw.UpdatePinnedForumTopic = UpdatePinnedForumTopic;
17992
+ class UpdatePinnedForumTopics extends index_js_1.TLObject {
17993
+ peer;
17994
+ order;
17995
+ constructor(params) {
17996
+ super();
17997
+ this.classType = 'types';
17998
+ this.className = 'UpdatePinnedForumTopics';
17999
+ this.constructorId = 0xdef143d0;
18000
+ this.subclassOfId = 0x9f89304e;
18001
+ this._slots = ['peer', 'order'];
18002
+ this.peer = params.peer;
18003
+ this.order = params.order;
18004
+ }
18005
+ static async read(_data, ..._args) {
18006
+ let flags = await index_js_1.Primitive.Int.read(_data);
18007
+ let peer = await index_js_1.TLObject.read(_data);
18008
+ let order = flags & (1 << 0) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
18009
+ return new Raw.UpdatePinnedForumTopics({ peer: peer, order: order });
18010
+ }
18011
+ write() {
18012
+ const b = new deps_js_1.BytesIO();
18013
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
18014
+ let flags = 0;
18015
+ flags |= this.order ? 1 << 0 : 0;
18016
+ b.write(index_js_1.Primitive.Int.write(flags));
18017
+ if (this.peer !== undefined) {
18018
+ b.write(this.peer.write());
18019
+ }
18020
+ if (this.order) {
18021
+ b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
18022
+ }
18023
+ return deps_js_1.Buffer.from(b.buffer);
18024
+ }
18025
+ }
18026
+ Raw.UpdatePinnedForumTopics = UpdatePinnedForumTopics;
17856
18027
  class UpdatesTooLong extends index_js_1.TLObject {
17857
18028
  constructor() {
17858
18029
  super();
@@ -20240,6 +20411,37 @@ var Raw;
20240
20411
  }
20241
20412
  }
20242
20413
  Raw.SendMessageEmojiInteractionSeen = SendMessageEmojiInteractionSeen;
20414
+ class SendMessageTextDraftAction extends index_js_1.TLObject {
20415
+ randomId;
20416
+ text;
20417
+ constructor(params) {
20418
+ super();
20419
+ this.classType = 'types';
20420
+ this.className = 'SendMessageTextDraftAction';
20421
+ this.constructorId = 0x376d975c;
20422
+ this.subclassOfId = 0x20b2cc21;
20423
+ this._slots = ['randomId', 'text'];
20424
+ this.randomId = params.randomId;
20425
+ this.text = params.text;
20426
+ }
20427
+ static async read(_data, ..._args) {
20428
+ let randomId = await index_js_1.Primitive.Long.read(_data);
20429
+ let text = await index_js_1.TLObject.read(_data);
20430
+ return new Raw.SendMessageTextDraftAction({ randomId: randomId, text: text });
20431
+ }
20432
+ write() {
20433
+ const b = new deps_js_1.BytesIO();
20434
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
20435
+ if (this.randomId !== undefined) {
20436
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
20437
+ }
20438
+ if (this.text !== undefined) {
20439
+ b.write(this.text.write());
20440
+ }
20441
+ return deps_js_1.Buffer.from(b.buffer);
20442
+ }
20443
+ }
20444
+ Raw.SendMessageTextDraftAction = SendMessageTextDraftAction;
20243
20445
  class InputPrivacyKeyStatusTimestamp extends index_js_1.TLObject {
20244
20446
  constructor() {
20245
20447
  super();
@@ -38729,6 +38931,9 @@ var Raw;
38729
38931
  listenersHidden;
38730
38932
  conference;
38731
38933
  creator;
38934
+ messagesEnabled;
38935
+ canChangeMessagesEnabled;
38936
+ min;
38732
38937
  id;
38733
38938
  accessHash;
38734
38939
  participantsCount;
@@ -38757,6 +38962,9 @@ var Raw;
38757
38962
  'listenersHidden',
38758
38963
  'conference',
38759
38964
  'creator',
38965
+ 'messagesEnabled',
38966
+ 'canChangeMessagesEnabled',
38967
+ 'min',
38760
38968
  'id',
38761
38969
  'accessHash',
38762
38970
  'participantsCount',
@@ -38779,6 +38987,9 @@ var Raw;
38779
38987
  this.listenersHidden = params.listenersHidden;
38780
38988
  this.conference = params.conference;
38781
38989
  this.creator = params.creator;
38990
+ this.messagesEnabled = params.messagesEnabled;
38991
+ this.canChangeMessagesEnabled = params.canChangeMessagesEnabled;
38992
+ this.min = params.min;
38782
38993
  this.id = params.id;
38783
38994
  this.accessHash = params.accessHash;
38784
38995
  this.participantsCount = params.participantsCount;
@@ -38803,6 +39014,9 @@ var Raw;
38803
39014
  let listenersHidden = flags & (1 << 13) ? true : false;
38804
39015
  let conference = flags & (1 << 14) ? true : false;
38805
39016
  let creator = flags & (1 << 15) ? true : false;
39017
+ let messagesEnabled = flags & (1 << 17) ? true : false;
39018
+ let canChangeMessagesEnabled = flags & (1 << 18) ? true : false;
39019
+ let min = flags & (1 << 19) ? true : false;
38806
39020
  let id = await index_js_1.Primitive.Long.read(_data);
38807
39021
  let accessHash = await index_js_1.Primitive.Long.read(_data);
38808
39022
  let participantsCount = await index_js_1.Primitive.Int.read(_data);
@@ -38825,6 +39039,9 @@ var Raw;
38825
39039
  listenersHidden: listenersHidden,
38826
39040
  conference: conference,
38827
39041
  creator: creator,
39042
+ messagesEnabled: messagesEnabled,
39043
+ canChangeMessagesEnabled: canChangeMessagesEnabled,
39044
+ min: min,
38828
39045
  id: id,
38829
39046
  accessHash: accessHash,
38830
39047
  participantsCount: participantsCount,
@@ -38852,6 +39069,9 @@ var Raw;
38852
39069
  flags |= this.listenersHidden ? 1 << 13 : 0;
38853
39070
  flags |= this.conference ? 1 << 14 : 0;
38854
39071
  flags |= this.creator ? 1 << 15 : 0;
39072
+ flags |= this.messagesEnabled ? 1 << 17 : 0;
39073
+ flags |= this.canChangeMessagesEnabled ? 1 << 18 : 0;
39074
+ flags |= this.min ? 1 << 19 : 0;
38855
39075
  flags |= this.title !== undefined ? 1 << 3 : 0;
38856
39076
  flags |= this.streamDcId !== undefined ? 1 << 4 : 0;
38857
39077
  flags |= this.recordStartDate !== undefined ? 1 << 5 : 0;
@@ -41196,6 +41416,56 @@ var Raw;
41196
41416
  }
41197
41417
  }
41198
41418
  Raw.InputInvoiceStarGiftPrepaidUpgrade = InputInvoiceStarGiftPrepaidUpgrade;
41419
+ class InputInvoicePremiumAuthCode extends index_js_1.TLObject {
41420
+ purpose;
41421
+ constructor(params) {
41422
+ super();
41423
+ this.classType = 'types';
41424
+ this.className = 'InputInvoicePremiumAuthCode';
41425
+ this.constructorId = 0x3e77f614;
41426
+ this.subclassOfId = 0x726e9bfe;
41427
+ this._slots = ['purpose'];
41428
+ this.purpose = params.purpose;
41429
+ }
41430
+ static async read(_data, ..._args) {
41431
+ let purpose = await index_js_1.TLObject.read(_data);
41432
+ return new Raw.InputInvoicePremiumAuthCode({ purpose: purpose });
41433
+ }
41434
+ write() {
41435
+ const b = new deps_js_1.BytesIO();
41436
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
41437
+ if (this.purpose !== undefined) {
41438
+ b.write(this.purpose.write());
41439
+ }
41440
+ return deps_js_1.Buffer.from(b.buffer);
41441
+ }
41442
+ }
41443
+ Raw.InputInvoicePremiumAuthCode = InputInvoicePremiumAuthCode;
41444
+ class InputInvoiceStarGiftDropOriginalDetails extends index_js_1.TLObject {
41445
+ stargift;
41446
+ constructor(params) {
41447
+ super();
41448
+ this.classType = 'types';
41449
+ this.className = 'InputInvoiceStarGiftDropOriginalDetails';
41450
+ this.constructorId = 0x923d8d1;
41451
+ this.subclassOfId = 0x726e9bfe;
41452
+ this._slots = ['stargift'];
41453
+ this.stargift = params.stargift;
41454
+ }
41455
+ static async read(_data, ..._args) {
41456
+ let stargift = await index_js_1.TLObject.read(_data);
41457
+ return new Raw.InputInvoiceStarGiftDropOriginalDetails({ stargift: stargift });
41458
+ }
41459
+ write() {
41460
+ const b = new deps_js_1.BytesIO();
41461
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
41462
+ if (this.stargift !== undefined) {
41463
+ b.write(this.stargift.write());
41464
+ }
41465
+ return deps_js_1.Buffer.from(b.buffer);
41466
+ }
41467
+ }
41468
+ Raw.InputInvoiceStarGiftDropOriginalDetails = InputInvoiceStarGiftDropOriginalDetails;
41199
41469
  class InputStorePaymentPremiumSubscription extends index_js_1.TLObject {
41200
41470
  restore;
41201
41471
  upgrade;
@@ -42531,8 +42801,10 @@ var Raw;
42531
42801
  pinned;
42532
42802
  short;
42533
42803
  hidden;
42804
+ titleMissing;
42534
42805
  id;
42535
42806
  date;
42807
+ peer;
42536
42808
  title;
42537
42809
  iconColor;
42538
42810
  iconEmojiId;
@@ -42549,7 +42821,7 @@ var Raw;
42549
42821
  super();
42550
42822
  this.classType = 'types';
42551
42823
  this.className = 'ForumTopic';
42552
- this.constructorId = 0x71701da9;
42824
+ this.constructorId = 0xcdff0eca;
42553
42825
  this.subclassOfId = 0x8d182203;
42554
42826
  this._slots = [
42555
42827
  'my',
@@ -42557,8 +42829,10 @@ var Raw;
42557
42829
  'pinned',
42558
42830
  'short',
42559
42831
  'hidden',
42832
+ 'titleMissing',
42560
42833
  'id',
42561
42834
  'date',
42835
+ 'peer',
42562
42836
  'title',
42563
42837
  'iconColor',
42564
42838
  'iconEmojiId',
@@ -42577,8 +42851,10 @@ var Raw;
42577
42851
  this.pinned = params.pinned;
42578
42852
  this.short = params.short;
42579
42853
  this.hidden = params.hidden;
42854
+ this.titleMissing = params.titleMissing;
42580
42855
  this.id = params.id;
42581
42856
  this.date = params.date;
42857
+ this.peer = params.peer;
42582
42858
  this.title = params.title;
42583
42859
  this.iconColor = params.iconColor;
42584
42860
  this.iconEmojiId = params.iconEmojiId;
@@ -42599,8 +42875,10 @@ var Raw;
42599
42875
  let pinned = flags & (1 << 3) ? true : false;
42600
42876
  let short = flags & (1 << 5) ? true : false;
42601
42877
  let hidden = flags & (1 << 6) ? true : false;
42878
+ let titleMissing = flags & (1 << 7) ? true : false;
42602
42879
  let id = await index_js_1.Primitive.Int.read(_data);
42603
42880
  let date = await index_js_1.Primitive.Int.read(_data);
42881
+ let peer = await index_js_1.TLObject.read(_data);
42604
42882
  let title = await index_js_1.Primitive.String.read(_data);
42605
42883
  let iconColor = await index_js_1.Primitive.Int.read(_data);
42606
42884
  let iconEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
@@ -42619,8 +42897,10 @@ var Raw;
42619
42897
  pinned: pinned,
42620
42898
  short: short,
42621
42899
  hidden: hidden,
42900
+ titleMissing: titleMissing,
42622
42901
  id: id,
42623
42902
  date: date,
42903
+ peer: peer,
42624
42904
  title: title,
42625
42905
  iconColor: iconColor,
42626
42906
  iconEmojiId: iconEmojiId,
@@ -42644,6 +42924,7 @@ var Raw;
42644
42924
  flags |= this.pinned ? 1 << 3 : 0;
42645
42925
  flags |= this.short ? 1 << 5 : 0;
42646
42926
  flags |= this.hidden ? 1 << 6 : 0;
42927
+ flags |= this.titleMissing ? 1 << 7 : 0;
42647
42928
  flags |= this.iconEmojiId !== undefined ? 1 << 0 : 0;
42648
42929
  flags |= this.draft !== undefined ? 1 << 4 : 0;
42649
42930
  b.write(index_js_1.Primitive.Int.write(flags));
@@ -42653,6 +42934,9 @@ var Raw;
42653
42934
  if (this.date !== undefined) {
42654
42935
  b.write(index_js_1.Primitive.Int.write(this.date));
42655
42936
  }
42937
+ if (this.peer !== undefined) {
42938
+ b.write(this.peer.write());
42939
+ }
42656
42940
  if (this.title !== undefined) {
42657
42941
  b.write(index_js_1.Primitive.String.write(this.title));
42658
42942
  }
@@ -45342,6 +45626,113 @@ var Raw;
45342
45626
  }
45343
45627
  }
45344
45628
  Raw.PeerColor = PeerColor;
45629
+ class PeerColorCollectible extends index_js_1.TLObject {
45630
+ collectibleId;
45631
+ giftEmojiId;
45632
+ backgroundEmojiId;
45633
+ accentColor;
45634
+ colors;
45635
+ darkAccentColor;
45636
+ darkColors;
45637
+ constructor(params) {
45638
+ super();
45639
+ this.classType = 'types';
45640
+ this.className = 'PeerColorCollectible';
45641
+ this.constructorId = 0xb9c0639a;
45642
+ this.subclassOfId = 0xf281a47f;
45643
+ this._slots = [
45644
+ 'collectibleId',
45645
+ 'giftEmojiId',
45646
+ 'backgroundEmojiId',
45647
+ 'accentColor',
45648
+ 'colors',
45649
+ 'darkAccentColor',
45650
+ 'darkColors',
45651
+ ];
45652
+ this.collectibleId = params.collectibleId;
45653
+ this.giftEmojiId = params.giftEmojiId;
45654
+ this.backgroundEmojiId = params.backgroundEmojiId;
45655
+ this.accentColor = params.accentColor;
45656
+ this.colors = params.colors;
45657
+ this.darkAccentColor = params.darkAccentColor;
45658
+ this.darkColors = params.darkColors;
45659
+ }
45660
+ static async read(_data, ..._args) {
45661
+ let flags = await index_js_1.Primitive.Int.read(_data);
45662
+ let collectibleId = await index_js_1.Primitive.Long.read(_data);
45663
+ let giftEmojiId = await index_js_1.Primitive.Long.read(_data);
45664
+ let backgroundEmojiId = await index_js_1.Primitive.Long.read(_data);
45665
+ let accentColor = await index_js_1.Primitive.Int.read(_data);
45666
+ let colors = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
45667
+ let darkAccentColor = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
45668
+ let darkColors = flags & (1 << 1) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
45669
+ return new Raw.PeerColorCollectible({
45670
+ collectibleId: collectibleId,
45671
+ giftEmojiId: giftEmojiId,
45672
+ backgroundEmojiId: backgroundEmojiId,
45673
+ accentColor: accentColor,
45674
+ colors: colors,
45675
+ darkAccentColor: darkAccentColor,
45676
+ darkColors: darkColors,
45677
+ });
45678
+ }
45679
+ write() {
45680
+ const b = new deps_js_1.BytesIO();
45681
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
45682
+ let flags = 0;
45683
+ flags |= this.darkAccentColor !== undefined ? 1 << 0 : 0;
45684
+ flags |= this.darkColors ? 1 << 1 : 0;
45685
+ b.write(index_js_1.Primitive.Int.write(flags));
45686
+ if (this.collectibleId !== undefined) {
45687
+ b.write(index_js_1.Primitive.Long.write(this.collectibleId));
45688
+ }
45689
+ if (this.giftEmojiId !== undefined) {
45690
+ b.write(index_js_1.Primitive.Long.write(this.giftEmojiId));
45691
+ }
45692
+ if (this.backgroundEmojiId !== undefined) {
45693
+ b.write(index_js_1.Primitive.Long.write(this.backgroundEmojiId));
45694
+ }
45695
+ if (this.accentColor !== undefined) {
45696
+ b.write(index_js_1.Primitive.Int.write(this.accentColor));
45697
+ }
45698
+ if (this.colors) {
45699
+ b.write(index_js_1.Primitive.Vector.write(this.colors, index_js_1.Primitive.Int));
45700
+ }
45701
+ if (this.darkAccentColor !== undefined) {
45702
+ b.write(index_js_1.Primitive.Int.write(this.darkAccentColor));
45703
+ }
45704
+ if (this.darkColors) {
45705
+ b.write(index_js_1.Primitive.Vector.write(this.darkColors, index_js_1.Primitive.Int));
45706
+ }
45707
+ return deps_js_1.Buffer.from(b.buffer);
45708
+ }
45709
+ }
45710
+ Raw.PeerColorCollectible = PeerColorCollectible;
45711
+ class InputPeerColorCollectible extends index_js_1.TLObject {
45712
+ collectibleId;
45713
+ constructor(params) {
45714
+ super();
45715
+ this.classType = 'types';
45716
+ this.className = 'InputPeerColorCollectible';
45717
+ this.constructorId = 0xb8ea86a9;
45718
+ this.subclassOfId = 0xf281a47f;
45719
+ this._slots = ['collectibleId'];
45720
+ this.collectibleId = params.collectibleId;
45721
+ }
45722
+ static async read(_data, ..._args) {
45723
+ let collectibleId = await index_js_1.Primitive.Long.read(_data);
45724
+ return new Raw.InputPeerColorCollectible({ collectibleId: collectibleId });
45725
+ }
45726
+ write() {
45727
+ const b = new deps_js_1.BytesIO();
45728
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
45729
+ if (this.collectibleId !== undefined) {
45730
+ b.write(index_js_1.Primitive.Long.write(this.collectibleId));
45731
+ }
45732
+ return deps_js_1.Buffer.from(b.buffer);
45733
+ }
45734
+ }
45735
+ Raw.InputPeerColorCollectible = InputPeerColorCollectible;
45345
45736
  class StoryReaction extends index_js_1.TLObject {
45346
45737
  peerId;
45347
45738
  date;
@@ -47509,6 +47900,7 @@ var Raw;
47509
47900
  stargiftResale;
47510
47901
  postsSearch;
47511
47902
  stargiftPrepaidUpgrade;
47903
+ stargiftDropOriginalDetails;
47512
47904
  id;
47513
47905
  amount;
47514
47906
  date;
@@ -47549,6 +47941,7 @@ var Raw;
47549
47941
  'stargiftResale',
47550
47942
  'postsSearch',
47551
47943
  'stargiftPrepaidUpgrade',
47944
+ 'stargiftDropOriginalDetails',
47552
47945
  'id',
47553
47946
  'amount',
47554
47947
  'date',
@@ -47583,6 +47976,7 @@ var Raw;
47583
47976
  this.stargiftResale = params.stargiftResale;
47584
47977
  this.postsSearch = params.postsSearch;
47585
47978
  this.stargiftPrepaidUpgrade = params.stargiftPrepaidUpgrade;
47979
+ this.stargiftDropOriginalDetails = params.stargiftDropOriginalDetails;
47586
47980
  this.id = params.id;
47587
47981
  this.amount = params.amount;
47588
47982
  this.date = params.date;
@@ -47619,6 +48013,7 @@ var Raw;
47619
48013
  let stargiftResale = flags & (1 << 22) ? true : false;
47620
48014
  let postsSearch = flags & (1 << 24) ? true : false;
47621
48015
  let stargiftPrepaidUpgrade = flags & (1 << 25) ? true : false;
48016
+ let stargiftDropOriginalDetails = flags & (1 << 26) ? true : false;
47622
48017
  let id = await index_js_1.Primitive.String.read(_data);
47623
48018
  let amount = await index_js_1.TLObject.read(_data);
47624
48019
  let date = await index_js_1.Primitive.Int.read(_data);
@@ -47653,6 +48048,7 @@ var Raw;
47653
48048
  stargiftResale: stargiftResale,
47654
48049
  postsSearch: postsSearch,
47655
48050
  stargiftPrepaidUpgrade: stargiftPrepaidUpgrade,
48051
+ stargiftDropOriginalDetails: stargiftDropOriginalDetails,
47656
48052
  id: id,
47657
48053
  amount: amount,
47658
48054
  date: date,
@@ -47692,6 +48088,7 @@ var Raw;
47692
48088
  flags |= this.stargiftResale ? 1 << 22 : 0;
47693
48089
  flags |= this.postsSearch ? 1 << 24 : 0;
47694
48090
  flags |= this.stargiftPrepaidUpgrade ? 1 << 25 : 0;
48091
+ flags |= this.stargiftDropOriginalDetails ? 1 << 26 : 0;
47695
48092
  flags |= this.title !== undefined ? 1 << 0 : 0;
47696
48093
  flags |= this.description !== undefined ? 1 << 1 : 0;
47697
48094
  flags |= this.photo !== undefined ? 1 << 2 : 0;
@@ -48386,6 +48783,7 @@ var Raw;
48386
48783
  birthday;
48387
48784
  requirePremium;
48388
48785
  limitedPerUser;
48786
+ peerColorAvailable;
48389
48787
  id;
48390
48788
  sticker;
48391
48789
  stars;
@@ -48414,6 +48812,7 @@ var Raw;
48414
48812
  'birthday',
48415
48813
  'requirePremium',
48416
48814
  'limitedPerUser',
48815
+ 'peerColorAvailable',
48417
48816
  'id',
48418
48817
  'sticker',
48419
48818
  'stars',
@@ -48436,6 +48835,7 @@ var Raw;
48436
48835
  this.birthday = params.birthday;
48437
48836
  this.requirePremium = params.requirePremium;
48438
48837
  this.limitedPerUser = params.limitedPerUser;
48838
+ this.peerColorAvailable = params.peerColorAvailable;
48439
48839
  this.id = params.id;
48440
48840
  this.sticker = params.sticker;
48441
48841
  this.stars = params.stars;
@@ -48460,6 +48860,7 @@ var Raw;
48460
48860
  let birthday = flags & (1 << 2) ? true : false;
48461
48861
  let requirePremium = flags & (1 << 7) ? true : false;
48462
48862
  let limitedPerUser = flags & (1 << 8) ? true : false;
48863
+ let peerColorAvailable = flags & (1 << 10) ? true : false;
48463
48864
  let id = await index_js_1.Primitive.Long.read(_data);
48464
48865
  let sticker = await index_js_1.TLObject.read(_data);
48465
48866
  let stars = await index_js_1.Primitive.Long.read(_data);
@@ -48482,6 +48883,7 @@ var Raw;
48482
48883
  birthday: birthday,
48483
48884
  requirePremium: requirePremium,
48484
48885
  limitedPerUser: limitedPerUser,
48886
+ peerColorAvailable: peerColorAvailable,
48485
48887
  id: id,
48486
48888
  sticker: sticker,
48487
48889
  stars: stars,
@@ -48509,6 +48911,7 @@ var Raw;
48509
48911
  flags |= this.birthday ? 1 << 2 : 0;
48510
48912
  flags |= this.requirePremium ? 1 << 7 : 0;
48511
48913
  flags |= this.limitedPerUser ? 1 << 8 : 0;
48914
+ flags |= this.peerColorAvailable ? 1 << 10 : 0;
48512
48915
  flags |= this.availabilityRemains !== undefined ? 1 << 0 : 0;
48513
48916
  flags |= this.availabilityTotal !== undefined ? 1 << 0 : 0;
48514
48917
  flags |= this.availabilityResale !== undefined ? 1 << 4 : 0;
@@ -48595,11 +48998,13 @@ var Raw;
48595
48998
  valueAmount;
48596
48999
  valueCurrency;
48597
49000
  themePeer;
49001
+ peerColor;
49002
+ hostId;
48598
49003
  constructor(params) {
48599
49004
  super();
48600
49005
  this.classType = 'types';
48601
49006
  this.className = 'StarGiftUnique';
48602
- this.constructorId = 0x1befe865;
49007
+ this.constructorId = 0xb0bf741b;
48603
49008
  this.subclassOfId = 0xc31c590b;
48604
49009
  this._slots = [
48605
49010
  'requirePremium',
@@ -48622,6 +49027,8 @@ var Raw;
48622
49027
  'valueAmount',
48623
49028
  'valueCurrency',
48624
49029
  'themePeer',
49030
+ 'peerColor',
49031
+ 'hostId',
48625
49032
  ];
48626
49033
  this.requirePremium = params.requirePremium;
48627
49034
  this.resaleTonOnly = params.resaleTonOnly;
@@ -48643,6 +49050,8 @@ var Raw;
48643
49050
  this.valueAmount = params.valueAmount;
48644
49051
  this.valueCurrency = params.valueCurrency;
48645
49052
  this.themePeer = params.themePeer;
49053
+ this.peerColor = params.peerColor;
49054
+ this.hostId = params.hostId;
48646
49055
  }
48647
49056
  static async read(_data, ..._args) {
48648
49057
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -48666,6 +49075,8 @@ var Raw;
48666
49075
  let valueAmount = flags & (1 << 8) ? await index_js_1.Primitive.Long.read(_data) : undefined;
48667
49076
  let valueCurrency = flags & (1 << 8) ? await index_js_1.Primitive.String.read(_data) : undefined;
48668
49077
  let themePeer = flags & (1 << 10) ? await index_js_1.TLObject.read(_data) : undefined;
49078
+ let peerColor = flags & (1 << 11) ? await index_js_1.TLObject.read(_data) : undefined;
49079
+ let hostId = flags & (1 << 12) ? await index_js_1.TLObject.read(_data) : undefined;
48669
49080
  return new Raw.StarGiftUnique({
48670
49081
  requirePremium: requirePremium,
48671
49082
  resaleTonOnly: resaleTonOnly,
@@ -48687,6 +49098,8 @@ var Raw;
48687
49098
  valueAmount: valueAmount,
48688
49099
  valueCurrency: valueCurrency,
48689
49100
  themePeer: themePeer,
49101
+ peerColor: peerColor,
49102
+ hostId: hostId,
48690
49103
  });
48691
49104
  }
48692
49105
  write() {
@@ -48705,6 +49118,8 @@ var Raw;
48705
49118
  flags |= this.valueAmount !== undefined ? 1 << 8 : 0;
48706
49119
  flags |= this.valueCurrency !== undefined ? 1 << 8 : 0;
48707
49120
  flags |= this.themePeer !== undefined ? 1 << 10 : 0;
49121
+ flags |= this.peerColor !== undefined ? 1 << 11 : 0;
49122
+ flags |= this.hostId !== undefined ? 1 << 12 : 0;
48708
49123
  b.write(index_js_1.Primitive.Int.write(flags));
48709
49124
  if (this.id !== undefined) {
48710
49125
  b.write(index_js_1.Primitive.Long.write(this.id));
@@ -48757,6 +49172,12 @@ var Raw;
48757
49172
  if (this.themePeer !== undefined) {
48758
49173
  b.write(this.themePeer.write());
48759
49174
  }
49175
+ if (this.peerColor !== undefined) {
49176
+ b.write(this.peerColor.write());
49177
+ }
49178
+ if (this.hostId !== undefined) {
49179
+ b.write(this.hostId.write());
49180
+ }
48760
49181
  return deps_js_1.Buffer.from(b.buffer);
48761
49182
  }
48762
49183
  }
@@ -49473,11 +49894,12 @@ var Raw;
49473
49894
  canResellAt;
49474
49895
  collectionId;
49475
49896
  prepaidUpgradeHash;
49897
+ dropOriginalDetailsStars;
49476
49898
  constructor(params) {
49477
49899
  super();
49478
49900
  this.classType = 'types';
49479
49901
  this.className = 'SavedStarGift';
49480
- this.constructorId = 0x19a9b572;
49902
+ this.constructorId = 0x8983a452;
49481
49903
  this.subclassOfId = 0x8e2b3c14;
49482
49904
  this._slots = [
49483
49905
  'nameHidden',
@@ -49500,6 +49922,7 @@ var Raw;
49500
49922
  'canResellAt',
49501
49923
  'collectionId',
49502
49924
  'prepaidUpgradeHash',
49925
+ 'dropOriginalDetailsStars',
49503
49926
  ];
49504
49927
  this.nameHidden = params.nameHidden;
49505
49928
  this.unsaved = params.unsaved;
@@ -49521,6 +49944,7 @@ var Raw;
49521
49944
  this.canResellAt = params.canResellAt;
49522
49945
  this.collectionId = params.collectionId;
49523
49946
  this.prepaidUpgradeHash = params.prepaidUpgradeHash;
49947
+ this.dropOriginalDetailsStars = params.dropOriginalDetailsStars;
49524
49948
  }
49525
49949
  static async read(_data, ..._args) {
49526
49950
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -49544,6 +49968,7 @@ var Raw;
49544
49968
  let canResellAt = flags & (1 << 14) ? await index_js_1.Primitive.Int.read(_data) : undefined;
49545
49969
  let collectionId = flags & (1 << 15) ? await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int) : [];
49546
49970
  let prepaidUpgradeHash = flags & (1 << 16) ? await index_js_1.Primitive.String.read(_data) : undefined;
49971
+ let dropOriginalDetailsStars = flags & (1 << 18) ? await index_js_1.Primitive.Long.read(_data) : undefined;
49547
49972
  return new Raw.SavedStarGift({
49548
49973
  nameHidden: nameHidden,
49549
49974
  unsaved: unsaved,
@@ -49565,6 +49990,7 @@ var Raw;
49565
49990
  canResellAt: canResellAt,
49566
49991
  collectionId: collectionId,
49567
49992
  prepaidUpgradeHash: prepaidUpgradeHash,
49993
+ dropOriginalDetailsStars: dropOriginalDetailsStars,
49568
49994
  });
49569
49995
  }
49570
49996
  write() {
@@ -49589,6 +50015,7 @@ var Raw;
49589
50015
  flags |= this.canResellAt !== undefined ? 1 << 14 : 0;
49590
50016
  flags |= this.collectionId ? 1 << 15 : 0;
49591
50017
  flags |= this.prepaidUpgradeHash !== undefined ? 1 << 16 : 0;
50018
+ flags |= this.dropOriginalDetailsStars !== undefined ? 1 << 18 : 0;
49592
50019
  b.write(index_js_1.Primitive.Int.write(flags));
49593
50020
  if (this.fromId !== undefined) {
49594
50021
  b.write(this.fromId.write());
@@ -49632,6 +50059,9 @@ var Raw;
49632
50059
  if (this.prepaidUpgradeHash !== undefined) {
49633
50060
  b.write(index_js_1.Primitive.String.write(this.prepaidUpgradeHash));
49634
50061
  }
50062
+ if (this.dropOriginalDetailsStars !== undefined) {
50063
+ b.write(index_js_1.Primitive.Long.write(this.dropOriginalDetailsStars));
50064
+ }
49635
50065
  return deps_js_1.Buffer.from(b.buffer);
49636
50066
  }
49637
50067
  }
@@ -50812,6 +51242,37 @@ var Raw;
50812
51242
  }
50813
51243
  }
50814
51244
  Raw.InputChatThemeUniqueGift = InputChatThemeUniqueGift;
51245
+ class StarGiftUpgradePrice extends index_js_1.TLObject {
51246
+ date;
51247
+ upgradeStars;
51248
+ constructor(params) {
51249
+ super();
51250
+ this.classType = 'types';
51251
+ this.className = 'StarGiftUpgradePrice';
51252
+ this.constructorId = 0x99ea331d;
51253
+ this.subclassOfId = 0xf452f864;
51254
+ this._slots = ['date', 'upgradeStars'];
51255
+ this.date = params.date;
51256
+ this.upgradeStars = params.upgradeStars;
51257
+ }
51258
+ static async read(_data, ..._args) {
51259
+ let date = await index_js_1.Primitive.Int.read(_data);
51260
+ let upgradeStars = await index_js_1.Primitive.Long.read(_data);
51261
+ return new Raw.StarGiftUpgradePrice({ date: date, upgradeStars: upgradeStars });
51262
+ }
51263
+ write() {
51264
+ const b = new deps_js_1.BytesIO();
51265
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
51266
+ if (this.date !== undefined) {
51267
+ b.write(index_js_1.Primitive.Int.write(this.date));
51268
+ }
51269
+ if (this.upgradeStars !== undefined) {
51270
+ b.write(index_js_1.Primitive.Long.write(this.upgradeStars));
51271
+ }
51272
+ return deps_js_1.Buffer.from(b.buffer);
51273
+ }
51274
+ }
51275
+ Raw.StarGiftUpgradePrice = StarGiftUpgradePrice;
50815
51276
  class InvokeAfterMsg extends index_js_1.TLObject {
50816
51277
  __response__;
50817
51278
  msgId;
@@ -55717,33 +56178,43 @@ var Raw;
55717
56178
  phoneCodeHash;
55718
56179
  supportEmailAddress;
55719
56180
  supportEmailSubject;
56181
+ currency;
56182
+ amount;
55720
56183
  constructor(params) {
55721
56184
  super();
55722
56185
  this.classType = 'types';
55723
56186
  this.className = 'auth.SentCodePaymentRequired';
55724
- this.constructorId = 0xd7a2fcf9;
56187
+ this.constructorId = 0xe0955a3c;
55725
56188
  this.subclassOfId = 0x6ce87081;
55726
56189
  this._slots = [
55727
56190
  'storeProduct',
55728
56191
  'phoneCodeHash',
55729
56192
  'supportEmailAddress',
55730
56193
  'supportEmailSubject',
56194
+ 'currency',
56195
+ 'amount',
55731
56196
  ];
55732
56197
  this.storeProduct = params.storeProduct;
55733
56198
  this.phoneCodeHash = params.phoneCodeHash;
55734
56199
  this.supportEmailAddress = params.supportEmailAddress;
55735
56200
  this.supportEmailSubject = params.supportEmailSubject;
56201
+ this.currency = params.currency;
56202
+ this.amount = params.amount;
55736
56203
  }
55737
56204
  static async read(_data, ..._args) {
55738
56205
  let storeProduct = await index_js_1.Primitive.String.read(_data);
55739
56206
  let phoneCodeHash = await index_js_1.Primitive.String.read(_data);
55740
56207
  let supportEmailAddress = await index_js_1.Primitive.String.read(_data);
55741
56208
  let supportEmailSubject = await index_js_1.Primitive.String.read(_data);
56209
+ let currency = await index_js_1.Primitive.String.read(_data);
56210
+ let amount = await index_js_1.Primitive.Long.read(_data);
55742
56211
  return new Raw.auth.SentCodePaymentRequired({
55743
56212
  storeProduct: storeProduct,
55744
56213
  phoneCodeHash: phoneCodeHash,
55745
56214
  supportEmailAddress: supportEmailAddress,
55746
56215
  supportEmailSubject: supportEmailSubject,
56216
+ currency: currency,
56217
+ amount: amount,
55747
56218
  });
55748
56219
  }
55749
56220
  write() {
@@ -55761,6 +56232,12 @@ var Raw;
55761
56232
  if (this.supportEmailSubject !== undefined) {
55762
56233
  b.write(index_js_1.Primitive.String.write(this.supportEmailSubject));
55763
56234
  }
56235
+ if (this.currency !== undefined) {
56236
+ b.write(index_js_1.Primitive.String.write(this.currency));
56237
+ }
56238
+ if (this.amount !== undefined) {
56239
+ b.write(index_js_1.Primitive.Long.write(this.amount));
56240
+ }
55764
56241
  return deps_js_1.Buffer.from(b.buffer);
55765
56242
  }
55766
56243
  }
@@ -57381,6 +57858,48 @@ var Raw;
57381
57858
  }
57382
57859
  }
57383
57860
  auth.ReportMissingCode = ReportMissingCode;
57861
+ class CheckPaidAuth extends index_js_1.TLObject {
57862
+ __response__;
57863
+ phoneNumber;
57864
+ phoneCodeHash;
57865
+ formId;
57866
+ constructor(params) {
57867
+ super();
57868
+ this.classType = 'functions';
57869
+ this.className = 'auth.CheckPaidAuth';
57870
+ this.constructorId = 0x56e59f9c;
57871
+ this.subclassOfId = 0x6ce87081;
57872
+ this._slots = ['phoneNumber', 'phoneCodeHash', 'formId'];
57873
+ this.phoneNumber = params.phoneNumber;
57874
+ this.phoneCodeHash = params.phoneCodeHash;
57875
+ this.formId = params.formId;
57876
+ }
57877
+ static async read(_data, ..._args) {
57878
+ let phoneNumber = await index_js_1.Primitive.String.read(_data);
57879
+ let phoneCodeHash = await index_js_1.Primitive.String.read(_data);
57880
+ let formId = await index_js_1.Primitive.Long.read(_data);
57881
+ return new Raw.auth.CheckPaidAuth({
57882
+ phoneNumber: phoneNumber,
57883
+ phoneCodeHash: phoneCodeHash,
57884
+ formId: formId,
57885
+ });
57886
+ }
57887
+ write() {
57888
+ const b = new deps_js_1.BytesIO();
57889
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
57890
+ if (this.phoneNumber !== undefined) {
57891
+ b.write(index_js_1.Primitive.String.write(this.phoneNumber));
57892
+ }
57893
+ if (this.phoneCodeHash !== undefined) {
57894
+ b.write(index_js_1.Primitive.String.write(this.phoneCodeHash));
57895
+ }
57896
+ if (this.formId !== undefined) {
57897
+ b.write(index_js_1.Primitive.Long.write(this.formId));
57898
+ }
57899
+ return deps_js_1.Buffer.from(b.buffer);
57900
+ }
57901
+ }
57902
+ auth.CheckPaidAuth = CheckPaidAuth;
57384
57903
  })(auth = Raw.auth || (Raw.auth = {}));
57385
57904
  let contacts;
57386
57905
  (function (contacts_1) {
@@ -58359,18 +58878,20 @@ var Raw;
58359
58878
  firstName;
58360
58879
  lastName;
58361
58880
  phone;
58881
+ note;
58362
58882
  constructor(params) {
58363
58883
  super();
58364
58884
  this.classType = 'functions';
58365
58885
  this.className = 'contacts.AddContact';
58366
- this.constructorId = 0xe8f463d0;
58886
+ this.constructorId = 0xd9ba2e54;
58367
58887
  this.subclassOfId = 0x8af52aac;
58368
- this._slots = ['addPhonePrivacyException', 'id', 'firstName', 'lastName', 'phone'];
58888
+ this._slots = ['addPhonePrivacyException', 'id', 'firstName', 'lastName', 'phone', 'note'];
58369
58889
  this.addPhonePrivacyException = params.addPhonePrivacyException;
58370
58890
  this.id = params.id;
58371
58891
  this.firstName = params.firstName;
58372
58892
  this.lastName = params.lastName;
58373
58893
  this.phone = params.phone;
58894
+ this.note = params.note;
58374
58895
  }
58375
58896
  static async read(_data, ..._args) {
58376
58897
  let flags = await index_js_1.Primitive.Int.read(_data);
@@ -58379,12 +58900,14 @@ var Raw;
58379
58900
  let firstName = await index_js_1.Primitive.String.read(_data);
58380
58901
  let lastName = await index_js_1.Primitive.String.read(_data);
58381
58902
  let phone = await index_js_1.Primitive.String.read(_data);
58903
+ let note = flags & (1 << 1) ? await index_js_1.TLObject.read(_data) : undefined;
58382
58904
  return new Raw.contacts.AddContact({
58383
58905
  addPhonePrivacyException: addPhonePrivacyException,
58384
58906
  id: id,
58385
58907
  firstName: firstName,
58386
58908
  lastName: lastName,
58387
58909
  phone: phone,
58910
+ note: note,
58388
58911
  });
58389
58912
  }
58390
58913
  write() {
@@ -58392,6 +58915,7 @@ var Raw;
58392
58915
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
58393
58916
  let flags = 0;
58394
58917
  flags |= this.addPhonePrivacyException ? 1 << 0 : 0;
58918
+ flags |= this.note !== undefined ? 1 << 1 : 0;
58395
58919
  b.write(index_js_1.Primitive.Int.write(flags));
58396
58920
  if (this.id !== undefined) {
58397
58921
  b.write(this.id.write());
@@ -58405,6 +58929,9 @@ var Raw;
58405
58929
  if (this.phone !== undefined) {
58406
58930
  b.write(index_js_1.Primitive.String.write(this.phone));
58407
58931
  }
58932
+ if (this.note !== undefined) {
58933
+ b.write(this.note.write());
58934
+ }
58408
58935
  return deps_js_1.Buffer.from(b.buffer);
58409
58936
  }
58410
58937
  }
@@ -58708,6 +59235,38 @@ var Raw;
58708
59235
  }
58709
59236
  }
58710
59237
  contacts_1.GetSponsoredPeers = GetSponsoredPeers;
59238
+ class UpdateContactNote extends index_js_1.TLObject {
59239
+ __response__;
59240
+ id;
59241
+ note;
59242
+ constructor(params) {
59243
+ super();
59244
+ this.classType = 'functions';
59245
+ this.className = 'contacts.UpdateContactNote';
59246
+ this.constructorId = 0x139f63fb;
59247
+ this.subclassOfId = 0xf5b399ac;
59248
+ this._slots = ['id', 'note'];
59249
+ this.id = params.id;
59250
+ this.note = params.note;
59251
+ }
59252
+ static async read(_data, ..._args) {
59253
+ let id = await index_js_1.TLObject.read(_data);
59254
+ let note = await index_js_1.TLObject.read(_data);
59255
+ return new Raw.contacts.UpdateContactNote({ id: id, note: note });
59256
+ }
59257
+ write() {
59258
+ const b = new deps_js_1.BytesIO();
59259
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
59260
+ if (this.id !== undefined) {
59261
+ b.write(this.id.write());
59262
+ }
59263
+ if (this.note !== undefined) {
59264
+ b.write(this.note.write());
59265
+ }
59266
+ return deps_js_1.Buffer.from(b.buffer);
59267
+ }
59268
+ }
59269
+ contacts_1.UpdateContactNote = UpdateContactNote;
58711
59270
  })(contacts = Raw.contacts || (Raw.contacts = {}));
58712
59271
  let messages;
58713
59272
  (function (messages_1) {
@@ -58841,24 +59400,32 @@ var Raw;
58841
59400
  messages_1.DialogsNotModified = DialogsNotModified;
58842
59401
  class Messages extends index_js_1.TLObject {
58843
59402
  messages;
59403
+ topics;
58844
59404
  chats;
58845
59405
  users;
58846
59406
  constructor(params) {
58847
59407
  super();
58848
59408
  this.classType = 'types';
58849
59409
  this.className = 'messages.Messages';
58850
- this.constructorId = 0x8c718e87;
59410
+ this.constructorId = 0x1d73e7ea;
58851
59411
  this.subclassOfId = 0xd4b40b5e;
58852
- this._slots = ['messages', 'chats', 'users'];
59412
+ this._slots = ['messages', 'topics', 'chats', 'users'];
58853
59413
  this.messages = params.messages;
59414
+ this.topics = params.topics;
58854
59415
  this.chats = params.chats;
58855
59416
  this.users = params.users;
58856
59417
  }
58857
59418
  static async read(_data, ..._args) {
58858
59419
  let messages = await index_js_1.TLObject.read(_data);
59420
+ let topics = await index_js_1.TLObject.read(_data);
58859
59421
  let chats = await index_js_1.TLObject.read(_data);
58860
59422
  let users = await index_js_1.TLObject.read(_data);
58861
- return new Raw.messages.Messages({ messages: messages, chats: chats, users: users });
59423
+ return new Raw.messages.Messages({
59424
+ messages: messages,
59425
+ topics: topics,
59426
+ chats: chats,
59427
+ users: users,
59428
+ });
58862
59429
  }
58863
59430
  write() {
58864
59431
  const b = new deps_js_1.BytesIO();
@@ -58866,6 +59433,9 @@ var Raw;
58866
59433
  if (this.messages) {
58867
59434
  b.write(index_js_1.Primitive.Vector.write(this.messages));
58868
59435
  }
59436
+ if (this.topics) {
59437
+ b.write(index_js_1.Primitive.Vector.write(this.topics));
59438
+ }
58869
59439
  if (this.chats) {
58870
59440
  b.write(index_js_1.Primitive.Vector.write(this.chats));
58871
59441
  }
@@ -58883,13 +59453,14 @@ var Raw;
58883
59453
  offsetIdOffset;
58884
59454
  searchFlood;
58885
59455
  messages;
59456
+ topics;
58886
59457
  chats;
58887
59458
  users;
58888
59459
  constructor(params) {
58889
59460
  super();
58890
59461
  this.classType = 'types';
58891
59462
  this.className = 'messages.MessagesSlice';
58892
- this.constructorId = 0x762b263d;
59463
+ this.constructorId = 0x5f206716;
58893
59464
  this.subclassOfId = 0xd4b40b5e;
58894
59465
  this._slots = [
58895
59466
  'inexact',
@@ -58898,6 +59469,7 @@ var Raw;
58898
59469
  'offsetIdOffset',
58899
59470
  'searchFlood',
58900
59471
  'messages',
59472
+ 'topics',
58901
59473
  'chats',
58902
59474
  'users',
58903
59475
  ];
@@ -58907,6 +59479,7 @@ var Raw;
58907
59479
  this.offsetIdOffset = params.offsetIdOffset;
58908
59480
  this.searchFlood = params.searchFlood;
58909
59481
  this.messages = params.messages;
59482
+ this.topics = params.topics;
58910
59483
  this.chats = params.chats;
58911
59484
  this.users = params.users;
58912
59485
  }
@@ -58918,6 +59491,7 @@ var Raw;
58918
59491
  let offsetIdOffset = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
58919
59492
  let searchFlood = flags & (1 << 3) ? await index_js_1.TLObject.read(_data) : undefined;
58920
59493
  let messages = await index_js_1.TLObject.read(_data);
59494
+ let topics = await index_js_1.TLObject.read(_data);
58921
59495
  let chats = await index_js_1.TLObject.read(_data);
58922
59496
  let users = await index_js_1.TLObject.read(_data);
58923
59497
  return new Raw.messages.MessagesSlice({
@@ -58927,6 +59501,7 @@ var Raw;
58927
59501
  offsetIdOffset: offsetIdOffset,
58928
59502
  searchFlood: searchFlood,
58929
59503
  messages: messages,
59504
+ topics: topics,
58930
59505
  chats: chats,
58931
59506
  users: users,
58932
59507
  });
@@ -58955,6 +59530,9 @@ var Raw;
58955
59530
  if (this.messages) {
58956
59531
  b.write(index_js_1.Primitive.Vector.write(this.messages));
58957
59532
  }
59533
+ if (this.topics) {
59534
+ b.write(index_js_1.Primitive.Vector.write(this.topics));
59535
+ }
58958
59536
  if (this.chats) {
58959
59537
  b.write(index_js_1.Primitive.Vector.write(this.chats));
58960
59538
  }
@@ -72142,6 +72720,374 @@ var Raw;
72142
72720
  }
72143
72721
  }
72144
72722
  messages_1.ToggleSuggestedPostApproval = ToggleSuggestedPostApproval;
72723
+ class GetForumTopics extends index_js_1.TLObject {
72724
+ __response__;
72725
+ peer;
72726
+ q;
72727
+ offsetDate;
72728
+ offsetId;
72729
+ offsetTopic;
72730
+ limit;
72731
+ constructor(params) {
72732
+ super();
72733
+ this.classType = 'functions';
72734
+ this.className = 'messages.GetForumTopics';
72735
+ this.constructorId = 0x3ba47bff;
72736
+ this.subclassOfId = 0x8e1d3e1e;
72737
+ this._slots = ['peer', 'q', 'offsetDate', 'offsetId', 'offsetTopic', 'limit'];
72738
+ this.peer = params.peer;
72739
+ this.q = params.q;
72740
+ this.offsetDate = params.offsetDate;
72741
+ this.offsetId = params.offsetId;
72742
+ this.offsetTopic = params.offsetTopic;
72743
+ this.limit = params.limit;
72744
+ }
72745
+ static async read(_data, ..._args) {
72746
+ let flags = await index_js_1.Primitive.Int.read(_data);
72747
+ let peer = await index_js_1.TLObject.read(_data);
72748
+ let q = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
72749
+ let offsetDate = await index_js_1.Primitive.Int.read(_data);
72750
+ let offsetId = await index_js_1.Primitive.Int.read(_data);
72751
+ let offsetTopic = await index_js_1.Primitive.Int.read(_data);
72752
+ let limit = await index_js_1.Primitive.Int.read(_data);
72753
+ return new Raw.messages.GetForumTopics({
72754
+ peer: peer,
72755
+ q: q,
72756
+ offsetDate: offsetDate,
72757
+ offsetId: offsetId,
72758
+ offsetTopic: offsetTopic,
72759
+ limit: limit,
72760
+ });
72761
+ }
72762
+ write() {
72763
+ const b = new deps_js_1.BytesIO();
72764
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
72765
+ let flags = 0;
72766
+ flags |= this.q !== undefined ? 1 << 0 : 0;
72767
+ b.write(index_js_1.Primitive.Int.write(flags));
72768
+ if (this.peer !== undefined) {
72769
+ b.write(this.peer.write());
72770
+ }
72771
+ if (this.q !== undefined) {
72772
+ b.write(index_js_1.Primitive.String.write(this.q));
72773
+ }
72774
+ if (this.offsetDate !== undefined) {
72775
+ b.write(index_js_1.Primitive.Int.write(this.offsetDate));
72776
+ }
72777
+ if (this.offsetId !== undefined) {
72778
+ b.write(index_js_1.Primitive.Int.write(this.offsetId));
72779
+ }
72780
+ if (this.offsetTopic !== undefined) {
72781
+ b.write(index_js_1.Primitive.Int.write(this.offsetTopic));
72782
+ }
72783
+ if (this.limit !== undefined) {
72784
+ b.write(index_js_1.Primitive.Int.write(this.limit));
72785
+ }
72786
+ return deps_js_1.Buffer.from(b.buffer);
72787
+ }
72788
+ }
72789
+ messages_1.GetForumTopics = GetForumTopics;
72790
+ class GetForumTopicsByID extends index_js_1.TLObject {
72791
+ __response__;
72792
+ peer;
72793
+ topics;
72794
+ constructor(params) {
72795
+ super();
72796
+ this.classType = 'functions';
72797
+ this.className = 'messages.GetForumTopicsByID';
72798
+ this.constructorId = 0xaf0a4a08;
72799
+ this.subclassOfId = 0x8e1d3e1e;
72800
+ this._slots = ['peer', 'topics'];
72801
+ this.peer = params.peer;
72802
+ this.topics = params.topics;
72803
+ }
72804
+ static async read(_data, ..._args) {
72805
+ let peer = await index_js_1.TLObject.read(_data);
72806
+ let topics = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
72807
+ return new Raw.messages.GetForumTopicsByID({ peer: peer, topics: topics });
72808
+ }
72809
+ write() {
72810
+ const b = new deps_js_1.BytesIO();
72811
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
72812
+ if (this.peer !== undefined) {
72813
+ b.write(this.peer.write());
72814
+ }
72815
+ if (this.topics) {
72816
+ b.write(index_js_1.Primitive.Vector.write(this.topics, index_js_1.Primitive.Int));
72817
+ }
72818
+ return deps_js_1.Buffer.from(b.buffer);
72819
+ }
72820
+ }
72821
+ messages_1.GetForumTopicsByID = GetForumTopicsByID;
72822
+ class EditForumTopic extends index_js_1.TLObject {
72823
+ __response__;
72824
+ peer;
72825
+ topicId;
72826
+ title;
72827
+ iconEmojiId;
72828
+ closed;
72829
+ hidden;
72830
+ constructor(params) {
72831
+ super();
72832
+ this.classType = 'functions';
72833
+ this.className = 'messages.EditForumTopic';
72834
+ this.constructorId = 0xcecc1134;
72835
+ this.subclassOfId = 0x8af52aac;
72836
+ this._slots = ['peer', 'topicId', 'title', 'iconEmojiId', 'closed', 'hidden'];
72837
+ this.peer = params.peer;
72838
+ this.topicId = params.topicId;
72839
+ this.title = params.title;
72840
+ this.iconEmojiId = params.iconEmojiId;
72841
+ this.closed = params.closed;
72842
+ this.hidden = params.hidden;
72843
+ }
72844
+ static async read(_data, ..._args) {
72845
+ let flags = await index_js_1.Primitive.Int.read(_data);
72846
+ let peer = await index_js_1.TLObject.read(_data);
72847
+ let topicId = await index_js_1.Primitive.Int.read(_data);
72848
+ let title = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
72849
+ let iconEmojiId = flags & (1 << 1) ? await index_js_1.Primitive.Long.read(_data) : undefined;
72850
+ let closed = flags & (1 << 2) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
72851
+ let hidden = flags & (1 << 3) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
72852
+ return new Raw.messages.EditForumTopic({
72853
+ peer: peer,
72854
+ topicId: topicId,
72855
+ title: title,
72856
+ iconEmojiId: iconEmojiId,
72857
+ closed: closed,
72858
+ hidden: hidden,
72859
+ });
72860
+ }
72861
+ write() {
72862
+ const b = new deps_js_1.BytesIO();
72863
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
72864
+ let flags = 0;
72865
+ flags |= this.title !== undefined ? 1 << 0 : 0;
72866
+ flags |= this.iconEmojiId !== undefined ? 1 << 1 : 0;
72867
+ flags |= this.closed !== undefined ? 1 << 2 : 0;
72868
+ flags |= this.hidden !== undefined ? 1 << 3 : 0;
72869
+ b.write(index_js_1.Primitive.Int.write(flags));
72870
+ if (this.peer !== undefined) {
72871
+ b.write(this.peer.write());
72872
+ }
72873
+ if (this.topicId !== undefined) {
72874
+ b.write(index_js_1.Primitive.Int.write(this.topicId));
72875
+ }
72876
+ if (this.title !== undefined) {
72877
+ b.write(index_js_1.Primitive.String.write(this.title));
72878
+ }
72879
+ if (this.iconEmojiId !== undefined) {
72880
+ b.write(index_js_1.Primitive.Long.write(this.iconEmojiId));
72881
+ }
72882
+ if (this.closed !== undefined) {
72883
+ b.write(index_js_1.Primitive.Bool.write(this.closed));
72884
+ }
72885
+ if (this.hidden !== undefined) {
72886
+ b.write(index_js_1.Primitive.Bool.write(this.hidden));
72887
+ }
72888
+ return deps_js_1.Buffer.from(b.buffer);
72889
+ }
72890
+ }
72891
+ messages_1.EditForumTopic = EditForumTopic;
72892
+ class UpdatePinnedForumTopic extends index_js_1.TLObject {
72893
+ __response__;
72894
+ peer;
72895
+ topicId;
72896
+ pinned;
72897
+ constructor(params) {
72898
+ super();
72899
+ this.classType = 'functions';
72900
+ this.className = 'messages.UpdatePinnedForumTopic';
72901
+ this.constructorId = 0x175df251;
72902
+ this.subclassOfId = 0x8af52aac;
72903
+ this._slots = ['peer', 'topicId', 'pinned'];
72904
+ this.peer = params.peer;
72905
+ this.topicId = params.topicId;
72906
+ this.pinned = params.pinned;
72907
+ }
72908
+ static async read(_data, ..._args) {
72909
+ let peer = await index_js_1.TLObject.read(_data);
72910
+ let topicId = await index_js_1.Primitive.Int.read(_data);
72911
+ let pinned = await index_js_1.Primitive.Bool.read(_data);
72912
+ return new Raw.messages.UpdatePinnedForumTopic({
72913
+ peer: peer,
72914
+ topicId: topicId,
72915
+ pinned: pinned,
72916
+ });
72917
+ }
72918
+ write() {
72919
+ const b = new deps_js_1.BytesIO();
72920
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
72921
+ if (this.peer !== undefined) {
72922
+ b.write(this.peer.write());
72923
+ }
72924
+ if (this.topicId !== undefined) {
72925
+ b.write(index_js_1.Primitive.Int.write(this.topicId));
72926
+ }
72927
+ if (this.pinned !== undefined) {
72928
+ b.write(index_js_1.Primitive.Bool.write(this.pinned));
72929
+ }
72930
+ return deps_js_1.Buffer.from(b.buffer);
72931
+ }
72932
+ }
72933
+ messages_1.UpdatePinnedForumTopic = UpdatePinnedForumTopic;
72934
+ class ReorderPinnedForumTopics extends index_js_1.TLObject {
72935
+ __response__;
72936
+ force;
72937
+ peer;
72938
+ order;
72939
+ constructor(params) {
72940
+ super();
72941
+ this.classType = 'functions';
72942
+ this.className = 'messages.ReorderPinnedForumTopics';
72943
+ this.constructorId = 0xe7841f0;
72944
+ this.subclassOfId = 0x8af52aac;
72945
+ this._slots = ['force', 'peer', 'order'];
72946
+ this.force = params.force;
72947
+ this.peer = params.peer;
72948
+ this.order = params.order;
72949
+ }
72950
+ static async read(_data, ..._args) {
72951
+ let flags = await index_js_1.Primitive.Int.read(_data);
72952
+ let force = flags & (1 << 0) ? true : false;
72953
+ let peer = await index_js_1.TLObject.read(_data);
72954
+ let order = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
72955
+ return new Raw.messages.ReorderPinnedForumTopics({
72956
+ force: force,
72957
+ peer: peer,
72958
+ order: order,
72959
+ });
72960
+ }
72961
+ write() {
72962
+ const b = new deps_js_1.BytesIO();
72963
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
72964
+ let flags = 0;
72965
+ flags |= this.force ? 1 << 0 : 0;
72966
+ b.write(index_js_1.Primitive.Int.write(flags));
72967
+ if (this.peer !== undefined) {
72968
+ b.write(this.peer.write());
72969
+ }
72970
+ if (this.order) {
72971
+ b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
72972
+ }
72973
+ return deps_js_1.Buffer.from(b.buffer);
72974
+ }
72975
+ }
72976
+ messages_1.ReorderPinnedForumTopics = ReorderPinnedForumTopics;
72977
+ class CreateForumTopic extends index_js_1.TLObject {
72978
+ __response__;
72979
+ titleMissing;
72980
+ peer;
72981
+ title;
72982
+ iconColor;
72983
+ iconEmojiId;
72984
+ randomId;
72985
+ sendAs;
72986
+ constructor(params) {
72987
+ super();
72988
+ this.classType = 'functions';
72989
+ this.className = 'messages.CreateForumTopic';
72990
+ this.constructorId = 0x2f98c3d5;
72991
+ this.subclassOfId = 0x8af52aac;
72992
+ this._slots = [
72993
+ 'titleMissing',
72994
+ 'peer',
72995
+ 'title',
72996
+ 'iconColor',
72997
+ 'iconEmojiId',
72998
+ 'randomId',
72999
+ 'sendAs',
73000
+ ];
73001
+ this.titleMissing = params.titleMissing;
73002
+ this.peer = params.peer;
73003
+ this.title = params.title;
73004
+ this.iconColor = params.iconColor;
73005
+ this.iconEmojiId = params.iconEmojiId;
73006
+ this.randomId = params.randomId;
73007
+ this.sendAs = params.sendAs;
73008
+ }
73009
+ static async read(_data, ..._args) {
73010
+ let flags = await index_js_1.Primitive.Int.read(_data);
73011
+ let titleMissing = flags & (1 << 4) ? true : false;
73012
+ let peer = await index_js_1.TLObject.read(_data);
73013
+ let title = await index_js_1.Primitive.String.read(_data);
73014
+ let iconColor = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
73015
+ let iconEmojiId = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
73016
+ let randomId = await index_js_1.Primitive.Long.read(_data);
73017
+ let sendAs = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
73018
+ return new Raw.messages.CreateForumTopic({
73019
+ titleMissing: titleMissing,
73020
+ peer: peer,
73021
+ title: title,
73022
+ iconColor: iconColor,
73023
+ iconEmojiId: iconEmojiId,
73024
+ randomId: randomId,
73025
+ sendAs: sendAs,
73026
+ });
73027
+ }
73028
+ write() {
73029
+ const b = new deps_js_1.BytesIO();
73030
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
73031
+ let flags = 0;
73032
+ flags |= this.titleMissing ? 1 << 4 : 0;
73033
+ flags |= this.iconColor !== undefined ? 1 << 0 : 0;
73034
+ flags |= this.iconEmojiId !== undefined ? 1 << 3 : 0;
73035
+ flags |= this.sendAs !== undefined ? 1 << 2 : 0;
73036
+ b.write(index_js_1.Primitive.Int.write(flags));
73037
+ if (this.peer !== undefined) {
73038
+ b.write(this.peer.write());
73039
+ }
73040
+ if (this.title !== undefined) {
73041
+ b.write(index_js_1.Primitive.String.write(this.title));
73042
+ }
73043
+ if (this.iconColor !== undefined) {
73044
+ b.write(index_js_1.Primitive.Int.write(this.iconColor));
73045
+ }
73046
+ if (this.iconEmojiId !== undefined) {
73047
+ b.write(index_js_1.Primitive.Long.write(this.iconEmojiId));
73048
+ }
73049
+ if (this.randomId !== undefined) {
73050
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
73051
+ }
73052
+ if (this.sendAs !== undefined) {
73053
+ b.write(this.sendAs.write());
73054
+ }
73055
+ return deps_js_1.Buffer.from(b.buffer);
73056
+ }
73057
+ }
73058
+ messages_1.CreateForumTopic = CreateForumTopic;
73059
+ class DeleteTopicHistory extends index_js_1.TLObject {
73060
+ __response__;
73061
+ peer;
73062
+ topMsgId;
73063
+ constructor(params) {
73064
+ super();
73065
+ this.classType = 'functions';
73066
+ this.className = 'messages.DeleteTopicHistory';
73067
+ this.constructorId = 0xd2816f10;
73068
+ this.subclassOfId = 0x2c49c116;
73069
+ this._slots = ['peer', 'topMsgId'];
73070
+ this.peer = params.peer;
73071
+ this.topMsgId = params.topMsgId;
73072
+ }
73073
+ static async read(_data, ..._args) {
73074
+ let peer = await index_js_1.TLObject.read(_data);
73075
+ let topMsgId = await index_js_1.Primitive.Int.read(_data);
73076
+ return new Raw.messages.DeleteTopicHistory({ peer: peer, topMsgId: topMsgId });
73077
+ }
73078
+ write() {
73079
+ const b = new deps_js_1.BytesIO();
73080
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
73081
+ if (this.peer !== undefined) {
73082
+ b.write(this.peer.write());
73083
+ }
73084
+ if (this.topMsgId !== undefined) {
73085
+ b.write(index_js_1.Primitive.Int.write(this.topMsgId));
73086
+ }
73087
+ return deps_js_1.Buffer.from(b.buffer);
73088
+ }
73089
+ }
73090
+ messages_1.DeleteTopicHistory = DeleteTopicHistory;
72145
73091
  })(messages = Raw.messages || (Raw.messages = {}));
72146
73092
  let updates;
72147
73093
  (function (updates) {
@@ -74342,7 +75288,7 @@ var Raw;
74342
75288
  super();
74343
75289
  this.classType = 'types';
74344
75290
  this.className = 'account.ChatThemes';
74345
- this.constructorId = 0x16484857;
75291
+ this.constructorId = 0xbe098173;
74346
75292
  this.subclassOfId = 0x15c14aa8;
74347
75293
  this._slots = ['hash', 'themes', 'chats', 'users', 'nextOffset'];
74348
75294
  this.hash = params.hash;
@@ -74357,7 +75303,7 @@ var Raw;
74357
75303
  let themes = await index_js_1.TLObject.read(_data);
74358
75304
  let chats = await index_js_1.TLObject.read(_data);
74359
75305
  let users = await index_js_1.TLObject.read(_data);
74360
- let nextOffset = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
75306
+ let nextOffset = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
74361
75307
  return new Raw.account.ChatThemes({
74362
75308
  hash: hash,
74363
75309
  themes: themes,
@@ -74385,7 +75331,7 @@ var Raw;
74385
75331
  b.write(index_js_1.Primitive.Vector.write(this.users));
74386
75332
  }
74387
75333
  if (this.nextOffset !== undefined) {
74388
- b.write(index_js_1.Primitive.Int.write(this.nextOffset));
75334
+ b.write(index_js_1.Primitive.String.write(this.nextOffset));
74389
75335
  }
74390
75336
  return deps_js_1.Buffer.from(b.buffer);
74391
75337
  }
@@ -77657,28 +78603,21 @@ var Raw;
77657
78603
  __response__;
77658
78604
  forProfile;
77659
78605
  color;
77660
- backgroundEmojiId;
77661
78606
  constructor(params) {
77662
78607
  super();
77663
78608
  this.classType = 'functions';
77664
78609
  this.className = 'account.UpdateColor';
77665
- this.constructorId = 0x7cefa15d;
78610
+ this.constructorId = 0x684d214e;
77666
78611
  this.subclassOfId = 0xf5b399ac;
77667
- this._slots = ['forProfile', 'color', 'backgroundEmojiId'];
78612
+ this._slots = ['forProfile', 'color'];
77668
78613
  this.forProfile = params.forProfile;
77669
78614
  this.color = params.color;
77670
- this.backgroundEmojiId = params.backgroundEmojiId;
77671
78615
  }
77672
78616
  static async read(_data, ..._args) {
77673
78617
  let flags = await index_js_1.Primitive.Int.read(_data);
77674
78618
  let forProfile = flags & (1 << 1) ? true : false;
77675
- let color = flags & (1 << 2) ? await index_js_1.Primitive.Int.read(_data) : undefined;
77676
- let backgroundEmojiId = flags & (1 << 0) ? await index_js_1.Primitive.Long.read(_data) : undefined;
77677
- return new Raw.account.UpdateColor({
77678
- forProfile: forProfile,
77679
- color: color,
77680
- backgroundEmojiId: backgroundEmojiId,
77681
- });
78619
+ let color = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
78620
+ return new Raw.account.UpdateColor({ forProfile: forProfile, color: color });
77682
78621
  }
77683
78622
  write() {
77684
78623
  const b = new deps_js_1.BytesIO();
@@ -77686,13 +78625,9 @@ var Raw;
77686
78625
  let flags = 0;
77687
78626
  flags |= this.forProfile ? 1 << 1 : 0;
77688
78627
  flags |= this.color !== undefined ? 1 << 2 : 0;
77689
- flags |= this.backgroundEmojiId !== undefined ? 1 << 0 : 0;
77690
78628
  b.write(index_js_1.Primitive.Int.write(flags));
77691
78629
  if (this.color !== undefined) {
77692
- b.write(index_js_1.Primitive.Int.write(this.color));
77693
- }
77694
- if (this.backgroundEmojiId !== undefined) {
77695
- b.write(index_js_1.Primitive.Long.write(this.backgroundEmojiId));
78630
+ b.write(this.color.write());
77696
78631
  }
77697
78632
  return deps_js_1.Buffer.from(b.buffer);
77698
78633
  }
@@ -78558,7 +79493,7 @@ var Raw;
78558
79493
  super();
78559
79494
  this.classType = 'functions';
78560
79495
  this.className = 'account.GetUniqueGiftChatThemes';
78561
- this.constructorId = 0xfe74ef9f;
79496
+ this.constructorId = 0xe42ce9c9;
78562
79497
  this.subclassOfId = 0x15c14aa8;
78563
79498
  this._slots = ['offset', 'limit', 'hash'];
78564
79499
  this.offset = params.offset;
@@ -78566,7 +79501,7 @@ var Raw;
78566
79501
  this.hash = params.hash;
78567
79502
  }
78568
79503
  static async read(_data, ..._args) {
78569
- let offset = await index_js_1.Primitive.Int.read(_data);
79504
+ let offset = await index_js_1.Primitive.String.read(_data);
78570
79505
  let limit = await index_js_1.Primitive.Int.read(_data);
78571
79506
  let hash = await index_js_1.Primitive.Long.read(_data);
78572
79507
  return new Raw.account.GetUniqueGiftChatThemes({
@@ -78579,7 +79514,7 @@ var Raw;
78579
79514
  const b = new deps_js_1.BytesIO();
78580
79515
  b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
78581
79516
  if (this.offset !== undefined) {
78582
- b.write(index_js_1.Primitive.Int.write(this.offset));
79517
+ b.write(index_js_1.Primitive.String.write(this.offset));
78583
79518
  }
78584
79519
  if (this.limit !== undefined) {
78585
79520
  b.write(index_js_1.Primitive.Int.write(this.limit));
@@ -80395,361 +81330,6 @@ var Raw;
80395
81330
  }
80396
81331
  }
80397
81332
  channels.ToggleForum = ToggleForum;
80398
- class CreateForumTopic extends index_js_1.TLObject {
80399
- __response__;
80400
- channel;
80401
- title;
80402
- iconColor;
80403
- iconEmojiId;
80404
- randomId;
80405
- sendAs;
80406
- constructor(params) {
80407
- super();
80408
- this.classType = 'functions';
80409
- this.className = 'channels.CreateForumTopic';
80410
- this.constructorId = 0xf40c0224;
80411
- this.subclassOfId = 0x8af52aac;
80412
- this._slots = ['channel', 'title', 'iconColor', 'iconEmojiId', 'randomId', 'sendAs'];
80413
- this.channel = params.channel;
80414
- this.title = params.title;
80415
- this.iconColor = params.iconColor;
80416
- this.iconEmojiId = params.iconEmojiId;
80417
- this.randomId = params.randomId;
80418
- this.sendAs = params.sendAs;
80419
- }
80420
- static async read(_data, ..._args) {
80421
- let flags = await index_js_1.Primitive.Int.read(_data);
80422
- let channel = await index_js_1.TLObject.read(_data);
80423
- let title = await index_js_1.Primitive.String.read(_data);
80424
- let iconColor = flags & (1 << 0) ? await index_js_1.Primitive.Int.read(_data) : undefined;
80425
- let iconEmojiId = flags & (1 << 3) ? await index_js_1.Primitive.Long.read(_data) : undefined;
80426
- let randomId = await index_js_1.Primitive.Long.read(_data);
80427
- let sendAs = flags & (1 << 2) ? await index_js_1.TLObject.read(_data) : undefined;
80428
- return new Raw.channels.CreateForumTopic({
80429
- channel: channel,
80430
- title: title,
80431
- iconColor: iconColor,
80432
- iconEmojiId: iconEmojiId,
80433
- randomId: randomId,
80434
- sendAs: sendAs,
80435
- });
80436
- }
80437
- write() {
80438
- const b = new deps_js_1.BytesIO();
80439
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80440
- let flags = 0;
80441
- flags |= this.iconColor !== undefined ? 1 << 0 : 0;
80442
- flags |= this.iconEmojiId !== undefined ? 1 << 3 : 0;
80443
- flags |= this.sendAs !== undefined ? 1 << 2 : 0;
80444
- b.write(index_js_1.Primitive.Int.write(flags));
80445
- if (this.channel !== undefined) {
80446
- b.write(this.channel.write());
80447
- }
80448
- if (this.title !== undefined) {
80449
- b.write(index_js_1.Primitive.String.write(this.title));
80450
- }
80451
- if (this.iconColor !== undefined) {
80452
- b.write(index_js_1.Primitive.Int.write(this.iconColor));
80453
- }
80454
- if (this.iconEmojiId !== undefined) {
80455
- b.write(index_js_1.Primitive.Long.write(this.iconEmojiId));
80456
- }
80457
- if (this.randomId !== undefined) {
80458
- b.write(index_js_1.Primitive.Long.write(this.randomId));
80459
- }
80460
- if (this.sendAs !== undefined) {
80461
- b.write(this.sendAs.write());
80462
- }
80463
- return deps_js_1.Buffer.from(b.buffer);
80464
- }
80465
- }
80466
- channels.CreateForumTopic = CreateForumTopic;
80467
- class GetForumTopics extends index_js_1.TLObject {
80468
- __response__;
80469
- channel;
80470
- q;
80471
- offsetDate;
80472
- offsetId;
80473
- offsetTopic;
80474
- limit;
80475
- constructor(params) {
80476
- super();
80477
- this.classType = 'functions';
80478
- this.className = 'channels.GetForumTopics';
80479
- this.constructorId = 0xde560d1;
80480
- this.subclassOfId = 0x8e1d3e1e;
80481
- this._slots = ['channel', 'q', 'offsetDate', 'offsetId', 'offsetTopic', 'limit'];
80482
- this.channel = params.channel;
80483
- this.q = params.q;
80484
- this.offsetDate = params.offsetDate;
80485
- this.offsetId = params.offsetId;
80486
- this.offsetTopic = params.offsetTopic;
80487
- this.limit = params.limit;
80488
- }
80489
- static async read(_data, ..._args) {
80490
- let flags = await index_js_1.Primitive.Int.read(_data);
80491
- let channel = await index_js_1.TLObject.read(_data);
80492
- let q = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
80493
- let offsetDate = await index_js_1.Primitive.Int.read(_data);
80494
- let offsetId = await index_js_1.Primitive.Int.read(_data);
80495
- let offsetTopic = await index_js_1.Primitive.Int.read(_data);
80496
- let limit = await index_js_1.Primitive.Int.read(_data);
80497
- return new Raw.channels.GetForumTopics({
80498
- channel: channel,
80499
- q: q,
80500
- offsetDate: offsetDate,
80501
- offsetId: offsetId,
80502
- offsetTopic: offsetTopic,
80503
- limit: limit,
80504
- });
80505
- }
80506
- write() {
80507
- const b = new deps_js_1.BytesIO();
80508
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80509
- let flags = 0;
80510
- flags |= this.q !== undefined ? 1 << 0 : 0;
80511
- b.write(index_js_1.Primitive.Int.write(flags));
80512
- if (this.channel !== undefined) {
80513
- b.write(this.channel.write());
80514
- }
80515
- if (this.q !== undefined) {
80516
- b.write(index_js_1.Primitive.String.write(this.q));
80517
- }
80518
- if (this.offsetDate !== undefined) {
80519
- b.write(index_js_1.Primitive.Int.write(this.offsetDate));
80520
- }
80521
- if (this.offsetId !== undefined) {
80522
- b.write(index_js_1.Primitive.Int.write(this.offsetId));
80523
- }
80524
- if (this.offsetTopic !== undefined) {
80525
- b.write(index_js_1.Primitive.Int.write(this.offsetTopic));
80526
- }
80527
- if (this.limit !== undefined) {
80528
- b.write(index_js_1.Primitive.Int.write(this.limit));
80529
- }
80530
- return deps_js_1.Buffer.from(b.buffer);
80531
- }
80532
- }
80533
- channels.GetForumTopics = GetForumTopics;
80534
- class GetForumTopicsByID extends index_js_1.TLObject {
80535
- __response__;
80536
- channel;
80537
- topics;
80538
- constructor(params) {
80539
- super();
80540
- this.classType = 'functions';
80541
- this.className = 'channels.GetForumTopicsByID';
80542
- this.constructorId = 0xb0831eb9;
80543
- this.subclassOfId = 0x8e1d3e1e;
80544
- this._slots = ['channel', 'topics'];
80545
- this.channel = params.channel;
80546
- this.topics = params.topics;
80547
- }
80548
- static async read(_data, ..._args) {
80549
- let channel = await index_js_1.TLObject.read(_data);
80550
- let topics = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
80551
- return new Raw.channels.GetForumTopicsByID({ channel: channel, topics: topics });
80552
- }
80553
- write() {
80554
- const b = new deps_js_1.BytesIO();
80555
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80556
- if (this.channel !== undefined) {
80557
- b.write(this.channel.write());
80558
- }
80559
- if (this.topics) {
80560
- b.write(index_js_1.Primitive.Vector.write(this.topics, index_js_1.Primitive.Int));
80561
- }
80562
- return deps_js_1.Buffer.from(b.buffer);
80563
- }
80564
- }
80565
- channels.GetForumTopicsByID = GetForumTopicsByID;
80566
- class EditForumTopic extends index_js_1.TLObject {
80567
- __response__;
80568
- channel;
80569
- topicId;
80570
- title;
80571
- iconEmojiId;
80572
- closed;
80573
- hidden;
80574
- constructor(params) {
80575
- super();
80576
- this.classType = 'functions';
80577
- this.className = 'channels.EditForumTopic';
80578
- this.constructorId = 0xf4dfa185;
80579
- this.subclassOfId = 0x8af52aac;
80580
- this._slots = ['channel', 'topicId', 'title', 'iconEmojiId', 'closed', 'hidden'];
80581
- this.channel = params.channel;
80582
- this.topicId = params.topicId;
80583
- this.title = params.title;
80584
- this.iconEmojiId = params.iconEmojiId;
80585
- this.closed = params.closed;
80586
- this.hidden = params.hidden;
80587
- }
80588
- static async read(_data, ..._args) {
80589
- let flags = await index_js_1.Primitive.Int.read(_data);
80590
- let channel = await index_js_1.TLObject.read(_data);
80591
- let topicId = await index_js_1.Primitive.Int.read(_data);
80592
- let title = flags & (1 << 0) ? await index_js_1.Primitive.String.read(_data) : undefined;
80593
- let iconEmojiId = flags & (1 << 1) ? await index_js_1.Primitive.Long.read(_data) : undefined;
80594
- let closed = flags & (1 << 2) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
80595
- let hidden = flags & (1 << 3) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
80596
- return new Raw.channels.EditForumTopic({
80597
- channel: channel,
80598
- topicId: topicId,
80599
- title: title,
80600
- iconEmojiId: iconEmojiId,
80601
- closed: closed,
80602
- hidden: hidden,
80603
- });
80604
- }
80605
- write() {
80606
- const b = new deps_js_1.BytesIO();
80607
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80608
- let flags = 0;
80609
- flags |= this.title !== undefined ? 1 << 0 : 0;
80610
- flags |= this.iconEmojiId !== undefined ? 1 << 1 : 0;
80611
- flags |= this.closed !== undefined ? 1 << 2 : 0;
80612
- flags |= this.hidden !== undefined ? 1 << 3 : 0;
80613
- b.write(index_js_1.Primitive.Int.write(flags));
80614
- if (this.channel !== undefined) {
80615
- b.write(this.channel.write());
80616
- }
80617
- if (this.topicId !== undefined) {
80618
- b.write(index_js_1.Primitive.Int.write(this.topicId));
80619
- }
80620
- if (this.title !== undefined) {
80621
- b.write(index_js_1.Primitive.String.write(this.title));
80622
- }
80623
- if (this.iconEmojiId !== undefined) {
80624
- b.write(index_js_1.Primitive.Long.write(this.iconEmojiId));
80625
- }
80626
- if (this.closed !== undefined) {
80627
- b.write(index_js_1.Primitive.Bool.write(this.closed));
80628
- }
80629
- if (this.hidden !== undefined) {
80630
- b.write(index_js_1.Primitive.Bool.write(this.hidden));
80631
- }
80632
- return deps_js_1.Buffer.from(b.buffer);
80633
- }
80634
- }
80635
- channels.EditForumTopic = EditForumTopic;
80636
- class UpdatePinnedForumTopic extends index_js_1.TLObject {
80637
- __response__;
80638
- channel;
80639
- topicId;
80640
- pinned;
80641
- constructor(params) {
80642
- super();
80643
- this.classType = 'functions';
80644
- this.className = 'channels.UpdatePinnedForumTopic';
80645
- this.constructorId = 0x6c2d9026;
80646
- this.subclassOfId = 0x8af52aac;
80647
- this._slots = ['channel', 'topicId', 'pinned'];
80648
- this.channel = params.channel;
80649
- this.topicId = params.topicId;
80650
- this.pinned = params.pinned;
80651
- }
80652
- static async read(_data, ..._args) {
80653
- let channel = await index_js_1.TLObject.read(_data);
80654
- let topicId = await index_js_1.Primitive.Int.read(_data);
80655
- let pinned = await index_js_1.Primitive.Bool.read(_data);
80656
- return new Raw.channels.UpdatePinnedForumTopic({
80657
- channel: channel,
80658
- topicId: topicId,
80659
- pinned: pinned,
80660
- });
80661
- }
80662
- write() {
80663
- const b = new deps_js_1.BytesIO();
80664
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80665
- if (this.channel !== undefined) {
80666
- b.write(this.channel.write());
80667
- }
80668
- if (this.topicId !== undefined) {
80669
- b.write(index_js_1.Primitive.Int.write(this.topicId));
80670
- }
80671
- if (this.pinned !== undefined) {
80672
- b.write(index_js_1.Primitive.Bool.write(this.pinned));
80673
- }
80674
- return deps_js_1.Buffer.from(b.buffer);
80675
- }
80676
- }
80677
- channels.UpdatePinnedForumTopic = UpdatePinnedForumTopic;
80678
- class DeleteTopicHistory extends index_js_1.TLObject {
80679
- __response__;
80680
- channel;
80681
- topMsgId;
80682
- constructor(params) {
80683
- super();
80684
- this.classType = 'functions';
80685
- this.className = 'channels.DeleteTopicHistory';
80686
- this.constructorId = 0x34435f2d;
80687
- this.subclassOfId = 0x2c49c116;
80688
- this._slots = ['channel', 'topMsgId'];
80689
- this.channel = params.channel;
80690
- this.topMsgId = params.topMsgId;
80691
- }
80692
- static async read(_data, ..._args) {
80693
- let channel = await index_js_1.TLObject.read(_data);
80694
- let topMsgId = await index_js_1.Primitive.Int.read(_data);
80695
- return new Raw.channels.DeleteTopicHistory({ channel: channel, topMsgId: topMsgId });
80696
- }
80697
- write() {
80698
- const b = new deps_js_1.BytesIO();
80699
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80700
- if (this.channel !== undefined) {
80701
- b.write(this.channel.write());
80702
- }
80703
- if (this.topMsgId !== undefined) {
80704
- b.write(index_js_1.Primitive.Int.write(this.topMsgId));
80705
- }
80706
- return deps_js_1.Buffer.from(b.buffer);
80707
- }
80708
- }
80709
- channels.DeleteTopicHistory = DeleteTopicHistory;
80710
- class ReorderPinnedForumTopics extends index_js_1.TLObject {
80711
- __response__;
80712
- force;
80713
- channel;
80714
- order;
80715
- constructor(params) {
80716
- super();
80717
- this.classType = 'functions';
80718
- this.className = 'channels.ReorderPinnedForumTopics';
80719
- this.constructorId = 0x2950a18f;
80720
- this.subclassOfId = 0x8af52aac;
80721
- this._slots = ['force', 'channel', 'order'];
80722
- this.force = params.force;
80723
- this.channel = params.channel;
80724
- this.order = params.order;
80725
- }
80726
- static async read(_data, ..._args) {
80727
- let flags = await index_js_1.Primitive.Int.read(_data);
80728
- let force = flags & (1 << 0) ? true : false;
80729
- let channel = await index_js_1.TLObject.read(_data);
80730
- let order = await index_js_1.TLObject.read(_data, index_js_1.Primitive.Int);
80731
- return new Raw.channels.ReorderPinnedForumTopics({
80732
- force: force,
80733
- channel: channel,
80734
- order: order,
80735
- });
80736
- }
80737
- write() {
80738
- const b = new deps_js_1.BytesIO();
80739
- b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
80740
- let flags = 0;
80741
- flags |= this.force ? 1 << 0 : 0;
80742
- b.write(index_js_1.Primitive.Int.write(flags));
80743
- if (this.channel !== undefined) {
80744
- b.write(this.channel.write());
80745
- }
80746
- if (this.order) {
80747
- b.write(index_js_1.Primitive.Vector.write(this.order, index_js_1.Primitive.Int));
80748
- }
80749
- return deps_js_1.Buffer.from(b.buffer);
80750
- }
80751
- }
80752
- channels.ReorderPinnedForumTopics = ReorderPinnedForumTopics;
80753
81333
  class ToggleAntiSpam extends index_js_1.TLObject {
80754
81334
  __response__;
80755
81335
  channel;
@@ -82642,18 +83222,28 @@ var Raw;
82642
83222
  payments.SuggestedStarRefBots = SuggestedStarRefBots;
82643
83223
  class StarGiftUpgradePreview extends index_js_1.TLObject {
82644
83224
  sampleAttributes;
83225
+ prices;
83226
+ nextPrices;
82645
83227
  constructor(params) {
82646
83228
  super();
82647
83229
  this.classType = 'types';
82648
83230
  this.className = 'payments.StarGiftUpgradePreview';
82649
- this.constructorId = 0x167bd90b;
83231
+ this.constructorId = 0x3de1dfed;
82650
83232
  this.subclassOfId = 0x5e2b68c7;
82651
- this._slots = ['sampleAttributes'];
83233
+ this._slots = ['sampleAttributes', 'prices', 'nextPrices'];
82652
83234
  this.sampleAttributes = params.sampleAttributes;
83235
+ this.prices = params.prices;
83236
+ this.nextPrices = params.nextPrices;
82653
83237
  }
82654
83238
  static async read(_data, ..._args) {
82655
83239
  let sampleAttributes = await index_js_1.TLObject.read(_data);
82656
- return new Raw.payments.StarGiftUpgradePreview({ sampleAttributes: sampleAttributes });
83240
+ let prices = await index_js_1.TLObject.read(_data);
83241
+ let nextPrices = await index_js_1.TLObject.read(_data);
83242
+ return new Raw.payments.StarGiftUpgradePreview({
83243
+ sampleAttributes: sampleAttributes,
83244
+ prices: prices,
83245
+ nextPrices: nextPrices,
83246
+ });
82657
83247
  }
82658
83248
  write() {
82659
83249
  const b = new deps_js_1.BytesIO();
@@ -82661,6 +83251,12 @@ var Raw;
82661
83251
  if (this.sampleAttributes) {
82662
83252
  b.write(index_js_1.Primitive.Vector.write(this.sampleAttributes));
82663
83253
  }
83254
+ if (this.prices) {
83255
+ b.write(index_js_1.Primitive.Vector.write(this.prices));
83256
+ }
83257
+ if (this.nextPrices) {
83258
+ b.write(index_js_1.Primitive.Vector.write(this.nextPrices));
83259
+ }
82664
83260
  return deps_js_1.Buffer.from(b.buffer);
82665
83261
  }
82666
83262
  }
@@ -84625,6 +85221,8 @@ var Raw;
84625
85221
  sortByValue;
84626
85222
  excludeUpgradable;
84627
85223
  excludeUnupgradable;
85224
+ peerColorAvailable;
85225
+ excludeHosted;
84628
85226
  peer;
84629
85227
  collectionId;
84630
85228
  offset;
@@ -84643,6 +85241,8 @@ var Raw;
84643
85241
  'sortByValue',
84644
85242
  'excludeUpgradable',
84645
85243
  'excludeUnupgradable',
85244
+ 'peerColorAvailable',
85245
+ 'excludeHosted',
84646
85246
  'peer',
84647
85247
  'collectionId',
84648
85248
  'offset',
@@ -84655,6 +85255,8 @@ var Raw;
84655
85255
  this.sortByValue = params.sortByValue;
84656
85256
  this.excludeUpgradable = params.excludeUpgradable;
84657
85257
  this.excludeUnupgradable = params.excludeUnupgradable;
85258
+ this.peerColorAvailable = params.peerColorAvailable;
85259
+ this.excludeHosted = params.excludeHosted;
84658
85260
  this.peer = params.peer;
84659
85261
  this.collectionId = params.collectionId;
84660
85262
  this.offset = params.offset;
@@ -84669,6 +85271,8 @@ var Raw;
84669
85271
  let sortByValue = flags & (1 << 5) ? true : false;
84670
85272
  let excludeUpgradable = flags & (1 << 7) ? true : false;
84671
85273
  let excludeUnupgradable = flags & (1 << 8) ? true : false;
85274
+ let peerColorAvailable = flags & (1 << 9) ? true : false;
85275
+ let excludeHosted = flags & (1 << 10) ? true : false;
84672
85276
  let peer = await index_js_1.TLObject.read(_data);
84673
85277
  let collectionId = flags & (1 << 6) ? await index_js_1.Primitive.Int.read(_data) : undefined;
84674
85278
  let offset = await index_js_1.Primitive.String.read(_data);
@@ -84681,6 +85285,8 @@ var Raw;
84681
85285
  sortByValue: sortByValue,
84682
85286
  excludeUpgradable: excludeUpgradable,
84683
85287
  excludeUnupgradable: excludeUnupgradable,
85288
+ peerColorAvailable: peerColorAvailable,
85289
+ excludeHosted: excludeHosted,
84684
85290
  peer: peer,
84685
85291
  collectionId: collectionId,
84686
85292
  offset: offset,
@@ -84698,6 +85304,8 @@ var Raw;
84698
85304
  flags |= this.sortByValue ? 1 << 5 : 0;
84699
85305
  flags |= this.excludeUpgradable ? 1 << 7 : 0;
84700
85306
  flags |= this.excludeUnupgradable ? 1 << 8 : 0;
85307
+ flags |= this.peerColorAvailable ? 1 << 9 : 0;
85308
+ flags |= this.excludeHosted ? 1 << 10 : 0;
84701
85309
  flags |= this.collectionId !== undefined ? 1 << 6 : 0;
84702
85310
  b.write(index_js_1.Primitive.Int.write(flags));
84703
85311
  if (this.peer !== undefined) {
@@ -86117,26 +86725,30 @@ var Raw;
86117
86725
  resetInviteHash;
86118
86726
  call;
86119
86727
  joinMuted;
86728
+ messagesEnabled;
86120
86729
  constructor(params) {
86121
86730
  super();
86122
86731
  this.classType = 'functions';
86123
86732
  this.className = 'phone.ToggleGroupCallSettings';
86124
- this.constructorId = 0x74bbb43d;
86733
+ this.constructorId = 0xe9723804;
86125
86734
  this.subclassOfId = 0x8af52aac;
86126
- this._slots = ['resetInviteHash', 'call', 'joinMuted'];
86735
+ this._slots = ['resetInviteHash', 'call', 'joinMuted', 'messagesEnabled'];
86127
86736
  this.resetInviteHash = params.resetInviteHash;
86128
86737
  this.call = params.call;
86129
86738
  this.joinMuted = params.joinMuted;
86739
+ this.messagesEnabled = params.messagesEnabled;
86130
86740
  }
86131
86741
  static async read(_data, ..._args) {
86132
86742
  let flags = await index_js_1.Primitive.Int.read(_data);
86133
86743
  let resetInviteHash = flags & (1 << 1) ? true : false;
86134
86744
  let call = await index_js_1.TLObject.read(_data);
86135
86745
  let joinMuted = flags & (1 << 0) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
86746
+ let messagesEnabled = flags & (1 << 2) ? await index_js_1.Primitive.Bool.read(_data) : undefined;
86136
86747
  return new Raw.phone.ToggleGroupCallSettings({
86137
86748
  resetInviteHash: resetInviteHash,
86138
86749
  call: call,
86139
86750
  joinMuted: joinMuted,
86751
+ messagesEnabled: messagesEnabled,
86140
86752
  });
86141
86753
  }
86142
86754
  write() {
@@ -86145,6 +86757,7 @@ var Raw;
86145
86757
  let flags = 0;
86146
86758
  flags |= this.resetInviteHash ? 1 << 1 : 0;
86147
86759
  flags |= this.joinMuted !== undefined ? 1 << 0 : 0;
86760
+ flags |= this.messagesEnabled !== undefined ? 1 << 2 : 0;
86148
86761
  b.write(index_js_1.Primitive.Int.write(flags));
86149
86762
  if (this.call !== undefined) {
86150
86763
  b.write(this.call.write());
@@ -86152,6 +86765,9 @@ var Raw;
86152
86765
  if (this.joinMuted !== undefined) {
86153
86766
  b.write(index_js_1.Primitive.Bool.write(this.joinMuted));
86154
86767
  }
86768
+ if (this.messagesEnabled !== undefined) {
86769
+ b.write(index_js_1.Primitive.Bool.write(this.messagesEnabled));
86770
+ }
86155
86771
  return deps_js_1.Buffer.from(b.buffer);
86156
86772
  }
86157
86773
  }
@@ -87035,6 +87651,83 @@ var Raw;
87035
87651
  }
87036
87652
  }
87037
87653
  phone.GetGroupCallChainBlocks = GetGroupCallChainBlocks;
87654
+ class SendGroupCallMessage extends index_js_1.TLObject {
87655
+ __response__;
87656
+ call;
87657
+ randomId;
87658
+ message;
87659
+ constructor(params) {
87660
+ super();
87661
+ this.classType = 'functions';
87662
+ this.className = 'phone.SendGroupCallMessage';
87663
+ this.constructorId = 0x87893014;
87664
+ this.subclassOfId = 0xf5b399ac;
87665
+ this._slots = ['call', 'randomId', 'message'];
87666
+ this.call = params.call;
87667
+ this.randomId = params.randomId;
87668
+ this.message = params.message;
87669
+ }
87670
+ static async read(_data, ..._args) {
87671
+ let call = await index_js_1.TLObject.read(_data);
87672
+ let randomId = await index_js_1.Primitive.Long.read(_data);
87673
+ let message = await index_js_1.TLObject.read(_data);
87674
+ return new Raw.phone.SendGroupCallMessage({
87675
+ call: call,
87676
+ randomId: randomId,
87677
+ message: message,
87678
+ });
87679
+ }
87680
+ write() {
87681
+ const b = new deps_js_1.BytesIO();
87682
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87683
+ if (this.call !== undefined) {
87684
+ b.write(this.call.write());
87685
+ }
87686
+ if (this.randomId !== undefined) {
87687
+ b.write(index_js_1.Primitive.Long.write(this.randomId));
87688
+ }
87689
+ if (this.message !== undefined) {
87690
+ b.write(this.message.write());
87691
+ }
87692
+ return deps_js_1.Buffer.from(b.buffer);
87693
+ }
87694
+ }
87695
+ phone.SendGroupCallMessage = SendGroupCallMessage;
87696
+ class SendGroupCallEncryptedMessage extends index_js_1.TLObject {
87697
+ __response__;
87698
+ call;
87699
+ encryptedMessage;
87700
+ constructor(params) {
87701
+ super();
87702
+ this.classType = 'functions';
87703
+ this.className = 'phone.SendGroupCallEncryptedMessage';
87704
+ this.constructorId = 0xe5afa56d;
87705
+ this.subclassOfId = 0xf5b399ac;
87706
+ this._slots = ['call', 'encryptedMessage'];
87707
+ this.call = params.call;
87708
+ this.encryptedMessage = params.encryptedMessage;
87709
+ }
87710
+ static async read(_data, ..._args) {
87711
+ let call = await index_js_1.TLObject.read(_data);
87712
+ let encryptedMessage = await index_js_1.Primitive.Bytes.read(_data);
87713
+ return new Raw.phone.SendGroupCallEncryptedMessage({
87714
+ call: call,
87715
+ encryptedMessage: encryptedMessage,
87716
+ });
87717
+ }
87718
+ write() {
87719
+ const b = new deps_js_1.BytesIO();
87720
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
87721
+ if (this.call !== undefined) {
87722
+ b.write(this.call.write());
87723
+ }
87724
+ if (this.encryptedMessage !== undefined) {
87725
+ b.write(index_js_1.Primitive.Bytes.write(this.encryptedMessage));
87726
+ }
87727
+ return deps_js_1.Buffer.from(b.buffer);
87728
+ }
87729
+ }
87730
+ phone.SendGroupCallEncryptedMessage = SendGroupCallEncryptedMessage;
87038
87731
  })(phone = Raw.phone || (Raw.phone = {}));
87039
87732
  let stats;
87040
87733
  (function (stats) {
@@ -88590,6 +89283,38 @@ var Raw;
88590
89283
  }
88591
89284
  }
88592
89285
  users_1.GetSavedMusicByID = GetSavedMusicByID;
89286
+ class SuggestBirthday extends index_js_1.TLObject {
89287
+ __response__;
89288
+ id;
89289
+ birthday;
89290
+ constructor(params) {
89291
+ super();
89292
+ this.classType = 'functions';
89293
+ this.className = 'users.SuggestBirthday';
89294
+ this.constructorId = 0xfc533372;
89295
+ this.subclassOfId = 0x8af52aac;
89296
+ this._slots = ['id', 'birthday'];
89297
+ this.id = params.id;
89298
+ this.birthday = params.birthday;
89299
+ }
89300
+ static async read(_data, ..._args) {
89301
+ let id = await index_js_1.TLObject.read(_data);
89302
+ let birthday = await index_js_1.TLObject.read(_data);
89303
+ return new Raw.users.SuggestBirthday({ id: id, birthday: birthday });
89304
+ }
89305
+ write() {
89306
+ const b = new deps_js_1.BytesIO();
89307
+ b.write(index_js_1.Primitive.Int.write(this.constructorId, false));
89308
+ if (this.id !== undefined) {
89309
+ b.write(this.id.write());
89310
+ }
89311
+ if (this.birthday !== undefined) {
89312
+ b.write(this.birthday.write());
89313
+ }
89314
+ return deps_js_1.Buffer.from(b.buffer);
89315
+ }
89316
+ }
89317
+ users_1.SuggestBirthday = SuggestBirthday;
88593
89318
  })(users = Raw.users || (Raw.users = {}));
88594
89319
  let chatlists;
88595
89320
  (function (chatlists) {