@mtkruto/node 0.1.191 → 0.1.200

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 (173) hide show
  1. package/esm/1_utilities.d.ts +1 -1
  2. package/esm/1_utilities.js +1 -1
  3. package/esm/2_tl.d.ts +6 -6
  4. package/esm/2_tl.js +6 -6
  5. package/esm/3_storage.d.ts +5 -5
  6. package/esm/3_storage.js +5 -5
  7. package/esm/3_types.d.ts +6 -5
  8. package/esm/3_types.js +6 -5
  9. package/esm/4_constants.d.ts +2 -2
  10. package/esm/4_constants.js +2 -2
  11. package/esm/5_client.d.ts +1 -1
  12. package/esm/5_client.js +1 -1
  13. package/esm/client/0_params.d.ts +7 -1
  14. package/esm/client/0_types.d.ts +1 -0
  15. package/esm/client/0_utilities.d.ts +0 -3
  16. package/esm/client/0_utilities.js +0 -20
  17. package/esm/client/1_business_connection_manager.d.ts +11 -0
  18. package/esm/client/1_business_connection_manager.js +47 -0
  19. package/esm/client/1_update_manager.d.ts +8 -1
  20. package/esm/client/1_update_manager.js +88 -8
  21. package/esm/client/2_message_manager.d.ts +7 -6
  22. package/esm/client/2_message_manager.js +48 -31
  23. package/esm/client/4_client.d.ts +421 -420
  24. package/esm/client/4_client.js +565 -516
  25. package/esm/storage/0_storage.d.ts +5 -0
  26. package/esm/storage/0_storage.js +20 -0
  27. package/esm/storage/{1_storage_indexed_db.js → 2_storage_indexed_db.js} +1 -1
  28. package/esm/storage/{1_storage_local_storage.js → 2_storage_local_storage.js} +1 -1
  29. package/{script/storage/1_storage_memory.d.ts → esm/storage/2_storage_memory.d.ts} +1 -4
  30. package/esm/storage/{1_storage_memory.js → 2_storage_memory.js} +8 -28
  31. package/esm/storage/{1_storage_session_storage.js → 2_storage_session_storage.js} +1 -1
  32. package/esm/tl/2_types.d.ts +1071 -183
  33. package/esm/tl/2_types.js +2916 -464
  34. package/esm/tl/3_functions.d.ts +381 -17
  35. package/esm/tl/3_functions.js +1002 -120
  36. package/{script/tl/4_tl_writer.d.ts → esm/tl/5_tl_writer.d.ts} +1 -1
  37. package/{script/tl/4_rpc_result.d.ts → esm/tl/6_rpc_result.d.ts} +1 -1
  38. package/esm/tl/{4_rpc_result.js → 6_rpc_result.js} +1 -1
  39. package/esm/tl/{6_message.d.ts → 7_message.d.ts} +2 -2
  40. package/esm/tl/{6_message.js → 7_message.js} +3 -3
  41. package/esm/tl/{7_message_container.d.ts → 8_message_container.d.ts} +1 -1
  42. package/esm/tl/{7_message_container.js → 8_message_container.js} +3 -3
  43. package/esm/types/0_chat_photo.js +1 -1
  44. package/esm/types/0_message_entity.d.ts +1 -1
  45. package/esm/types/0_thumbnail.js +1 -1
  46. package/esm/types/1_bot_command_scope.d.ts +1 -1
  47. package/esm/types/1_photo.js +2 -2
  48. package/esm/types/1_story_privacy.d.ts +1 -1
  49. package/esm/types/2_business_connection.d.ts +11 -0
  50. package/esm/types/2_business_connection.js +12 -0
  51. package/esm/types/2_chat_member.d.ts +1 -1
  52. package/esm/types/2_chosen_inline_result.d.ts +1 -1
  53. package/esm/types/2_game.js +1 -1
  54. package/esm/types/2_inline_keyboard_button.d.ts +1 -1
  55. package/esm/types/2_inline_query.d.ts +1 -1
  56. package/esm/types/2_invite_link.d.ts +1 -1
  57. package/esm/types/2_message_reaction_count.d.ts +1 -1
  58. package/esm/types/2_message_reactions.d.ts +1 -1
  59. package/esm/types/2_story_content.js +1 -1
  60. package/{script/types/1_story_interactive_area.d.ts → esm/types/2_story_interactive_area.d.ts} +2 -2
  61. package/esm/types/{1_story_interactive_area.js → 2_story_interactive_area.js} +1 -1
  62. package/esm/types/3_chat_member_updated.d.ts +1 -1
  63. package/esm/types/3_reply_markup.d.ts +1 -1
  64. package/esm/types/3_story.d.ts +2 -2
  65. package/esm/types/3_story.js +1 -1
  66. package/esm/types/4_inline_query_result.d.ts +1 -1
  67. package/esm/types/4_inline_query_result.js +1 -1
  68. package/esm/types/4_message.d.ts +9 -3
  69. package/esm/types/4_message.js +22 -5
  70. package/esm/types/5_callback_query.d.ts +1 -1
  71. package/esm/types/5_chat.d.ts +1 -1
  72. package/esm/types/6_update.d.ts +12 -2
  73. package/package.json +1 -1
  74. package/script/1_utilities.d.ts +1 -1
  75. package/script/1_utilities.js +1 -1
  76. package/script/2_tl.d.ts +6 -6
  77. package/script/2_tl.js +6 -6
  78. package/script/3_storage.d.ts +5 -5
  79. package/script/3_storage.js +5 -5
  80. package/script/3_types.d.ts +6 -5
  81. package/script/3_types.js +6 -5
  82. package/script/4_constants.d.ts +2 -2
  83. package/script/4_constants.js +2 -2
  84. package/script/5_client.d.ts +1 -1
  85. package/script/5_client.js +1 -1
  86. package/script/client/0_params.d.ts +7 -1
  87. package/script/client/0_types.d.ts +1 -0
  88. package/script/client/0_utilities.d.ts +0 -3
  89. package/script/client/0_utilities.js +1 -23
  90. package/script/client/1_business_connection_manager.d.ts +11 -0
  91. package/script/client/1_business_connection_manager.js +51 -0
  92. package/script/client/1_update_manager.d.ts +8 -1
  93. package/script/client/1_update_manager.js +88 -8
  94. package/script/client/2_message_manager.d.ts +7 -6
  95. package/script/client/2_message_manager.js +47 -30
  96. package/script/client/4_client.d.ts +421 -420
  97. package/script/client/4_client.js +565 -516
  98. package/script/storage/0_storage.d.ts +5 -0
  99. package/script/storage/0_storage.js +20 -0
  100. package/script/storage/{1_storage_indexed_db.js → 2_storage_indexed_db.js} +7 -7
  101. package/script/storage/{1_storage_local_storage.js → 2_storage_local_storage.js} +10 -10
  102. package/{esm/storage/1_storage_memory.d.ts → script/storage/2_storage_memory.d.ts} +1 -4
  103. package/script/storage/{1_storage_memory.js → 2_storage_memory.js} +12 -32
  104. package/script/storage/{1_storage_session_storage.js → 2_storage_session_storage.js} +10 -10
  105. package/script/tl/2_types.d.ts +1071 -183
  106. package/script/tl/2_types.js +3028 -504
  107. package/script/tl/3_functions.d.ts +381 -17
  108. package/script/tl/3_functions.js +1047 -143
  109. package/{esm/tl/4_tl_writer.d.ts → script/tl/5_tl_writer.d.ts} +1 -1
  110. package/{esm/tl/4_rpc_result.d.ts → script/tl/6_rpc_result.d.ts} +1 -1
  111. package/script/tl/{4_rpc_result.js → 6_rpc_result.js} +2 -2
  112. package/script/tl/{6_message.d.ts → 7_message.d.ts} +2 -2
  113. package/script/tl/{6_message.js → 7_message.js} +8 -8
  114. package/script/tl/{7_message_container.d.ts → 8_message_container.d.ts} +1 -1
  115. package/script/tl/{7_message_container.js → 8_message_container.js} +7 -7
  116. package/script/types/0_chat_photo.js +9 -9
  117. package/script/types/0_message_entity.d.ts +1 -1
  118. package/script/types/0_thumbnail.js +6 -6
  119. package/script/types/1_bot_command_scope.d.ts +1 -1
  120. package/script/types/1_photo.js +7 -7
  121. package/script/types/1_story_privacy.d.ts +1 -1
  122. package/script/types/2_business_connection.d.ts +11 -0
  123. package/script/types/2_business_connection.js +16 -0
  124. package/script/types/2_chat_member.d.ts +1 -1
  125. package/script/types/2_chosen_inline_result.d.ts +1 -1
  126. package/script/types/2_game.js +3 -3
  127. package/script/types/2_inline_keyboard_button.d.ts +1 -1
  128. package/script/types/2_inline_query.d.ts +1 -1
  129. package/script/types/2_invite_link.d.ts +1 -1
  130. package/script/types/2_message_reaction_count.d.ts +1 -1
  131. package/script/types/2_message_reactions.d.ts +1 -1
  132. package/script/types/2_story_content.js +4 -4
  133. package/{esm/types/1_story_interactive_area.d.ts → script/types/2_story_interactive_area.d.ts} +2 -2
  134. package/script/types/{1_story_interactive_area.js → 2_story_interactive_area.js} +2 -2
  135. package/script/types/3_chat_member_updated.d.ts +1 -1
  136. package/script/types/3_reply_markup.d.ts +1 -1
  137. package/script/types/3_story.d.ts +2 -2
  138. package/script/types/3_story.js +2 -2
  139. package/script/types/4_inline_query_result.d.ts +1 -1
  140. package/script/types/4_inline_query_result.js +2 -2
  141. package/script/types/4_message.d.ts +9 -3
  142. package/script/types/4_message.js +37 -20
  143. package/script/types/5_callback_query.d.ts +1 -1
  144. package/script/types/5_chat.d.ts +1 -1
  145. package/script/types/6_update.d.ts +12 -2
  146. /package/esm/storage/{0_utilities.d.ts → 1_utilities.d.ts} +0 -0
  147. /package/esm/storage/{0_utilities.js → 1_utilities.js} +0 -0
  148. /package/esm/storage/{1_storage_indexed_db.d.ts → 2_storage_indexed_db.d.ts} +0 -0
  149. /package/esm/storage/{1_storage_local_storage.d.ts → 2_storage_local_storage.d.ts} +0 -0
  150. /package/esm/storage/{1_storage_session_storage.d.ts → 2_storage_session_storage.d.ts} +0 -0
  151. /package/esm/tl/{3_tl_reader.d.ts → 4_tl_reader.d.ts} +0 -0
  152. /package/esm/tl/{3_tl_reader.js → 4_tl_reader.js} +0 -0
  153. /package/esm/tl/{4_tl_writer.js → 5_tl_writer.js} +0 -0
  154. /package/esm/types/{0_venue.d.ts → 1_venue.d.ts} +0 -0
  155. /package/esm/types/{0_venue.js → 1_venue.js} +0 -0
  156. /package/esm/types/{0__file_id.d.ts → _file_id.d.ts} +0 -0
  157. /package/esm/types/{0__file_id.js → _file_id.js} +0 -0
  158. /package/esm/types/{1__getters.d.ts → _getters.d.ts} +0 -0
  159. /package/esm/types/{1__getters.js → _getters.js} +0 -0
  160. /package/script/storage/{0_utilities.d.ts → 1_utilities.d.ts} +0 -0
  161. /package/script/storage/{0_utilities.js → 1_utilities.js} +0 -0
  162. /package/script/storage/{1_storage_indexed_db.d.ts → 2_storage_indexed_db.d.ts} +0 -0
  163. /package/script/storage/{1_storage_local_storage.d.ts → 2_storage_local_storage.d.ts} +0 -0
  164. /package/script/storage/{1_storage_session_storage.d.ts → 2_storage_session_storage.d.ts} +0 -0
  165. /package/script/tl/{3_tl_reader.d.ts → 4_tl_reader.d.ts} +0 -0
  166. /package/script/tl/{3_tl_reader.js → 4_tl_reader.js} +0 -0
  167. /package/script/tl/{4_tl_writer.js → 5_tl_writer.js} +0 -0
  168. /package/script/types/{0_venue.d.ts → 1_venue.d.ts} +0 -0
  169. /package/script/types/{0_venue.js → 1_venue.js} +0 -0
  170. /package/script/types/{0__file_id.d.ts → _file_id.d.ts} +0 -0
  171. /package/script/types/{0__file_id.js → _file_id.js} +0 -0
  172. /package/script/types/{1__getters.d.ts → _getters.d.ts} +0 -0
  173. /package/script/types/{1__getters.js → _getters.js} +0 -0
