@mtkruto/node 0.1.106 → 0.1.108

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 (91) hide show
  1. package/esm/4_constants.d.ts +2 -2
  2. package/esm/4_constants.js +3 -3
  3. package/esm/5_client.d.ts +1 -0
  4. package/esm/5_client.js +1 -0
  5. package/esm/client/3_types.d.ts +18 -13
  6. package/esm/client/4_client.d.ts +48 -21
  7. package/esm/client/4_client.js +56 -37
  8. package/esm/tl/2_types.d.ts +634 -75
  9. package/esm/tl/2_types.js +2387 -289
  10. package/esm/tl/3_functions.d.ts +260 -57
  11. package/esm/tl/3_functions.js +869 -203
  12. package/esm/types/0_audio.d.ts +9 -9
  13. package/esm/types/0_bot_command.d.ts +2 -0
  14. package/esm/types/0_chat_action.d.ts +1 -0
  15. package/esm/types/0_chat_administrator_rights.d.ts +13 -13
  16. package/esm/types/0_chat_photo.d.ts +7 -6
  17. package/esm/types/0_chat_photo.js +1 -1
  18. package/esm/types/0_contact.d.ts +6 -6
  19. package/esm/types/0_dice.d.ts +3 -3
  20. package/esm/types/0_force_reply.d.ts +4 -4
  21. package/esm/types/0_input_contact_message_content.d.ts +5 -0
  22. package/esm/types/0_input_location_message_content.d.ts +7 -0
  23. package/esm/types/0_input_venue_message_content.d.ts +10 -1
  24. package/esm/types/0_keyboard_button_poll_type.d.ts +3 -3
  25. package/esm/types/0_location.d.ts +7 -7
  26. package/esm/types/0_login_url.d.ts +4 -5
  27. package/esm/types/0_mask_position.d.ts +0 -1
  28. package/esm/types/0_message_entity.d.ts +6 -6
  29. package/esm/types/0_parse_mode.d.ts +1 -0
  30. package/esm/types/0_poll_option.d.ts +2 -2
  31. package/esm/types/0_reply_keyboard_remove.d.ts +3 -3
  32. package/esm/types/0_thumbnail.d.ts +6 -6
  33. package/esm/types/0_venue.d.ts +6 -6
  34. package/esm/types/0_voice.d.ts +6 -6
  35. package/esm/types/0_web_app_info.d.ts +1 -2
  36. package/esm/types/1_animation.d.ts +9 -9
  37. package/esm/types/1_chat.d.ts +29 -28
  38. package/esm/types/1_document.d.ts +6 -7
  39. package/esm/types/1_keyboard_button.d.ts +1 -1
  40. package/esm/types/1_photo.d.ts +3 -3
  41. package/esm/types/1_sticker.d.ts +2 -2
  42. package/esm/types/1_user.d.ts +2 -1
  43. package/esm/types/1_video.d.ts +4 -4
  44. package/esm/types/1_video_note.d.ts +3 -3
  45. package/esm/types/3_message.js +1 -1
  46. package/package.json +1 -1
  47. package/script/4_constants.d.ts +2 -2
  48. package/script/4_constants.js +3 -3
  49. package/script/5_client.d.ts +1 -0
  50. package/script/5_client.js +1 -0
  51. package/script/client/3_types.d.ts +18 -13
  52. package/script/client/4_client.d.ts +48 -21
  53. package/script/client/4_client.js +56 -37
  54. package/script/tl/2_types.d.ts +634 -75
  55. package/script/tl/2_types.js +2454 -321
  56. package/script/tl/3_functions.d.ts +260 -57
  57. package/script/tl/3_functions.js +895 -211
  58. package/script/types/0_audio.d.ts +9 -9
  59. package/script/types/0_bot_command.d.ts +2 -0
  60. package/script/types/0_chat_action.d.ts +1 -0
  61. package/script/types/0_chat_administrator_rights.d.ts +13 -13
  62. package/script/types/0_chat_photo.d.ts +7 -6
  63. package/script/types/0_chat_photo.js +1 -1
  64. package/script/types/0_contact.d.ts +6 -6
  65. package/script/types/0_dice.d.ts +3 -3
  66. package/script/types/0_force_reply.d.ts +4 -4
  67. package/script/types/0_input_contact_message_content.d.ts +5 -0
  68. package/script/types/0_input_location_message_content.d.ts +7 -0
  69. package/script/types/0_input_venue_message_content.d.ts +10 -1
  70. package/script/types/0_keyboard_button_poll_type.d.ts +3 -3
  71. package/script/types/0_location.d.ts +7 -7
  72. package/script/types/0_login_url.d.ts +4 -5
  73. package/script/types/0_mask_position.d.ts +0 -1
  74. package/script/types/0_message_entity.d.ts +6 -6
  75. package/script/types/0_parse_mode.d.ts +1 -0
  76. package/script/types/0_poll_option.d.ts +2 -2
  77. package/script/types/0_reply_keyboard_remove.d.ts +3 -3
  78. package/script/types/0_thumbnail.d.ts +6 -6
  79. package/script/types/0_venue.d.ts +6 -6
  80. package/script/types/0_voice.d.ts +6 -6
  81. package/script/types/0_web_app_info.d.ts +1 -2
  82. package/script/types/1_animation.d.ts +9 -9
  83. package/script/types/1_chat.d.ts +29 -28
  84. package/script/types/1_document.d.ts +6 -7
  85. package/script/types/1_keyboard_button.d.ts +1 -1
  86. package/script/types/1_photo.d.ts +3 -3
  87. package/script/types/1_sticker.d.ts +2 -2
  88. package/script/types/1_user.d.ts +2 -1
  89. package/script/types/1_video.d.ts +4 -4
  90. package/script/types/1_video_note.d.ts +3 -3
  91. package/script/types/3_message.js +1 -1
@@ -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
  import * as types from "./2_types.js";
