@mtkruto/node 0.1.106 → 0.1.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/esm/4_constants.d.ts +2 -2
  2. package/esm/4_constants.js +2 -2
  3. package/esm/client/3_types.d.ts +17 -12
  4. package/esm/client/4_client.d.ts +47 -20
  5. package/esm/client/4_client.js +56 -37
  6. package/esm/tl/2_types.d.ts +231 -55
  7. package/esm/tl/2_types.js +782 -150
  8. package/esm/tl/3_functions.d.ts +159 -53
  9. package/esm/tl/3_functions.js +488 -147
  10. package/esm/types/0_audio.d.ts +9 -9
  11. package/esm/types/0_bot_command.d.ts +2 -0
  12. package/esm/types/0_chat_action.d.ts +1 -0
  13. package/esm/types/0_chat_administrator_rights.d.ts +13 -13
  14. package/esm/types/0_chat_photo.d.ts +7 -6
  15. package/esm/types/0_chat_photo.js +1 -1
  16. package/esm/types/0_contact.d.ts +6 -6
  17. package/esm/types/0_dice.d.ts +3 -3
  18. package/esm/types/0_force_reply.d.ts +4 -4
  19. package/esm/types/0_input_contact_message_content.d.ts +5 -0
  20. package/esm/types/0_input_location_message_content.d.ts +7 -0
  21. package/esm/types/0_input_venue_message_content.d.ts +10 -1
  22. package/esm/types/0_keyboard_button_poll_type.d.ts +3 -3
  23. package/esm/types/0_location.d.ts +7 -7
  24. package/esm/types/0_login_url.d.ts +4 -5
  25. package/esm/types/0_mask_position.d.ts +0 -1
  26. package/esm/types/0_message_entity.d.ts +5 -5
  27. package/esm/types/0_parse_mode.d.ts +1 -0
  28. package/esm/types/0_poll_option.d.ts +2 -2
  29. package/esm/types/0_reply_keyboard_remove.d.ts +3 -3
  30. package/esm/types/0_thumbnail.d.ts +6 -6
  31. package/esm/types/0_venue.d.ts +6 -6
  32. package/esm/types/0_voice.d.ts +6 -6
  33. package/esm/types/0_web_app_info.d.ts +1 -2
  34. package/esm/types/1_animation.d.ts +9 -9
  35. package/esm/types/1_chat.d.ts +29 -28
  36. package/esm/types/1_document.d.ts +6 -7
  37. package/esm/types/1_keyboard_button.d.ts +1 -1
  38. package/esm/types/1_photo.d.ts +3 -3
  39. package/esm/types/1_sticker.d.ts +2 -2
  40. package/esm/types/1_user.d.ts +2 -1
  41. package/esm/types/1_video.d.ts +4 -4
  42. package/esm/types/1_video_note.d.ts +3 -3
  43. package/package.json +1 -1
  44. package/script/4_constants.d.ts +2 -2
  45. package/script/4_constants.js +2 -2
  46. package/script/client/3_types.d.ts +17 -12
  47. package/script/client/4_client.d.ts +47 -20
  48. package/script/client/4_client.js +56 -37
  49. package/script/tl/2_types.d.ts +231 -55
  50. package/script/tl/2_types.js +824 -179
  51. package/script/tl/3_functions.d.ts +159 -53
  52. package/script/tl/3_functions.js +510 -159
  53. package/script/types/0_audio.d.ts +9 -9
  54. package/script/types/0_bot_command.d.ts +2 -0
  55. package/script/types/0_chat_action.d.ts +1 -0
  56. package/script/types/0_chat_administrator_rights.d.ts +13 -13
  57. package/script/types/0_chat_photo.d.ts +7 -6
  58. package/script/types/0_chat_photo.js +1 -1
  59. package/script/types/0_contact.d.ts +6 -6
  60. package/script/types/0_dice.d.ts +3 -3
  61. package/script/types/0_force_reply.d.ts +4 -4
  62. package/script/types/0_input_contact_message_content.d.ts +5 -0
  63. package/script/types/0_input_location_message_content.d.ts +7 -0
  64. package/script/types/0_input_venue_message_content.d.ts +10 -1
  65. package/script/types/0_keyboard_button_poll_type.d.ts +3 -3
  66. package/script/types/0_location.d.ts +7 -7
  67. package/script/types/0_login_url.d.ts +4 -5
  68. package/script/types/0_mask_position.d.ts +0 -1
  69. package/script/types/0_message_entity.d.ts +5 -5
  70. package/script/types/0_parse_mode.d.ts +1 -0
  71. package/script/types/0_poll_option.d.ts +2 -2
  72. package/script/types/0_reply_keyboard_remove.d.ts +3 -3
  73. package/script/types/0_thumbnail.d.ts +6 -6
  74. package/script/types/0_venue.d.ts +6 -6
  75. package/script/types/0_voice.d.ts +6 -6
  76. package/script/types/0_web_app_info.d.ts +1 -2
  77. package/script/types/1_animation.d.ts +9 -9
  78. package/script/types/1_chat.d.ts +29 -28
  79. package/script/types/1_document.d.ts +6 -7
  80. package/script/types/1_keyboard_button.d.ts +1 -1
  81. package/script/types/1_photo.d.ts +3 -3
  82. package/script/types/1_sticker.d.ts +2 -2
  83. package/script/types/1_user.d.ts +2 -1
  84. package/script/types/1_video.d.ts +4 -4
  85. package/script/types/1_video_note.d.ts +3 -3
package/esm/tl/2_types.js CHANGED
@@ -1,4 +1,5 @@
1
- import { flags, id, paramDesc, params, TLObject } from "./1_tl_object.js";
1
+ // deno-fmt-ignore-file
2
+ import { id, params, TLObject, paramDesc, flags } from "./1_tl_object.js";
2
3
  export class Type extends TLObject {
3
4
  }
4
5
  // Unknown type (generic)
@@ -856,14 +857,10 @@ export class _TypeStoryViews extends Type {
856
857
  }
857
858
  export class _TypeStoryItem extends Type {
858
859
  }
859
- export class _TypeUserStories extends Type {
860
- }
861
860
  export class _TypeStoriesAllStories extends Type {
862
861
  }
863
862
  export class _TypeStoriesStories extends Type {
864
863
  }
865
- export class _TypeStoriesUserStories extends Type {
866
- }
867
864
  export class _TypeStoryView extends Type {
868
865
  }