@@ -379,6 +379,40 @@ Object.defineProperty(destroy_auth_key_, "__F", {
379
379
  writable: true,
380
380
  value: null
381
381
  });
382
+ export class invokeWithBusinessConnectionPrefix_ extends Function_ {
383
+ get [id]() {
384
+ return 0xDD289F8E;
385
+ }
386
+ static get [name]() {
387
+ return "invokeWithBusinessConnectionPrefix";
388
+ }
389
+ static get [paramDesc]() {
390
+ return [
391
+ ["connection_id", "string", "string"],
392
+ ];
393
+ }
394
+ get [params]() {
395
+ return [
396
+ [this.connection_id, "string", "string"],
397
+ ];
398
+ }
399
+ constructor(params) {
400
+ super();
401
+ Object.defineProperty(this, "connection_id", {
402
+ enumerable: true,
403
+ configurable: true,
404
+ writable: true,
405
+ value: void 0
406
+ });
407
+ this.connection_id = params.connection_id;
408
+ }
409
+ }
410
+ Object.defineProperty(invokeWithBusinessConnectionPrefix_, "__F", {
411
+ enumerable: true,
412
+ configurable: true,
413
+ writable: true,
414
+ value: null
415
+ });
382
416
  /** Invokes a query after successful completion of one of the previous queries. */