3
4
  export class Function extends TLObject {
4
5
  constructor() {
@@ -3644,6 +3645,7 @@ export class AccountChangeAuthorizationSettings extends Function {
3644
3645
  static get [paramDesc]() {
3645
3646
  return [
3646
3647
  ["flags", flags, "#"],
3648
+ ["confirmed", "true", "flags.3?true"],
3647
3649
  ["hash", "bigint", "long"],
3648
3650
  ["encryptedRequestsDisabled", "boolean", "flags.0?Bool"],
3649
3651
  ["callRequestsDisabled", "boolean", "flags.1?Bool"],
@@ -3652,6 +3654,7 @@ export class AccountChangeAuthorizationSettings extends Function {
3652
3654
  get [params]() {
3653
3655
  return [
3654
3656
  ["flags", flags, "#"],
3657
+ [this.confirmed ?? null, "true", "flags.3?true"],
3655
3658
  [this.hash, "bigint", "long"],
3656
3659
  [this.encryptedRequestsDisabled ?? null, "boolean", "flags.0?Bool"],
3657
3660
  [this.callRequestsDisabled ?? null, "boolean", "flags.1?Bool"],
@@ -3659,6 +3662,12 @@ export class AccountChangeAuthorizationSettings extends Function {
3659
3662
  }
3660
3663
  constructor(params) {
3661
3664
  super();
3665
+ Object.defineProperty(this, "confirmed", {
3666
+ enumerable: true,
3667
+ configurable: true,
3668
+ writable: true,
3669
+ value: void 0
3670
+ });
3662
3671
  Object.defineProperty(this, "hash", {
3663
3672
  enumerable: true,
3664
3673
  configurable: true,
@@ -3677,6 +3686,7 @@ export class AccountChangeAuthorizationSettings extends Function {
3677
3686
  writable: true,
3678
3687
  value: void 0
3679
3688
  });
3689
+ this.confirmed = params.confirmed;
3680
3690
  this.hash = params.hash;
3681
3691
  this.encryptedRequestsDisabled = params.encryptedRequestsDisabled;
3682
3692
  this.callRequestsDisabled = params.callRequestsDisabled;
@@ -4098,70 +4108,79 @@ export class AccountInvalidateSignInCodes extends Function {
4098
4108
  this.codes = params.codes;
4099
4109
  }
4100
4110
  }
4101
- export class UsersGetUsers extends Function {
4111
+ export class AccountUpdateColor extends Function {
4102
4112
  get [id]() {
4103
- return 0x0D91A548;
4113
+ return 0xA001CC43;
4104
4114
  }
4105
4115
  static get [paramDesc]() {
4106
4116
  return [
4107
- ["id", [types._TypeInputUser], "Vector<InputUser>"],
4117
+ ["flags", flags, "#"],
4118
+ ["color", "number", "int"],
4119
+ ["backgroundEmojiId", "bigint", "flags.0?long"],
4108
4120
  ];
4109
4121
  }
4110
4122
  get [params]() {
4111
4123
  return [
4112
- [this.id, [types._TypeInputUser], "Vector<InputUser>"],
4124
+ ["flags", flags, "#"],
4125
+ [this.color, "number", "int"],
4126
+ [this.backgroundEmojiId ?? null, "bigint", "flags.0?long"],
4113
4127
  ];
4114
4128
  }
4115
4129
  constructor(params) {
4116
4130
  super();
4117
- Object.defineProperty(this, "id", {
4131
+ Object.defineProperty(this, "color", {
4118
4132
  enumerable: true,
4119
4133
  configurable: true,
4120
4134
  writable: true,
4121
4135
  value: void 0
4122
4136
  });
4123
- this.id = params.id;
4137
+ Object.defineProperty(this, "backgroundEmojiId", {
4138
+ enumerable: true,
4139
+ configurable: true,
4140
+ writable: true,
4141
+ value: void 0
4142
+ });
4143
+ this.color = params.color;
4144
+ this.backgroundEmojiId = params.backgroundEmojiId;
4124
4145
  }
4125
4146
  }
4126
- export class UsersGetFullUser extends Function {
4147
+ export class AccountGetDefaultBackgroundEmojis extends Function {
4127
4148
  get [id]() {
4128
- return 0xB60F5918;
4149
+ return 0xA60AB9CE;
4129
4150
  }
4130
4151
  static get [paramDesc]() {
4131
4152
  return [
4132
- ["id", types._TypeInputUser, "InputUser"],
4153
+ ["hash", "bigint", "long"],
4133
4154
  ];
4134
4155
  }
4135
4156
  get [params]() {
4136
4157
  return [
4137
- [this.id, types._TypeInputUser, "InputUser"],
4158
+ [this.hash, "bigint", "long"],
4138
4159
  ];
4139
4160
  }
4140
4161
  constructor(params) {
4141
4162
  super();
4142
- Object.defineProperty(this, "id", {
4163
+ Object.defineProperty(this, "hash", {
4143
4164
  enumerable: true,
4144
4165
  configurable: true,
4145
4166
  writable: true,
4146
4167
  value: void 0
4147
4168
  });
4148
- this.id = params.id;
4169
+ this.hash = params.hash;
4149
4170
  }
4150
4171
  }
4151
- export class UsersSetSecureValueErrors extends Function {
4172
+ export class UsersGetUsers extends Function {
4152
4173
  get [id]() {
4153
- return 0x90C894B5;
4174
+ return 0x0D91A548;
4154
4175
  }
4155
4176
  static get [paramDesc]() {
4156
4177
  return [
4157
- ["id", types._TypeInputUser, "InputUser"],
4158
- ["errors", [types._TypeSecureValueError], "Vector<SecureValueError>"],
4178
+ ["id", [types._TypeInputUser], "Vector<InputUser>"],
4159
4179
  ];
4160
4180
  }
4161
4181
  get [params]() {
4162
4182
  return [
4163
- [this.id, types._TypeInputUser, "InputUser"],
4164
- [this.errors, [types._TypeSecureValueError], "Vector<SecureValueError>"],
4183
+ [this.id, [types._TypeInputUser], "Vector<InputUser>"],
4165
4184
  ];
4166
4185
  }
4167
4186
  constructor(params) {
@@ -4172,28 +4191,48 @@ export class UsersSetSecureValueErrors extends Function {
4172
4191
  writable: true,
4173
4192
  value: void 0
4174
4193
  });
4175
- Object.defineProperty(this, "errors", {
4194
+ this.id = params.id;
4195
+ }
4196
+ }
4197
+ export class UsersGetFullUser extends Function {
4198
+ get [id]() {
4199
+ return 0xB60F5918;
4200
+ }
4201
+ static get [paramDesc]() {
4202
+ return [
4203
+ ["id", types._TypeInputUser, "InputUser"],
4204
+ ];
4205
+ }
4206
+ get [params]() {
4207
+ return [
4208
+ [this.id, types._TypeInputUser, "InputUser"],
4209
+ ];
4210
+ }
4211
+ constructor(params) {
4212
+ super();
4213
+ Object.defineProperty(this, "id", {
4176
4214
  enumerable: true,
4177
4215
  configurable: true,
4178
4216
  writable: true,
4179
4217
  value: void 0
4180
4218
  });
4181
4219
  this.id = params.id;
4182
- this.errors = params.errors;
4183
4220
  }
4184
4221
  }
4185
- export class UsersGetStoriesMaxIDs extends Function {
4222
+ export class UsersSetSecureValueErrors extends Function {
4186
4223
  get [id]() {
4187
- return 0xCA1CB9AB;
4224
+ return 0x90C894B5;
4188
4225
  }
4189
4226
  static get [paramDesc]() {
4190
4227
  return [
4191
- ["id", [types._TypeInputUser], "Vector<InputUser>"],
4228
+ ["id", types._TypeInputUser, "InputUser"],
4229
+ ["errors", [types._TypeSecureValueError], "Vector<SecureValueError>"],
4192
4230
  ];
4193
4231
  }
4194
4232
  get [params]() {
4195
4233
  return [
4196
- [this.id, [types._TypeInputUser], "Vector<InputUser>"],
4234
+ [this.id, types._TypeInputUser, "InputUser"],
4235
+ [this.errors, [types._TypeSecureValueError], "Vector<SecureValueError>"],
4197
4236
  ];
4198
4237
  }
4199
4238
  constructor(params) {
@@ -4204,7 +4243,14 @@ export class UsersGetStoriesMaxIDs extends Function {
4204
4243
  writable: true,
4205
4244
  value: void 0
4206
4245
  });
4246
+ Object.defineProperty(this, "errors", {
4247
+ enumerable: true,
4248
+ configurable: true,
4249
+ writable: true,
4250
+ value: void 0
4251
+ });
4207
4252
  this.id = params.id;
4253
+ this.errors = params.errors;
4208
4254
  }
4209
4255
  }
4210
4256
  export class ContactsGetContactIDs extends Function {
@@ -5002,40 +5048,6 @@ export class ContactsEditCloseFriends extends Function {
5002
5048
  this.id = params.id;
5003
5049
  }
5004
5050
  }
5005
- export class ContactsToggleStoriesHidden extends Function {
5006
- get [id]() {
5007
- return 0x753FB865;
5008
- }
5009
- static get [paramDesc]() {
5010
- return [
5011
- ["id", types._TypeInputUser, "InputUser"],
5012
- ["hidden", "boolean", "Bool"],
5013
- ];
5014
- }
5015
- get [params]() {
5016
- return [
5017
- [this.id, types._TypeInputUser, "InputUser"],
5018
- [this.hidden, "boolean", "Bool"],
5019
- ];
5020
- }
5021
- constructor(params) {
5022
- super();
5023
- Object.defineProperty(this, "id", {
5024
- enumerable: true,
5025
- configurable: true,
5026
- writable: true,
5027
- value: void 0
5028
- });
5029
- Object.defineProperty(this, "hidden", {
5030
- enumerable: true,
5031
- configurable: true,
5032
- writable: true,
5033
- value: void 0
5034
- });
5035
- this.id = params.id;
5036
- this.hidden = params.hidden;
5037
- }
5038
- }
5039
5051
  export class ContactsSetBlocked extends Function {
5040
5052
  get [id]() {
5041
5053
  return 0x94C65C76;
@@ -5635,6 +5647,7 @@ export class MessagesSendMessage extends Function {
5635
5647
  ["clearDraft", "true", "flags.7?true"],
5636
5648
  ["noforwards", "true", "flags.14?true"],
5637
5649
  ["updateStickersetsOrder", "true", "flags.15?true"],
5650
+ ["invertMedia", "true", "flags.16?true"],
5638
5651
  ["peer", types._TypeInputPeer, "InputPeer"],
5639
5652
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5640
5653
  ["message", "string", "string"],
@@ -5654,6 +5667,7 @@ export class MessagesSendMessage extends Function {
5654
5667
  [this.clearDraft ?? null, "true", "flags.7?true"],
5655
5668
  [this.noforwards ?? null, "true", "flags.14?true"],
5656
5669
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5670
+ [this.invertMedia ?? null, "true", "flags.16?true"],
5657
5671
  [this.peer, types._TypeInputPeer, "InputPeer"],
5658
5672
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5659
5673
  [this.message, "string", "string"],
@@ -5702,6 +5716,12 @@ export class MessagesSendMessage extends Function {
5702
5716
  writable: true,
5703
5717
  value: void 0
5704
5718
  });
5719
+ Object.defineProperty(this, "invertMedia", {
5720
+ enumerable: true,
5721
+ configurable: true,
5722
+ writable: true,
5723
+ value: void 0
5724
+ });
5705
5725
  Object.defineProperty(this, "peer", {
5706
5726
  enumerable: true,
5707
5727
  configurable: true,
@@ -5756,6 +5776,7 @@ export class MessagesSendMessage extends Function {
5756
5776
  this.clearDraft = params.clearDraft;
5757
5777
  this.noforwards = params.noforwards;
5758
5778
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5779
+ this.invertMedia = params.invertMedia;
5759
5780
  this.peer = params.peer;
5760
5781
  this.replyTo = params.replyTo;
5761
5782
  this.message = params.message;
@@ -5778,6 +5799,7 @@ export class MessagesSendMedia extends Function {
5778
5799
  ["clearDraft", "true", "flags.7?true"],
5779
5800
  ["noforwards", "true", "flags.14?true"],
5780
5801
  ["updateStickersetsOrder", "true", "flags.15?true"],
5802
+ ["invertMedia", "true", "flags.16?true"],
5781
5803
  ["peer", types._TypeInputPeer, "InputPeer"],
5782
5804
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5783
5805
  ["media", types._TypeInputMedia, "InputMedia"],
@@ -5797,6 +5819,7 @@ export class MessagesSendMedia extends Function {
5797
5819
  [this.clearDraft ?? null, "true", "flags.7?true"],
5798
5820
  [this.noforwards ?? null, "true", "flags.14?true"],
5799
5821
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
5822
+ [this.invertMedia ?? null, "true", "flags.16?true"],
5800
5823
  [this.peer, types._TypeInputPeer, "InputPeer"],
5801
5824
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
5802
5825
  [this.media, types._TypeInputMedia, "InputMedia"],
@@ -5840,6 +5863,12 @@ export class MessagesSendMedia extends Function {
5840
5863
  writable: true,
5841
5864
  value: void 0
5842
5865
  });
5866
+ Object.defineProperty(this, "invertMedia", {
5867
+ enumerable: true,
5868
+ configurable: true,
5869
+ writable: true,
5870
+ value: void 0
5871
+ });
5843
5872
  Object.defineProperty(this, "peer", {
5844
5873
  enumerable: true,
5845
5874
  configurable: true,
@@ -5899,6 +5928,7 @@ export class MessagesSendMedia extends Function {
5899
5928
  this.clearDraft = params.clearDraft;
5900
5929
  this.noforwards = params.noforwards;
5901
5930
  this.updateStickersetsOrder = params.updateStickersetsOrder;
5931
+ this.invertMedia = params.invertMedia;
5902
5932
  this.peer = params.peer;
5903
5933
  this.replyTo = params.replyTo;
5904
5934
  this.media = params.media;
@@ -7888,6 +7918,7 @@ export class MessagesEditMessage extends Function {
7888
7918
  return [
7889
7919
  ["flags", flags, "#"],
7890
7920
  ["noWebpage", "true", "flags.1?true"],
7921
+ ["invertMedia", "true", "flags.16?true"],
7891
7922
  ["peer", types._TypeInputPeer, "InputPeer"],
7892
7923
  ["id", "number", "int"],
7893
7924
  ["message", "string", "flags.11?string"],
@@ -7901,6 +7932,7 @@ export class MessagesEditMessage extends Function {
7901
7932
  return [
7902
7933
  ["flags", flags, "#"],
7903
7934
  [this.noWebpage ?? null, "true", "flags.1?true"],
7935
+ [this.invertMedia ?? null, "true", "flags.16?true"],
7904
7936
  [this.peer, types._TypeInputPeer, "InputPeer"],
7905
7937
  [this.id, "number", "int"],
7906
7938
  [this.message ?? null, "string", "flags.11?string"],
@@ -7918,6 +7950,12 @@ export class MessagesEditMessage extends Function {
7918
7950
  writable: true,
7919
7951
  value: void 0
7920
7952
  });
7953
+ Object.defineProperty(this, "invertMedia", {
7954
+ enumerable: true,
7955
+ configurable: true,
7956
+ writable: true,
7957
+ value: void 0
7958
+ });
7921
7959
  Object.defineProperty(this, "peer", {
7922
7960
  enumerable: true,
7923
7961
  configurable: true,
@@ -7961,6 +7999,7 @@ export class MessagesEditMessage extends Function {
7961
7999
  value: void 0
7962
8000
  });
7963
8001
  this.noWebpage = params.noWebpage;
8002
+ this.invertMedia = params.invertMedia;
7964
8003
  this.peer = params.peer;
7965
8004
  this.id = params.id;
7966
8005
  this.message = params.message;
@@ -7978,6 +8017,7 @@ export class MessagesEditInlineBotMessage extends Function {
7978
8017
  return [
7979
8018
  ["flags", flags, "#"],
7980
8019
  ["noWebpage", "true", "flags.1?true"],
8020
+ ["invertMedia", "true", "flags.16?true"],
7981
8021
  ["id", types._TypeInputBotInlineMessageID, "InputBotInlineMessageID"],
7982
8022
  ["message", "string", "flags.11?string"],
7983
8023
  ["media", types._TypeInputMedia, "flags.14?InputMedia"],
@@ -7989,6 +8029,7 @@ export class MessagesEditInlineBotMessage extends Function {
7989
8029
  return [
7990
8030
  ["flags", flags, "#"],
7991
8031
  [this.noWebpage ?? null, "true", "flags.1?true"],
8032
+ [this.invertMedia ?? null, "true", "flags.16?true"],
7992
8033
  [this.id, types._TypeInputBotInlineMessageID, "InputBotInlineMessageID"],
7993
8034
  [this.message ?? null, "string", "flags.11?string"],
7994
8035
  [this.media ?? null, types._TypeInputMedia, "flags.14?InputMedia"],
@@ -8004,6 +8045,12 @@ export class MessagesEditInlineBotMessage extends Function {
8004
8045
  writable: true,
8005
8046
  value: void 0
8006
8047
  });
8048
+ Object.defineProperty(this, "invertMedia", {
8049
+ enumerable: true,
8050
+ configurable: true,
8051
+ writable: true,
8052
+ value: void 0
8053
+ });
8007
8054
  Object.defineProperty(this, "id", {
8008
8055
  enumerable: true,
8009
8056
  configurable: true,
@@ -8035,6 +8082,7 @@ export class MessagesEditInlineBotMessage extends Function {
8035
8082
  value: void 0
8036
8083
  });
8037
8084
  this.noWebpage = params.noWebpage;
8085
+ this.invertMedia = params.invertMedia;
8038
8086
  this.id = params.id;
8039
8087
  this.message = params.message;
8040
8088
  this.media = params.media;
@@ -8195,28 +8243,30 @@ export class MessagesGetPeerDialogs extends Function {
8195
8243
  }
8196
8244
  export class MessagesSaveDraft extends Function {
8197
8245
  get [id]() {
8198
- return 0xB4331E3F;
8246
+ return 0x7FF3B806;
8199
8247
  }
8200
8248
  static get [paramDesc]() {
8201
8249
  return [
8202
8250
  ["flags", flags, "#"],
8203
8251
  ["noWebpage", "true", "flags.1?true"],
8204
- ["replyToMsgId", "number", "flags.0?int"],
8205
- ["topMsgId", "number", "flags.2?int"],
8252
+ ["invertMedia", "true", "flags.6?true"],
8253
+ ["replyTo", types._TypeInputReplyTo, "flags.4?InputReplyTo"],
8206
8254
  ["peer", types._TypeInputPeer, "InputPeer"],
8207
8255
  ["message", "string", "string"],
8208
8256
  ["entities", [types._TypeMessageEntity], "flags.3?Vector<MessageEntity>"],
8257
+ ["media", types._TypeInputMedia, "flags.5?InputMedia"],
8209
8258
  ];
8210
8259
  }
8211
8260
  get [params]() {
8212
8261
  return [
8213
8262
  ["flags", flags, "#"],
8214
8263
  [this.noWebpage ?? null, "true", "flags.1?true"],
8215
- [this.replyToMsgId ?? null, "number", "flags.0?int"],
8216
- [this.topMsgId ?? null, "number", "flags.2?int"],
8264
+ [this.invertMedia ?? null, "true", "flags.6?true"],
8265
+ [this.replyTo ?? null, types._TypeInputReplyTo, "flags.4?InputReplyTo"],
8217
8266
  [this.peer, types._TypeInputPeer, "InputPeer"],
8218
8267
  [this.message, "string", "string"],
8219
8268
  [this.entities ?? null, [types._TypeMessageEntity], "flags.3?Vector<MessageEntity>"],
8269
+ [this.media ?? null, types._TypeInputMedia, "flags.5?InputMedia"],
8220
8270
  ];
8221
8271
  }
8222
8272
  constructor(params) {
@@ -8227,13 +8277,13 @@ export class MessagesSaveDraft extends Function {
8227
8277
  writable: true,
8228
8278
  value: void 0
8229
8279
  });
8230
- Object.defineProperty(this, "replyToMsgId", {
8280
+ Object.defineProperty(this, "invertMedia", {
8231
8281
  enumerable: true,
8232
8282
  configurable: true,
8233
8283
  writable: true,
8234
8284
  value: void 0
8235
8285
  });
8236
- Object.defineProperty(this, "topMsgId", {
8286
+ Object.defineProperty(this, "replyTo", {
8237
8287
  enumerable: true,
8238
8288
  configurable: true,
8239
8289
  writable: true,
@@ -8257,12 +8307,19 @@ export class MessagesSaveDraft extends Function {
8257
8307
  writable: true,
8258
8308
  value: void 0
8259
8309
  });
8310
+ Object.defineProperty(this, "media", {
8311
+ enumerable: true,
8312
+ configurable: true,
8313
+ writable: true,
8314
+ value: void 0
8315
+ });
8260
8316
  this.noWebpage = params.noWebpage;
8261
- this.replyToMsgId = params.replyToMsgId;
8262
- this.topMsgId = params.topMsgId;
8317
+ this.invertMedia = params.invertMedia;
8318
+ this.replyTo = params.replyTo;
8263
8319
  this.peer = params.peer;
8264
8320
  this.message = params.message;
8265
8321
  this.entities = params.entities;
8322
+ this.media = params.media;
8266
8323
  }
8267
8324
  }
8268
8325
  export class MessagesGetAllDrafts extends Function {
@@ -8798,7 +8855,7 @@ export class MessagesGetCommonChats extends Function {
8798
8855
  }
8799
8856
  export class MessagesGetWebPage extends Function {
8800
8857
  get [id]() {
8801
- return 0x32CA8F91;
8858
+ return 0x8D9692A3;
8802
8859
  }
8803
8860
  static get [paramDesc]() {
8804
8861
  return [
@@ -9334,6 +9391,7 @@ export class MessagesSendMultiMedia extends Function {
9334
9391
  ["clearDraft", "true", "flags.7?true"],
9335
9392
  ["noforwards", "true", "flags.14?true"],
9336
9393
  ["updateStickersetsOrder", "true", "flags.15?true"],
9394
+ ["invertMedia", "true", "flags.16?true"],
9337
9395
  ["peer", types._TypeInputPeer, "InputPeer"],
9338
9396
  ["replyTo", types._TypeInputReplyTo, "flags.0?InputReplyTo"],
9339
9397
  ["multiMedia", [types._TypeInputSingleMedia], "Vector<InputSingleMedia>"],
@@ -9349,6 +9407,7 @@ export class MessagesSendMultiMedia extends Function {
9349
9407
  [this.clearDraft ?? null, "true", "flags.7?true"],
9350
9408
  [this.noforwards ?? null, "true", "flags.14?true"],
9351
9409
  [this.updateStickersetsOrder ?? null, "true", "flags.15?true"],
9410
+ [this.invertMedia ?? null, "true", "flags.16?true"],
9352
9411
  [this.peer, types._TypeInputPeer, "InputPeer"],
9353
9412
  [this.replyTo ?? null, types._TypeInputReplyTo, "flags.0?InputReplyTo"],
9354
9413
  [this.multiMedia, [types._TypeInputSingleMedia], "Vector<InputSingleMedia>"],
@@ -9388,6 +9447,12 @@ export class MessagesSendMultiMedia extends Function {
9388
9447
  writable: true,
9389
9448
  value: void 0
9390
9449
  });
9450
+ Object.defineProperty(this, "invertMedia", {
9451
+ enumerable: true,
9452
+ configurable: true,
9453
+ writable: true,
9454
+ value: void 0
9455
+ });
9391
9456
  Object.defineProperty(this, "peer", {
9392
9457
  enumerable: true,
9393
9458
  configurable: true,
@@ -9423,6 +9488,7 @@ export class MessagesSendMultiMedia extends Function {
9423
9488
  this.clearDraft = params.clearDraft;
9424
9489
  this.noforwards = params.noforwards;
9425
9490
  this.updateStickersetsOrder = params.updateStickersetsOrder;
9491
+ this.invertMedia = params.invertMedia;
9426
9492
  this.peer = params.peer;
9427
9493
  this.replyTo = params.replyTo;
9428
9494
  this.multiMedia = params.multiMedia;
@@ -12402,14 +12468,16 @@ export class MessagesProlongWebView extends Function {
12402
12468
  }
12403
12469
  export class MessagesRequestSimpleWebView extends Function {
12404
12470
  get [id]() {
12405
- return 0x299BEC8E;
12471
+ return 0x1A46500A;
12406
12472
  }
12407
12473
  static get [paramDesc]() {
12408
12474
  return [
12409
12475
  ["flags", flags, "#"],
12410
12476
  ["fromSwitchWebview", "true", "flags.1?true"],
12477
+ ["fromSideMenu", "true", "flags.2?true"],
12411
12478
  ["bot", types._TypeInputUser, "InputUser"],
12412
- ["url", "string", "string"],
12479
+ ["url", "string", "flags.3?string"],
12480
+ ["startParam", "string", "flags.4?string"],
12413
12481
  ["themeParams", types._TypeDataJSON, "flags.0?DataJSON"],
12414
12482
  ["platform", "string", "string"],
12415
12483
  ];
@@ -12418,8 +12486,10 @@ export class MessagesRequestSimpleWebView extends Function {
12418
12486
  return [
12419
12487
  ["flags", flags, "#"],
12420
12488
  [this.fromSwitchWebview ?? null, "true", "flags.1?true"],
12489
+ [this.fromSideMenu ?? null, "true", "flags.2?true"],
12421
12490
  [this.bot, types._TypeInputUser, "InputUser"],
12422
- [this.url, "string", "string"],
12491
+ [this.url ?? null, "string", "flags.3?string"],
12492
+ [this.startParam ?? null, "string", "flags.4?string"],
12423
12493
  [this.themeParams ?? null, types._TypeDataJSON, "flags.0?DataJSON"],
12424
12494
  [this.platform, "string", "string"],
12425
12495
  ];
@@ -12432,6 +12502,12 @@ export class MessagesRequestSimpleWebView extends Function {
12432
12502
  writable: true,
12433
12503
  value: void 0
12434
12504
  });
12505
+ Object.defineProperty(this, "fromSideMenu", {
12506
+ enumerable: true,
12507
+ configurable: true,
12508
+ writable: true,
12509
+ value: void 0
12510
+ });
12435
12511
  Object.defineProperty(this, "bot", {
12436
12512
  enumerable: true,
12437
12513
  configurable: true,
@@ -12444,6 +12520,12 @@ export class MessagesRequestSimpleWebView extends Function {
12444
12520
  writable: true,
12445
12521
  value: void 0
12446
12522
  });
12523
+ Object.defineProperty(this, "startParam", {
12524
+ enumerable: true,
12525
+ configurable: true,
12526
+ writable: true,
12527
+ value: void 0
12528
+ });
12447
12529
  Object.defineProperty(this, "themeParams", {
12448
12530
  enumerable: true,
12449
12531
  configurable: true,
@@ -12457,8 +12539,10 @@ export class MessagesRequestSimpleWebView extends Function {
12457
12539
  value: void 0
12458
12540
  });
12459
12541
  this.fromSwitchWebview = params.fromSwitchWebview;
12542
+ this.fromSideMenu = params.fromSideMenu;
12460
12543
  this.bot = params.bot;
12461
12544
  this.url = params.url;
12545
+ this.startParam = params.startParam;
12462
12546
  this.themeParams = params.themeParams;
12463
12547
  this.platform = params.platform;
12464
12548
  }
@@ -16699,6 +16783,51 @@ export class ChannelsClickSponsoredMessage extends Function {
16699
16783
  this.randomId = params.randomId;
16700
16784
  }
16701
16785
  }
16786
+ export class ChannelsUpdateColor extends Function {
16787
+ get [id]() {
16788
+ return 0x621A201F;
16789
+ }
16790
+ static get [paramDesc]() {
16791
+ return [
16792
+ ["flags", flags, "#"],
16793
+ ["channel", types._TypeInputChannel, "InputChannel"],
16794
+ ["color", "number", "int"],
16795
+ ["backgroundEmojiId", "bigint", "flags.0?long"],
16796
+ ];
16797
+ }
16798
+ get [params]() {
16799
+ return [
16800
+ ["flags", flags, "#"],
16801
+ [this.channel, types._TypeInputChannel, "InputChannel"],
16802
+ [this.color, "number", "int"],
16803
+ [this.backgroundEmojiId ?? null, "bigint", "flags.0?long"],
16804
+ ];
16805
+ }
16806
+ constructor(params) {
16807
+ super();
16808
+ Object.defineProperty(this, "channel", {
16809
+ enumerable: true,
16810
+ configurable: true,
16811
+ writable: true,
16812
+ value: void 0
16813
+ });
16814
+ Object.defineProperty(this, "color", {
16815
+ enumerable: true,
16816
+ configurable: true,
16817
+ writable: true,
16818
+ value: void 0
16819
+ });
16820
+ Object.defineProperty(this, "backgroundEmojiId", {
16821
+ enumerable: true,
16822
+ configurable: true,
16823
+ writable: true,
16824
+ value: void 0
16825
+ });
16826
+ this.channel = params.channel;
16827
+ this.color = params.color;
16828
+ this.backgroundEmojiId = params.backgroundEmojiId;
16829
+ }
16830
+ }
16702
16831
  export class BotsSendCustomRequest extends Function {
16703
16832
  get [id]() {
16704
16833
  return 0xAA2769ED;
@@ -17163,118 +17292,211 @@ export class BotsToggleUsername extends Function {
17163
17292
  this.active = params.active;
17164
17293
  }
17165
17294
  }
17166
- export class PaymentsGetPaymentForm extends Function {
17295
+ export class BotsCanSendMessage extends Function {
17167
17296
  get [id]() {
17168
- return 0x37148DBB;
17297
+ return 0x1359F4E6;
17169
17298
  }
17170
17299
  static get [paramDesc]() {
17171
17300
  return [
17172
- ["flags", flags, "#"],
17173
- ["invoice", types._TypeInputInvoice, "InputInvoice"],
17174
- ["themeParams", types._TypeDataJSON, "flags.0?DataJSON"],
17301
+ ["bot", types._TypeInputUser, "InputUser"],
17175
17302
  ];
17176
17303
  }
17177
17304
  get [params]() {
17178
17305
  return [
17179
- ["flags", flags, "#"],
17180
- [this.invoice, types._TypeInputInvoice, "InputInvoice"],
17181
- [this.themeParams ?? null, types._TypeDataJSON, "flags.0?DataJSON"],
17306
+ [this.bot, types._TypeInputUser, "InputUser"],
17182
17307
  ];
17183
17308
  }
17184
17309
  constructor(params) {
17185
17310
  super();
17186
- Object.defineProperty(this, "invoice", {
17187
- enumerable: true,
17188
- configurable: true,
17189
- writable: true,
17190
- value: void 0
17191
- });
17192
- Object.defineProperty(this, "themeParams", {
17311
+ Object.defineProperty(this, "bot", {
17193
17312
  enumerable: true,
17194
17313
  configurable: true,
17195
17314
  writable: true,
17196
17315
  value: void 0
17197
17316
  });
17198
- this.invoice = params.invoice;
17199
- this.themeParams = params.themeParams;
17317
+ this.bot = params.bot;
17200
17318
  }
17201
17319
  }
17202
- export class PaymentsGetPaymentReceipt extends Function {
17320
+ export class BotsAllowSendMessage extends Function {
17203
17321
  get [id]() {
17204
- return 0x2478D1CC;
17322
+ return 0xF132E3EF;
17205
17323
  }
17206
17324
  static get [paramDesc]() {
17207
17325
  return [
17208
- ["peer", types._TypeInputPeer, "InputPeer"],
17209
- ["msgId", "number", "int"],
17326
+ ["bot", types._TypeInputUser, "InputUser"],
17210
17327
  ];
17211
17328
  }
17212
17329
  get [params]() {
17213
17330
  return [
17214
- [this.peer, types._TypeInputPeer, "InputPeer"],
17215
- [this.msgId, "number", "int"],
17331
+ [this.bot, types._TypeInputUser, "InputUser"],
17216
17332
  ];
17217
17333
  }
17218
17334
  constructor(params) {
17219
17335
  super();
17220
- Object.defineProperty(this, "peer", {
17221
- enumerable: true,
17222
- configurable: true,
17223
- writable: true,
17224
- value: void 0
17225
- });
17226
- Object.defineProperty(this, "msgId", {
17336
+ Object.defineProperty(this, "bot", {
17227
17337
  enumerable: true,
17228
17338
  configurable: true,
17229
17339
  writable: true,
17230
17340
  value: void 0
17231
17341
  });
17232
- this.peer = params.peer;
17233
- this.msgId = params.msgId;
17342
+ this.bot = params.bot;
17234
17343
  }
17235
17344
  }
17236
- export class PaymentsValidateRequestedInfo extends Function {
17345
+ export class BotsInvokeWebViewCustomMethod extends Function {
17237
17346
  get [id]() {
17238
- return 0xB6C8F12B;
17347
+ return 0x087FC5E7;
17239
17348
  }
17240
17349
  static get [paramDesc]() {
17241
17350
  return [
17242
- ["flags", flags, "#"],
17243
- ["save", "true", "flags.0?true"],
17244
- ["invoice", types._TypeInputInvoice, "InputInvoice"],
17245
- ["info", types._TypePaymentRequestedInfo, "PaymentRequestedInfo"],
17351
+ ["bot", types._TypeInputUser, "InputUser"],
17352
+ ["customMethod", "string", "string"],
17353
+ ["params", types._TypeDataJSON, "DataJSON"],
17246
17354
  ];
17247
17355
  }
17248
17356
  get [params]() {
17249
17357
  return [
17250
- ["flags", flags, "#"],
17251
- [this.save ?? null, "true", "flags.0?true"],
17252
- [this.invoice, types._TypeInputInvoice, "InputInvoice"],
17253
- [this.info, types._TypePaymentRequestedInfo, "PaymentRequestedInfo"],
17358
+ [this.bot, types._TypeInputUser, "InputUser"],
17359
+ [this.customMethod, "string", "string"],
17360
+ [this.params, types._TypeDataJSON, "DataJSON"],
17254
17361
  ];
17255
17362
  }
17256
17363
  constructor(params) {
17257
17364
  super();
17258
- Object.defineProperty(this, "save", {
17365
+ Object.defineProperty(this, "bot", {
17259
17366
  enumerable: true,
17260
17367
  configurable: true,
17261
17368
  writable: true,
17262
17369
  value: void 0
17263
17370
  });
17264
- Object.defineProperty(this, "invoice", {
17371
+ Object.defineProperty(this, "customMethod", {
17265
17372
  enumerable: true,
17266
17373
  configurable: true,
17267
17374
  writable: true,
17268
17375
  value: void 0
17269
17376
  });
17270
- Object.defineProperty(this, "info", {
17377
+ Object.defineProperty(this, "params", {
17271
17378
  enumerable: true,
17272
17379
  configurable: true,
17273
17380
  writable: true,
17274
17381
  value: void 0
17275
17382
  });
17276
- this.save = params.save;
17277
- this.invoice = params.invoice;
17383
+ this.bot = params.bot;
17384
+ this.customMethod = params.customMethod;
17385
+ this.params = params.params;
17386
+ }
17387
+ }
17388
+ export class PaymentsGetPaymentForm extends Function {
17389
+ get [id]() {
17390
+ return 0x37148DBB;
17391
+ }
17392
+ static get [paramDesc]() {
17393
+ return [
17394
+ ["flags", flags, "#"],
17395
+ ["invoice", types._TypeInputInvoice, "InputInvoice"],
17396
+ ["themeParams", types._TypeDataJSON, "flags.0?DataJSON"],
17397
+ ];
17398
+ }
17399
+ get [params]() {
17400
+ return [
17401
+ ["flags", flags, "#"],
17402
+ [this.invoice, types._TypeInputInvoice, "InputInvoice"],
17403
+ [this.themeParams ?? null, types._TypeDataJSON, "flags.0?DataJSON"],
17404
+ ];
17405
+ }
17406
+ constructor(params) {
17407
+ super();
17408
+ Object.defineProperty(this, "invoice", {
17409
+ enumerable: true,
17410
+ configurable: true,
17411
+ writable: true,
17412
+ value: void 0
17413
+ });
17414
+ Object.defineProperty(this, "themeParams", {
17415
+ enumerable: true,
17416
+ configurable: true,
17417
+ writable: true,
17418
+ value: void 0
17419
+ });
17420
+ this.invoice = params.invoice;
17421
+ this.themeParams = params.themeParams;
17422
+ }
17423
+ }
17424
+ export class PaymentsGetPaymentReceipt extends Function {
17425
+ get [id]() {
17426
+ return 0x2478D1CC;
17427
+ }
17428
+ static get [paramDesc]() {
17429
+ return [
17430
+ ["peer", types._TypeInputPeer, "InputPeer"],
17431
+ ["msgId", "number", "int"],
17432
+ ];
17433
+ }
17434
+ get [params]() {
17435
+ return [
17436
+ [this.peer, types._TypeInputPeer, "InputPeer"],
17437
+ [this.msgId, "number", "int"],
17438
+ ];
17439
+ }
17440
+ constructor(params) {
17441
+ super();
17442
+ Object.defineProperty(this, "peer", {
17443
+ enumerable: true,
17444
+ configurable: true,
17445
+ writable: true,
17446
+ value: void 0
17447
+ });
17448
+ Object.defineProperty(this, "msgId", {
17449
+ enumerable: true,
17450
+ configurable: true,
17451
+ writable: true,
17452
+ value: void 0
17453
+ });
17454
+ this.peer = params.peer;
17455
+ this.msgId = params.msgId;
17456
+ }
17457
+ }
17458
+ export class PaymentsValidateRequestedInfo extends Function {
17459
+ get [id]() {
17460
+ return 0xB6C8F12B;
17461
+ }
17462
+ static get [paramDesc]() {
17463
+ return [
17464
+ ["flags", flags, "#"],
17465
+ ["save", "true", "flags.0?true"],
17466
+ ["invoice", types._TypeInputInvoice, "InputInvoice"],
17467
+ ["info", types._TypePaymentRequestedInfo, "PaymentRequestedInfo"],
17468
+ ];
17469
+ }
17470
+ get [params]() {
17471
+ return [
17472
+ ["flags", flags, "#"],
17473
+ [this.save ?? null, "true", "flags.0?true"],
17474
+ [this.invoice, types._TypeInputInvoice, "InputInvoice"],
17475
+ [this.info, types._TypePaymentRequestedInfo, "PaymentRequestedInfo"],
17476
+ ];
17477
+ }
17478
+ constructor(params) {
17479
+ super();
17480
+ Object.defineProperty(this, "save", {
17481
+ enumerable: true,
17482
+ configurable: true,
17483
+ writable: true,
17484
+ value: void 0
17485
+ });
17486
+ Object.defineProperty(this, "invoice", {
17487
+ enumerable: true,
17488
+ configurable: true,
17489
+ writable: true,
17490
+ value: void 0
17491
+ });
17492
+ Object.defineProperty(this, "info", {
17493
+ enumerable: true,
17494
+ configurable: true,
17495
+ writable: true,
17496
+ value: void 0
17497
+ });
17498
+ this.save = params.save;
17499
+ this.invoice = params.invoice;
17278
17500
  this.info = params.info;
17279
17501
  }
17280
17502
  }
@@ -17543,6 +17765,160 @@ export class PaymentsCanPurchasePremium extends Function {
17543
17765
  this.purpose = params.purpose;
17544
17766
  }
17545
17767
  }
17768
+ export class PaymentsGetPremiumGiftCodeOptions extends Function {
17769
+ get [id]() {
17770
+ return 0x2757BA54;
17771
+ }
17772
+ static get [paramDesc]() {
17773
+ return [
17774
+ ["flags", flags, "#"],
17775
+ ["boostPeer", types._TypeInputPeer, "flags.0?InputPeer"],
17776
+ ];
17777
+ }
17778
+ get [params]() {
17779
+ return [
17780
+ ["flags", flags, "#"],
17781
+ [this.boostPeer ?? null, types._TypeInputPeer, "flags.0?InputPeer"],
17782
+ ];
17783
+ }
17784
+ constructor(params) {
17785
+ super();
17786
+ Object.defineProperty(this, "boostPeer", {
17787
+ enumerable: true,
17788
+ configurable: true,
17789
+ writable: true,
17790
+ value: void 0
17791
+ });
17792
+ this.boostPeer = params?.boostPeer;
17793
+ }
17794
+ }
17795
+ export class PaymentsCheckGiftCode extends Function {
17796
+ get [id]() {
17797
+ return 0x8E51B4C1;
17798
+ }
17799
+ static get [paramDesc]() {
17800
+ return [
17801
+ ["slug", "string", "string"],
17802
+ ];
17803
+ }
17804
+ get [params]() {
17805
+ return [
17806
+ [this.slug, "string", "string"],
17807
+ ];
17808
+ }
17809
+ constructor(params) {
17810
+ super();
17811
+ Object.defineProperty(this, "slug", {
17812
+ enumerable: true,
17813
+ configurable: true,
17814
+ writable: true,
17815
+ value: void 0
17816
+ });
17817
+ this.slug = params.slug;
17818
+ }
17819
+ }
17820
+ export class PaymentsApplyGiftCode extends Function {
17821
+ get [id]() {
17822
+ return 0xF6E26854;
17823
+ }
17824
+ static get [paramDesc]() {
17825
+ return [
17826
+ ["slug", "string", "string"],
17827
+ ];
17828
+ }
17829
+ get [params]() {
17830
+ return [
17831
+ [this.slug, "string", "string"],
17832
+ ];
17833
+ }
17834
+ constructor(params) {
17835
+ super();
17836
+ Object.defineProperty(this, "slug", {
17837
+ enumerable: true,
17838
+ configurable: true,
17839
+ writable: true,
17840
+ value: void 0
17841
+ });
17842
+ this.slug = params.slug;
17843
+ }
17844
+ }
17845
+ export class PaymentsGetGiveawayInfo extends Function {
17846
+ get [id]() {
17847
+ return 0xF4239425;
17848
+ }
17849
+ static get [paramDesc]() {
17850
+ return [
17851
+ ["peer", types._TypeInputPeer, "InputPeer"],
17852
+ ["msgId", "number", "int"],
17853
+ ];
17854
+ }
17855
+ get [params]() {
17856
+ return [
17857
+ [this.peer, types._TypeInputPeer, "InputPeer"],
17858
+ [this.msgId, "number", "int"],
17859
+ ];
17860
+ }
17861
+ constructor(params) {
17862
+ super();
17863
+ Object.defineProperty(this, "peer", {
17864
+ enumerable: true,
17865
+ configurable: true,
17866
+ writable: true,
17867
+ value: void 0
17868
+ });
17869
+ Object.defineProperty(this, "msgId", {
17870
+ enumerable: true,
17871
+ configurable: true,
17872
+ writable: true,
17873
+ value: void 0
17874
+ });
17875
+ this.peer = params.peer;
17876
+ this.msgId = params.msgId;
17877
+ }
17878
+ }
17879
+ export class PaymentsLaunchPrepaidGiveaway extends Function {
17880
+ get [id]() {
17881
+ return 0x5FF58F20;
17882
+ }
17883
+ static get [paramDesc]() {
17884
+ return [
17885
+ ["peer", types._TypeInputPeer, "InputPeer"],
17886
+ ["giveawayId", "bigint", "long"],
17887
+ ["purpose", types._TypeInputStorePaymentPurpose, "InputStorePaymentPurpose"],
17888
+ ];
17889
+ }
17890
+ get [params]() {
17891
+ return [
17892
+ [this.peer, types._TypeInputPeer, "InputPeer"],
17893
+ [this.giveawayId, "bigint", "long"],
17894
+ [this.purpose, types._TypeInputStorePaymentPurpose, "InputStorePaymentPurpose"],
17895
+ ];
17896
+ }
17897
+ constructor(params) {
17898
+ super();
17899
+ Object.defineProperty(this, "peer", {
17900
+ enumerable: true,
17901
+ configurable: true,
17902
+ writable: true,
17903
+ value: void 0
17904
+ });
17905
+ Object.defineProperty(this, "giveawayId", {
17906
+ enumerable: true,
17907
+ configurable: true,
17908
+ writable: true,
17909
+ value: void 0
17910
+ });
17911
+ Object.defineProperty(this, "purpose", {
17912
+ enumerable: true,
17913
+ configurable: true,
17914
+ writable: true,
17915
+ value: void 0
17916
+ });
17917
+ this.peer = params.peer;
17918
+ this.giveawayId = params.giveawayId;
17919
+ this.purpose = params.purpose;
17920
+ }
17921
+ }
17546
17922
  export class StickersCreateStickerSet extends Function {
17547
17923
  get [id]() {
17548
17924
  return 0x9021AB67;
@@ -20023,15 +20399,41 @@ export class ChatlistsLeaveChatlist extends Function {
20023
20399
  this.peers = params.peers;
20024
20400
  }
20025
20401
  }
20026
- export class StoriesSendStory extends Function {
20402
+ export class StoriesCanSendStory extends Function {
20027
20403
  get [id]() {
20028
- return 0xD455FCEC;
20404
+ return 0xC7DFDFDD;
20029
20405
  }
20030
20406
  static get [paramDesc]() {
20031
20407
  return [
20032
- ["flags", flags, "#"],
20033
- ["pinned", "true", "flags.2?true"],
20408
+ ["peer", types._TypeInputPeer, "InputPeer"],
20409
+ ];
20410
+ }
20411
+ get [params]() {
20412
+ return [
20413
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20414
+ ];
20415
+ }
20416
+ constructor(params) {
20417
+ super();
20418
+ Object.defineProperty(this, "peer", {
20419
+ enumerable: true,
20420
+ configurable: true,
20421
+ writable: true,
20422
+ value: void 0
20423
+ });
20424
+ this.peer = params.peer;
20425
+ }
20426
+ }
20427
+ export class StoriesSendStory extends Function {
20428
+ get [id]() {
20429
+ return 0xBCB73644;
20430
+ }
20431
+ static get [paramDesc]() {
20432
+ return [
20433
+ ["flags", flags, "#"],
20434
+ ["pinned", "true", "flags.2?true"],
20034
20435
  ["noforwards", "true", "flags.4?true"],
20436
+ ["peer", types._TypeInputPeer, "InputPeer"],
20035
20437
  ["media", types._TypeInputMedia, "InputMedia"],
20036
20438
  ["mediaAreas", [types._TypeMediaArea], "flags.5?Vector<MediaArea>"],
20037
20439
  ["caption", "string", "flags.0?string"],
@@ -20046,6 +20448,7 @@ export class StoriesSendStory extends Function {
20046
20448
  ["flags", flags, "#"],
20047
20449
  [this.pinned ?? null, "true", "flags.2?true"],
20048
20450
  [this.noforwards ?? null, "true", "flags.4?true"],
20451
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20049
20452
  [this.media, types._TypeInputMedia, "InputMedia"],
20050
20453
  [this.mediaAreas ?? null, [types._TypeMediaArea], "flags.5?Vector<MediaArea>"],
20051
20454
  [this.caption ?? null, "string", "flags.0?string"],
@@ -20069,6 +20472,12 @@ export class StoriesSendStory extends Function {
20069
20472
  writable: true,
20070
20473
  value: void 0
20071
20474
  });
20475
+ Object.defineProperty(this, "peer", {
20476
+ enumerable: true,
20477
+ configurable: true,
20478
+ writable: true,
20479
+ value: void 0
20480
+ });
20072
20481
  Object.defineProperty(this, "media", {
20073
20482
  enumerable: true,
20074
20483
  configurable: true,
@@ -20113,6 +20522,7 @@ export class StoriesSendStory extends Function {
20113
20522
  });
20114
20523
  this.pinned = params.pinned;
20115
20524
  this.noforwards = params.noforwards;
20525
+ this.peer = params.peer;
20116
20526
  this.media = params.media;
20117
20527
  this.mediaAreas = params.mediaAreas;
20118
20528
  this.caption = params.caption;
@@ -20124,11 +20534,12 @@ export class StoriesSendStory extends Function {
20124
20534
  }
20125
20535
  export class StoriesEditStory extends Function {
20126
20536
  get [id]() {
20127
- return 0xA9B91AE4;
20537
+ return 0xB583BA46;
20128
20538
  }
20129
20539
  static get [paramDesc]() {
20130
20540
  return [
20131
20541
  ["flags", flags, "#"],
20542
+ ["peer", types._TypeInputPeer, "InputPeer"],
20132
20543
  ["id", "number", "int"],
20133
20544
  ["media", types._TypeInputMedia, "flags.0?InputMedia"],
20134
20545
  ["mediaAreas", [types._TypeMediaArea], "flags.3?Vector<MediaArea>"],
@@ -20140,6 +20551,7 @@ export class StoriesEditStory extends Function {
20140
20551
  get [params]() {
20141
20552
  return [
20142
20553
  ["flags", flags, "#"],
20554
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20143
20555
  [this.id, "number", "int"],
20144
20556
  [this.media ?? null, types._TypeInputMedia, "flags.0?InputMedia"],
20145
20557
  [this.mediaAreas ?? null, [types._TypeMediaArea], "flags.3?Vector<MediaArea>"],
@@ -20150,6 +20562,12 @@ export class StoriesEditStory extends Function {
20150
20562
  }
20151
20563
  constructor(params) {
20152
20564
  super();
20565
+ Object.defineProperty(this, "peer", {
20566
+ enumerable: true,
20567
+ configurable: true,
20568
+ writable: true,
20569
+ value: void 0
20570
+ });
20153
20571
  Object.defineProperty(this, "id", {
20154
20572
  enumerable: true,
20155
20573
  configurable: true,
@@ -20186,6 +20604,7 @@ export class StoriesEditStory extends Function {
20186
20604
  writable: true,
20187
20605
  value: void 0
20188
20606
  });
20607
+ this.peer = params.peer;
20189
20608
  this.id = params.id;
20190
20609
  this.media = params.media;
20191
20610
  this.mediaAreas = params.mediaAreas;
@@ -20196,47 +20615,64 @@ export class StoriesEditStory extends Function {
20196
20615
  }
20197
20616
  export class StoriesDeleteStories extends Function {
20198
20617
  get [id]() {
20199
- return 0xB5D501D7;
20618
+ return 0xAE59DB5F;
20200
20619
  }
20201
20620
  static get [paramDesc]() {
20202
20621
  return [
20622
+ ["peer", types._TypeInputPeer, "InputPeer"],
20203
20623
  ["id", ["number"], "Vector<int>"],
20204
20624
  ];
20205
20625
  }
20206
20626
  get [params]() {
20207
20627
  return [
20628
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20208
20629
  [this.id, ["number"], "Vector<int>"],
20209
20630
  ];
20210
20631
  }
20211
20632
  constructor(params) {
20212
20633
  super();
20634
+ Object.defineProperty(this, "peer", {
20635
+ enumerable: true,
20636
+ configurable: true,
20637
+ writable: true,
20638
+ value: void 0
20639
+ });
20213
20640
  Object.defineProperty(this, "id", {
20214
20641
  enumerable: true,
20215
20642
  configurable: true,
20216
20643
  writable: true,
20217
20644
  value: void 0
20218
20645
  });
20646
+ this.peer = params.peer;
20219
20647
  this.id = params.id;
20220
20648
  }
20221
20649
  }
20222
20650
  export class StoriesTogglePinned extends Function {
20223
20651
  get [id]() {
20224
- return 0x51602944;
20652
+ return 0x9A75A1EF;
20225
20653
  }
20226
20654
  static get [paramDesc]() {
20227
20655
  return [
20656
+ ["peer", types._TypeInputPeer, "InputPeer"],
20228
20657
  ["id", ["number"], "Vector<int>"],
20229
20658
  ["pinned", "boolean", "Bool"],
20230
20659
  ];
20231
20660
  }
20232
20661
  get [params]() {
20233
20662
  return [
20663
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20234
20664
  [this.id, ["number"], "Vector<int>"],
20235
20665
  [this.pinned, "boolean", "Bool"],
20236
20666
  ];
20237
20667
  }
20238
20668
  constructor(params) {
20239
20669
  super();
20670
+ Object.defineProperty(this, "peer", {
20671
+ enumerable: true,
20672
+ configurable: true,
20673
+ writable: true,
20674
+ value: void 0
20675
+ });
20240
20676
  Object.defineProperty(this, "id", {
20241
20677
  enumerable: true,
20242
20678
  configurable: true,
@@ -20249,6 +20685,7 @@ export class StoriesTogglePinned extends Function {
20249
20685
  writable: true,
20250
20686
  value: void 0
20251
20687
  });
20688
+ this.peer = params.peer;
20252
20689
  this.id = params.id;
20253
20690
  this.pinned = params.pinned;
20254
20691
  }
@@ -20298,52 +20735,27 @@ export class StoriesGetAllStories extends Function {
20298
20735
  this.state = params?.state;
20299
20736
  }
20300
20737
  }
20301
- export class StoriesGetUserStories extends Function {
20302
- get [id]() {
20303
- return 0x96D528E0;
20304
- }
20305
- static get [paramDesc]() {
20306
- return [
20307
- ["userId", types._TypeInputUser, "InputUser"],
20308
- ];
20309
- }
20310
- get [params]() {
20311
- return [
20312
- [this.userId, types._TypeInputUser, "InputUser"],
20313
- ];
20314
- }
20315
- constructor(params) {
20316
- super();
20317
- Object.defineProperty(this, "userId", {
20318
- enumerable: true,
20319
- configurable: true,
20320
- writable: true,
20321
- value: void 0
20322
- });
20323
- this.userId = params.userId;
20324
- }
20325
- }
20326
20738
  export class StoriesGetPinnedStories extends Function {
20327
20739
  get [id]() {
20328
- return 0x0B471137;
20740
+ return 0x5821A5DC;
20329
20741
  }
20330
20742
  static get [paramDesc]() {
20331
20743
  return [
20332
- ["userId", types._TypeInputUser, "InputUser"],
20744
+ ["peer", types._TypeInputPeer, "InputPeer"],
20333
20745
  ["offsetId", "number", "int"],
20334
20746
  ["limit", "number", "int"],
20335
20747
  ];
20336
20748
  }
20337
20749
  get [params]() {
20338
20750
  return [
20339
- [this.userId, types._TypeInputUser, "InputUser"],
20751
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20340
20752
  [this.offsetId, "number", "int"],
20341
20753
  [this.limit, "number", "int"],
20342
20754
  ];
20343
20755
  }
20344
20756
  constructor(params) {
20345
20757
  super();
20346
- Object.defineProperty(this, "userId", {
20758
+ Object.defineProperty(this, "peer", {
20347
20759
  enumerable: true,
20348
20760
  configurable: true,
20349
20761
  writable: true,
@@ -20361,29 +20773,37 @@ export class StoriesGetPinnedStories extends Function {
20361
20773
  writable: true,
20362
20774
  value: void 0
20363
20775
  });
20364
- this.userId = params.userId;
20776
+ this.peer = params.peer;
20365
20777
  this.offsetId = params.offsetId;
20366
20778
  this.limit = params.limit;
20367
20779
  }
20368
20780
  }
20369
20781
  export class StoriesGetStoriesArchive extends Function {
20370
20782
  get [id]() {
20371
- return 0x1F5BC5D2;
20783
+ return 0xB4352016;
20372
20784
  }
20373
20785
  static get [paramDesc]() {
20374
20786
  return [
20787
+ ["peer", types._TypeInputPeer, "InputPeer"],
20375
20788
  ["offsetId", "number", "int"],
20376
20789
  ["limit", "number", "int"],
20377
20790
  ];
20378
20791
  }
20379
20792
  get [params]() {
20380
20793
  return [
20794
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20381
20795
  [this.offsetId, "number", "int"],
20382
20796
  [this.limit, "number", "int"],
20383
20797
  ];
20384
20798
  }
20385
20799
  constructor(params) {
20386
20800
  super();
20801
+ Object.defineProperty(this, "peer", {
20802
+ enumerable: true,
20803
+ configurable: true,
20804
+ writable: true,
20805
+ value: void 0
20806
+ });
20387
20807
  Object.defineProperty(this, "offsetId", {
20388
20808
  enumerable: true,
20389
20809
  configurable: true,
@@ -20396,29 +20816,30 @@ export class StoriesGetStoriesArchive extends Function {
20396
20816
  writable: true,
20397
20817
  value: void 0
20398
20818
  });
20819
+ this.peer = params.peer;
20399
20820
  this.offsetId = params.offsetId;
20400
20821
  this.limit = params.limit;
20401
20822
  }
20402
20823
  }
20403
20824
  export class StoriesGetStoriesByID extends Function {
20404
20825
  get [id]() {
20405
- return 0x6A15CF46;
20826
+ return 0x5774CA74;
20406
20827
  }
20407
20828
  static get [paramDesc]() {
20408
20829
  return [
20409
- ["userId", types._TypeInputUser, "InputUser"],
20830
+ ["peer", types._TypeInputPeer, "InputPeer"],
20410
20831
  ["id", ["number"], "Vector<int>"],
20411
20832
  ];
20412
20833
  }
20413
20834
  get [params]() {
20414
20835
  return [
20415
- [this.userId, types._TypeInputUser, "InputUser"],
20836
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20416
20837
  [this.id, ["number"], "Vector<int>"],
20417
20838
  ];
20418
20839
  }
20419
20840
  constructor(params) {
20420
20841
  super();
20421
- Object.defineProperty(this, "userId", {
20842
+ Object.defineProperty(this, "peer", {
20422
20843
  enumerable: true,
20423
20844
  configurable: true,
20424
20845
  writable: true,
@@ -20430,7 +20851,7 @@ export class StoriesGetStoriesByID extends Function {
20430
20851
  writable: true,
20431
20852
  value: void 0
20432
20853
  });
20433
- this.userId = params.userId;
20854
+ this.peer = params.peer;
20434
20855
  this.id = params.id;
20435
20856
  }
20436
20857
  }
@@ -20459,39 +20880,25 @@ export class StoriesToggleAllStoriesHidden extends Function {
20459
20880
  this.hidden = params.hidden;
20460
20881
  }
20461
20882
  }
20462
- export class StoriesGetAllReadUserStories extends Function {
20463
- get [id]() {
20464
- return 0x729C562C;
20465
- }
20466
- static get [paramDesc]() {
20467
- return [];
20468
- }
20469
- get [params]() {
20470
- return [];
20471
- }
20472
- constructor() {
20473
- super();
20474
- }
20475
- }
20476
20883
  export class StoriesReadStories extends Function {
20477
20884
  get [id]() {
20478
- return 0xEDC5105B;
20885
+ return 0xA556DAC8;
20479
20886
  }
20480
20887
  static get [paramDesc]() {
20481
20888
  return [
20482
- ["userId", types._TypeInputUser, "InputUser"],
20889
+ ["peer", types._TypeInputPeer, "InputPeer"],
20483
20890
  ["maxId", "number", "int"],
20484
20891
  ];
20485
20892
  }
20486
20893
  get [params]() {
20487
20894
  return [
20488
- [this.userId, types._TypeInputUser, "InputUser"],
20895
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20489
20896
  [this.maxId, "number", "int"],
20490
20897
  ];
20491
20898
  }
20492
20899
  constructor(params) {
20493
20900
  super();
20494
- Object.defineProperty(this, "userId", {
20901
+ Object.defineProperty(this, "peer", {
20495
20902
  enumerable: true,
20496
20903
  configurable: true,
20497
20904
  writable: true,
@@ -20503,29 +20910,29 @@ export class StoriesReadStories extends Function {
20503
20910
  writable: true,
20504
20911
  value: void 0
20505
20912
  });
20506
- this.userId = params.userId;
20913
+ this.peer = params.peer;
20507
20914
  this.maxId = params.maxId;
20508
20915
  }
20509
20916
  }
20510
20917
  export class StoriesIncrementStoryViews extends Function {
20511
20918
  get [id]() {
20512
- return 0x22126127;
20919
+ return 0xB2028AFB;
20513
20920
  }
20514
20921
  static get [paramDesc]() {
20515
20922
  return [
20516
- ["userId", types._TypeInputUser, "InputUser"],
20923
+ ["peer", types._TypeInputPeer, "InputPeer"],
20517
20924
  ["id", ["number"], "Vector<int>"],
20518
20925
  ];
20519
20926
  }
20520
20927
  get [params]() {
20521
20928
  return [
20522
- [this.userId, types._TypeInputUser, "InputUser"],
20929
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20523
20930
  [this.id, ["number"], "Vector<int>"],
20524
20931
  ];
20525
20932
  }
20526
20933
  constructor(params) {
20527
20934
  super();
20528
- Object.defineProperty(this, "userId", {
20935
+ Object.defineProperty(this, "peer", {
20529
20936
  enumerable: true,
20530
20937
  configurable: true,
20531
20938
  writable: true,
@@ -20537,19 +20944,20 @@ export class StoriesIncrementStoryViews extends Function {
20537
20944
  writable: true,
20538
20945
  value: void 0
20539
20946
  });
20540
- this.userId = params.userId;
20947
+ this.peer = params.peer;
20541
20948
  this.id = params.id;
20542
20949
  }
20543
20950
  }
20544
20951
  export class StoriesGetStoryViewsList extends Function {
20545
20952
  get [id]() {
20546
- return 0xF95F61A4;
20953
+ return 0x7ED23C57;
20547
20954
  }
20548
20955
  static get [paramDesc]() {
20549
20956
  return [
20550
20957
  ["flags", flags, "#"],
20551
20958
  ["justContacts", "true", "flags.0?true"],
20552
20959
  ["reactionsFirst", "true", "flags.2?true"],
20960
+ ["peer", types._TypeInputPeer, "InputPeer"],
20553
20961
  ["q", "string", "flags.1?string"],
20554
20962
  ["id", "number", "int"],
20555
20963
  ["offset", "string", "string"],
@@ -20561,6 +20969,7 @@ export class StoriesGetStoryViewsList extends Function {
20561
20969
  ["flags", flags, "#"],
20562
20970
  [this.justContacts ?? null, "true", "flags.0?true"],
20563
20971
  [this.reactionsFirst ?? null, "true", "flags.2?true"],
20972
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20564
20973
  [this.q ?? null, "string", "flags.1?string"],
20565
20974
  [this.id, "number", "int"],
20566
20975
  [this.offset, "string", "string"],
@@ -20581,6 +20990,12 @@ export class StoriesGetStoryViewsList extends Function {
20581
20990
  writable: true,
20582
20991
  value: void 0
20583
20992
  });
20993
+ Object.defineProperty(this, "peer", {
20994
+ enumerable: true,
20995
+ configurable: true,
20996
+ writable: true,
20997
+ value: void 0
20998
+ });
20584
20999
  Object.defineProperty(this, "q", {
20585
21000
  enumerable: true,
20586
21001
  configurable: true,
@@ -20607,6 +21022,7 @@ export class StoriesGetStoryViewsList extends Function {
20607
21022
  });
20608
21023
  this.justContacts = params.justContacts;
20609
21024
  this.reactionsFirst = params.reactionsFirst;
21025
+ this.peer = params.peer;
20610
21026
  this.q = params.q;
20611
21027
  this.id = params.id;
20612
21028
  this.offset = params.offset;
@@ -20615,48 +21031,57 @@ export class StoriesGetStoryViewsList extends Function {
20615
21031
  }
20616
21032
  export class StoriesGetStoriesViews extends Function {
20617
21033
  get [id]() {
20618
- return 0x9A75D6A6;
21034
+ return 0x28E16CC8;
20619
21035
  }
20620
21036
  static get [paramDesc]() {
20621
21037
  return [
21038
+ ["peer", types._TypeInputPeer, "InputPeer"],
20622
21039
  ["id", ["number"], "Vector<int>"],
20623
21040
  ];
20624
21041
  }
20625
21042
  get [params]() {
20626
21043
  return [
21044
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20627
21045
  [this.id, ["number"], "Vector<int>"],
20628
21046
  ];
20629
21047
  }
20630
21048
  constructor(params) {
20631
21049
  super();
21050
+ Object.defineProperty(this, "peer", {
21051
+ enumerable: true,
21052
+ configurable: true,
21053
+ writable: true,
21054
+ value: void 0
21055
+ });
20632
21056
  Object.defineProperty(this, "id", {
20633
21057
  enumerable: true,
20634
21058
  configurable: true,
20635
21059
  writable: true,
20636
21060
  value: void 0
20637
21061
  });
21062
+ this.peer = params.peer;
20638
21063
  this.id = params.id;
20639
21064
  }
20640
21065
  }
20641
21066
  export class StoriesExportStoryLink extends Function {
20642
21067
  get [id]() {
20643
- return 0x16E443CE;
21068
+ return 0x7B8DEF20;
20644
21069
  }
20645
21070
  static get [paramDesc]() {
20646
21071
  return [
20647
- ["userId", types._TypeInputUser, "InputUser"],
21072
+ ["peer", types._TypeInputPeer, "InputPeer"],
20648
21073
  ["id", "number", "int"],
20649
21074
  ];
20650
21075
  }
20651
21076
  get [params]() {
20652
21077
  return [
20653
- [this.userId, types._TypeInputUser, "InputUser"],
21078
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20654
21079
  [this.id, "number", "int"],
20655
21080
  ];
20656
21081
  }
20657
21082
  constructor(params) {
20658
21083
  super();
20659
- Object.defineProperty(this, "userId", {
21084
+ Object.defineProperty(this, "peer", {
20660
21085
  enumerable: true,
20661
21086
  configurable: true,
20662
21087
  writable: true,
@@ -20668,17 +21093,17 @@ export class StoriesExportStoryLink extends Function {
20668
21093
  writable: true,
20669
21094
  value: void 0
20670
21095
  });
20671
- this.userId = params.userId;
21096
+ this.peer = params.peer;
20672
21097
  this.id = params.id;
20673
21098
  }
20674
21099
  }
20675
21100
  export class StoriesReport extends Function {
20676
21101
  get [id]() {
20677
- return 0xC95BE06A;
21102
+ return 0x1923FA8C;
20678
21103
  }
20679
21104
  static get [paramDesc]() {
20680
21105
  return [
20681
- ["userId", types._TypeInputUser, "InputUser"],
21106
+ ["peer", types._TypeInputPeer, "InputPeer"],
20682
21107
  ["id", ["number"], "Vector<int>"],
20683
21108
  ["reason", types._TypeReportReason, "ReportReason"],
20684
21109
  ["message", "string", "string"],
@@ -20686,7 +21111,7 @@ export class StoriesReport extends Function {
20686
21111
  }
20687
21112
  get [params]() {
20688
21113
  return [
20689
- [this.userId, types._TypeInputUser, "InputUser"],
21114
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20690
21115
  [this.id, ["number"], "Vector<int>"],
20691
21116
  [this.reason, types._TypeReportReason, "ReportReason"],
20692
21117
  [this.message, "string", "string"],
@@ -20694,7 +21119,7 @@ export class StoriesReport extends Function {
20694
21119
  }
20695
21120
  constructor(params) {
20696
21121
  super();
20697
- Object.defineProperty(this, "userId", {
21122
+ Object.defineProperty(this, "peer", {
20698
21123
  enumerable: true,
20699
21124
  configurable: true,
20700
21125
  writable: true,
@@ -20718,7 +21143,7 @@ export class StoriesReport extends Function {
20718
21143
  writable: true,
20719
21144
  value: void 0
20720
21145
  });
20721
- this.userId = params.userId;
21146
+ this.peer = params.peer;
20722
21147
  this.id = params.id;
20723
21148
  this.reason = params.reason;
20724
21149
  this.message = params.message;
@@ -20762,13 +21187,13 @@ export class StoriesActivateStealthMode extends Function {
20762
21187
  }
20763
21188
  export class StoriesSendReaction extends Function {
20764
21189
  get [id]() {
20765
- return 0x49AAA9B3;
21190
+ return 0x7FD736B2;
20766
21191
  }
20767
21192
  static get [paramDesc]() {
20768
21193
  return [
20769
21194
  ["flags", flags, "#"],
20770
21195
  ["addToRecent", "true", "flags.0?true"],
20771
- ["userId", types._TypeInputUser, "InputUser"],
21196
+ ["peer", types._TypeInputPeer, "InputPeer"],
20772
21197
  ["storyId", "number", "int"],
20773
21198
  ["reaction", types._TypeReaction, "Reaction"],
20774
21199
  ];
@@ -20777,7 +21202,7 @@ export class StoriesSendReaction extends Function {
20777
21202
  return [
20778
21203
  ["flags", flags, "#"],
20779
21204
  [this.addToRecent ?? null, "true", "flags.0?true"],
20780
- [this.userId, types._TypeInputUser, "InputUser"],
21205
+ [this.peer, types._TypeInputPeer, "InputPeer"],
20781
21206
  [this.storyId, "number", "int"],
20782
21207
  [this.reaction, types._TypeReaction, "Reaction"],
20783
21208
  ];
@@ -20790,7 +21215,7 @@ export class StoriesSendReaction extends Function {
20790
21215
  writable: true,
20791
21216
  value: void 0
20792
21217
  });
20793
- Object.defineProperty(this, "userId", {
21218
+ Object.defineProperty(this, "peer", {
20794
21219
  enumerable: true,
20795
21220
  configurable: true,
20796
21221
  writable: true,
@@ -20809,8 +21234,249 @@ export class StoriesSendReaction extends Function {
20809
21234
  value: void 0
20810
21235
  });
20811
21236
  this.addToRecent = params.addToRecent;
20812
- this.userId = params.userId;
21237
+ this.peer = params.peer;
20813
21238
  this.storyId = params.storyId;
20814
21239
  this.reaction = params.reaction;
20815
21240
  }
20816
21241
  }
21242
+ export class StoriesGetPeerStories extends Function {
21243
+ get [id]() {
21244
+ return 0x2C4ADA50;
21245
+ }
21246
+ static get [paramDesc]() {
21247
+ return [
21248
+ ["peer", types._TypeInputPeer, "InputPeer"],
21249
+ ];
21250
+ }
21251
+ get [params]() {
21252
+ return [
21253
+ [this.peer, types._TypeInputPeer, "InputPeer"],
21254
+ ];
21255
+ }
21256
+ constructor(params) {
21257
+ super();
21258
+ Object.defineProperty(this, "peer", {
21259
+ enumerable: true,
21260
+ configurable: true,
21261
+ writable: true,
21262
+ value: void 0
21263
+ });
21264
+ this.peer = params.peer;
21265
+ }
21266
+ }
21267
+ export class StoriesGetAllReadPeerStories extends Function {
21268
+ get [id]() {
21269
+ return 0x9B5AE7F9;
21270
+ }
21271
+ static get [paramDesc]() {
21272
+ return [];
21273
+ }
21274
+ get [params]() {
21275
+ return [];
21276
+ }
21277
+ constructor() {
21278
+ super();
21279
+ }
21280
+ }
21281
+ export class StoriesGetPeerMaxIDs extends Function {
21282
+ get [id]() {
21283
+ return 0x535983C3;
21284
+ }
21285
+ static get [paramDesc]() {
21286
+ return [
21287
+ ["id", [types._TypeInputPeer], "Vector<InputPeer>"],
21288
+ ];
21289
+ }
21290
+ get [params]() {
21291
+ return [
21292
+ [this.id, [types._TypeInputPeer], "Vector<InputPeer>"],
21293
+ ];
21294
+ }
21295
+ constructor(params) {
21296
+ super();
21297
+ Object.defineProperty(this, "id", {
21298
+ enumerable: true,
21299
+ configurable: true,
21300
+ writable: true,
21301
+ value: void 0
21302
+ });
21303
+ this.id = params.id;
21304
+ }
21305
+ }
21306
+ export class StoriesGetChatsToSend extends Function {
21307
+ get [id]() {
21308
+ return 0xA56A8B60;
21309
+ }
21310
+ static get [paramDesc]() {
21311
+ return [];
21312
+ }
21313
+ get [params]() {
21314
+ return [];
21315
+ }
21316
+ constructor() {
21317
+ super();
21318
+ }
21319
+ }
21320
+ export class StoriesTogglePeerStoriesHidden extends Function {
21321
+ get [id]() {
21322
+ return 0xBD0415C4;
21323
+ }
21324
+ static get [paramDesc]() {
21325
+ return [
21326
+ ["peer", types._TypeInputPeer, "InputPeer"],
21327
+ ["hidden", "boolean", "Bool"],
21328
+ ];
21329
+ }
21330
+ get [params]() {
21331
+ return [
21332
+ [this.peer, types._TypeInputPeer, "InputPeer"],
21333
+ [this.hidden, "boolean", "Bool"],
21334
+ ];
21335
+ }
21336
+ constructor(params) {
21337
+ super();
21338
+ Object.defineProperty(this, "peer", {
21339
+ enumerable: true,
21340
+ configurable: true,
21341
+ writable: true,
21342
+ value: void 0
21343
+ });
21344
+ Object.defineProperty(this, "hidden", {
21345
+ enumerable: true,
21346
+ configurable: true,
21347
+ writable: true,
21348
+ value: void 0
21349
+ });
21350
+ this.peer = params.peer;
21351
+ this.hidden = params.hidden;
21352
+ }
21353
+ }
21354
+ export class PremiumGetBoostsList extends Function {
21355
+ get [id]() {
21356
+ return 0x60F67660;
21357
+ }
21358
+ static get [paramDesc]() {
21359
+ return [
21360
+ ["flags", flags, "#"],
21361
+ ["gifts", "true", "flags.0?true"],
21362
+ ["peer", types._TypeInputPeer, "InputPeer"],
21363
+ ["offset", "string", "string"],
21364
+ ["limit", "number", "int"],
21365
+ ];
21366
+ }
21367
+ get [params]() {
21368
+ return [
21369
+ ["flags", flags, "#"],
21370
+ [this.gifts ?? null, "true", "flags.0?true"],
21371
+ [this.peer, types._TypeInputPeer, "InputPeer"],
21372
+ [this.offset, "string", "string"],
21373
+ [this.limit, "number", "int"],
21374
+ ];
21375
+ }
21376
+ constructor(params) {
21377
+ super();
21378
+ Object.defineProperty(this, "gifts", {
21379
+ enumerable: true,
21380
+ configurable: true,
21381
+ writable: true,
21382
+ value: void 0
21383
+ });
21384
+ Object.defineProperty(this, "peer", {
21385
+ enumerable: true,
21386
+ configurable: true,
21387
+ writable: true,
21388
+ value: void 0
21389
+ });
21390
+ Object.defineProperty(this, "offset", {
21391
+ enumerable: true,
21392
+ configurable: true,
21393
+ writable: true,
21394
+ value: void 0
21395
+ });
21396
+ Object.defineProperty(this, "limit", {
21397
+ enumerable: true,
21398
+ configurable: true,
21399
+ writable: true,
21400
+ value: void 0
21401
+ });
21402
+ this.gifts = params.gifts;
21403
+ this.peer = params.peer;
21404
+ this.offset = params.offset;
21405
+ this.limit = params.limit;
21406
+ }
21407
+ }
21408
+ export class PremiumGetMyBoosts extends Function {
21409
+ get [id]() {
21410
+ return 0x0BE77B4A;
21411
+ }
21412
+ static get [paramDesc]() {
21413
+ return [];
21414
+ }
21415
+ get [params]() {
21416
+ return [];
21417
+ }
21418
+ constructor() {
21419
+ super();
21420
+ }
21421
+ }
21422
+ export class PremiumApplyBoost extends Function {
21423
+ get [id]() {
21424
+ return 0x6B7DA746;
21425
+ }
21426
+ static get [paramDesc]() {
21427
+ return [
21428
+ ["flags", flags, "#"],
21429
+ ["slots", ["number"], "flags.0?Vector<int>"],
21430
+ ["peer", types._TypeInputPeer, "InputPeer"],
21431
+ ];
21432
+ }
21433
+ get [params]() {
21434
+ return [
21435
+ ["flags", flags, "#"],
21436
+ [this.slots ?? null, ["number"], "flags.0?Vector<int>"],
21437
+ [this.peer, types._TypeInputPeer, "InputPeer"],
21438
+ ];
21439
+ }
21440
+ constructor(params) {
21441
+ super();
21442
+ Object.defineProperty(this, "slots", {
21443
+ enumerable: true,
21444
+ configurable: true,
21445
+ writable: true,
21446
+ value: void 0
21447
+ });
21448
+ Object.defineProperty(this, "peer", {
21449
+ enumerable: true,
21450
+ configurable: true,
21451
+ writable: true,
21452
+ value: void 0
21453
+ });
21454
+ this.slots = params.slots;
21455
+ this.peer = params.peer;
21456
+ }
21457
+ }
21458
+ export class PremiumGetBoostsStatus extends Function {
21459
+ get [id]() {
21460
+ return 0x042F1F61;
21461
+ }
21462
+ static get [paramDesc]() {
21463
+ return [
21464
+ ["peer", types._TypeInputPeer, "InputPeer"],
21465
+ ];
21466
+ }
21467
+ get [params]() {
21468
+ return [
21469
+ [this.peer, types._TypeInputPeer, "InputPeer"],
21470
+ ];
21471
+ }
21472
+ constructor(params) {
21473
+ super();
21474
+ Object.defineProperty(this, "peer", {
21475
+ enumerable: true,
21476
+ configurable: true,
21477
+ writable: true,
21478
+ value: void 0
21479
+ });
21480
+ this.peer = params.peer;
21481
+ }
21482
+ }