869
866
  export class _TypeStoriesStoryViewsList extends Type {
@@ -880,6 +877,20 @@ export class _TypeMediaAreaCoordinates extends Type {
880
877
  }
881
878
  export class _TypeMediaArea extends Type {
882
879
  }
880
+ export class _TypePeerStories extends Type {
881
+ }
882
+ export class _TypeStoriesPeerStories extends Type {
883
+ }
884
+ export class _TypeStoriesBoostsStatus extends Type {
885
+ }
886
+ export class _TypeStoriesCanApplyBoostResult extends Type {
887
+ }
888
+ export class _TypeBooster extends Type {
889
+ }
890
+ export class _TypeStoriesBoostersList extends Type {
891
+ }
892
+ export class _TypeMessagesWebPage extends Type {
893
+ }
883
894
  export class ResPQ extends _TypeResPQ {
884
895
  get [id]() {
885
896
  return 0x05162463;
@@ -3507,23 +3518,23 @@ export class InputMediaDice extends _TypeInputMedia {
3507
3518
  }
3508
3519
  export class InputMediaStory extends _TypeInputMedia {
3509
3520
  get [id]() {
3510
- return 0x9A86B58F;
3521
+ return 0x89FDD778;
3511
3522
  }
3512
3523
  static get [paramDesc]() {
3513
3524
  return [
3514
- ["userId", _TypeInputUser, "InputUser"],
3525
+ ["peer", _TypeInputPeer, "InputPeer"],
3515
3526
  ["id", "number", "int"],
3516
3527
  ];
3517
3528
  }
3518
3529
  get [params]() {
3519
3530
  return [
3520
- [this.userId, _TypeInputUser, "InputUser"],
3531
+ [this.peer, _TypeInputPeer, "InputPeer"],
3521
3532
  [this.id, "number", "int"],
3522
3533
  ];
3523
3534
  }
3524
3535
  constructor(params) {
3525
3536
  super();
3526
- Object.defineProperty(this, "userId", {
3537
+ Object.defineProperty(this, "peer", {
3527
3538
  enumerable: true,
3528
3539
  configurable: true,
3529
3540
  writable: true,
@@ -3535,7 +3546,7 @@ export class InputMediaStory extends _TypeInputMedia {
3535
3546
  writable: true,
3536
3547
  value: void 0
3537
3548
  });
3538
- this.userId = params.userId;
3549
+ this.peer = params.peer;
3539
3550
  this.id = params.id;
3540
3551
  }
3541
3552
  }
@@ -5188,7 +5199,7 @@ export class ChatForbidden extends _TypeChat {
5188
5199
  }
5189
5200
  export class Channel extends _TypeChat {
5190
5201
  get [id]() {
5191
- return 0x83259464;
5202
+ return 0x94F592DB;
5192
5203
  }
5193
5204
  static get [paramDesc]() {
5194
5205
  return [
@@ -5214,6 +5225,9 @@ export class Channel extends _TypeChat {
5214
5225
  ["joinRequest", "true", "flags.29?true"],
5215
5226
  ["forum", "true", "flags.30?true"],
5216
5227
  ["flags2", flags, "#"],
5228
+ ["storiesHidden", "true", "flags2.1?true"],
5229
+ ["storiesHiddenMin", "true", "flags2.2?true"],
5230
+ ["storiesUnavailable", "true", "flags2.3?true"],
5217
5231
  ["id", "bigint", "long"],
5218
5232
  ["accessHash", "bigint", "flags.13?long"],
5219
5233
  ["title", "string", "string"],
@@ -5226,6 +5240,7 @@ export class Channel extends _TypeChat {
5226
5240
  ["defaultBannedRights", _TypeChatBannedRights, "flags.18?ChatBannedRights"],
5227
5241
  ["participantsCount", "number", "flags.17?int"],
5228
5242
  ["usernames", [_TypeUsername], "flags2.0?Vector<Username>"],
5243
+ ["storiesMaxId", "number", "flags2.4?int"],
5229
5244
  ];
5230
5245
  }
5231
5246
  get [params]() {
@@ -5252,6 +5267,9 @@ export class Channel extends _TypeChat {
5252
5267
  [this.joinRequest ?? null, "true", "flags.29?true"],
5253
5268
  [this.forum ?? null, "true", "flags.30?true"],
5254
5269
  ["flags2", flags, "#"],
5270
+ [this.storiesHidden ?? null, "true", "flags2.1?true"],
5271
+ [this.storiesHiddenMin ?? null, "true", "flags2.2?true"],
5272
+ [this.storiesUnavailable ?? null, "true", "flags2.3?true"],
5255
5273
  [this.id, "bigint", "long"],
5256
5274
  [this.accessHash ?? null, "bigint", "flags.13?long"],
5257
5275
  [this.title, "string", "string"],
@@ -5264,6 +5282,7 @@ export class Channel extends _TypeChat {
5264
5282
  [this.defaultBannedRights ?? null, _TypeChatBannedRights, "flags.18?ChatBannedRights"],
5265
5283
  [this.participantsCount ?? null, "number", "flags.17?int"],
5266
5284
  [this.usernames ?? null, [_TypeUsername], "flags2.0?Vector<Username>"],
5285
+ [this.storiesMaxId ?? null, "number", "flags2.4?int"],
5267
5286
  ];
5268
5287
  }
5269
5288
  constructor(params) {
@@ -5388,6 +5407,24 @@ export class Channel extends _TypeChat {
5388
5407
  writable: true,
5389
5408
  value: void 0
5390
5409
  });
5410
+ Object.defineProperty(this, "storiesHidden", {
5411
+ enumerable: true,
5412
+ configurable: true,
5413
+ writable: true,
5414
+ value: void 0
5415
+ });
5416
+ Object.defineProperty(this, "storiesHiddenMin", {
5417
+ enumerable: true,
5418
+ configurable: true,
5419
+ writable: true,
5420
+ value: void 0
5421
+ });
5422
+ Object.defineProperty(this, "storiesUnavailable", {
5423
+ enumerable: true,
5424
+ configurable: true,
5425
+ writable: true,
5426
+ value: void 0
5427
+ });
5391
5428
  Object.defineProperty(this, "id", {
5392
5429
  enumerable: true,
5393
5430
  configurable: true,
@@ -5460,6 +5497,12 @@ export class Channel extends _TypeChat {
5460
5497
  writable: true,
5461
5498
  value: void 0
5462
5499
  });
5500
+ Object.defineProperty(this, "storiesMaxId", {
5501
+ enumerable: true,
5502
+ configurable: true,
5503
+ writable: true,
5504
+ value: void 0
5505
+ });
5463
5506
  this.creator = params.creator;
5464
5507
  this.left = params.left;
5465
5508
  this.broadcast = params.broadcast;
@@ -5480,6 +5523,9 @@ export class Channel extends _TypeChat {
5480
5523
  this.joinToSend = params.joinToSend;
5481
5524
  this.joinRequest = params.joinRequest;
5482
5525
  this.forum = params.forum;
5526
+ this.storiesHidden = params.storiesHidden;
5527
+ this.storiesHiddenMin = params.storiesHiddenMin;
5528
+ this.storiesUnavailable = params.storiesUnavailable;
5483
5529
  this.id = params.id;
5484
5530
  this.accessHash = params.accessHash;
5485
5531
  this.title = params.title;
@@ -5492,6 +5538,7 @@ export class Channel extends _TypeChat {
5492
5538
  this.defaultBannedRights = params.defaultBannedRights;
5493
5539
  this.participantsCount = params.participantsCount;
5494
5540
  this.usernames = params.usernames;
5541
+ this.storiesMaxId = params.storiesMaxId;
5495
5542
  }
5496
5543
  }
5497
5544
  export class ChannelForbidden extends _TypeChat {
@@ -5757,7 +5804,7 @@ export class ChatFull extends _TypeChatFull {
5757
5804
  }
5758
5805
  export class ChannelFull extends _TypeChatFull {
5759
5806
  get [id]() {
5760
- return 0xF2355507;
5807
+ return 0x723027BD;
5761
5808
  }
5762
5809
  static get [paramDesc]() {
5763
5810
  return [
@@ -5775,6 +5822,7 @@ export class ChannelFull extends _TypeChatFull {
5775
5822
  ["antispam", "true", "flags2.1?true"],
5776
5823
  ["participantsHidden", "true", "flags2.2?true"],
5777
5824
  ["translationsDisabled", "true", "flags2.3?true"],
5825
+ ["storiesPinnedAvailable", "true", "flags2.5?true"],
5778
5826
  ["id", "bigint", "long"],
5779
5827
  ["about", "string", "string"],
5780
5828
  ["participantsCount", "number", "flags.0?int"],
@@ -5810,6 +5858,7 @@ export class ChannelFull extends _TypeChatFull {
5810
5858
  ["recentRequesters", ["bigint"], "flags.28?Vector<long>"],
5811
5859
  ["defaultSendAs", _TypePeer, "flags.29?Peer"],
5812
5860
  ["availableReactions", _TypeChatReactions, "flags.30?ChatReactions"],
5861
+ ["stories", _TypePeerStories, "flags2.4?PeerStories"],
5813
5862
  ];
5814
5863
  }
5815
5864
  get [params]() {
@@ -5828,6 +5877,7 @@ export class ChannelFull extends _TypeChatFull {
5828
5877
  [this.antispam ?? null, "true", "flags2.1?true"],
5829
5878
  [this.participantsHidden ?? null, "true", "flags2.2?true"],
5830
5879
  [this.translationsDisabled ?? null, "true", "flags2.3?true"],
5880
+ [this.storiesPinnedAvailable ?? null, "true", "flags2.5?true"],
5831
5881
  [this.id, "bigint", "long"],
5832
5882
  [this.about, "string", "string"],
5833
5883
  [this.participantsCount ?? null, "number", "flags.0?int"],
@@ -5863,6 +5913,7 @@ export class ChannelFull extends _TypeChatFull {
5863
5913
  [this.recentRequesters ?? null, ["bigint"], "flags.28?Vector<long>"],
5864
5914
  [this.defaultSendAs ?? null, _TypePeer, "flags.29?Peer"],
5865
5915
  [this.availableReactions ?? null, _TypeChatReactions, "flags.30?ChatReactions"],
5916
+ [this.stories ?? null, _TypePeerStories, "flags2.4?PeerStories"],
5866
5917
  ];
5867
5918
  }
5868
5919
  constructor(params) {
@@ -5939,6 +5990,12 @@ export class ChannelFull extends _TypeChatFull {
5939
5990
  writable: true,
5940
5991
  value: void 0
5941
5992
  });
5993
+ Object.defineProperty(this, "storiesPinnedAvailable", {
5994
+ enumerable: true,
5995
+ configurable: true,
5996
+ writable: true,
5997
+ value: void 0
5998
+ });
5942
5999
  Object.defineProperty(this, "id", {
5943
6000
  enumerable: true,
5944
6001
  configurable: true,
@@ -6149,6 +6206,12 @@ export class ChannelFull extends _TypeChatFull {
6149
6206
  writable: true,
6150
6207
  value: void 0
6151
6208
  });
6209
+ Object.defineProperty(this, "stories", {
6210
+ enumerable: true,
6211
+ configurable: true,
6212
+ writable: true,
6213
+ value: void 0
6214
+ });
6152
6215
  this.canViewParticipants = params.canViewParticipants;
6153
6216
  this.canSetUsername = params.canSetUsername;
6154
6217
  this.canSetStickers = params.canSetStickers;
@@ -6161,6 +6224,7 @@ export class ChannelFull extends _TypeChatFull {
6161
6224
  this.antispam = params.antispam;
6162
6225
  this.participantsHidden = params.participantsHidden;
6163
6226
  this.translationsDisabled = params.translationsDisabled;
6227
+ this.storiesPinnedAvailable = params.storiesPinnedAvailable;
6164
6228
  this.id = params.id;
6165
6229
  this.about = params.about;
6166
6230
  this.participantsCount = params.participantsCount;
@@ -6196,6 +6260,7 @@ export class ChannelFull extends _TypeChatFull {
6196
6260
  this.recentRequesters = params.recentRequesters;
6197
6261
  this.defaultSendAs = params.defaultSendAs;
6198
6262
  this.availableReactions = params.availableReactions;
6263
+ this.stories = params.stories;
6199
6264
  }
6200
6265
  }
6201
6266
  export class ChatParticipant extends _TypeChatParticipant {
@@ -7489,13 +7554,13 @@ export class MessageMediaDice extends _TypeMessageMedia {
7489
7554
  }
7490
7555
  export class MessageMediaStory extends _TypeMessageMedia {
7491
7556
  get [id]() {
7492
- return 0xCBB20D88;
7557
+ return 0x68CB6283;
7493
7558
  }
7494
7559
  static get [paramDesc]() {
7495
7560
  return [
7496
7561
  ["flags", flags, "#"],
7497
7562
  ["viaMention", "true", "flags.1?true"],
7498
- ["userId", "bigint", "long"],
7563
+ ["peer", _TypePeer, "Peer"],
7499
7564
  ["id", "number", "int"],
7500
7565
  ["story", _TypeStoryItem, "flags.0?StoryItem"],
7501
7566
  ];
@@ -7504,7 +7569,7 @@ export class MessageMediaStory extends _TypeMessageMedia {
7504
7569
  return [
7505
7570
  ["flags", flags, "#"],
7506
7571
  [this.viaMention ?? null, "true", "flags.1?true"],
7507
- [this.userId, "bigint", "long"],
7572
+ [this.peer, _TypePeer, "Peer"],
7508
7573
  [this.id, "number", "int"],
7509
7574
  [this.story ?? null, _TypeStoryItem, "flags.0?StoryItem"],
7510
7575
  ];
@@ -7517,7 +7582,7 @@ export class MessageMediaStory extends _TypeMessageMedia {
7517
7582
  writable: true,
7518
7583
  value: void 0
7519
7584
  });
7520
- Object.defineProperty(this, "userId", {
7585
+ Object.defineProperty(this, "peer", {
7521
7586
  enumerable: true,
7522
7587
  configurable: true,
7523
7588
  writable: true,
@@ -7536,7 +7601,7 @@ export class MessageMediaStory extends _TypeMessageMedia {
7536
7601
  value: void 0
7537
7602
  });
7538
7603
  this.viaMention = params.viaMention;
7539
- this.userId = params.userId;
7604
+ this.peer = params.peer;
7540
7605
  this.id = params.id;
7541
7606
  this.story = params.story;
7542
7607
  }
@@ -8128,6 +8193,7 @@ export class MessageActionBotAllowed extends _TypeMessageAction {
8128
8193
  return [
8129
8194
  ["flags", flags, "#"],
8130
8195
  ["attachMenu", "true", "flags.1?true"],
8196
+ ["fromRequest", "true", "flags.3?true"],
8131
8197
  ["domain", "string", "flags.0?string"],
8132
8198
  ["app", _TypeBotApp, "flags.2?BotApp"],
8133
8199
  ];
@@ -8136,6 +8202,7 @@ export class MessageActionBotAllowed extends _TypeMessageAction {
8136
8202
  return [
8137
8203
  ["flags", flags, "#"],
8138
8204
  [this.attachMenu ?? null, "true", "flags.1?true"],
8205
+ [this.fromRequest ?? null, "true", "flags.3?true"],
8139
8206
  [this.domain ?? null, "string", "flags.0?string"],
8140
8207
  [this.app ?? null, _TypeBotApp, "flags.2?BotApp"],
8141
8208
  ];
@@ -8148,6 +8215,12 @@ export class MessageActionBotAllowed extends _TypeMessageAction {
8148
8215
  writable: true,
8149
8216
  value: void 0
8150
8217
  });
8218
+ Object.defineProperty(this, "fromRequest", {
8219
+ enumerable: true,
8220
+ configurable: true,
8221
+ writable: true,
8222
+ value: void 0
8223
+ });
8151
8224
  Object.defineProperty(this, "domain", {
8152
8225
  enumerable: true,
8153
8226
  configurable: true,
@@ -8161,6 +8234,7 @@ export class MessageActionBotAllowed extends _TypeMessageAction {
8161
8234
  value: void 0
8162
8235
  });
8163
8236
  this.attachMenu = params?.attachMenu;
8237
+ this.fromRequest = params?.fromRequest;
8164
8238
  this.domain = params?.domain;
8165
8239
  this.app = params?.app;
8166
8240
  }
@@ -10379,7 +10453,7 @@ export class InputReportReasonPersonalDetails extends _TypeReportReason {
10379
10453
  }
10380
10454
  export class UserFull extends _TypeUserFull {
10381
10455
  get [id]() {
10382
- return 0x4FE1CC86;
10456
+ return 0xB9B12C6C;
10383
10457
  }
10384
10458
  static get [paramDesc]() {
10385
10459
  return [
@@ -10412,7 +10486,7 @@ export class UserFull extends _TypeUserFull {
10412
10486
  ["botBroadcastAdminRights", _TypeChatAdminRights, "flags.18?ChatAdminRights"],
10413
10487
  ["premiumGifts", [_TypePremiumGiftOption], "flags.19?Vector<PremiumGiftOption>"],
10414
10488
  ["wallpaper", _TypeWallPaper, "flags.24?WallPaper"],
10415
- ["stories", _TypeUserStories, "flags.25?UserStories"],
10489
+ ["stories", _TypePeerStories, "flags.25?PeerStories"],
10416
10490
  ];
10417
10491
  }
10418
10492
  get [params]() {
@@ -10446,7 +10520,7 @@ export class UserFull extends _TypeUserFull {
10446
10520
  [this.botBroadcastAdminRights ?? null, _TypeChatAdminRights, "flags.18?ChatAdminRights"],
10447
10521
  [this.premiumGifts ?? null, [_TypePremiumGiftOption], "flags.19?Vector<PremiumGiftOption>"],
10448
10522
  [this.wallpaper ?? null, _TypeWallPaper, "flags.24?WallPaper"],
10449
- [this.stories ?? null, _TypeUserStories, "flags.25?UserStories"],
10523
+ [this.stories ?? null, _TypePeerStories, "flags.25?PeerStories"],
10450
10524
  ];
10451
10525
  }
10452
10526
  constructor(params) {
@@ -12043,6 +12117,69 @@ export class UpdateUserName extends _TypeUpdate {
12043
12117
  this.usernames = params.usernames;
12044
12118
  }
12045
12119
  }
12120
+ export class UpdateNewAuthorization extends _TypeUpdate {
12121
+ get [id]() {
12122
+ return 0x8951ABEF;
12123
+ }
12124
+ static get [paramDesc]() {
12125
+ return [
12126
+ ["flags", flags, "#"],
12127
+ ["unconfirmed", "true", "flags.0?true"],
12128
+ ["hash", "bigint", "long"],
12129
+ ["date", "number", "flags.0?int"],
12130
+ ["device", "string", "flags.0?string"],
12131
+ ["location", "string", "flags.0?string"],
12132
+ ];
12133
+ }
12134
+ get [params]() {
12135
+ return [
12136
+ ["flags", flags, "#"],
12137
+ [this.unconfirmed ?? null, "true", "flags.0?true"],
12138
+ [this.hash, "bigint", "long"],
12139
+ [this.date ?? null, "number", "flags.0?int"],
12140
+ [this.device ?? null, "string", "flags.0?string"],
12141
+ [this.location ?? null, "string", "flags.0?string"],
12142
+ ];
12143
+ }
12144
+ constructor(params) {
12145
+ super();
12146
+ Object.defineProperty(this, "unconfirmed", {
12147
+ enumerable: true,
12148
+ configurable: true,
12149
+ writable: true,
12150
+ value: void 0
12151
+ });
12152
+ Object.defineProperty(this, "hash", {
12153
+ enumerable: true,
12154
+ configurable: true,
12155
+ writable: true,
12156
+ value: void 0
12157
+ });
12158
+ Object.defineProperty(this, "date", {
12159
+ enumerable: true,
12160
+ configurable: true,
12161
+ writable: true,
12162
+ value: void 0
12163
+ });
12164
+ Object.defineProperty(this, "device", {
12165
+ enumerable: true,
12166
+ configurable: true,
12167
+ writable: true,
12168
+ value: void 0
12169
+ });
12170
+ Object.defineProperty(this, "location", {
12171
+ enumerable: true,
12172
+ configurable: true,
12173
+ writable: true,
12174
+ value: void 0
12175
+ });
12176
+ this.unconfirmed = params.unconfirmed;
12177
+ this.hash = params.hash;
12178
+ this.date = params.date;
12179
+ this.device = params.device;
12180
+ this.location = params.location;
12181
+ }
12182
+ }
12046
12183
  export class UpdateNewEncryptedMessage extends _TypeUpdate {
12047
12184
  get [id]() {
12048
12185
  return 0x12BCBD9A;
@@ -12651,20 +12788,24 @@ export class UpdateWebPage extends _TypeUpdate {
12651
12788
  }
12652
12789
  export class UpdateReadMessagesContents extends _TypeUpdate {
12653
12790
  get [id]() {
12654
- return 0x68C13933;
12791
+ return 0xF8227181;
12655
12792
  }
12656
12793
  static get [paramDesc]() {
12657
12794
  return [
12795
+ ["flags", flags, "#"],
12658
12796
  ["messages", ["number"], "Vector<int>"],
12659
12797
  ["pts", "number", "int"],
12660
12798
  ["ptsCount", "number", "int"],
12799
+ ["date", "number", "flags.0?int"],
12661
12800
  ];
12662
12801
  }
12663
12802
  get [params]() {
12664
12803
  return [
12804
+ ["flags", flags, "#"],
12665
12805
  [this.messages, ["number"], "Vector<int>"],
12666
12806
  [this.pts, "number", "int"],
12667
12807
  [this.ptsCount, "number", "int"],
12808
+ [this.date ?? null, "number", "flags.0?int"],
12668
12809
  ];
12669
12810
  }
12670
12811
  constructor(params) {
@@ -12687,9 +12828,16 @@ export class UpdateReadMessagesContents extends _TypeUpdate {
12687
12828
  writable: true,
12688
12829
  value: void 0
12689
12830
  });
12831
+ Object.defineProperty(this, "date", {
12832
+ enumerable: true,
12833
+ configurable: true,
12834
+ writable: true,
12835
+ value: void 0
12836
+ });
12690
12837
  this.messages = params.messages;
12691
12838
  this.pts = params.pts;
12692
12839
  this.ptsCount = params.ptsCount;
12840
+ this.date = params.date;
12693
12841
  }
12694
12842
  }
12695
12843
  export class UpdateChannelTooLong extends _TypeUpdate {
@@ -16130,23 +16278,23 @@ export class UpdateGroupInvitePrivacyForbidden extends _TypeUpdate {
16130
16278
  }
16131
16279
  export class UpdateStory extends _TypeUpdate {
16132
16280
  get [id]() {
16133
- return 0x205A4133;
16281
+ return 0x75B3B798;
16134
16282
  }
16135
16283
  static get [paramDesc]() {
16136
16284
  return [
16137
- ["userId", "bigint", "long"],
16285
+ ["peer", _TypePeer, "Peer"],
16138
16286
  ["story", _TypeStoryItem, "StoryItem"],
16139
16287
  ];
16140
16288
  }
16141
16289
  get [params]() {
16142
16290
  return [
16143
- [this.userId, "bigint", "long"],
16291
+ [this.peer, _TypePeer, "Peer"],
16144
16292
  [this.story, _TypeStoryItem, "StoryItem"],
16145
16293
  ];
16146
16294
  }
16147
16295
  constructor(params) {
16148
16296
  super();
16149
- Object.defineProperty(this, "userId", {
16297
+ Object.defineProperty(this, "peer", {
16150
16298
  enumerable: true,
16151
16299
  configurable: true,
16152
16300
  writable: true,
@@ -16158,29 +16306,29 @@ export class UpdateStory extends _TypeUpdate {
16158
16306
  writable: true,
16159
16307
  value: void 0
16160
16308
  });
16161
- this.userId = params.userId;
16309
+ this.peer = params.peer;
16162
16310
  this.story = params.story;
16163
16311
  }
16164
16312
  }
16165
16313
  export class UpdateReadStories extends _TypeUpdate {
16166
16314
  get [id]() {
16167
- return 0xFEB5345A;
16315
+ return 0xF74E932B;
16168
16316
  }
16169
16317
  static get [paramDesc]() {
16170
16318
  return [
16171
- ["userId", "bigint", "long"],
16319
+ ["peer", _TypePeer, "Peer"],
16172
16320
  ["maxId", "number", "int"],
16173
16321
  ];
16174
16322
  }
16175
16323
  get [params]() {
16176
16324
  return [
16177
- [this.userId, "bigint", "long"],
16325
+ [this.peer, _TypePeer, "Peer"],
16178
16326
  [this.maxId, "number", "int"],
16179
16327
  ];
16180
16328
  }
16181
16329
  constructor(params) {
16182
16330
  super();
16183
- Object.defineProperty(this, "userId", {
16331
+ Object.defineProperty(this, "peer", {
16184
16332
  enumerable: true,
16185
16333
  configurable: true,
16186
16334
  writable: true,
@@ -16192,7 +16340,7 @@ export class UpdateReadStories extends _TypeUpdate {
16192
16340
  writable: true,
16193
16341
  value: void 0
16194
16342
  });
16195
- this.userId = params.userId;
16343
+ this.peer = params.peer;
16196
16344
  this.maxId = params.maxId;
16197
16345
  }
16198
16346
  }
@@ -16257,25 +16405,25 @@ export class UpdateStoriesStealthMode extends _TypeUpdate {
16257
16405
  }
16258
16406
  export class UpdateSentStoryReaction extends _TypeUpdate {
16259
16407
  get [id]() {
16260
- return 0xE3A73D20;
16408
+ return 0x7D627683;
16261
16409
  }
16262
16410
  static get [paramDesc]() {
16263
16411
  return [
16264
- ["userId", "bigint", "long"],
16412
+ ["peer", _TypePeer, "Peer"],
16265
16413
  ["storyId", "number", "int"],
16266
16414
  ["reaction", _TypeReaction, "Reaction"],
16267
16415
  ];
16268
16416
  }
16269
16417
  get [params]() {
16270
16418
  return [
16271
- [this.userId, "bigint", "long"],
16419
+ [this.peer, _TypePeer, "Peer"],
16272
16420
  [this.storyId, "number", "int"],
16273
16421
  [this.reaction, _TypeReaction, "Reaction"],
16274
16422
  ];
16275
16423
  }
16276
16424
  constructor(params) {
16277
16425
  super();
16278
- Object.defineProperty(this, "userId", {
16426
+ Object.defineProperty(this, "peer", {
16279
16427
  enumerable: true,
16280
16428
  configurable: true,
16281
16429
  writable: true,
@@ -16293,7 +16441,7 @@ export class UpdateSentStoryReaction extends _TypeUpdate {
16293
16441
  writable: true,
16294
16442
  value: void 0
16295
16443
  });
16296
- this.userId = params.userId;
16444
+ this.peer = params.peer;
16297
16445
  this.storyId = params.storyId;
16298
16446
  this.reaction = params.reaction;
16299
16447
  }
@@ -21065,6 +21213,7 @@ export class Authorization extends _TypeAuthorization {
21065
21213
  ["passwordPending", "true", "flags.2?true"],
21066
21214
  ["encryptedRequestsDisabled", "true", "flags.3?true"],
21067
21215
  ["callRequestsDisabled", "true", "flags.4?true"],
21216
+ ["unconfirmed", "true", "flags.5?true"],
21068
21217
  ["hash", "bigint", "long"],
21069
21218
  ["deviceModel", "string", "string"],
21070
21219
  ["platform", "string", "string"],
@@ -21087,6 +21236,7 @@ export class Authorization extends _TypeAuthorization {
21087
21236
  [this.passwordPending ?? null, "true", "flags.2?true"],
21088
21237
  [this.encryptedRequestsDisabled ?? null, "true", "flags.3?true"],
21089
21238
  [this.callRequestsDisabled ?? null, "true", "flags.4?true"],
21239
+ [this.unconfirmed ?? null, "true", "flags.5?true"],
21090
21240
  [this.hash, "bigint", "long"],
21091
21241
  [this.deviceModel, "string", "string"],
21092
21242
  [this.platform, "string", "string"],
@@ -21133,6 +21283,12 @@ export class Authorization extends _TypeAuthorization {
21133
21283
  writable: true,
21134
21284
  value: void 0
21135
21285
  });
21286
+ Object.defineProperty(this, "unconfirmed", {
21287
+ enumerable: true,
21288
+ configurable: true,
21289
+ writable: true,
21290
+ value: void 0
21291
+ });
21136
21292
  Object.defineProperty(this, "hash", {
21137
21293
  enumerable: true,
21138
21294
  configurable: true,
@@ -21210,6 +21366,7 @@ export class Authorization extends _TypeAuthorization {
21210
21366
  this.passwordPending = params.passwordPending;
21211
21367
  this.encryptedRequestsDisabled = params.encryptedRequestsDisabled;
21212
21368
  this.callRequestsDisabled = params.callRequestsDisabled;
21369
+ this.unconfirmed = params.unconfirmed;
21213
21370
  this.hash = params.hash;
21214
21371
  this.deviceModel = params.deviceModel;
21215
21372
  this.platform = params.platform;
@@ -21728,6 +21885,9 @@ export class ChatInvite extends _TypeChatInvite {
21728
21885
  ["public", "true", "flags.2?true"],
21729
21886
  ["megagroup", "true", "flags.3?true"],
21730
21887
  ["requestNeeded", "true", "flags.6?true"],
21888
+ ["verified", "true", "flags.7?true"],
21889
+ ["scam", "true", "flags.8?true"],
21890
+ ["fake", "true", "flags.9?true"],
21731
21891
  ["title", "string", "string"],
21732
21892
  ["about", "string", "flags.5?string"],
21733
21893
  ["photo", _TypePhoto, "Photo"],
@@ -21743,6 +21903,9 @@ export class ChatInvite extends _TypeChatInvite {
21743
21903
  [this.public ?? null, "true", "flags.2?true"],
21744
21904
  [this.megagroup ?? null, "true", "flags.3?true"],
21745
21905
  [this.requestNeeded ?? null, "true", "flags.6?true"],
21906
+ [this.verified ?? null, "true", "flags.7?true"],
21907
+ [this.scam ?? null, "true", "flags.8?true"],
21908
+ [this.fake ?? null, "true", "flags.9?true"],
21746
21909
  [this.title, "string", "string"],
21747
21910
  [this.about ?? null, "string", "flags.5?string"],
21748
21911
  [this.photo, _TypePhoto, "Photo"],
@@ -21782,6 +21945,24 @@ export class ChatInvite extends _TypeChatInvite {
21782
21945
  writable: true,
21783
21946
  value: void 0
21784
21947
  });
21948
+ Object.defineProperty(this, "verified", {
21949
+ enumerable: true,
21950
+ configurable: true,
21951
+ writable: true,
21952
+ value: void 0
21953
+ });
21954
+ Object.defineProperty(this, "scam", {
21955
+ enumerable: true,
21956
+ configurable: true,
21957
+ writable: true,
21958
+ value: void 0
21959
+ });
21960
+ Object.defineProperty(this, "fake", {
21961
+ enumerable: true,
21962
+ configurable: true,
21963
+ writable: true,
21964
+ value: void 0
21965
+ });
21785
21966
  Object.defineProperty(this, "title", {
21786
21967
  enumerable: true,
21787
21968
  configurable: true,
@@ -21817,6 +21998,9 @@ export class ChatInvite extends _TypeChatInvite {
21817
21998
  this.public = params.public;
21818
21999
  this.megagroup = params.megagroup;
21819
22000
  this.requestNeeded = params.requestNeeded;
22001
+ this.verified = params.verified;
22002
+ this.scam = params.scam;
22003
+ this.fake = params.fake;
21820
22004
  this.title = params.title;
21821
22005
  this.about = params.about;
21822
22006
  this.photo = params.photo;
@@ -29866,7 +30050,7 @@ export class LabeledPrice extends _TypeLabeledPrice {
29866
30050
  }
29867
30051
  export class Invoice extends _TypeInvoice {
29868
30052
  get [id]() {
29869
- return 0x3E85A91B;
30053
+ return 0x5DB95A15;
29870
30054
  }
29871
30055
  static get [paramDesc]() {
29872
30056
  return [
@@ -29884,7 +30068,7 @@ export class Invoice extends _TypeInvoice {
29884
30068
  ["prices", [_TypeLabeledPrice], "Vector<LabeledPrice>"],
29885
30069
  ["maxTipAmount", "bigint", "flags.8?long"],
29886
30070
  ["suggestedTipAmounts", ["bigint"], "flags.8?Vector<long>"],
29887
- ["recurringTermsUrl", "string", "flags.9?string"],
30071
+ ["termsUrl", "string", "flags.10?string"],
29888
30072
  ];
29889
30073
  }
29890
30074
  get [params]() {
@@ -29903,7 +30087,7 @@ export class Invoice extends _TypeInvoice {
29903
30087
  [this.prices, [_TypeLabeledPrice], "Vector<LabeledPrice>"],
29904
30088
  [this.maxTipAmount ?? null, "bigint", "flags.8?long"],
29905
30089
  [this.suggestedTipAmounts ?? null, ["bigint"], "flags.8?Vector<long>"],
29906
- [this.recurringTermsUrl ?? null, "string", "flags.9?string"],
30090
+ [this.termsUrl ?? null, "string", "flags.10?string"],
29907
30091
  ];
29908
30092
  }
29909
30093
  constructor(params) {
@@ -29986,7 +30170,7 @@ export class Invoice extends _TypeInvoice {
29986
30170
  writable: true,
29987
30171
  value: void 0
29988
30172
  });
29989
- Object.defineProperty(this, "recurringTermsUrl", {
30173
+ Object.defineProperty(this, "termsUrl", {
29990
30174
  enumerable: true,
29991
30175
  configurable: true,
29992
30176
  writable: true,
@@ -30005,7 +30189,7 @@ export class Invoice extends _TypeInvoice {
30005
30189
  this.prices = params.prices;
30006
30190
  this.maxTipAmount = params.maxTipAmount;
30007
30191
  this.suggestedTipAmounts = params.suggestedTipAmounts;
30008
- this.recurringTermsUrl = params.recurringTermsUrl;
30192
+ this.termsUrl = params.termsUrl;
30009
30193
  }
30010
30194
  }
30011
30195
  export class PaymentCharge extends _TypePaymentCharge {
@@ -37638,6 +37822,9 @@ export class ChatAdminRights extends _TypeChatAdminRights {
37638
37822
  ["manageCall", "true", "flags.11?true"],
37639
37823
  ["other", "true", "flags.12?true"],
37640
37824
  ["manageTopics", "true", "flags.13?true"],
37825
+ ["postStories", "true", "flags.14?true"],
37826
+ ["editStories", "true", "flags.15?true"],
37827
+ ["deleteStories", "true", "flags.16?true"],
37641
37828
  ];
37642
37829
  }
37643
37830
  get [params]() {
@@ -37655,6 +37842,9 @@ export class ChatAdminRights extends _TypeChatAdminRights {
37655
37842
  [this.manageCall ?? null, "true", "flags.11?true"],
37656
37843
  [this.other ?? null, "true", "flags.12?true"],
37657
37844
  [this.manageTopics ?? null, "true", "flags.13?true"],
37845
+ [this.postStories ?? null, "true", "flags.14?true"],
37846
+ [this.editStories ?? null, "true", "flags.15?true"],
37847
+ [this.deleteStories ?? null, "true", "flags.16?true"],
37658
37848
  ];
37659
37849
  }
37660
37850
  constructor(params) {
@@ -37731,6 +37921,24 @@ export class ChatAdminRights extends _TypeChatAdminRights {
37731
37921
  writable: true,
37732
37922
  value: void 0
37733
37923
  });
37924
+ Object.defineProperty(this, "postStories", {
37925
+ enumerable: true,
37926
+ configurable: true,
37927
+ writable: true,
37928
+ value: void 0
37929
+ });
37930
+ Object.defineProperty(this, "editStories", {
37931
+ enumerable: true,
37932
+ configurable: true,
37933
+ writable: true,
37934
+ value: void 0
37935
+ });
37936
+ Object.defineProperty(this, "deleteStories", {
37937
+ enumerable: true,
37938
+ configurable: true,
37939
+ writable: true,
37940
+ value: void 0
37941
+ });
37734
37942
  this.changeInfo = params?.changeInfo;
37735
37943
  this.postMessages = params?.postMessages;
37736
37944
  this.editMessages = params?.editMessages;
@@ -37743,6 +37951,9 @@ export class ChatAdminRights extends _TypeChatAdminRights {
37743
37951
  this.manageCall = params?.manageCall;
37744
37952
  this.other = params?.other;
37745
37953
  this.manageTopics = params?.manageTopics;
37954
+ this.postStories = params?.postStories;
37955
+ this.editStories = params?.editStories;
37956
+ this.deleteStories = params?.deleteStories;
37746
37957
  }
37747
37958
  }
37748
37959
  export class ChatBannedRights extends _TypeChatBannedRights {
@@ -39679,12 +39890,12 @@ export class WebPageAttributeTheme extends _TypeWebPageAttribute {
39679
39890
  }
39680
39891
  export class WebPageAttributeStory extends _TypeWebPageAttribute {
39681
39892
  get [id]() {
39682
- return 0x939A4671;
39893
+ return 0x2E94C3E7;
39683
39894
  }
39684
39895
  static get [paramDesc]() {
39685
39896
  return [
39686
39897
  ["flags", flags, "#"],
39687
- ["userId", "bigint", "long"],
39898
+ ["peer", _TypePeer, "Peer"],
39688
39899
  ["id", "number", "int"],
39689
39900
  ["story", _TypeStoryItem, "flags.0?StoryItem"],
39690
39901
  ];
@@ -39692,14 +39903,14 @@ export class WebPageAttributeStory extends _TypeWebPageAttribute {
39692
39903
  get [params]() {
39693
39904
  return [
39694
39905
  ["flags", flags, "#"],
39695
- [this.userId, "bigint", "long"],
39906
+ [this.peer, _TypePeer, "Peer"],
39696
39907
  [this.id, "number", "int"],
39697
39908
  [this.story ?? null, _TypeStoryItem, "flags.0?StoryItem"],
39698
39909
  ];
39699
39910
  }
39700
39911
  constructor(params) {
39701
39912
  super();
39702
- Object.defineProperty(this, "userId", {
39913
+ Object.defineProperty(this, "peer", {
39703
39914
  enumerable: true,
39704
39915
  configurable: true,
39705
39916
  writable: true,
@@ -39717,7 +39928,7 @@ export class WebPageAttributeStory extends _TypeWebPageAttribute {
39717
39928
  writable: true,
39718
39929
  value: void 0
39719
39930
  });
39720
- this.userId = params.userId;
39931
+ this.peer = params.peer;
39721
39932
  this.id = params.id;
39722
39933
  this.story = params.story;
39723
39934
  }
@@ -44324,7 +44535,7 @@ export class AttachMenuBotIcon extends _TypeAttachMenuBotIcon {
44324
44535
  }
44325
44536
  export class AttachMenuBot extends _TypeAttachMenuBot {
44326
44537
  get [id]() {
44327
- return 0xC8AA2CD2;
44538
+ return 0xD90D8DFE;
44328
44539
  }
44329
44540
  static get [paramDesc]() {
44330
44541
  return [
@@ -44332,9 +44543,12 @@ export class AttachMenuBot extends _TypeAttachMenuBot {
44332
44543
  ["inactive", "true", "flags.0?true"],
44333
44544
  ["hasSettings", "true", "flags.1?true"],
44334
44545
  ["requestWriteAccess", "true", "flags.2?true"],
44546
+ ["showInAttachMenu", "true", "flags.3?true"],
44547
+ ["showInSideMenu", "true", "flags.4?true"],
44548
+ ["sideMenuDisclaimerNeeded", "true", "flags.5?true"],
44335
44549
  ["botId", "bigint", "long"],
44336
44550
  ["shortName", "string", "string"],
44337
- ["peerTypes", [_TypeAttachMenuPeerType], "Vector<AttachMenuPeerType>"],
44551
+ ["peerTypes", [_TypeAttachMenuPeerType], "flags.3?Vector<AttachMenuPeerType>"],
44338
44552
  ["icons", [_TypeAttachMenuBotIcon], "Vector<AttachMenuBotIcon>"],
44339
44553
  ];
44340
44554
  }
@@ -44344,9 +44558,12 @@ export class AttachMenuBot extends _TypeAttachMenuBot {
44344
44558
  [this.inactive ?? null, "true", "flags.0?true"],
44345
44559
  [this.hasSettings ?? null, "true", "flags.1?true"],
44346
44560
  [this.requestWriteAccess ?? null, "true", "flags.2?true"],
44561
+ [this.showInAttachMenu ?? null, "true", "flags.3?true"],
44562
+ [this.showInSideMenu ?? null, "true", "flags.4?true"],
44563
+ [this.sideMenuDisclaimerNeeded ?? null, "true", "flags.5?true"],
44347
44564
  [this.botId, "bigint", "long"],
44348
44565
  [this.shortName, "string", "string"],
44349
- [this.peerTypes, [_TypeAttachMenuPeerType], "Vector<AttachMenuPeerType>"],
44566
+ [this.peerTypes ?? null, [_TypeAttachMenuPeerType], "flags.3?Vector<AttachMenuPeerType>"],
44350
44567
  [this.icons, [_TypeAttachMenuBotIcon], "Vector<AttachMenuBotIcon>"],
44351
44568
  ];
44352
44569
  }
@@ -44370,6 +44587,24 @@ export class AttachMenuBot extends _TypeAttachMenuBot {
44370
44587
  writable: true,
44371
44588
  value: void 0
44372
44589
  });
44590
+ Object.defineProperty(this, "showInAttachMenu", {
44591
+ enumerable: true,
44592
+ configurable: true,
44593
+ writable: true,
44594
+ value: void 0
44595
+ });
44596
+ Object.defineProperty(this, "showInSideMenu", {
44597
+ enumerable: true,
44598
+ configurable: true,
44599
+ writable: true,
44600
+ value: void 0
44601
+ });
44602
+ Object.defineProperty(this, "sideMenuDisclaimerNeeded", {
44603
+ enumerable: true,
44604
+ configurable: true,
44605
+ writable: true,
44606
+ value: void 0
44607
+ });
44373
44608
  Object.defineProperty(this, "botId", {
44374
44609
  enumerable: true,
44375
44610
  configurable: true,
@@ -44397,6 +44632,9 @@ export class AttachMenuBot extends _TypeAttachMenuBot {
44397
44632
  this.inactive = params.inactive;
44398
44633
  this.hasSettings = params.hasSettings;
44399
44634
  this.requestWriteAccess = params.requestWriteAccess;
44635
+ this.showInAttachMenu = params.showInAttachMenu;
44636
+ this.showInSideMenu = params.showInSideMenu;
44637
+ this.sideMenuDisclaimerNeeded = params.sideMenuDisclaimerNeeded;
44400
44638
  this.botId = params.botId;
44401
44639
  this.shortName = params.shortName;
44402
44640
  this.peerTypes = params.peerTypes;
@@ -47132,6 +47370,7 @@ export class MessagesBotApp extends _TypeMessagesBotApp {
47132
47370
  ["flags", flags, "#"],
47133
47371
  ["inactive", "true", "flags.0?true"],
47134
47372
  ["requestWriteAccess", "true", "flags.1?true"],
47373
+ ["hasSettings", "true", "flags.2?true"],
47135
47374
  ["app", _TypeBotApp, "BotApp"],
47136
47375
  ];
47137
47376
  }
@@ -47140,6 +47379,7 @@ export class MessagesBotApp extends _TypeMessagesBotApp {
47140
47379
  ["flags", flags, "#"],
47141
47380
  [this.inactive ?? null, "true", "flags.0?true"],
47142
47381
  [this.requestWriteAccess ?? null, "true", "flags.1?true"],
47382
+ [this.hasSettings ?? null, "true", "flags.2?true"],
47143
47383
  [this.app, _TypeBotApp, "BotApp"],
47144
47384
  ];
47145
47385
  }
@@ -47157,6 +47397,12 @@ export class MessagesBotApp extends _TypeMessagesBotApp {
47157
47397
  writable: true,
47158
47398
  value: void 0
47159
47399
  });
47400
+ Object.defineProperty(this, "hasSettings", {
47401
+ enumerable: true,
47402
+ configurable: true,
47403
+ writable: true,
47404
+ value: void 0
47405
+ });
47160
47406
  Object.defineProperty(this, "app", {
47161
47407
  enumerable: true,
47162
47408
  configurable: true,
@@ -47165,6 +47411,7 @@ export class MessagesBotApp extends _TypeMessagesBotApp {
47165
47411
  });
47166
47412
  this.inactive = params.inactive;
47167
47413
  this.requestWriteAccess = params.requestWriteAccess;
47414
+ this.hasSettings = params.hasSettings;
47168
47415
  this.app = params.app;
47169
47416
  }
47170
47417
  }
@@ -47785,32 +48032,56 @@ export class SponsoredWebPage extends _TypeSponsoredWebPage {
47785
48032
  }
47786
48033
  export class StoryViews extends _TypeStoryViews {
47787
48034
  get [id]() {
47788
- return 0xC64C0B97;
48035
+ return 0x8D595CD6;
47789
48036
  }
47790
48037
  static get [paramDesc]() {
47791
48038
  return [
47792
48039
  ["flags", flags, "#"],
48040
+ ["hasViewers", "true", "flags.1?true"],
47793
48041
  ["viewsCount", "number", "int"],
47794
- ["reactionsCount", "number", "int"],
48042
+ ["forwardsCount", "number", "flags.2?int"],
48043
+ ["reactions", [_TypeReactionCount], "flags.3?Vector<ReactionCount>"],
48044
+ ["reactionsCount", "number", "flags.4?int"],
47795
48045
  ["recentViewers", ["bigint"], "flags.0?Vector<long>"],
47796
48046
  ];
47797
48047
  }
47798
48048
  get [params]() {
47799
48049
  return [
47800
48050
  ["flags", flags, "#"],
48051
+ [this.hasViewers ?? null, "true", "flags.1?true"],
47801
48052
  [this.viewsCount, "number", "int"],
47802
- [this.reactionsCount, "number", "int"],
48053
+ [this.forwardsCount ?? null, "number", "flags.2?int"],
48054
+ [this.reactions ?? null, [_TypeReactionCount], "flags.3?Vector<ReactionCount>"],
48055
+ [this.reactionsCount ?? null, "number", "flags.4?int"],
47803
48056
  [this.recentViewers ?? null, ["bigint"], "flags.0?Vector<long>"],
47804
48057
  ];
47805
48058
  }
47806
48059
  constructor(params) {
47807
48060
  super();
48061
+ Object.defineProperty(this, "hasViewers", {
48062
+ enumerable: true,
48063
+ configurable: true,
48064
+ writable: true,
48065
+ value: void 0
48066
+ });
47808
48067
  Object.defineProperty(this, "viewsCount", {
47809
48068
  enumerable: true,
47810
48069
  configurable: true,
47811
48070
  writable: true,
47812
48071
  value: void 0
47813
48072
  });
48073
+ Object.defineProperty(this, "forwardsCount", {
48074
+ enumerable: true,
48075
+ configurable: true,
48076
+ writable: true,
48077
+ value: void 0
48078
+ });
48079
+ Object.defineProperty(this, "reactions", {
48080
+ enumerable: true,
48081
+ configurable: true,
48082
+ writable: true,
48083
+ value: void 0
48084
+ });
47814
48085
  Object.defineProperty(this, "reactionsCount", {
47815
48086
  enumerable: true,
47816
48087
  configurable: true,
@@ -47823,7 +48094,10 @@ export class StoryViews extends _TypeStoryViews {
47823
48094
  writable: true,
47824
48095
  value: void 0
47825
48096
  });
48097
+ this.hasViewers = params.hasViewers;
47826
48098
  this.viewsCount = params.viewsCount;
48099
+ this.forwardsCount = params.forwardsCount;
48100
+ this.reactions = params.reactions;
47827
48101
  this.reactionsCount = params.reactionsCount;
47828
48102
  this.recentViewers = params.recentViewers;
47829
48103
  }
@@ -47922,6 +48196,7 @@ export class StoryItem extends _TypeStoryItem {
47922
48196
  ["edited", "true", "flags.11?true"],
47923
48197
  ["contacts", "true", "flags.12?true"],
47924
48198
  ["selectedContacts", "true", "flags.13?true"],
48199
+ ["out", "true", "flags.16?true"],
47925
48200
  ["id", "number", "int"],
47926
48201
  ["date", "number", "int"],
47927
48202
  ["expireDate", "number", "int"],
@@ -47945,6 +48220,7 @@ export class StoryItem extends _TypeStoryItem {
47945
48220
  [this.edited ?? null, "true", "flags.11?true"],
47946
48221
  [this.contacts ?? null, "true", "flags.12?true"],
47947
48222
  [this.selectedContacts ?? null, "true", "flags.13?true"],
48223
+ [this.out ?? null, "true", "flags.16?true"],
47948
48224
  [this.id, "number", "int"],
47949
48225
  [this.date, "number", "int"],
47950
48226
  [this.expireDate, "number", "int"],
@@ -48007,6 +48283,12 @@ export class StoryItem extends _TypeStoryItem {
48007
48283
  writable: true,
48008
48284
  value: void 0
48009
48285
  });
48286
+ Object.defineProperty(this, "out", {
48287
+ enumerable: true,
48288
+ configurable: true,
48289
+ writable: true,
48290
+ value: void 0
48291
+ });
48010
48292
  Object.defineProperty(this, "id", {
48011
48293
  enumerable: true,
48012
48294
  configurable: true,
@@ -48075,6 +48357,7 @@ export class StoryItem extends _TypeStoryItem {
48075
48357
  this.edited = params.edited;
48076
48358
  this.contacts = params.contacts;
48077
48359
  this.selectedContacts = params.selectedContacts;
48360
+ this.out = params.out;
48078
48361
  this.id = params.id;
48079
48362
  this.date = params.date;
48080
48363
  this.expireDate = params.expireDate;
@@ -48087,51 +48370,6 @@ export class StoryItem extends _TypeStoryItem {
48087
48370
  this.sentReaction = params.sentReaction;
48088
48371
  }
48089
48372
  }
48090
- export class UserStories extends _TypeUserStories {
48091
- get [id]() {
48092
- return 0x8611A200;
48093
- }
48094
- static get [paramDesc]() {
48095
- return [
48096
- ["flags", flags, "#"],
48097
- ["userId", "bigint", "long"],
48098
- ["maxReadId", "number", "flags.0?int"],
48099
- ["stories", [_TypeStoryItem], "Vector<StoryItem>"],
48100
- ];
48101
- }
48102
- get [params]() {
48103
- return [
48104
- ["flags", flags, "#"],
48105
- [this.userId, "bigint", "long"],
48106
- [this.maxReadId ?? null, "number", "flags.0?int"],
48107
- [this.stories, [_TypeStoryItem], "Vector<StoryItem>"],
48108
- ];
48109
- }
48110
- constructor(params) {
48111
- super();
48112
- Object.defineProperty(this, "userId", {
48113
- enumerable: true,
48114
- configurable: true,
48115
- writable: true,
48116
- value: void 0
48117
- });
48118
- Object.defineProperty(this, "maxReadId", {
48119
- enumerable: true,
48120
- configurable: true,
48121
- writable: true,
48122
- value: void 0
48123
- });
48124
- Object.defineProperty(this, "stories", {
48125
- enumerable: true,
48126
- configurable: true,
48127
- writable: true,
48128
- value: void 0
48129
- });
48130
- this.userId = params.userId;
48131
- this.maxReadId = params.maxReadId;
48132
- this.stories = params.stories;
48133
- }
48134
- }
48135
48373
  export class StoriesAllStoriesNotModified extends _TypeStoriesAllStories {
48136
48374
  get [id]() {
48137
48375
  return 0x1158FE3E;
@@ -48170,7 +48408,7 @@ export class StoriesAllStoriesNotModified extends _TypeStoriesAllStories {
48170
48408
  }
48171
48409
  export class StoriesAllStories extends _TypeStoriesAllStories {
48172
48410
  get [id]() {
48173
- return 0x519D899E;
48411
+ return 0x6EFC5E81;
48174
48412
  }
48175
48413
  static get [paramDesc]() {
48176
48414
  return [
@@ -48178,7 +48416,8 @@ export class StoriesAllStories extends _TypeStoriesAllStories {
48178
48416
  ["hasMore", "true", "flags.0?true"],
48179
48417
  ["count", "number", "int"],
48180
48418
  ["state", "string", "string"],
48181
- ["userStories", [_TypeUserStories], "Vector<UserStories>"],
48419
+ ["peerStories", [_TypePeerStories], "Vector<PeerStories>"],
48420
+ ["chats", [_TypeChat], "Vector<Chat>"],
48182
48421
  ["users", [_TypeUser], "Vector<User>"],
48183
48422
  ["stealthMode", _TypeStoriesStealthMode, "StoriesStealthMode"],
48184
48423
  ];
@@ -48189,7 +48428,8 @@ export class StoriesAllStories extends _TypeStoriesAllStories {
48189
48428
  [this.hasMore ?? null, "true", "flags.0?true"],
48190
48429
  [this.count, "number", "int"],
48191
48430
  [this.state, "string", "string"],
48192
- [this.userStories, [_TypeUserStories], "Vector<UserStories>"],
48431
+ [this.peerStories, [_TypePeerStories], "Vector<PeerStories>"],
48432
+ [this.chats, [_TypeChat], "Vector<Chat>"],
48193
48433
  [this.users, [_TypeUser], "Vector<User>"],
48194
48434
  [this.stealthMode, _TypeStoriesStealthMode, "StoriesStealthMode"],
48195
48435
  ];
@@ -48214,7 +48454,13 @@ export class StoriesAllStories extends _TypeStoriesAllStories {
48214
48454
  writable: true,
48215
48455
  value: void 0
48216
48456
  });
48217
- Object.defineProperty(this, "userStories", {
48457
+ Object.defineProperty(this, "peerStories", {
48458
+ enumerable: true,
48459
+ configurable: true,
48460
+ writable: true,
48461
+ value: void 0
48462
+ });
48463
+ Object.defineProperty(this, "chats", {
48218
48464
  enumerable: true,
48219
48465
  configurable: true,
48220
48466
  writable: true,
@@ -48235,19 +48481,21 @@ export class StoriesAllStories extends _TypeStoriesAllStories {
48235
48481
  this.hasMore = params.hasMore;
48236
48482
  this.count = params.count;
48237
48483
  this.state = params.state;
48238
- this.userStories = params.userStories;
48484
+ this.peerStories = params.peerStories;
48485
+ this.chats = params.chats;
48239
48486
  this.users = params.users;
48240
48487
  this.stealthMode = params.stealthMode;
48241
48488
  }
48242
48489
  }
48243
48490
  export class StoriesStories extends _TypeStoriesStories {
48244
48491
  get [id]() {
48245
- return 0x4FE57DF1;
48492
+ return 0x5DD8C3C8;
48246
48493
  }
48247
48494
  static get [paramDesc]() {
48248
48495
  return [
48249
48496
  ["count", "number", "int"],
48250
48497
  ["stories", [_TypeStoryItem], "Vector<StoryItem>"],
48498
+ ["chats", [_TypeChat], "Vector<Chat>"],
48251
48499
  ["users", [_TypeUser], "Vector<User>"],
48252
48500
  ];
48253
48501
  }
@@ -48255,6 +48503,7 @@ export class StoriesStories extends _TypeStoriesStories {
48255
48503
  return [
48256
48504
  [this.count, "number", "int"],
48257
48505
  [this.stories, [_TypeStoryItem], "Vector<StoryItem>"],
48506
+ [this.chats, [_TypeChat], "Vector<Chat>"],
48258
48507
  [this.users, [_TypeUser], "Vector<User>"],
48259
48508
  ];
48260
48509
  }
@@ -48272,36 +48521,7 @@ export class StoriesStories extends _TypeStoriesStories {
48272
48521
  writable: true,
48273
48522
  value: void 0
48274
48523
  });
48275
- Object.defineProperty(this, "users", {
48276
- enumerable: true,
48277
- configurable: true,
48278
- writable: true,
48279
- value: void 0
48280
- });
48281
- this.count = params.count;
48282
- this.stories = params.stories;
48283
- this.users = params.users;
48284
- }
48285
- }
48286
- export class StoriesUserStories extends _TypeStoriesUserStories {
48287
- get [id]() {
48288
- return 0x37A6FF5F;
48289
- }
48290
- static get [paramDesc]() {
48291
- return [
48292
- ["stories", _TypeUserStories, "UserStories"],
48293
- ["users", [_TypeUser], "Vector<User>"],
48294
- ];
48295
- }
48296
- get [params]() {
48297
- return [
48298
- [this.stories, _TypeUserStories, "UserStories"],
48299
- [this.users, [_TypeUser], "Vector<User>"],
48300
- ];
48301
- }
48302
- constructor(params) {
48303
- super();
48304
- Object.defineProperty(this, "stories", {
48524
+ Object.defineProperty(this, "chats", {
48305
48525
  enumerable: true,
48306
48526
  configurable: true,
48307
48527
  writable: true,
@@ -48313,7 +48533,9 @@ export class StoriesUserStories extends _TypeStoriesUserStories {
48313
48533
  writable: true,
48314
48534
  value: void 0
48315
48535
  });
48536
+ this.count = params.count;
48316
48537
  this.stories = params.stories;
48538
+ this.chats = params.chats;
48317
48539
  this.users = params.users;
48318
48540
  }
48319
48541
  }
@@ -48825,6 +49047,408 @@ export class MediaAreaGeoPoint extends _TypeMediaArea {
48825
49047
  this.geo = params.geo;
48826
49048
  }
48827
49049
  }
49050
+ export class MediaAreaSuggestedReaction extends _TypeMediaArea {
49051
+ get [id]() {
49052
+ return 0x14455871;
49053
+ }
49054
+ static get [paramDesc]() {
49055
+ return [
49056
+ ["flags", flags, "#"],
49057
+ ["dark", "true", "flags.0?true"],
49058
+ ["flipped", "true", "flags.1?true"],
49059
+ ["coordinates", _TypeMediaAreaCoordinates, "MediaAreaCoordinates"],
49060
+ ["reaction", _TypeReaction, "Reaction"],
49061
+ ];
49062
+ }
49063
+ get [params]() {
49064
+ return [
49065
+ ["flags", flags, "#"],
49066
+ [this.dark ?? null, "true", "flags.0?true"],
49067
+ [this.flipped ?? null, "true", "flags.1?true"],
49068
+ [this.coordinates, _TypeMediaAreaCoordinates, "MediaAreaCoordinates"],
49069
+ [this.reaction, _TypeReaction, "Reaction"],
49070
+ ];
49071
+ }
49072
+ constructor(params) {
49073
+ super();
49074
+ Object.defineProperty(this, "dark", {
49075
+ enumerable: true,
49076
+ configurable: true,
49077
+ writable: true,
49078
+ value: void 0
49079
+ });
49080
+ Object.defineProperty(this, "flipped", {
49081
+ enumerable: true,
49082
+ configurable: true,
49083
+ writable: true,
49084
+ value: void 0
49085
+ });
49086
+ Object.defineProperty(this, "coordinates", {
49087
+ enumerable: true,
49088
+ configurable: true,
49089
+ writable: true,
49090
+ value: void 0
49091
+ });
49092
+ Object.defineProperty(this, "reaction", {
49093
+ enumerable: true,
49094
+ configurable: true,
49095
+ writable: true,
49096
+ value: void 0
49097
+ });
49098
+ this.dark = params.dark;
49099
+ this.flipped = params.flipped;
49100
+ this.coordinates = params.coordinates;
49101
+ this.reaction = params.reaction;
49102
+ }
49103
+ }
49104
+ export class PeerStories extends _TypePeerStories {
49105
+ get [id]() {
49106
+ return 0x9A35E999;
49107
+ }
49108
+ static get [paramDesc]() {
49109
+ return [
49110
+ ["flags", flags, "#"],
49111
+ ["peer", _TypePeer, "Peer"],
49112
+ ["maxReadId", "number", "flags.0?int"],
49113
+ ["stories", [_TypeStoryItem], "Vector<StoryItem>"],
49114
+ ];
49115
+ }
49116
+ get [params]() {
49117
+ return [
49118
+ ["flags", flags, "#"],
49119
+ [this.peer, _TypePeer, "Peer"],
49120
+ [this.maxReadId ?? null, "number", "flags.0?int"],
49121
+ [this.stories, [_TypeStoryItem], "Vector<StoryItem>"],
49122
+ ];
49123
+ }
49124
+ constructor(params) {
49125
+ super();
49126
+ Object.defineProperty(this, "peer", {
49127
+ enumerable: true,
49128
+ configurable: true,
49129
+ writable: true,
49130
+ value: void 0
49131
+ });
49132
+ Object.defineProperty(this, "maxReadId", {
49133
+ enumerable: true,
49134
+ configurable: true,
49135
+ writable: true,
49136
+ value: void 0
49137
+ });
49138
+ Object.defineProperty(this, "stories", {
49139
+ enumerable: true,
49140
+ configurable: true,
49141
+ writable: true,
49142
+ value: void 0
49143
+ });
49144
+ this.peer = params.peer;
49145
+ this.maxReadId = params.maxReadId;
49146
+ this.stories = params.stories;
49147
+ }
49148
+ }
49149
+ export class StoriesPeerStories extends _TypeStoriesPeerStories {
49150
+ get [id]() {
49151
+ return 0xCAE68768;
49152
+ }
49153
+ static get [paramDesc]() {
49154
+ return [
49155
+ ["stories", _TypePeerStories, "PeerStories"],
49156
+ ["chats", [_TypeChat], "Vector<Chat>"],
49157
+ ["users", [_TypeUser], "Vector<User>"],
49158
+ ];
49159
+ }
49160
+ get [params]() {
49161
+ return [
49162
+ [this.stories, _TypePeerStories, "PeerStories"],
49163
+ [this.chats, [_TypeChat], "Vector<Chat>"],
49164
+ [this.users, [_TypeUser], "Vector<User>"],
49165
+ ];
49166
+ }
49167
+ constructor(params) {
49168
+ super();
49169
+ Object.defineProperty(this, "stories", {
49170
+ enumerable: true,
49171
+ configurable: true,
49172
+ writable: true,
49173
+ value: void 0
49174
+ });
49175
+ Object.defineProperty(this, "chats", {
49176
+ enumerable: true,
49177
+ configurable: true,
49178
+ writable: true,
49179
+ value: void 0
49180
+ });
49181
+ Object.defineProperty(this, "users", {
49182
+ enumerable: true,
49183
+ configurable: true,
49184
+ writable: true,
49185
+ value: void 0
49186
+ });
49187
+ this.stories = params.stories;
49188
+ this.chats = params.chats;
49189
+ this.users = params.users;
49190
+ }
49191
+ }
49192
+ export class StoriesBoostsStatus extends _TypeStoriesBoostsStatus {
49193
+ get [id]() {
49194
+ return 0xE5C1AA5C;
49195
+ }
49196
+ static get [paramDesc]() {
49197
+ return [
49198
+ ["flags", flags, "#"],
49199
+ ["myBoost", "true", "flags.2?true"],
49200
+ ["level", "number", "int"],
49201
+ ["currentLevelBoosts", "number", "int"],
49202
+ ["boosts", "number", "int"],
49203
+ ["nextLevelBoosts", "number", "flags.0?int"],
49204
+ ["premiumAudience", _TypeStatsPercentValue, "flags.1?StatsPercentValue"],
49205
+ ["boostUrl", "string", "string"],
49206
+ ];
49207
+ }
49208
+ get [params]() {
49209
+ return [
49210
+ ["flags", flags, "#"],
49211
+ [this.myBoost ?? null, "true", "flags.2?true"],
49212
+ [this.level, "number", "int"],
49213
+ [this.currentLevelBoosts, "number", "int"],
49214
+ [this.boosts, "number", "int"],
49215
+ [this.nextLevelBoosts ?? null, "number", "flags.0?int"],
49216
+ [this.premiumAudience ?? null, _TypeStatsPercentValue, "flags.1?StatsPercentValue"],
49217
+ [this.boostUrl, "string", "string"],
49218
+ ];
49219
+ }
49220
+ constructor(params) {
49221
+ super();
49222
+ Object.defineProperty(this, "myBoost", {
49223
+ enumerable: true,
49224
+ configurable: true,
49225
+ writable: true,
49226
+ value: void 0
49227
+ });
49228
+ Object.defineProperty(this, "level", {
49229
+ enumerable: true,
49230
+ configurable: true,
49231
+ writable: true,
49232
+ value: void 0
49233
+ });
49234
+ Object.defineProperty(this, "currentLevelBoosts", {
49235
+ enumerable: true,
49236
+ configurable: true,
49237
+ writable: true,
49238
+ value: void 0
49239
+ });
49240
+ Object.defineProperty(this, "boosts", {
49241
+ enumerable: true,
49242
+ configurable: true,
49243
+ writable: true,
49244
+ value: void 0
49245
+ });
49246
+ Object.defineProperty(this, "nextLevelBoosts", {
49247
+ enumerable: true,
49248
+ configurable: true,
49249
+ writable: true,
49250
+ value: void 0
49251
+ });
49252
+ Object.defineProperty(this, "premiumAudience", {
49253
+ enumerable: true,
49254
+ configurable: true,
49255
+ writable: true,
49256
+ value: void 0
49257
+ });
49258
+ Object.defineProperty(this, "boostUrl", {
49259
+ enumerable: true,
49260
+ configurable: true,
49261
+ writable: true,
49262
+ value: void 0
49263
+ });
49264
+ this.myBoost = params.myBoost;
49265
+ this.level = params.level;
49266
+ this.currentLevelBoosts = params.currentLevelBoosts;
49267
+ this.boosts = params.boosts;
49268
+ this.nextLevelBoosts = params.nextLevelBoosts;
49269
+ this.premiumAudience = params.premiumAudience;
49270
+ this.boostUrl = params.boostUrl;
49271
+ }
49272
+ }
49273
+ export class StoriesCanApplyBoostOk extends _TypeStoriesCanApplyBoostResult {
49274
+ get [id]() {
49275
+ return 0xC3173587;
49276
+ }
49277
+ static get [paramDesc]() {
49278
+ return [];
49279
+ }
49280
+ get [params]() {
49281
+ return [];
49282
+ }
49283
+ constructor() {
49284
+ super();
49285
+ }
49286
+ }
49287
+ export class StoriesCanApplyBoostReplace extends _TypeStoriesCanApplyBoostResult {
49288
+ get [id]() {
49289
+ return 0x712C4655;
49290
+ }
49291
+ static get [paramDesc]() {
49292
+ return [
49293
+ ["currentBoost", _TypePeer, "Peer"],
49294
+ ["chats", [_TypeChat], "Vector<Chat>"],
49295
+ ];
49296
+ }
49297
+ get [params]() {
49298
+ return [
49299
+ [this.currentBoost, _TypePeer, "Peer"],
49300
+ [this.chats, [_TypeChat], "Vector<Chat>"],
49301
+ ];
49302
+ }
49303
+ constructor(params) {
49304
+ super();
49305
+ Object.defineProperty(this, "currentBoost", {
49306
+ enumerable: true,
49307
+ configurable: true,
49308
+ writable: true,
49309
+ value: void 0
49310
+ });
49311
+ Object.defineProperty(this, "chats", {
49312
+ enumerable: true,
49313
+ configurable: true,
49314
+ writable: true,
49315
+ value: void 0
49316
+ });
49317
+ this.currentBoost = params.currentBoost;
49318
+ this.chats = params.chats;
49319
+ }
49320
+ }
49321
+ export class Booster extends _TypeBooster {
49322
+ get [id]() {
49323
+ return 0x0E9E6380;
49324
+ }
49325
+ static get [paramDesc]() {
49326
+ return [
49327
+ ["userId", "bigint", "long"],
49328
+ ["expires", "number", "int"],
49329
+ ];
49330
+ }
49331
+ get [params]() {
49332
+ return [
49333
+ [this.userId, "bigint", "long"],
49334
+ [this.expires, "number", "int"],
49335
+ ];
49336
+ }
49337
+ constructor(params) {
49338
+ super();
49339
+ Object.defineProperty(this, "userId", {
49340
+ enumerable: true,
49341
+ configurable: true,
49342
+ writable: true,
49343
+ value: void 0
49344
+ });
49345
+ Object.defineProperty(this, "expires", {
49346
+ enumerable: true,
49347
+ configurable: true,
49348
+ writable: true,
49349
+ value: void 0
49350
+ });
49351
+ this.userId = params.userId;
49352
+ this.expires = params.expires;
49353
+ }
49354
+ }
49355
+ export class StoriesBoostersList extends _TypeStoriesBoostersList {
49356
+ get [id]() {
49357
+ return 0xF3DD3D1D;
49358
+ }
49359
+ static get [paramDesc]() {
49360
+ return [
49361
+ ["flags", flags, "#"],
49362
+ ["count", "number", "int"],
49363
+ ["boosters", [_TypeBooster], "Vector<Booster>"],
49364
+ ["nextOffset", "string", "flags.0?string"],
49365
+ ["users", [_TypeUser], "Vector<User>"],
49366
+ ];
49367
+ }
49368
+ get [params]() {
49369
+ return [
49370
+ ["flags", flags, "#"],
49371
+ [this.count, "number", "int"],
49372
+ [this.boosters, [_TypeBooster], "Vector<Booster>"],
49373
+ [this.nextOffset ?? null, "string", "flags.0?string"],
49374
+ [this.users, [_TypeUser], "Vector<User>"],
49375
+ ];
49376
+ }
49377
+ constructor(params) {
49378
+ super();
49379
+ Object.defineProperty(this, "count", {
49380
+ enumerable: true,
49381
+ configurable: true,
49382
+ writable: true,
49383
+ value: void 0
49384
+ });
49385
+ Object.defineProperty(this, "boosters", {
49386
+ enumerable: true,
49387
+ configurable: true,
49388
+ writable: true,
49389
+ value: void 0
49390
+ });
49391
+ Object.defineProperty(this, "nextOffset", {
49392
+ enumerable: true,
49393
+ configurable: true,
49394
+ writable: true,
49395
+ value: void 0
49396
+ });
49397
+ Object.defineProperty(this, "users", {
49398
+ enumerable: true,
49399
+ configurable: true,
49400
+ writable: true,
49401
+ value: void 0
49402
+ });
49403
+ this.count = params.count;
49404
+ this.boosters = params.boosters;
49405
+ this.nextOffset = params.nextOffset;
49406
+ this.users = params.users;
49407
+ }
49408
+ }
49409
+ export class MessagesWebPage extends _TypeMessagesWebPage {
49410
+ get [id]() {
49411
+ return 0xFD5E12BD;
49412
+ }
49413
+ static get [paramDesc]() {
49414
+ return [
49415
+ ["webpage", _TypeWebPage, "WebPage"],
49416
+ ["chats", [_TypeChat], "Vector<Chat>"],
49417
+ ["users", [_TypeUser], "Vector<User>"],
49418
+ ];
49419
+ }
49420
+ get [params]() {
49421
+ return [
49422
+ [this.webpage, _TypeWebPage, "WebPage"],
49423
+ [this.chats, [_TypeChat], "Vector<Chat>"],
49424
+ [this.users, [_TypeUser], "Vector<User>"],
49425
+ ];
49426
+ }
49427
+ constructor(params) {
49428
+ super();
49429
+ Object.defineProperty(this, "webpage", {
49430
+ enumerable: true,
49431
+ configurable: true,
49432
+ writable: true,
49433
+ value: void 0
49434
+ });
49435
+ Object.defineProperty(this, "chats", {
49436
+ enumerable: true,
49437
+ configurable: true,
49438
+ writable: true,
49439
+ value: void 0
49440
+ });
49441
+ Object.defineProperty(this, "users", {
49442
+ enumerable: true,
49443
+ configurable: true,
49444
+ writable: true,
49445
+ value: void 0
49446
+ });
49447
+ this.webpage = params.webpage;
49448
+ this.chats = params.chats;
49449
+ this.users = params.users;
49450
+ }
49451
+ }
48828
49452
  export const map = new Map([
48829
49453
  [0x05162463, ResPQ],
48830
49454
  [0xA9F55F95, PQInnerDataDC],
@@ -48892,7 +49516,7 @@ export const map = new Map([
48892
49516
  [0x971FA843, InputMediaGeoLive],
48893
49517
  [0x0F94E5F1, InputMediaPoll],
48894
49518
  [0xE66FBF7B, InputMediaDice],
48895
- [0x9A86B58F, InputMediaStory],
49519
+ [0x89FDD778, InputMediaStory],
48896
49520
  [0x1CA48F57, InputChatPhotoEmpty],
48897
49521
  [0xBDCDAEC0, InputChatUploadedPhoto],
48898
49522
  [0x8953AD37, InputChatPhoto],
@@ -48936,10 +49560,10 @@ export const map = new Map([
48936
49560
  [0x29562865, ChatEmpty],
48937
49561
  [0x41CBF256, Chat],
48938
49562
  [0x6592A1A7, ChatForbidden],
48939
- [0x83259464, Channel],
49563
+ [0x94F592DB, Channel],
48940
49564
  [0x17D493D5, ChannelForbidden],
48941
49565
  [0xC9D31138, ChatFull],
48942
- [0xF2355507, ChannelFull],
49566
+ [0x723027BD, ChannelFull],
48943
49567
  [0xC02D4007, ChatParticipant],
48944
49568
  [0xE46BCEE4, ChatParticipantCreator],
48945
49569
  [0xA0933F5B, ChatParticipantAdmin],
@@ -48963,7 +49587,7 @@ export const map = new Map([
48963
49587
  [0xB940C666, MessageMediaGeoLive],
48964
49588
  [0x4BD6E798, MessageMediaPoll],
48965
49589
  [0x3F7EE58B, MessageMediaDice],
48966
- [0xCBB20D88, MessageMediaStory],
49590
+ [0x68CB6283, MessageMediaStory],
48967
49591
  [0xB6AEF7B0, MessageActionEmpty],
48968
49592
  [0xBD47CBAD, MessageActionChatCreate],
48969
49593
  [0xB5A1CE5A, MessageActionChatEditTitle],
@@ -49040,7 +49664,7 @@ export const map = new Map([
49040
49664
  [0xF5DDD6E7, InputReportReasonFake],
49041
49665
  [0x0A8EB2BE, InputReportReasonIllegalDrugs],
49042
49666
  [0x9EC7863D, InputReportReasonPersonalDetails],
49043
- [0x4FE1CC86, UserFull],
49667
+ [0xB9B12C6C, UserFull],
49044
49668
  [0x145ADE0B, Contact],
49045
49669
  [0xC13E3C50, ImportedContact],
49046
49670
  [0x16D9703B, ContactStatus],
@@ -49085,6 +49709,7 @@ export const map = new Map([
49085
49709
  [0x07761198, UpdateChatParticipants],
49086
49710
  [0xE5BDF8DE, UpdateUserStatus],
49087
49711
  [0xA7848924, UpdateUserName],
49712
+ [0x8951ABEF, UpdateNewAuthorization],
49088
49713
  [0x12BCBD9A, UpdateNewEncryptedMessage],
49089
49714
  [0x1710F156, UpdateEncryptedChatTyping],
49090
49715
  [0xB4A2E88D, UpdateEncryption],
@@ -49099,7 +49724,7 @@ export const map = new Map([
49099
49724
  [0x9C974FDF, UpdateReadHistoryInbox],
49100
49725
  [0x2F2F21BF, UpdateReadHistoryOutbox],
49101
49726
  [0x7F891213, UpdateWebPage],
49102
- [0x68C13933, UpdateReadMessagesContents],
49727
+ [0xF8227181, UpdateReadMessagesContents],
49103
49728
  [0x108D941F, UpdateChannelTooLong],
49104
49729
  [0x635B4C09, UpdateChannel],
49105
49730
  [0x62BA04D9, UpdateNewChannelMessage],
@@ -49188,11 +49813,11 @@ export const map = new Map([
49188
49813
  [0x20529438, UpdateUser],
49189
49814
  [0xEC05B097, UpdateAutoSaveSettings],
49190
49815
  [0xCCF08AD6, UpdateGroupInvitePrivacyForbidden],
49191
- [0x205A4133, UpdateStory],
49192
- [0xFEB5345A, UpdateReadStories],
49816
+ [0x75B3B798, UpdateStory],
49817
+ [0xF74E932B, UpdateReadStories],
49193
49818
  [0x1BF335B9, UpdateStoryID],
49194
49819
  [0x2C084DC1, UpdateStoriesStealthMode],
49195
- [0xE3A73D20, UpdateSentStoryReaction],
49820
+ [0x7D627683, UpdateSentStoryReaction],
49196
49821
  [0xA56C2A3E, UpdatesState],
49197
49822
  [0x5D75A138, UpdatesDifferenceEmpty],
49198
49823
  [0x00F49CA0, UpdatesDifference],
@@ -49547,7 +50172,7 @@ export const map = new Map([
49547
50172
  [0xFAF7E8C9, PhoneCallDiscardReasonBusy],
49548
50173
  [0x7D748D04, DataJSON],
49549
50174
  [0xCB296BF8, LabeledPrice],
49550
- [0x3E85A91B, Invoice],
50175
+ [0x5DB95A15, Invoice],
49551
50176
  [0xEA02C27E, PaymentCharge],
49552
50177
  [0x1E8CAAEB, PostAddress],
49553
50178
  [0x909C3F94, PaymentRequestedInfo],
@@ -49787,7 +50412,7 @@ export const map = new Map([
49787
50412
  [0x8FDE504F, InputThemeSettings],
49788
50413
  [0xFA58B6D4, ThemeSettings],
49789
50414
  [0x54B56617, WebPageAttributeTheme],
49790
- [0x939A4671, WebPageAttributeStory],
50415
+ [0x2E94C3E7, WebPageAttributeStory],
49791
50416
  [0x4899484E, MessagesVotesList],
49792
50417
  [0xF568028A, BankCardOpenURL],
49793
50418
  [0x3E24E573, PaymentsBankCardData],
@@ -49886,7 +50511,7 @@ export const map = new Map([
49886
50511
  [0x2DBF3432, PhoneGroupCallStreamRtmpURL],
49887
50512
  [0x4576F3F0, AttachMenuBotIconColor],
49888
50513
  [0xB2A7386B, AttachMenuBotIcon],
49889
- [0xC8AA2CD2, AttachMenuBot],
50514
+ [0xD90D8DFE, AttachMenuBot],
49890
50515
  [0xF1D88A5C, AttachMenuBotsNotModified],
49891
50516
  [0x3C4301C0, AttachMenuBots],
49892
50517
  [0x93BF667F, AttachMenuBotsBot],
@@ -49985,15 +50610,13 @@ export const map = new Map([
49985
50610
  [0x74CDA504, MessagePeerVoteInputOption],
49986
50611
  [0x4628F6E6, MessagePeerVoteMultiple],
49987
50612
  [0x3DB8EC63, SponsoredWebPage],
49988
- [0xC64C0B97, StoryViews],
50613
+ [0x8D595CD6, StoryViews],
49989
50614
  [0x51E6EE4F, StoryItemDeleted],
49990
50615
  [0xFFADC913, StoryItemSkipped],
49991
50616
  [0x44C457CE, StoryItem],
49992
- [0x8611A200, UserStories],
49993
50617
  [0x1158FE3E, StoriesAllStoriesNotModified],
49994
- [0x519D899E, StoriesAllStories],
49995
- [0x4FE57DF1, StoriesStories],
49996
- [0x37A6FF5F, StoriesUserStories],
50618
+ [0x6EFC5E81, StoriesAllStories],
50619
+ [0x5DD8C3C8, StoriesStories],
49997
50620
  [0xB0BDEAC5, StoryView],
49998
50621
  [0x46E9B9EC, StoriesStoryViewsList],
49999
50622
  [0xDE9EED1D, StoriesStoryViews],
@@ -50005,5 +50628,14 @@ export const map = new Map([
50005
50628
  [0xBE82DB9C, MediaAreaVenue],
50006
50629
  [0xB282217F, InputMediaAreaVenue],
50007
50630
  [0xDF8B3B22, MediaAreaGeoPoint],
50631
+ [0x14455871, MediaAreaSuggestedReaction],
50632
+ [0x9A35E999, PeerStories],
50633
+ [0xCAE68768, StoriesPeerStories],
50634
+ [0xE5C1AA5C, StoriesBoostsStatus],
50635
+ [0xC3173587, StoriesCanApplyBoostOk],
50636
+ [0x712C4655, StoriesCanApplyBoostReplace],
50637
+ [0x0E9E6380, Booster],
50638
+ [0xF3DD3D1D, StoriesBoostersList],
50639
+ [0xFD5E12BD, MessagesWebPage],
50008
50640
  // deno-lint-ignore no-explicit-any
50009
50641
  ]);