383
417
  export class invokeAfterMsg_ extends Function_ {
384
418
  get [id]() {
@@ -774,6 +808,49 @@ Object.defineProperty(invokeWithTakeout_, "__F", {
774
808
  writable: true,
775
809
  value: null
776
810
  });
811
+ export class invokeWithBusinessConnection_ extends Function_ {
812
+ get [id]() {
813
+ return 0xDD289F8E;
814
+ }
815
+ static get [name]() {
816
+ return "invokeWithBusinessConnection";
817
+ }
818
+ static get [paramDesc]() {
819
+ return [
820
+ ["connection_id", "string", "string"],
821
+ ["query", types["TypeX"], "!X"],
822
+ ];
823
+ }
824
+ get [params]() {
825
+ return [
826
+ [this.connection_id, "string", "string"],
827
+ [this.query, types.TypeX, "!X"],
828
+ ];
829
+ }
830
+ constructor(params) {
831
+ super();
832
+ Object.defineProperty(this, "connection_id", {
833
+ enumerable: true,
834
+ configurable: true,
835
+ writable: true,
836
+ value: void 0
837
+ });
838
+ Object.defineProperty(this, "query", {
839
+ enumerable: true,
840
+ configurable: true,
841
+ writable: true,
842
+ value: void 0
843
+ });
844
+ this.connection_id = params.connection_id;
845
+ this.query = params.query;
846
+ }
847
+ }
848
+ Object.defineProperty(invokeWithBusinessConnection_, "__F", {
849
+ enumerable: true,
850
+ configurable: true,
851
+ writable: true,
852
+ value: null
853
+ });
777
854
  /** Send the verification code for login */
778
855
  export class auth_sendCode_ extends Function_ {
779
856
  get [id]() {
@@ -5866,132 +5943,517 @@ export class account_updateBusinessGreetingMessage_ extends Function_ {
5866
5943
  writable: true,
5867
5944
  value: void 0
5868
5945
  });
5869
- this.message = params?.message;
5946
+ this.message = params?.message;
5947
+ }
5948
+ }
5949
+ Object.defineProperty(account_updateBusinessGreetingMessage_, "__F", {
5950
+ enumerable: true,
5951
+ configurable: true,
5952
+ writable: true,
5953
+ value: null
5954
+ });
5955
+ export class account_updateBusinessAwayMessage_ extends Function_ {
5956
+ get [id]() {
5957
+ return 0xA26A7FA5;
5958
+ }
5959
+ static get [name]() {
5960
+ return "account.updateBusinessAwayMessage";
5961
+ }
5962
+ static get [paramDesc]() {
5963
+ return [
5964
+ ["flags", flags, "#"],
5965
+ ["message", types._InputBusinessAwayMessage, "flags.0?InputBusinessAwayMessage"],
5966
+ ];
5967
+ }
5968
+ get [params]() {
5969
+ return [
5970
+ ["flags", flags, "#"],
5971
+ [this.message ?? null, types._InputBusinessAwayMessage, "flags.0?InputBusinessAwayMessage"],
5972
+ ];
5973
+ }
5974
+ constructor(params) {
5975
+ super();
5976
+ Object.defineProperty(this, "message", {
5977
+ enumerable: true,
5978
+ configurable: true,
5979
+ writable: true,
5980
+ value: void 0
5981
+ });
5982
+ this.message = params?.message;
5983
+ }
5984
+ }
5985
+ Object.defineProperty(account_updateBusinessAwayMessage_, "__F", {
5986
+ enumerable: true,
5987
+ configurable: true,
5988
+ writable: true,
5989
+ value: null
5990
+ });
5991
+ export class account_updateConnectedBot_ extends Function_ {
5992
+ get [id]() {
5993
+ return 0x43D8521D;
5994
+ }
5995
+ static get [name]() {
5996
+ return "account.updateConnectedBot";
5997
+ }
5998
+ static get [paramDesc]() {
5999
+ return [
6000
+ ["flags", flags, "#"],
6001
+ ["can_reply", "true", "flags.0?true"],
6002
+ ["deleted", "true", "flags.1?true"],
6003
+ ["bot", types._InputUser, "InputUser"],
6004
+ ["recipients", types._InputBusinessBotRecipients, "InputBusinessBotRecipients"],
6005
+ ];
6006
+ }
6007
+ get [params]() {
6008
+ return [
6009
+ ["flags", flags, "#"],
6010
+ [this.can_reply ?? null, "true", "flags.0?true"],
6011
+ [this.deleted ?? null, "true", "flags.1?true"],
6012
+ [this.bot, types._InputUser, "InputUser"],
6013
+ [this.recipients, types._InputBusinessBotRecipients, "InputBusinessBotRecipients"],
6014
+ ];
6015
+ }
6016
+ constructor(params) {
6017
+ super();
6018
+ Object.defineProperty(this, "can_reply", {
6019
+ enumerable: true,
6020
+ configurable: true,
6021
+ writable: true,
6022
+ value: void 0
6023
+ });
6024
+ Object.defineProperty(this, "deleted", {
6025
+ enumerable: true,
6026
+ configurable: true,
6027
+ writable: true,
6028
+ value: void 0
6029
+ });
6030
+ Object.defineProperty(this, "bot", {
6031
+ enumerable: true,
6032
+ configurable: true,
6033
+ writable: true,
6034
+ value: void 0
6035
+ });
6036
+ Object.defineProperty(this, "recipients", {
6037
+ enumerable: true,
6038
+ configurable: true,
6039
+ writable: true,
6040
+ value: void 0
6041
+ });
6042
+ this.can_reply = params.can_reply;
6043
+ this.deleted = params.deleted;
6044
+ this.bot = params.bot;
6045
+ this.recipients = params.recipients;
6046
+ }
6047
+ }
6048
+ Object.defineProperty(account_updateConnectedBot_, "__F", {
6049
+ enumerable: true,
6050
+ configurable: true,
6051
+ writable: true,
6052
+ value: null
6053
+ });
6054
+ export class account_getConnectedBots_ extends Function_ {
6055
+ get [id]() {
6056
+ return 0x4EA4C80F;
6057
+ }
6058
+ static get [name]() {
6059
+ return "account.getConnectedBots";
6060
+ }
6061
+ static get [paramDesc]() {
6062
+ return [];
6063
+ }
6064
+ get [params]() {
6065
+ return [];
6066
+ }
6067
+ constructor() {
6068
+ super();
6069
+ }
6070
+ }
6071
+ Object.defineProperty(account_getConnectedBots_, "__F", {
6072
+ enumerable: true,
6073
+ configurable: true,
6074
+ writable: true,
6075
+ value: null
6076
+ });
6077
+ export class account_getBotBusinessConnection_ extends Function_ {
6078
+ get [id]() {
6079
+ return 0x76A86270;
6080
+ }
6081
+ static get [name]() {
6082
+ return "account.getBotBusinessConnection";
6083
+ }
6084
+ static get [paramDesc]() {
6085
+ return [
6086
+ ["connection_id", "string", "string"],
6087
+ ];
6088
+ }
6089
+ get [params]() {
6090
+ return [
6091
+ [this.connection_id, "string", "string"],
6092
+ ];
6093
+ }
6094
+ constructor(params) {
6095
+ super();
6096
+ Object.defineProperty(this, "connection_id", {
6097
+ enumerable: true,
6098
+ configurable: true,
6099
+ writable: true,
6100
+ value: void 0
6101
+ });
6102
+ this.connection_id = params.connection_id;
6103
+ }
6104
+ }
6105
+ Object.defineProperty(account_getBotBusinessConnection_, "__F", {
6106
+ enumerable: true,
6107
+ configurable: true,
6108
+ writable: true,
6109
+ value: null
6110
+ });
6111
+ export class account_updateBusinessIntro_ extends Function_ {
6112
+ get [id]() {
6113
+ return 0xA614D034;
6114
+ }
6115
+ static get [name]() {
6116
+ return "account.updateBusinessIntro";
6117
+ }
6118
+ static get [paramDesc]() {
6119
+ return [
6120
+ ["flags", flags, "#"],
6121
+ ["intro", types._InputBusinessIntro, "flags.0?InputBusinessIntro"],
6122
+ ];
6123
+ }
6124
+ get [params]() {
6125
+ return [
6126
+ ["flags", flags, "#"],
6127
+ [this.intro ?? null, types._InputBusinessIntro, "flags.0?InputBusinessIntro"],
6128
+ ];
6129
+ }
6130
+ constructor(params) {
6131
+ super();
6132
+ Object.defineProperty(this, "intro", {
6133
+ enumerable: true,
6134
+ configurable: true,
6135
+ writable: true,
6136
+ value: void 0
6137
+ });
6138
+ this.intro = params?.intro;
6139
+ }
6140
+ }
6141
+ Object.defineProperty(account_updateBusinessIntro_, "__F", {
6142
+ enumerable: true,
6143
+ configurable: true,
6144
+ writable: true,
6145
+ value: null
6146
+ });
6147
+ export class account_toggleConnectedBotPaused_ extends Function_ {
6148
+ get [id]() {
6149
+ return 0x646E1097;
6150
+ }
6151
+ static get [name]() {
6152
+ return "account.toggleConnectedBotPaused";
6153
+ }
6154
+ static get [paramDesc]() {
6155
+ return [
6156
+ ["peer", types._InputPeer, "InputPeer"],
6157
+ ["paused", "boolean", "Bool"],
6158
+ ];
6159
+ }
6160
+ get [params]() {
6161
+ return [
6162
+ [this.peer, types._InputPeer, "InputPeer"],
6163
+ [this.paused, "boolean", "Bool"],
6164
+ ];
6165
+ }
6166
+ constructor(params) {
6167
+ super();
6168
+ Object.defineProperty(this, "peer", {
6169
+ enumerable: true,
6170
+ configurable: true,
6171
+ writable: true,
6172
+ value: void 0
6173
+ });
6174
+ Object.defineProperty(this, "paused", {
6175
+ enumerable: true,
6176
+ configurable: true,
6177
+ writable: true,
6178
+ value: void 0
6179
+ });
6180
+ this.peer = params.peer;
6181
+ this.paused = params.paused;
6182
+ }
6183
+ }
6184
+ Object.defineProperty(account_toggleConnectedBotPaused_, "__F", {
6185
+ enumerable: true,
6186
+ configurable: true,
6187
+ writable: true,
6188
+ value: null
6189
+ });
6190
+ export class account_disablePeerConnectedBot_ extends Function_ {
6191
+ get [id]() {
6192
+ return 0x5E437ED9;
6193
+ }
6194
+ static get [name]() {
6195
+ return "account.disablePeerConnectedBot";
6196
+ }
6197
+ static get [paramDesc]() {
6198
+ return [
6199
+ ["peer", types._InputPeer, "InputPeer"],
6200
+ ];
6201
+ }
6202
+ get [params]() {
6203
+ return [
6204
+ [this.peer, types._InputPeer, "InputPeer"],
6205
+ ];
6206
+ }
6207
+ constructor(params) {
6208
+ super();
6209
+ Object.defineProperty(this, "peer", {
6210
+ enumerable: true,
6211
+ configurable: true,
6212
+ writable: true,
6213
+ value: void 0
6214
+ });
6215
+ this.peer = params.peer;
6216
+ }
6217
+ }
6218
+ Object.defineProperty(account_disablePeerConnectedBot_, "__F", {
6219
+ enumerable: true,
6220
+ configurable: true,
6221
+ writable: true,
6222
+ value: null
6223
+ });
6224
+ export class account_updateBirthday_ extends Function_ {
6225
+ get [id]() {
6226
+ return 0xCC6E0C11;
6227
+ }
6228
+ static get [name]() {
6229
+ return "account.updateBirthday";
6230
+ }
6231
+ static get [paramDesc]() {
6232
+ return [
6233
+ ["flags", flags, "#"],
6234
+ ["birthday", types._Birthday, "flags.0?Birthday"],
6235
+ ];
6236
+ }
6237
+ get [params]() {
6238
+ return [
6239
+ ["flags", flags, "#"],
6240
+ [this.birthday ?? null, types._Birthday, "flags.0?Birthday"],
6241
+ ];
6242
+ }
6243
+ constructor(params) {
6244
+ super();
6245
+ Object.defineProperty(this, "birthday", {
6246
+ enumerable: true,
6247
+ configurable: true,
6248
+ writable: true,
6249
+ value: void 0
6250
+ });
6251
+ this.birthday = params?.birthday;
6252
+ }
6253
+ }
6254
+ Object.defineProperty(account_updateBirthday_, "__F", {
6255
+ enumerable: true,
6256
+ configurable: true,
6257
+ writable: true,
6258
+ value: null
6259
+ });
6260
+ export class account_createBusinessChatLink_ extends Function_ {
6261
+ get [id]() {
6262
+ return 0x8851E68E;
6263
+ }
6264
+ static get [name]() {
6265
+ return "account.createBusinessChatLink";
6266
+ }
6267
+ static get [paramDesc]() {
6268
+ return [
6269
+ ["link", types._InputBusinessChatLink, "InputBusinessChatLink"],
6270
+ ];
6271
+ }
6272
+ get [params]() {
6273
+ return [
6274
+ [this.link, types._InputBusinessChatLink, "InputBusinessChatLink"],
6275
+ ];
6276
+ }
6277
+ constructor(params) {
6278
+ super();
6279
+ Object.defineProperty(this, "link", {
6280
+ enumerable: true,
6281
+ configurable: true,
6282
+ writable: true,
6283
+ value: void 0
6284
+ });
6285
+ this.link = params.link;
6286
+ }
6287
+ }
6288
+ Object.defineProperty(account_createBusinessChatLink_, "__F", {
6289
+ enumerable: true,
6290
+ configurable: true,
6291
+ writable: true,
6292
+ value: null
6293
+ });
6294
+ export class account_editBusinessChatLink_ extends Function_ {
6295
+ get [id]() {
6296
+ return 0x8C3410AF;
6297
+ }
6298
+ static get [name]() {
6299
+ return "account.editBusinessChatLink";
6300
+ }
6301
+ static get [paramDesc]() {
6302
+ return [
6303
+ ["slug", "string", "string"],
6304
+ ["link", types._InputBusinessChatLink, "InputBusinessChatLink"],
6305
+ ];
6306
+ }
6307
+ get [params]() {
6308
+ return [
6309
+ [this.slug, "string", "string"],
6310
+ [this.link, types._InputBusinessChatLink, "InputBusinessChatLink"],
6311
+ ];
6312
+ }
6313
+ constructor(params) {
6314
+ super();
6315
+ Object.defineProperty(this, "slug", {
6316
+ enumerable: true,
6317
+ configurable: true,
6318
+ writable: true,
6319
+ value: void 0
6320
+ });
6321
+ Object.defineProperty(this, "link", {
6322
+ enumerable: true,
6323
+ configurable: true,
6324
+ writable: true,
6325
+ value: void 0
6326
+ });
6327
+ this.slug = params.slug;
6328
+ this.link = params.link;
6329
+ }
6330
+ }
6331
+ Object.defineProperty(account_editBusinessChatLink_, "__F", {
6332
+ enumerable: true,
6333
+ configurable: true,
6334
+ writable: true,
6335
+ value: null
6336
+ });
6337
+ export class account_deleteBusinessChatLink_ extends Function_ {
6338
+ get [id]() {
6339
+ return 0x60073674;
6340
+ }
6341
+ static get [name]() {
6342
+ return "account.deleteBusinessChatLink";
6343
+ }
6344
+ static get [paramDesc]() {
6345
+ return [
6346
+ ["slug", "string", "string"],
6347
+ ];
6348
+ }
6349
+ get [params]() {
6350
+ return [
6351
+ [this.slug, "string", "string"],
6352
+ ];
6353
+ }
6354
+ constructor(params) {
6355
+ super();
6356
+ Object.defineProperty(this, "slug", {
6357
+ enumerable: true,
6358
+ configurable: true,
6359
+ writable: true,
6360
+ value: void 0
6361
+ });
6362
+ this.slug = params.slug;
5870
6363
  }
5871
6364
  }
5872
- Object.defineProperty(account_updateBusinessGreetingMessage_, "__F", {
6365
+ Object.defineProperty(account_deleteBusinessChatLink_, "__F", {
5873
6366
  enumerable: true,
5874
6367
  configurable: true,
5875
6368
  writable: true,
5876
6369
  value: null
5877
6370
  });
5878
- export class account_updateBusinessAwayMessage_ extends Function_ {
6371
+ export class account_getBusinessChatLinks_ extends Function_ {
5879
6372
  get [id]() {
5880
- return 0xA26A7FA5;
6373
+ return 0x6F70DDE1;
5881
6374
  }
5882
6375
  static get [name]() {
5883
- return "account.updateBusinessAwayMessage";
6376
+ return "account.getBusinessChatLinks";
5884
6377
  }
5885
6378
  static get [paramDesc]() {
5886
- return [
5887
- ["flags", flags, "#"],
5888
- ["message", types._InputBusinessAwayMessage, "flags.0?InputBusinessAwayMessage"],
5889
- ];
6379
+ return [];
5890
6380
  }
5891
6381
  get [params]() {
5892
- return [
5893
- ["flags", flags, "#"],
5894
- [this.message ?? null, types._InputBusinessAwayMessage, "flags.0?InputBusinessAwayMessage"],
5895
- ];
6382
+ return [];
5896
6383
  }
5897
- constructor(params) {
6384
+ constructor() {
5898
6385
  super();
5899
- Object.defineProperty(this, "message", {
5900
- enumerable: true,
5901
- configurable: true,
5902
- writable: true,
5903
- value: void 0
5904
- });
5905
- this.message = params?.message;
5906
6386
  }
5907
6387
  }
5908
- Object.defineProperty(account_updateBusinessAwayMessage_, "__F", {
6388
+ Object.defineProperty(account_getBusinessChatLinks_, "__F", {
5909
6389
  enumerable: true,
5910
6390
  configurable: true,
5911
6391
  writable: true,
5912
6392
  value: null
5913
6393
  });
5914
- export class account_updateConnectedBot_ extends Function_ {
6394
+ export class account_resolveBusinessChatLink_ extends Function_ {
5915
6395
  get [id]() {
5916
- return 0x9C2D527D;
6396
+ return 0x5492E5EE;
5917
6397
  }
5918
6398
  static get [name]() {
5919
- return "account.updateConnectedBot";
6399
+ return "account.resolveBusinessChatLink";
5920
6400
  }
5921
6401
  static get [paramDesc]() {
5922
6402
  return [
5923
- ["flags", flags, "#"],
5924
- ["can_reply", "true", "flags.0?true"],
5925
- ["deleted", "true", "flags.1?true"],
5926
- ["bot", types._InputUser, "InputUser"],
5927
- ["recipients", types._InputBusinessRecipients, "InputBusinessRecipients"],
6403
+ ["slug", "string", "string"],
5928
6404
  ];
5929
6405
  }
5930
6406
  get [params]() {
5931
6407
  return [
5932
- ["flags", flags, "#"],
5933
- [this.can_reply ?? null, "true", "flags.0?true"],
5934
- [this.deleted ?? null, "true", "flags.1?true"],
5935
- [this.bot, types._InputUser, "InputUser"],
5936
- [this.recipients, types._InputBusinessRecipients, "InputBusinessRecipients"],
6408
+ [this.slug, "string", "string"],
5937
6409
  ];
5938
6410
  }
5939
6411
  constructor(params) {
5940
6412
  super();
5941
- Object.defineProperty(this, "can_reply", {
5942
- enumerable: true,
5943
- configurable: true,
5944
- writable: true,
5945
- value: void 0
5946
- });
5947
- Object.defineProperty(this, "deleted", {
5948
- enumerable: true,
5949
- configurable: true,
5950
- writable: true,
5951
- value: void 0
5952
- });
5953
- Object.defineProperty(this, "bot", {
5954
- enumerable: true,
5955
- configurable: true,
5956
- writable: true,
5957
- value: void 0
5958
- });
5959
- Object.defineProperty(this, "recipients", {
6413
+ Object.defineProperty(this, "slug", {
5960
6414
  enumerable: true,
5961
6415
  configurable: true,
5962
6416
  writable: true,
5963
6417
  value: void 0
5964
6418
  });
5965
- this.can_reply = params.can_reply;
5966
- this.deleted = params.deleted;
5967
- this.bot = params.bot;
5968
- this.recipients = params.recipients;
6419
+ this.slug = params.slug;
5969
6420
  }
5970
6421
  }
5971
- Object.defineProperty(account_updateConnectedBot_, "__F", {
6422
+ Object.defineProperty(account_resolveBusinessChatLink_, "__F", {
5972
6423
  enumerable: true,
5973
6424
  configurable: true,
5974
6425
  writable: true,
5975
6426
  value: null
5976
6427
  });
5977
- export class account_getConnectedBots_ extends Function_ {
6428
+ export class account_updatePersonalChannel_ extends Function_ {
5978
6429
  get [id]() {
5979
- return 0x4EA4C80F;
6430
+ return 0xD94305E0;
5980
6431
  }
5981
6432
  static get [name]() {
5982
- return "account.getConnectedBots";
6433
+ return "account.updatePersonalChannel";
5983
6434
  }
5984
6435
  static get [paramDesc]() {
5985
- return [];
6436
+ return [
6437
+ ["channel", types._InputChannel, "InputChannel"],
6438
+ ];
5986
6439
  }
5987
6440
  get [params]() {
5988
- return [];
6441
+ return [
6442
+ [this.channel, types._InputChannel, "InputChannel"],
6443
+ ];
5989
6444
  }
5990
- constructor() {
6445
+ constructor(params) {
5991
6446
  super();
6447
+ Object.defineProperty(this, "channel", {
6448
+ enumerable: true,
6449
+ configurable: true,
6450
+ writable: true,
6451
+ value: void 0
6452
+ });
6453
+ this.channel = params.channel;
5992
6454
  }
5993
6455
  }
5994
- Object.defineProperty(account_getConnectedBots_, "__F", {
6456
+ Object.defineProperty(account_updatePersonalChannel_, "__F", {
5995
6457
  enumerable: true,
5996
6458
  configurable: true,
5997
6459
  writable: true,
@@ -7289,6 +7751,29 @@ Object.defineProperty(contacts_setBlocked_, "__F", {
7289
7751
  writable: true,
7290
7752
  value: null
7291
7753
  });
7754
+ export class contacts_getBirthdays_ extends Function_ {
7755
+ get [id]() {
7756
+ return 0xDAEDA864;
7757
+ }
7758
+ static get [name]() {
7759
+ return "contacts.getBirthdays";
7760
+ }
7761
+ static get [paramDesc]() {
7762
+ return [];
7763
+ }
7764
+ get [params]() {
7765
+ return [];
7766
+ }
7767
+ constructor() {
7768
+ super();
7769
+ }
7770
+ }
7771
+ Object.defineProperty(contacts_getBirthdays_, "__F", {
7772
+ enumerable: true,
7773
+ configurable: true,
7774
+ writable: true,
7775
+ value: null
7776
+ });
7292
7777
  /** Returns the list of messages by their IDs. */
7293
7778
  export class messages_getMessages_ extends Function_ {
7294
7779
  get [id]() {
@@ -8828,7 +9313,7 @@ Object.defineProperty(messages_editChatPhoto_, "__F", {
8828
9313
  /** Adds a user to a chat and sends a service message on it. */
8829
9314
  export class messages_addChatUser_ extends Function_ {
8830
9315
  get [id]() {
8831
- return 0xF24753E3;
9316
+ return 0xCBC6D107;
8832
9317
  }
8833
9318
  static get [name]() {
8834
9319
  return "messages.addChatUser";
@@ -8942,7 +9427,7 @@ Object.defineProperty(messages_deleteChatUser_, "__F", {
8942
9427
  /** Creates a new chat. */
8943
9428
  export class messages_createChat_ extends Function_ {
8944
9429
  get [id]() {
8945
- return 0x0034A818;
9430
+ return 0x92CEDDD4;
8946
9431
  }
8947
9432
  static get [name]() {
8948
9433
  return "messages.createChat";
@@ -12463,25 +12948,35 @@ Object.defineProperty(messages_setBotPrecheckoutResults_, "__F", {
12463
12948
  /** Upload a file and associate it to a chat (without actually sending it to the chat) */
12464
12949
  export class messages_uploadMedia_ extends Function_ {
12465
12950
  get [id]() {
12466
- return 0x519BC2B1;
12951
+ return 0x14967978;
12467
12952
  }
12468
12953
  static get [name]() {
12469
12954
  return "messages.uploadMedia";
12470
12955
  }
12471
12956
  static get [paramDesc]() {
12472
12957
  return [
12958
+ ["flags", flags, "#"],
12959
+ ["business_connection_id", "string", "flags.0?string"],
12473
12960
  ["peer", types._InputPeer, "InputPeer"],
12474
12961
  ["media", types._InputMedia, "InputMedia"],
12475
12962
  ];
12476
12963
  }
12477
12964
  get [params]() {
12478
12965
  return [
12966
+ ["flags", flags, "#"],
12967
+ [this.business_connection_id ?? null, "string", "flags.0?string"],
12479
12968
  [this.peer, types._InputPeer, "InputPeer"],
12480
12969
  [this.media, types._InputMedia, "InputMedia"],
12481
12970
  ];
12482
12971
  }
12483
12972
  constructor(params) {
12484
12973
  super();
12974
+ Object.defineProperty(this, "business_connection_id", {
12975
+ enumerable: true,
12976
+ configurable: true,
12977
+ writable: true,
12978
+ value: void 0
12979
+ });
12485
12980
  /** The chat, can be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty) for bots and [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf) for users. */
12486
12981
  Object.defineProperty(this, "peer", {
12487
12982
  enumerable: true,
@@ -12496,6 +12991,7 @@ export class messages_uploadMedia_ extends Function_ {
12496
12991
  writable: true,
12497
12992
  value: void 0
12498
12993
  });
12994
+ this.business_connection_id = params.business_connection_id;
12499
12995
  this.peer = params.peer;
12500
12996
  this.media = params.media;
12501
12997
  }
@@ -18966,7 +19462,7 @@ Object.defineProperty(messages_getQuickReplyMessages_, "__F", {
18966
19462
  });
18967
19463
  export class messages_sendQuickReplyMessages_ extends Function_ {
18968
19464
  get [id]() {
18969
- return 0x33153AD4;
19465
+ return 0x6C750DE1;
18970
19466
  }
18971
19467
  static get [name]() {
18972
19468
  return "messages.sendQuickReplyMessages";
@@ -18975,12 +19471,16 @@ export class messages_sendQuickReplyMessages_ extends Function_ {
18975
19471
  return [
18976
19472
  ["peer", types._InputPeer, "InputPeer"],
18977
19473
  ["shortcut_id", "number", "int"],
19474
+ ["id", ["number"], "Vector<int>"],
19475
+ ["random_id", ["bigint"], "Vector<long>"],
18978
19476
  ];
18979
19477
  }
18980
19478
  get [params]() {
18981
19479
  return [
18982
19480
  [this.peer, types._InputPeer, "InputPeer"],
18983
19481
  [this.shortcut_id, "number", "int"],
19482
+ [this.id, ["number"], "Vector<int>"],
19483
+ [this.random_id, ["bigint"], "Vector<long>"],
18984
19484
  ];
18985
19485
  }
18986
19486
  constructor(params) {
@@ -18997,8 +19497,22 @@ export class messages_sendQuickReplyMessages_ extends Function_ {
18997
19497
  writable: true,
18998
19498
  value: void 0
18999
19499
  });
19500
+ Object.defineProperty(this, "id", {
19501
+ enumerable: true,
19502
+ configurable: true,
19503
+ writable: true,
19504
+ value: void 0
19505
+ });
19506
+ Object.defineProperty(this, "random_id", {
19507
+ enumerable: true,
19508
+ configurable: true,
19509
+ writable: true,
19510
+ value: void 0
19511
+ });
19000
19512
  this.peer = params.peer;
19001
19513
  this.shortcut_id = params.shortcut_id;
19514
+ this.id = params.id;
19515
+ this.random_id = params.random_id;
19002
19516
  }
19003
19517
  }
19004
19518
  Object.defineProperty(messages_sendQuickReplyMessages_, "__F", {
@@ -19084,6 +19598,49 @@ Object.defineProperty(messages_toggleDialogFilterTags_, "__F", {
19084
19598
  writable: true,
19085
19599
  value: null
19086
19600
  });
19601
+ export class messages_getMyStickers_ extends Function_ {
19602
+ get [id]() {
19603
+ return 0xD0B5E1FC;
19604
+ }
19605
+ static get [name]() {
19606
+ return "messages.getMyStickers";
19607
+ }
19608
+ static get [paramDesc]() {
19609
+ return [
19610
+ ["offset_id", "bigint", "long"],
19611
+ ["limit", "number", "int"],
19612
+ ];
19613
+ }
19614
+ get [params]() {
19615
+ return [
19616
+ [this.offset_id, "bigint", "long"],
19617
+ [this.limit, "number", "int"],
19618
+ ];
19619
+ }
19620
+ constructor(params) {
19621
+ super();
19622
+ Object.defineProperty(this, "offset_id", {
19623
+ enumerable: true,
19624
+ configurable: true,
19625
+ writable: true,
19626
+ value: void 0
19627
+ });
19628
+ Object.defineProperty(this, "limit", {
19629
+ enumerable: true,
19630
+ configurable: true,
19631
+ writable: true,
19632
+ value: void 0
19633
+ });
19634
+ this.offset_id = params.offset_id;
19635
+ this.limit = params.limit;
19636
+ }
19637
+ }
19638
+ Object.defineProperty(messages_getMyStickers_, "__F", {
19639
+ enumerable: true,
19640
+ configurable: true,
19641
+ writable: true,
19642
+ value: null
19643
+ });
19087
19644
  /** Returns a current state of updates. */
19088
19645
  export class updates_getState_ extends Function_ {
19089
19646
  get [id]() {
@@ -21744,7 +22301,7 @@ Object.defineProperty(channels_leaveChannel_, "__F", {
21744
22301
  /** Invite users to a channel/supergroup */
21745
22302
  export class channels_inviteToChannel_ extends Function_ {
21746
22303
  get [id]() {
21747
- return 0x199F3A6C;
22304
+ return 0xC9E33D54;
21748
22305
  }
21749
22306
  static get [name]() {
21750
22307
  return "channels.inviteToChannel";
@@ -21950,6 +22507,7 @@ export class channels_getAdminedPublicChannels_ extends Function_ {
21950
22507
  ["flags", flags, "#"],
21951
22508
  ["by_location", "true", "flags.0?true"],
21952
22509
  ["check_limit", "true", "flags.1?true"],
22510
+ ["for_personal", "true", "flags.2?true"],
21953
22511
  ];
21954
22512
  }
21955
22513
  get [params]() {
@@ -21957,6 +22515,7 @@ export class channels_getAdminedPublicChannels_ extends Function_ {
21957
22515
  ["flags", flags, "#"],
21958
22516
  [this.by_location ?? null, "true", "flags.0?true"],
21959
22517
  [this.check_limit ?? null, "true", "flags.1?true"],
22518
+ [this.for_personal ?? null, "true", "flags.2?true"],
21960
22519
  ];
21961
22520
  }
21962
22521
  constructor(params) {
@@ -21976,8 +22535,15 @@ export class channels_getAdminedPublicChannels_ extends Function_ {
21976
22535
  writable: true,
21977
22536
  value: void 0
21978
22537
  });
22538
+ Object.defineProperty(this, "for_personal", {
22539
+ enumerable: true,
22540
+ configurable: true,
22541
+ writable: true,
22542
+ value: void 0
22543
+ });
21979
22544
  this.by_location = params?.by_location;
21980
22545
  this.check_limit = params?.check_limit;
22546
+ this.for_personal = params?.for_personal;
21981
22547
  }
21982
22548
  }
21983
22549
  Object.defineProperty(channels_getAdminedPublicChannels_, "__F", {
@@ -23889,85 +24455,173 @@ export class channels_getChannelRecommendations_ extends Function_ {
23889
24455
  }
23890
24456
  constructor(params) {
23891
24457
  super();
23892
- /** The method will return channels related to the passed `channel`. */
24458
+ /** The method will return channels related to the passed `channel`. */
24459
+ Object.defineProperty(this, "channel", {
24460
+ enumerable: true,
24461
+ configurable: true,
24462
+ writable: true,
24463
+ value: void 0
24464
+ });
24465
+ this.channel = params.channel;
24466
+ }
24467
+ }
24468
+ Object.defineProperty(channels_getChannelRecommendations_, "__F", {
24469
+ enumerable: true,
24470
+ configurable: true,
24471
+ writable: true,
24472
+ value: null
24473
+ });
24474
+ /** Set an [emoji status](https://core.telegram.org/api/emoji-status) for a channel. */
24475
+ export class channels_updateEmojiStatus_ extends Function_ {
24476
+ get [id]() {
24477
+ return 0xF0D3E6A8;
24478
+ }
24479
+ static get [name]() {
24480
+ return "channels.updateEmojiStatus";
24481
+ }
24482
+ static get [paramDesc]() {
24483
+ return [
24484
+ ["channel", types._InputChannel, "InputChannel"],
24485
+ ["emoji_status", types._EmojiStatus, "EmojiStatus"],
24486
+ ];
24487
+ }
24488
+ get [params]() {
24489
+ return [
24490
+ [this.channel, types._InputChannel, "InputChannel"],
24491
+ [this.emoji_status, types._EmojiStatus, "EmojiStatus"],
24492
+ ];
24493
+ }
24494
+ constructor(params) {
24495
+ super();
24496
+ /** The channel, must have at least [`channel_emoji_status_level_min` boosts](https://core.telegram.org/api/config#channel-emoji-status-level-min). */
24497
+ Object.defineProperty(this, "channel", {
24498
+ enumerable: true,
24499
+ configurable: true,
24500
+ writable: true,
24501
+ value: void 0
24502
+ });
24503
+ /** [Emoji status](https://core.telegram.org/api/emoji-status) to set */
24504
+ Object.defineProperty(this, "emoji_status", {
24505
+ enumerable: true,
24506
+ configurable: true,
24507
+ writable: true,
24508
+ value: void 0
24509
+ });
24510
+ this.channel = params.channel;
24511
+ this.emoji_status = params.emoji_status;
24512
+ }
24513
+ }
24514
+ Object.defineProperty(channels_updateEmojiStatus_, "__F", {
24515
+ enumerable: true,
24516
+ configurable: true,
24517
+ writable: true,
24518
+ value: null
24519
+ });
24520
+ export class channels_setBoostsToUnblockRestrictions_ extends Function_ {
24521
+ get [id]() {
24522
+ return 0xAD399CEE;
24523
+ }
24524
+ static get [name]() {
24525
+ return "channels.setBoostsToUnblockRestrictions";
24526
+ }
24527
+ static get [paramDesc]() {
24528
+ return [
24529
+ ["channel", types._InputChannel, "InputChannel"],
24530
+ ["boosts", "number", "int"],
24531
+ ];
24532
+ }
24533
+ get [params]() {
24534
+ return [
24535
+ [this.channel, types._InputChannel, "InputChannel"],
24536
+ [this.boosts, "number", "int"],
24537
+ ];
24538
+ }
24539
+ constructor(params) {
24540
+ super();
23893
24541
  Object.defineProperty(this, "channel", {
23894
24542
  enumerable: true,
23895
24543
  configurable: true,
23896
24544
  writable: true,
23897
24545
  value: void 0
23898
24546
  });
24547
+ Object.defineProperty(this, "boosts", {
24548
+ enumerable: true,
24549
+ configurable: true,
24550
+ writable: true,
24551
+ value: void 0
24552
+ });
23899
24553
  this.channel = params.channel;
24554
+ this.boosts = params.boosts;
23900
24555
  }
23901
24556
  }
23902
- Object.defineProperty(channels_getChannelRecommendations_, "__F", {
24557
+ Object.defineProperty(channels_setBoostsToUnblockRestrictions_, "__F", {
23903
24558
  enumerable: true,
23904
24559
  configurable: true,
23905
24560
  writable: true,
23906
24561
  value: null
23907
24562
  });
23908
- /** Set an [emoji status](https://core.telegram.org/api/emoji-status) for a channel. */
23909
- export class channels_updateEmojiStatus_ extends Function_ {
24563
+ export class channels_setEmojiStickers_ extends Function_ {
23910
24564
  get [id]() {
23911
- return 0xF0D3E6A8;
24565
+ return 0x3CD930B7;
23912
24566
  }
23913
24567
  static get [name]() {
23914
- return "channels.updateEmojiStatus";
24568
+ return "channels.setEmojiStickers";
23915
24569
  }
23916
24570
  static get [paramDesc]() {
23917
24571
  return [
23918
24572
  ["channel", types._InputChannel, "InputChannel"],
23919
- ["emoji_status", types._EmojiStatus, "EmojiStatus"],
24573
+ ["stickerset", types._InputStickerSet, "InputStickerSet"],
23920
24574
  ];
23921
24575
  }
23922
24576
  get [params]() {
23923
24577
  return [
23924
24578
  [this.channel, types._InputChannel, "InputChannel"],
23925
- [this.emoji_status, types._EmojiStatus, "EmojiStatus"],
24579
+ [this.stickerset, types._InputStickerSet, "InputStickerSet"],
23926
24580
  ];
23927
24581
  }
23928
24582
  constructor(params) {
23929
24583
  super();
23930
- /** The channel, must have at least [`channel_emoji_status_level_min` boosts](https://core.telegram.org/api/config#channel-emoji-status-level-min). */
23931
24584
  Object.defineProperty(this, "channel", {
23932
24585
  enumerable: true,
23933
24586
  configurable: true,
23934
24587
  writable: true,
23935
24588
  value: void 0
23936
24589
  });
23937
- /** [Emoji status](https://core.telegram.org/api/emoji-status) to set */
23938
- Object.defineProperty(this, "emoji_status", {
24590
+ Object.defineProperty(this, "stickerset", {
23939
24591
  enumerable: true,
23940
24592
  configurable: true,
23941
24593
  writable: true,
23942
24594
  value: void 0
23943
24595
  });
23944
24596
  this.channel = params.channel;
23945
- this.emoji_status = params.emoji_status;
24597
+ this.stickerset = params.stickerset;
23946
24598
  }
23947
24599
  }
23948
- Object.defineProperty(channels_updateEmojiStatus_, "__F", {
24600
+ Object.defineProperty(channels_setEmojiStickers_, "__F", {
23949
24601
  enumerable: true,
23950
24602
  configurable: true,
23951
24603
  writable: true,
23952
24604
  value: null
23953
24605
  });
23954
- export class channels_setBoostsToUnblockRestrictions_ extends Function_ {
24606
+ export class channels_reportSponsoredMessage_ extends Function_ {
23955
24607
  get [id]() {
23956
- return 0xAD399CEE;
24608
+ return 0xAF8FF6B9;
23957
24609
  }
23958
24610
  static get [name]() {
23959
- return "channels.setBoostsToUnblockRestrictions";
24611
+ return "channels.reportSponsoredMessage";
23960
24612
  }
23961
24613
  static get [paramDesc]() {
23962
24614
  return [
23963
24615
  ["channel", types._InputChannel, "InputChannel"],
23964
- ["boosts", "number", "int"],
24616
+ ["random_id", Uint8Array, "bytes"],
24617
+ ["option", Uint8Array, "bytes"],
23965
24618
  ];
23966
24619
  }
23967
24620
  get [params]() {
23968
24621
  return [
23969
24622
  [this.channel, types._InputChannel, "InputChannel"],
23970
- [this.boosts, "number", "int"],
24623
+ [this.random_id, Uint8Array, "bytes"],
24624
+ [this.option, Uint8Array, "bytes"],
23971
24625
  ];
23972
24626
  }
23973
24627
  constructor(params) {
@@ -23978,39 +24632,46 @@ export class channels_setBoostsToUnblockRestrictions_ extends Function_ {
23978
24632
  writable: true,
23979
24633
  value: void 0
23980
24634
  });
23981
- Object.defineProperty(this, "boosts", {
24635
+ Object.defineProperty(this, "random_id", {
24636
+ enumerable: true,
24637
+ configurable: true,
24638
+ writable: true,
24639
+ value: void 0
24640
+ });
24641
+ Object.defineProperty(this, "option", {
23982
24642
  enumerable: true,
23983
24643
  configurable: true,
23984
24644
  writable: true,
23985
24645
  value: void 0
23986
24646
  });
23987
24647
  this.channel = params.channel;
23988
- this.boosts = params.boosts;
24648
+ this.random_id = params.random_id;
24649
+ this.option = params.option;
23989
24650
  }
23990
24651
  }
23991
- Object.defineProperty(channels_setBoostsToUnblockRestrictions_, "__F", {
24652
+ Object.defineProperty(channels_reportSponsoredMessage_, "__F", {
23992
24653
  enumerable: true,
23993
24654
  configurable: true,
23994
24655
  writable: true,
23995
24656
  value: null
23996
24657
  });
23997
- export class channels_setEmojiStickers_ extends Function_ {
24658
+ export class channels_restrictSponsoredMessages_ extends Function_ {
23998
24659
  get [id]() {
23999
- return 0x3CD930B7;
24660
+ return 0x9AE91519;
24000
24661
  }
24001
24662
  static get [name]() {
24002
- return "channels.setEmojiStickers";
24663
+ return "channels.restrictSponsoredMessages";
24003
24664
  }
24004
24665
  static get [paramDesc]() {
24005
24666
  return [
24006
24667
  ["channel", types._InputChannel, "InputChannel"],
24007
- ["stickerset", types._InputStickerSet, "InputStickerSet"],
24668
+ ["restricted", "boolean", "Bool"],
24008
24669
  ];
24009
24670
  }
24010
24671
  get [params]() {
24011
24672
  return [
24012
24673
  [this.channel, types._InputChannel, "InputChannel"],
24013
- [this.stickerset, types._InputStickerSet, "InputStickerSet"],
24674
+ [this.restricted, "boolean", "Bool"],
24014
24675
  ];
24015
24676
  }
24016
24677
  constructor(params) {
@@ -24021,17 +24682,17 @@ export class channels_setEmojiStickers_ extends Function_ {
24021
24682
  writable: true,
24022
24683
  value: void 0
24023
24684
  });
24024
- Object.defineProperty(this, "stickerset", {
24685
+ Object.defineProperty(this, "restricted", {
24025
24686
  enumerable: true,
24026
24687
  configurable: true,
24027
24688
  writable: true,
24028
24689
  value: void 0
24029
24690
  });
24030
24691
  this.channel = params.channel;
24031
- this.stickerset = params.stickerset;
24692
+ this.restricted = params.restricted;
24032
24693
  }
24033
24694
  }
24034
- Object.defineProperty(channels_setEmojiStickers_, "__F", {
24695
+ Object.defineProperty(channels_restrictSponsoredMessages_, "__F", {
24035
24696
  enumerable: true,
24036
24697
  configurable: true,
24037
24698
  writable: true,
@@ -25529,8 +26190,6 @@ export class stickers_createStickerSet_ extends Function_ {
25529
26190
  return [
25530
26191
  ["flags", flags, "#"],
25531
26192
  ["masks", "true", "flags.0?true"],
25532
- ["animated", "true", "flags.1?true"],
25533
- ["videos", "true", "flags.4?true"],
25534
26193
  ["emojis", "true", "flags.5?true"],
25535
26194
  ["text_color", "true", "flags.6?true"],
25536
26195
  ["user_id", types._InputUser, "InputUser"],
@@ -25545,8 +26204,6 @@ export class stickers_createStickerSet_ extends Function_ {
25545
26204
  return [
25546
26205
  ["flags", flags, "#"],
25547
26206
  [this.masks ?? null, "true", "flags.0?true"],
25548
- [this.animated ?? null, "true", "flags.1?true"],
25549
- [this.videos ?? null, "true", "flags.4?true"],
25550
26207
  [this.emojis ?? null, "true", "flags.5?true"],
25551
26208
  [this.text_color ?? null, "true", "flags.6?true"],
25552
26209
  [this.user_id, types._InputUser, "InputUser"],
@@ -25566,20 +26223,6 @@ export class stickers_createStickerSet_ extends Function_ {
25566
26223
  writable: true,
25567
26224
  value: void 0
25568
26225
  });
25569
- /** Whether this is an animated stickerset */
25570
- Object.defineProperty(this, "animated", {
25571
- enumerable: true,
25572
- configurable: true,
25573
- writable: true,
25574
- value: void 0
25575
- });
25576
- /** Whether this is a video stickerset */
25577
- Object.defineProperty(this, "videos", {
25578
- enumerable: true,
25579
- configurable: true,
25580
- writable: true,
25581
- value: void 0
25582
- });
25583
26226
  /** Whether this is a [custom emoji](https://core.telegram.org/api/custom-emoji) stickerset. */
25584
26227
  Object.defineProperty(this, "emojis", {
25585
26228
  enumerable: true,
@@ -25637,8 +26280,6 @@ export class stickers_createStickerSet_ extends Function_ {
25637
26280
  value: void 0
25638
26281
  });
25639
26282
  this.masks = params.masks;
25640
- this.animated = params.animated;
25641
- this.videos = params.videos;
25642
26283
  this.emojis = params.emojis;
25643
26284
  this.text_color = params.text_color;
25644
26285
  this.user_id = params.user_id;
@@ -26063,6 +26704,49 @@ Object.defineProperty(stickers_deleteStickerSet_, "__F", {
26063
26704
  writable: true,
26064
26705
  value: null
26065
26706
  });
26707
+ export class stickers_replaceSticker_ extends Function_ {
26708
+ get [id]() {
26709
+ return 0x4696459A;
26710
+ }
26711
+ static get [name]() {
26712
+ return "stickers.replaceSticker";
26713
+ }
26714
+ static get [paramDesc]() {
26715
+ return [
26716
+ ["sticker", types._InputDocument, "InputDocument"],
26717
+ ["new_sticker", types._InputStickerSetItem, "InputStickerSetItem"],
26718
+ ];
26719
+ }
26720
+ get [params]() {
26721
+ return [
26722
+ [this.sticker, types._InputDocument, "InputDocument"],
26723
+ [this.new_sticker, types._InputStickerSetItem, "InputStickerSetItem"],
26724
+ ];
26725
+ }
26726
+ constructor(params) {
26727
+ super();
26728
+ Object.defineProperty(this, "sticker", {
26729
+ enumerable: true,
26730
+ configurable: true,
26731
+ writable: true,
26732
+ value: void 0
26733
+ });
26734
+ Object.defineProperty(this, "new_sticker", {
26735
+ enumerable: true,
26736
+ configurable: true,
26737
+ writable: true,
26738
+ value: void 0
26739
+ });
26740
+ this.sticker = params.sticker;
26741
+ this.new_sticker = params.new_sticker;
26742
+ }
26743
+ }
26744
+ Object.defineProperty(stickers_replaceSticker_, "__F", {
26745
+ enumerable: true,
26746
+ configurable: true,
26747
+ writable: true,
26748
+ value: null
26749
+ });
26066
26750
  /** Get phone call configuration to be passed to libtgvoip's shared config */
26067
26751
  export class phone_getCallConfig_ extends Function_ {
26068
26752
  get [id]() {
@@ -28408,6 +29092,146 @@ Object.defineProperty(stats_getStoryPublicForwards_, "__F", {
28408
29092
  writable: true,
28409
29093
  value: null
28410
29094
  });
29095
+ export class stats_getBroadcastRevenueStats_ extends Function_ {
29096
+ get [id]() {
29097
+ return 0x75DFB671;
29098
+ }
29099
+ static get [name]() {
29100
+ return "stats.getBroadcastRevenueStats";
29101
+ }
29102
+ static get [paramDesc]() {
29103
+ return [
29104
+ ["flags", flags, "#"],
29105
+ ["dark", "true", "flags.0?true"],
29106
+ ["channel", types._InputChannel, "InputChannel"],
29107
+ ];
29108
+ }
29109
+ get [params]() {
29110
+ return [
29111
+ ["flags", flags, "#"],
29112
+ [this.dark ?? null, "true", "flags.0?true"],
29113
+ [this.channel, types._InputChannel, "InputChannel"],
29114
+ ];
29115
+ }
29116
+ constructor(params) {
29117
+ super();
29118
+ Object.defineProperty(this, "dark", {
29119
+ enumerable: true,
29120
+ configurable: true,
29121
+ writable: true,
29122
+ value: void 0
29123
+ });
29124
+ Object.defineProperty(this, "channel", {
29125
+ enumerable: true,
29126
+ configurable: true,
29127
+ writable: true,
29128
+ value: void 0
29129
+ });
29130
+ this.dark = params.dark;
29131
+ this.channel = params.channel;
29132
+ }
29133
+ }
29134
+ Object.defineProperty(stats_getBroadcastRevenueStats_, "__F", {
29135
+ enumerable: true,
29136
+ configurable: true,
29137
+ writable: true,
29138
+ value: null
29139
+ });
29140
+ export class stats_getBroadcastRevenueWithdrawalUrl_ extends Function_ {
29141
+ get [id]() {
29142
+ return 0x2A65EF73;
29143
+ }
29144
+ static get [name]() {
29145
+ return "stats.getBroadcastRevenueWithdrawalUrl";
29146
+ }
29147
+ static get [paramDesc]() {
29148
+ return [
29149
+ ["channel", types._InputChannel, "InputChannel"],
29150
+ ["password", types._InputCheckPasswordSRP, "InputCheckPasswordSRP"],
29151
+ ];
29152
+ }
29153
+ get [params]() {
29154
+ return [
29155
+ [this.channel, types._InputChannel, "InputChannel"],
29156
+ [this.password, types._InputCheckPasswordSRP, "InputCheckPasswordSRP"],
29157
+ ];
29158
+ }
29159
+ constructor(params) {
29160
+ super();
29161
+ Object.defineProperty(this, "channel", {
29162
+ enumerable: true,
29163
+ configurable: true,
29164
+ writable: true,
29165
+ value: void 0
29166
+ });
29167
+ Object.defineProperty(this, "password", {
29168
+ enumerable: true,
29169
+ configurable: true,
29170
+ writable: true,
29171
+ value: void 0
29172
+ });
29173
+ this.channel = params.channel;
29174
+ this.password = params.password;
29175
+ }
29176
+ }
29177
+ Object.defineProperty(stats_getBroadcastRevenueWithdrawalUrl_, "__F", {
29178
+ enumerable: true,
29179
+ configurable: true,
29180
+ writable: true,
29181
+ value: null
29182
+ });
29183
+ export class stats_getBroadcastRevenueTransactions_ extends Function_ {
29184
+ get [id]() {
29185
+ return 0x0069280F;
29186
+ }
29187
+ static get [name]() {
29188
+ return "stats.getBroadcastRevenueTransactions";
29189
+ }
29190
+ static get [paramDesc]() {
29191
+ return [
29192
+ ["channel", types._InputChannel, "InputChannel"],
29193
+ ["offset", "number", "int"],
29194
+ ["limit", "number", "int"],
29195
+ ];
29196
+ }
29197
+ get [params]() {
29198
+ return [
29199
+ [this.channel, types._InputChannel, "InputChannel"],
29200
+ [this.offset, "number", "int"],
29201
+ [this.limit, "number", "int"],
29202
+ ];
29203
+ }
29204
+ constructor(params) {
29205
+ super();
29206
+ Object.defineProperty(this, "channel", {
29207
+ enumerable: true,
29208
+ configurable: true,
29209
+ writable: true,
29210
+ value: void 0
29211
+ });
29212
+ Object.defineProperty(this, "offset", {
29213
+ enumerable: true,
29214
+ configurable: true,
29215
+ writable: true,
29216
+ value: void 0
29217
+ });
29218
+ Object.defineProperty(this, "limit", {
29219
+ enumerable: true,
29220
+ configurable: true,
29221
+ writable: true,
29222
+ value: void 0
29223
+ });
29224
+ this.channel = params.channel;
29225
+ this.offset = params.offset;
29226
+ this.limit = params.limit;
29227
+ }
29228
+ }
29229
+ Object.defineProperty(stats_getBroadcastRevenueTransactions_, "__F", {
29230
+ enumerable: true,
29231
+ configurable: true,
29232
+ writable: true,
29233
+ value: null
29234
+ });
28411
29235
  /** Export a [folder »](https://core.telegram.org/api/folders), creating a [chat folder deep link »](https://core.telegram.org/api/links#chat-folder-links). */
28412
29236
  export class chatlists_exportChatlistInvite_ extends Function_ {
28413
29237
  get [id]() {
@@ -30699,6 +31523,40 @@ Object.defineProperty(smsjobs_finishJob_, "__F", {
30699
31523
  writable: true,
30700
31524
  value: null
30701
31525
  });
31526
+ export class fragment_getCollectibleInfo_ extends Function_ {
31527
+ get [id]() {
31528
+ return 0xBE1E85BA;
31529
+ }
31530
+ static get [name]() {
31531
+ return "fragment.getCollectibleInfo";
31532
+ }
31533
+ static get [paramDesc]() {
31534
+ return [
31535
+ ["collectible", types._InputCollectible, "InputCollectible"],
31536
+ ];
31537
+ }
31538
+ get [params]() {
31539
+ return [
31540
+ [this.collectible, types._InputCollectible, "InputCollectible"],
31541
+ ];
31542
+ }
31543
+ constructor(params) {
31544
+ super();
31545
+ Object.defineProperty(this, "collectible", {
31546
+ enumerable: true,
31547
+ configurable: true,
31548
+ writable: true,
31549
+ value: void 0
31550
+ });
31551
+ this.collectible = params.collectible;
31552
+ }
31553
+ }
31554
+ Object.defineProperty(fragment_getCollectibleInfo_, "__F", {
31555
+ enumerable: true,
31556
+ configurable: true,
31557
+ writable: true,
31558
+ value: null
31559
+ });
30702
31560
  export const functions = {
30703
31561
  Function: Function_,
30704
31562
  req_pq_multi: req_pq_multi_,
@@ -30710,6 +31568,7 @@ export const functions = {
30710
31568
  ping_delay_disconnect: ping_delay_disconnect_,
30711
31569
  destroy_session: destroy_session_,
30712
31570
  destroy_auth_key: destroy_auth_key_,
31571
+ invokeWithBusinessConnectionPrefix: invokeWithBusinessConnectionPrefix_,
30713
31572
  invokeAfterMsg: invokeAfterMsg_,
30714
31573
  invokeAfterMsgs: invokeAfterMsgs_,
30715
31574
  initConnection: initConnection_,
@@ -30717,6 +31576,7 @@ export const functions = {
30717
31576
  invokeWithoutUpdates: invokeWithoutUpdates_,
30718
31577
  invokeWithMessagesRange: invokeWithMessagesRange_,
30719
31578
  invokeWithTakeout: invokeWithTakeout_,
31579
+ invokeWithBusinessConnection: invokeWithBusinessConnection_,
30720
31580
  auth: {
30721
31581
  sendCode: auth_sendCode_,
30722
31582
  signUp: auth_signUp_,
@@ -30840,6 +31700,17 @@ export const functions = {
30840
31700
  updateBusinessAwayMessage: account_updateBusinessAwayMessage_,
30841
31701
  updateConnectedBot: account_updateConnectedBot_,
30842
31702
  getConnectedBots: account_getConnectedBots_,
31703
+ getBotBusinessConnection: account_getBotBusinessConnection_,
31704
+ updateBusinessIntro: account_updateBusinessIntro_,
31705
+ toggleConnectedBotPaused: account_toggleConnectedBotPaused_,
31706
+ disablePeerConnectedBot: account_disablePeerConnectedBot_,
31707
+ updateBirthday: account_updateBirthday_,
31708
+ createBusinessChatLink: account_createBusinessChatLink_,
31709
+ editBusinessChatLink: account_editBusinessChatLink_,
31710
+ deleteBusinessChatLink: account_deleteBusinessChatLink_,
31711
+ getBusinessChatLinks: account_getBusinessChatLinks_,
31712
+ resolveBusinessChatLink: account_resolveBusinessChatLink_,
31713
+ updatePersonalChannel: account_updatePersonalChannel_,
30843
31714
  },
30844
31715
  users: {
30845
31716
  getUsers: users_getUsers_,
@@ -30873,6 +31744,7 @@ export const functions = {
30873
31744
  importContactToken: contacts_importContactToken_,
30874
31745
  editCloseFriends: contacts_editCloseFriends_,
30875
31746
  setBlocked: contacts_setBlocked_,
31747
+ getBirthdays: contacts_getBirthdays_,
30876
31748
  },
30877
31749
  messages: {
30878
31750
  getMessages: messages_getMessages_,
@@ -31082,6 +31954,7 @@ export const functions = {
31082
31954
  sendQuickReplyMessages: messages_sendQuickReplyMessages_,
31083
31955
  deleteQuickReplyMessages: messages_deleteQuickReplyMessages_,
31084
31956
  toggleDialogFilterTags: messages_toggleDialogFilterTags_,
31957
+ getMyStickers: messages_getMyStickers_,
31085
31958
  },
31086
31959
  updates: {
31087
31960
  getState: updates_getState_,
@@ -31195,6 +32068,8 @@ export const functions = {
31195
32068
  updateEmojiStatus: channels_updateEmojiStatus_,
31196
32069
  setBoostsToUnblockRestrictions: channels_setBoostsToUnblockRestrictions_,
31197
32070
  setEmojiStickers: channels_setEmojiStickers_,
32071
+ reportSponsoredMessage: channels_reportSponsoredMessage_,
32072
+ restrictSponsoredMessages: channels_restrictSponsoredMessages_,
31198
32073
  },
31199
32074
  bots: {
31200
32075
  sendCustomRequest: bots_sendCustomRequest_,
@@ -31243,6 +32118,7 @@ export const functions = {
31243
32118
  changeSticker: stickers_changeSticker_,
31244
32119
  renameStickerSet: stickers_renameStickerSet_,
31245
32120
  deleteStickerSet: stickers_deleteStickerSet_,
32121
+ replaceSticker: stickers_replaceSticker_,
31246
32122
  },
31247
32123
  phone: {
31248
32124
  getCallConfig: phone_getCallConfig_,
@@ -31295,6 +32171,9 @@ export const functions = {
31295
32171
  getMessageStats: stats_getMessageStats_,
31296
32172
  getStoryStats: stats_getStoryStats_,
31297
32173
  getStoryPublicForwards: stats_getStoryPublicForwards_,
32174
+ getBroadcastRevenueStats: stats_getBroadcastRevenueStats_,
32175
+ getBroadcastRevenueWithdrawalUrl: stats_getBroadcastRevenueWithdrawalUrl_,
32176
+ getBroadcastRevenueTransactions: stats_getBroadcastRevenueTransactions_,
31298
32177
  },
31299
32178
  chatlists: {
31300
32179
  exportChatlistInvite: chatlists_exportChatlistInvite_,
@@ -31351,4 +32230,7 @@ export const functions = {
31351
32230
  getSmsJob: smsjobs_getSmsJob_,
31352
32231
  finishJob: smsjobs_finishJob_,
31353
32232
  },
32233
+ fragment: {
32234
+ getCollectibleInfo: fragment_getCollectibleInfo_,
32235
+ },
31354
32236
  };