@mtkruto/node 0.192.0 → 0.194.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +5 -5
  2. package/esm/0_errors.d.ts +6 -0
  3. package/esm/0_errors.d.ts.map +1 -1
  4. package/esm/0_errors.js +12 -0
  5. package/esm/3_types.d.ts +8 -2
  6. package/esm/3_types.d.ts.map +1 -1
  7. package/esm/3_types.js +8 -2
  8. package/esm/client/0_html.d.ts +2 -1
  9. package/esm/client/0_html.d.ts.map +1 -1
  10. package/esm/client/0_html.js +18 -16
  11. package/esm/client/0_markdown.d.ts +3 -2
  12. package/esm/client/0_markdown.d.ts.map +1 -1
  13. package/esm/client/0_markdown.js +9 -7
  14. package/esm/client/0_params.d.ts +51 -0
  15. package/esm/client/0_params.d.ts.map +1 -1
  16. package/esm/client/0_password.js +5 -5
  17. package/esm/client/0_storage_operations.d.ts +9 -0
  18. package/esm/client/0_storage_operations.d.ts.map +1 -1
  19. package/esm/client/0_storage_operations.js +40 -51
  20. package/esm/client/1_client_generic.d.ts +161 -13
  21. package/esm/client/1_client_generic.d.ts.map +1 -1
  22. package/esm/client/1_client_plain.d.ts.map +1 -1
  23. package/esm/client/1_client_plain.js +2 -1
  24. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  25. package/esm/client/2_client_encrypted.js +2 -4
  26. package/esm/client/2_reaction_manager.d.ts +2 -1
  27. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  28. package/esm/client/2_reaction_manager.js +7 -0
  29. package/esm/client/2_update_manager.d.ts +1 -1
  30. package/esm/client/2_update_manager.d.ts.map +1 -1
  31. package/esm/client/2_update_manager.js +13 -12
  32. package/esm/client/3_account_manager.d.ts +8 -2
  33. package/esm/client/3_account_manager.d.ts.map +1 -1
  34. package/esm/client/3_account_manager.js +54 -2
  35. package/esm/client/3_message_manager.js +6 -6
  36. package/esm/client/3_secret_chat_manager.d.ts +7 -2
  37. package/esm/client/3_secret_chat_manager.d.ts.map +1 -1
  38. package/esm/client/3_secret_chat_manager.js +65 -16
  39. package/esm/client/3_sticker_set_manager.d.ts +5 -0
  40. package/esm/client/3_sticker_set_manager.d.ts.map +1 -1
  41. package/esm/client/3_sticker_set_manager.js +40 -9
  42. package/esm/client/4_chat_manager.d.ts +9 -3
  43. package/esm/client/4_chat_manager.d.ts.map +1 -1
  44. package/esm/client/4_chat_manager.js +102 -3
  45. package/esm/client/4_checklist_manager.js +1 -1
  46. package/esm/client/4_context.d.ts +17 -3
  47. package/esm/client/4_context.d.ts.map +1 -1
  48. package/esm/client/4_context.js +38 -0
  49. package/esm/client/4_forum_manager.d.ts +1 -0
  50. package/esm/client/4_forum_manager.d.ts.map +1 -1
  51. package/esm/client/4_forum_manager.js +5 -0
  52. package/esm/client/6_client.d.ts +159 -11
  53. package/esm/client/6_client.d.ts.map +1 -1
  54. package/esm/client/6_client.js +223 -25
  55. package/esm/client/6_client_dispatcher.d.ts +160 -12
  56. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  57. package/esm/client/6_client_dispatcher.js +198 -8
  58. package/esm/storage/2_storage_indexed_db.js +5 -5
  59. package/esm/storage/2_storage_session_storage.js +2 -2
  60. package/esm/tl/0_utilities.d.ts +1 -1
  61. package/esm/tl/0_utilities.d.ts.map +1 -1
  62. package/esm/tl/0_utilities.js +3 -2
  63. package/esm/tl/1_tl_reader.js +1 -1
  64. package/esm/tl/1_tl_writer.js +1 -1
  65. package/esm/types/1_available_reactions.d.ts +3 -2
  66. package/esm/types/1_available_reactions.d.ts.map +1 -1
  67. package/esm/types/1_available_reactions.js +18 -1
  68. package/esm/types/1_channel_location.d.ts +27 -0
  69. package/esm/types/1_channel_location.d.ts.map +1 -0
  70. package/esm/types/1_channel_location.js +30 -0
  71. package/esm/types/1_sticker_set_p.d.ts +48 -0
  72. package/esm/types/1_sticker_set_p.d.ts.map +1 -0
  73. package/esm/types/1_sticker_set_p.js +73 -0
  74. package/esm/types/2_poll_voter.d.ts +19 -0
  75. package/esm/types/2_poll_voter.d.ts.map +1 -1
  76. package/esm/types/2_poll_voter.js +19 -0
  77. package/esm/types/3_chat_join_result.d.ts +40 -0
  78. package/esm/types/3_chat_join_result.d.ts.map +1 -0
  79. package/esm/types/3_chat_join_result.js +45 -0
  80. package/esm/types/3_resolved_invite_link.d.ts +63 -0
  81. package/esm/types/3_resolved_invite_link.d.ts.map +1 -0
  82. package/esm/types/3_resolved_invite_link.js +45 -0
  83. package/esm/types/3_rich_text_component.d.ts +24 -0
  84. package/esm/types/3_rich_text_component.d.ts.map +1 -1
  85. package/esm/types/4_page_block.d.ts +45 -1
  86. package/esm/types/4_page_block.d.ts.map +1 -1
  87. package/esm/types/B_recent_action.d.ts +244 -0
  88. package/esm/types/B_recent_action.d.ts.map +1 -0
  89. package/esm/types/B_recent_action.js +322 -0
  90. package/esm/types/B_topic_list_item.d.ts +22 -0
  91. package/esm/types/B_topic_list_item.d.ts.map +1 -1
  92. package/esm/types/B_topic_list_item.js +19 -0
  93. package/esm/types/C_recent_actions_entry.d.ts +32 -0
  94. package/esm/types/C_recent_actions_entry.d.ts.map +1 -0
  95. package/esm/types/C_recent_actions_entry.js +32 -0
  96. package/esm/types/C_topic_list.d.ts +20 -0
  97. package/esm/types/C_topic_list.d.ts.map +1 -1
  98. package/esm/types/C_topic_list.js +19 -0
  99. package/esm/utilities/1_auth.d.ts.map +1 -1
  100. package/esm/utilities/1_auth.js +2 -1
  101. package/package.json +1 -1
  102. package/script/0_errors.d.ts +6 -0
  103. package/script/0_errors.d.ts.map +1 -1
  104. package/script/0_errors.js +15 -1
  105. package/script/3_types.d.ts +8 -2
  106. package/script/3_types.d.ts.map +1 -1
  107. package/script/3_types.js +8 -2
  108. package/script/client/0_html.d.ts +2 -1
  109. package/script/client/0_html.d.ts.map +1 -1
  110. package/script/client/0_html.js +17 -15
  111. package/script/client/0_markdown.d.ts +3 -2
  112. package/script/client/0_markdown.d.ts.map +1 -1
  113. package/script/client/0_markdown.js +8 -6
  114. package/script/client/0_params.d.ts +51 -0
  115. package/script/client/0_params.d.ts.map +1 -1
  116. package/script/client/0_password.js +5 -5
  117. package/script/client/0_storage_operations.d.ts +9 -0
  118. package/script/client/0_storage_operations.d.ts.map +1 -1
  119. package/script/client/0_storage_operations.js +42 -53
  120. package/script/client/1_client_generic.d.ts +161 -13
  121. package/script/client/1_client_generic.d.ts.map +1 -1
  122. package/script/client/1_client_plain.d.ts.map +1 -1
  123. package/script/client/1_client_plain.js +2 -1
  124. package/script/client/2_client_encrypted.d.ts.map +1 -1
  125. package/script/client/2_client_encrypted.js +4 -6
  126. package/script/client/2_reaction_manager.d.ts +2 -1
  127. package/script/client/2_reaction_manager.d.ts.map +1 -1
  128. package/script/client/2_reaction_manager.js +7 -0
  129. package/script/client/2_update_manager.d.ts +1 -1
  130. package/script/client/2_update_manager.d.ts.map +1 -1
  131. package/script/client/2_update_manager.js +13 -12
  132. package/script/client/3_account_manager.d.ts +8 -2
  133. package/script/client/3_account_manager.d.ts.map +1 -1
  134. package/script/client/3_account_manager.js +54 -2
  135. package/script/client/3_message_manager.js +6 -6
  136. package/script/client/3_secret_chat_manager.d.ts +7 -2
  137. package/script/client/3_secret_chat_manager.d.ts.map +1 -1
  138. package/script/client/3_secret_chat_manager.js +65 -16
  139. package/script/client/3_sticker_set_manager.d.ts +5 -0
  140. package/script/client/3_sticker_set_manager.d.ts.map +1 -1
  141. package/script/client/3_sticker_set_manager.js +39 -8
  142. package/script/client/4_chat_manager.d.ts +9 -3
  143. package/script/client/4_chat_manager.d.ts.map +1 -1
  144. package/script/client/4_chat_manager.js +101 -2
  145. package/script/client/4_checklist_manager.js +1 -1
  146. package/script/client/4_context.d.ts +17 -3
  147. package/script/client/4_context.d.ts.map +1 -1
  148. package/script/client/4_context.js +38 -0
  149. package/script/client/4_forum_manager.d.ts +1 -0
  150. package/script/client/4_forum_manager.d.ts.map +1 -1
  151. package/script/client/4_forum_manager.js +5 -0
  152. package/script/client/6_client.d.ts +159 -11
  153. package/script/client/6_client.d.ts.map +1 -1
  154. package/script/client/6_client.js +223 -25
  155. package/script/client/6_client_dispatcher.d.ts +160 -12
  156. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  157. package/script/client/6_client_dispatcher.js +198 -8
  158. package/script/storage/2_storage_indexed_db.js +5 -5
  159. package/script/storage/2_storage_session_storage.js +2 -2
  160. package/script/tl/0_utilities.d.ts +1 -1
  161. package/script/tl/0_utilities.d.ts.map +1 -1
  162. package/script/tl/0_utilities.js +3 -2
  163. package/script/tl/1_tl_reader.js +1 -1
  164. package/script/tl/1_tl_writer.js +1 -1
  165. package/script/types/1_available_reactions.d.ts +3 -2
  166. package/script/types/1_available_reactions.d.ts.map +1 -1
  167. package/script/types/1_available_reactions.js +18 -0
  168. package/script/types/1_channel_location.d.ts +27 -0
  169. package/script/types/1_channel_location.d.ts.map +1 -0
  170. package/script/types/1_channel_location.js +33 -0
  171. package/script/types/1_sticker_set_p.d.ts +48 -0
  172. package/script/types/1_sticker_set_p.d.ts.map +1 -0
  173. package/script/types/1_sticker_set_p.js +76 -0
  174. package/script/types/2_poll_voter.d.ts +19 -0
  175. package/script/types/2_poll_voter.d.ts.map +1 -1
  176. package/script/types/2_poll_voter.js +19 -0
  177. package/script/types/3_chat_join_result.d.ts +40 -0
  178. package/script/types/3_chat_join_result.d.ts.map +1 -0
  179. package/script/types/3_chat_join_result.js +48 -0
  180. package/script/types/3_resolved_invite_link.d.ts +63 -0
  181. package/script/types/3_resolved_invite_link.d.ts.map +1 -0
  182. package/script/types/3_resolved_invite_link.js +48 -0
  183. package/script/types/3_rich_text_component.d.ts +24 -0
  184. package/script/types/3_rich_text_component.d.ts.map +1 -1
  185. package/script/types/4_page_block.d.ts +45 -1
  186. package/script/types/4_page_block.d.ts.map +1 -1
  187. package/script/types/B_recent_action.d.ts +244 -0
  188. package/script/types/B_recent_action.d.ts.map +1 -0
  189. package/script/types/B_recent_action.js +325 -0
  190. package/script/types/B_topic_list_item.d.ts +22 -0
  191. package/script/types/B_topic_list_item.d.ts.map +1 -1
  192. package/script/types/B_topic_list_item.js +19 -0
  193. package/script/types/C_recent_actions_entry.d.ts +32 -0
  194. package/script/types/C_recent_actions_entry.d.ts.map +1 -0
  195. package/script/types/C_recent_actions_entry.js +35 -0
  196. package/script/types/C_topic_list.d.ts +20 -0
  197. package/script/types/C_topic_list.d.ts.map +1 -1
  198. package/script/types/C_topic_list.js +19 -0
  199. package/script/utilities/1_auth.d.ts.map +1 -1
  200. package/script/utilities/1_auth.js +2 -1
@@ -192,6 +192,42 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
192
192
  async sendCode(phoneNumber) {
193
193
  return await this.#dispatch("sendCode", phoneNumber);
194
194
  }
195
+ /**
196
+ * Allow unpaid messages from a user. User-only.
197
+ *
198
+ * @method ac
199
+ * @param userId The identifier of the user.
200
+ */
201
+ async allowUnpaidMessagesFromUser(userId, params) {
202
+ return await this.#dispatch("allowUnpaidMessagesFromUser", userId, params);
203
+ }
204
+ /**
205
+ * Disallow unpaid messages from a user. User-only.
206
+ *
207
+ * @method ac
208
+ * @param userId The identifier of the user.
209
+ */
210
+ async disallowUnpaidMessagesFromUser(userId, params) {
211
+ return await this.#dispatch("disallowUnpaidMessagesFromUser", userId, params);
212
+ }
213
+ /**
214
+ * Allow a bot to set custom emoji status. User-only.
215
+ *
216
+ * @param botId The user identifier of the bot.
217
+ * @method ac
218
+ */
219
+ async allowBotToSetCustomEmojiStatus(botId) {
220
+ return await this.#dispatch("allowBotToSetCustomEmojiStatus", botId);
221
+ }
222
+ /**
223
+ * Disallow a bot to set custom emoji status. User-only.
224
+ *
225
+ * @param botId The user identifier of the bot.
226
+ * @method ac
227
+ */
228
+ async disallowBotToSetCustomEmojiStatus(botId) {
229
+ return await this.#dispatch("disallowBotToSetCustomEmojiStatus", botId);
230
+ }
195
231
  /**
196
232
  * Check if a code entered by the user was the same as the verification code.
197
233
  *
@@ -304,6 +340,14 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
304
340
  async checkUsername(username, params) {
305
341
  return await this.#dispatch("checkUsername", username, params);
306
342
  }
343
+ /**
344
+ * Clear recent emoji statuses. User-only.
345
+ *
346
+ * @method ac
347
+ */
348
+ async clearRecentEmojiStatuses() {
349
+ return await this.#dispatch("clearRecentEmojiStatuses");
350
+ }
307
351
  /**
308
352
  * Delete the current account. User-only.
309
353
  *
@@ -355,6 +399,14 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
355
399
  async getAccountTtl() {
356
400
  return await this.#dispatch("getAccountTtl");
357
401
  }
402
+ /**
403
+ * Get application configuration. User-only.
404
+ *
405
+ * @method ac
406
+ */
407
+ async getApplicationConfiguration() {
408
+ return await this.#dispatch("getApplicationConfiguration");
409
+ }
358
410
  /**
359
411
  * Get app support. User-only.
360
412
  *
@@ -447,6 +499,14 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
447
499
  async getProfilePhotos(userId, params) {
448
500
  return await this.#dispatch("getProfilePhotos", userId, params);
449
501
  }
502
+ /**
503
+ * Get recent emoji statuses. User-only.
504
+ *
505
+ * @method ac
506
+ */
507
+ async getRecentEmojiStatuses() {
508
+ return await this.#dispatch("getRecentEmojiStatuses");
509
+ }
450
510
  /**
451
511
  * Get timezones. User-only.
452
512
  *
@@ -828,7 +888,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
828
888
  return await this.#dispatch("deleteMessages", chatId, messageIds, params);
829
889
  }
830
890
  /**
831
- * Delete a scheduled message.
891
+ * Delete a scheduled message. User-only.
832
892
  *
833
893
  * @method ms
834
894
  * @param chatId The identifier of a chat.
@@ -838,7 +898,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
838
898
  return await this.#dispatch("deleteScheduledMessage", chatId, messageId);
839
899
  }
840
900
  /**
841
- * Delete multiple scheduled messages.
901
+ * Delete multiple scheduled messages. User-only.
842
902
  *
843
903
  * @method ms
844
904
  * @param chatId The identifier of a chat.
@@ -869,7 +929,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
869
929
  return await this.#dispatch("editInlineMessageLiveLocation", inlineMessageId, latitude, longitude, params);
870
930
  }
871
931
  /**
872
- * Edit an inline message's media.
932
+ * Edit an inline message's media. User-only.
873
933
  *
874
934
  * @method ms
875
935
  * @param inlineMessageId The identifier of the inline message.
@@ -1144,7 +1204,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
1144
1204
  return await this.#dispatch("getSavedChats", params);
1145
1205
  }
1146
1206
  /**
1147
- * Get messages saved from a specific chat.
1207
+ * Get messages saved from a specific chat. User-only.
1148
1208
  *
1149
1209
  * @method ms
1150
1210
  * @param chatId The identifier of a chat.
@@ -1210,6 +1270,17 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
1210
1270
  async removeStickerFromRecents(fileId) {
1211
1271
  return await this.#dispatch("removeStickerFromRecents", fileId);
1212
1272
  }
1273
+ /**
1274
+ * Report a message reaction. User-only.
1275
+ *
1276
+ * @method ms
1277
+ * @param chatId The identifier of the chat including the messages.
1278
+ * @param messageId The identifiers of the message.
1279
+ * @param reactionActorId The identifier of the chat that made the reaction.
1280
+ */
1281
+ async reportReaction(chatId, messageId, reactionActorId) {
1282
+ return await this.#dispatch("reportReaction", chatId, messageId, reactionActorId);
1283
+ }
1213
1284
  /**
1214
1285
  * Retrieve a message using its link.
1215
1286
  *
@@ -1435,7 +1506,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
1435
1506
  return await this.#dispatch("sendRichTextDraft", chatId, draftId, richText, params);
1436
1507
  }
1437
1508
  /**
1438
- * Send a scheduled message before its schedule.
1509
+ * Send a scheduled message before its schedule. User-only.
1439
1510
  *
1440
1511
  * @method ms
1441
1512
  * @param chatId The identifier of a chat.
@@ -1445,7 +1516,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
1445
1516
  return await this.#dispatch("sendScheduledMessage", chatId, messageId);
1446
1517
  }
1447
1518
  /**
1448
- * Send multiple scheduled messages before their schedule.
1519
+ * Send multiple scheduled messages before their schedule. User-only.
1449
1520
  *
1450
1521
  * @method ms
1451
1522
  * @param chatId The identifier of a chat.
@@ -1914,6 +1985,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
1914
1985
  async banChatMember(chatId, memberId, params) {
1915
1986
  return await this.#dispatch("banChatMember", chatId, memberId, params);
1916
1987
  }
1988
+ /**
1989
+ * Add a single user to a chat. User-only.
1990
+ *
1991
+ * @method ch
1992
+ * @param chatId The identifier of the chat to boost.
1993
+ */
1994
+ async boostChat(chatId, params) {
1995
+ return await this.#dispatch("boostChat", chatId, params);
1996
+ }
1917
1997
  /**
1918
1998
  * Close a chat previously opened by openChat.
1919
1999
  *
@@ -2030,6 +2110,26 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2030
2110
  async deleteChatStickerSet(chatId) {
2031
2111
  return await this.#dispatch("deleteChatStickerSet", chatId);
2032
2112
  }
2113
+ /**
2114
+ * Delete revoked invite links. User-only.
2115
+ *
2116
+ * @method ch
2117
+ * @param chatId The identifier of the chat.
2118
+ * @param userId The user identifier of a chat admin.
2119
+ */
2120
+ async deleteRevokedInviteLinks(chatId, userId) {
2121
+ return await this.#dispatch("deleteRevokedInviteLinks", chatId, userId);
2122
+ }
2123
+ /**
2124
+ * Delete a forum topic.
2125
+ *
2126
+ * @method ch
2127
+ * @param chatId The identifier of the chat.
2128
+ * @param topicId The identifier of the topic.
2129
+ */
2130
+ async deleteTopic(chatId, topicId) {
2131
+ return await this.#dispatch("deleteTopic", chatId, topicId);
2132
+ }
2033
2133
  /**
2034
2134
  * Disable automatic anti-spam in a group. User-only.
2035
2135
  *
@@ -2178,6 +2278,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2178
2278
  async enableTopics(chatId, isShownAsTabs) {
2179
2279
  return await this.#dispatch("enableTopics", chatId, isShownAsTabs);
2180
2280
  }
2281
+ /**
2282
+ * Get administered chats. User-only.
2283
+ *
2284
+ * @method ch
2285
+ * @returns A list of administered chats.
2286
+ */
2287
+ async getAdministeredChats(params) {
2288
+ return await this.#dispatch("getAdministeredChats", params);
2289
+ }
2181
2290
  /**
2182
2291
  * Get a chat.
2183
2292
  *
@@ -2315,6 +2424,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2315
2424
  async getPinnedChats(from) {
2316
2425
  return await this.#dispatch("getPinnedChats", from);
2317
2426
  }
2427
+ /**
2428
+ * Get the recent actions of a channel or a supergroup. User-only.
2429
+ *
2430
+ * @method ch
2431
+ * @param chatId The identifier of the chat.
2432
+ */
2433
+ async getRecentActions(chatId, params) {
2434
+ return await this.#dispatch("getRecentActions", chatId, params);
2435
+ }
2318
2436
  /**
2319
2437
  * Get recommended channels. User-only.
2320
2438
  *
@@ -2400,6 +2518,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2400
2518
  async joinChat(chatId) {
2401
2519
  return await this.#dispatch("joinChat", chatId);
2402
2520
  }
2521
+ /**
2522
+ * Join a chat using an invite link. User-only.
2523
+ *
2524
+ * @method ch
2525
+ * @param inviteLink The chat's invite link.
2526
+ */
2527
+ async joinChatByInviteLink(inviteLink) {
2528
+ return await this.#dispatch("joinChatByInviteLink", inviteLink);
2529
+ }
2403
2530
  /**
2404
2531
  * Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.
2405
2532
  *
@@ -2495,6 +2622,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
2495
2622
  async reportChat(chatId, reason, params) {
2496
2623
  return await this.#dispatch("reportChat", chatId, reason, params);
2497
2624
  }
2625
+ /**
2626
+ * Resolve an invite link. User-only.
2627
+ *
2628
+ * @method ch
2629
+ * @param inviteLink The invite link to resolve.
2630
+ */
2631
+ async resolveInviteLink(inviteLink) {
2632
+ return await this.#dispatch("resolveInviteLink", inviteLink);
2633
+ }
2498
2634
  /**
2499
2635
  * Set a chat's available reactions. User-only.
2500
2636
  *
@@ -3268,7 +3404,7 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3268
3404
  return await this.#dispatch("getContacts");
3269
3405
  }
3270
3406
  /**
3271
- * Set a contact note.
3407
+ * Set a contact note. User-only.
3272
3408
  *
3273
3409
  * @method co
3274
3410
  * @param userId The identifier of the user to update the note for.
@@ -3420,6 +3556,16 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3420
3556
  async removeGiftsFromCollection(chatId, collectionId, gifts) {
3421
3557
  return await this.#dispatch("removeGiftsFromCollection", chatId, collectionId, gifts);
3422
3558
  }
3559
+ /**
3560
+ * Reorder gift collections. User-only.
3561
+ *
3562
+ * @method gc
3563
+ * @param chatId The identifier of the chat that includes the gift collections.
3564
+ * @param collectionIds The identifiers of the gift collections.
3565
+ */
3566
+ async reorderGiftCollections(chatId, collectionIds) {
3567
+ return await this.#dispatch("reorderGiftCollections", chatId, collectionIds);
3568
+ }
3423
3569
  /**
3424
3570
  * Reorder gifts in a gift collection. User-only.
3425
3571
  *
@@ -3475,6 +3621,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3475
3621
  //
3476
3622
  // ========================= STICKER SETS ========================= //
3477
3623
  //
3624
+ /**
3625
+ * Add a sticker set. User-only.
3626
+ *
3627
+ * @method ss
3628
+ * @param slug The slug of the sticker set or its link.
3629
+ */
3630
+ async addStickerSet(slug) {
3631
+ return await this.#dispatch("addStickerSet", slug);
3632
+ }
3478
3633
  /**
3479
3634
  * Add a sticker to a sticker set.
3480
3635
  *
@@ -3485,6 +3640,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3485
3640
  async addStickerToStickerSet(slug, sticker, params) {
3486
3641
  return await this.#dispatch("addStickerToStickerSet", slug, sticker, params);
3487
3642
  }
3643
+ /**
3644
+ * Archive a sticker set. User-only.
3645
+ *
3646
+ * @method ss
3647
+ * @param slug The slug of the sticker set or its link.
3648
+ */
3649
+ async archiveStickerSet(slug) {
3650
+ return await this.#dispatch("archiveStickerSet", slug);
3651
+ }
3488
3652
  /**
3489
3653
  * Change the position of a sticker in its set.
3490
3654
  *
@@ -3525,6 +3689,14 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3525
3689
  async deleteStickerSet(slug) {
3526
3690
  return await this.#dispatch("deleteStickerSet", slug);
3527
3691
  }
3692
+ /**
3693
+ * Get added sticker sets. User-only.
3694
+ *
3695
+ * @method ss
3696
+ */
3697
+ async getAddedStickerSets() {
3698
+ return await this.#dispatch("getAddedStickerSets");
3699
+ }
3528
3700
  /**
3529
3701
  * Get a dice sticker set.
3530
3702
  *
@@ -3552,6 +3724,15 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3552
3724
  async removeStickerFromStickerSet(fileId) {
3553
3725
  return await this.#dispatch("removeStickerFromStickerSet", fileId);
3554
3726
  }
3727
+ /**
3728
+ * Remove a sticker set. User-only.
3729
+ *
3730
+ * @method ss
3731
+ * @param slug The slug of the sticker set or its link.
3732
+ */
3733
+ async removeStickerSet(slug) {
3734
+ return await this.#dispatch("removeStickerSet", slug);
3735
+ }
3555
3736
  /**
3556
3737
  * Replace a sticker's emoji.
3557
3738
  *
@@ -3606,12 +3787,21 @@ class ClientDispatcher extends _5_composer_js_1.Composer {
3606
3787
  * Suggest a sticker set slug from its title.
3607
3788
  *
3608
3789
  * @method ss
3609
- * @param title A title of a sticker set.
3790
+ * @param title A sticker set title.
3610
3791
  * @returns The suggested slug.
3611
3792
  */
3612
3793
  async suggestStickerSetSlug(title) {
3613
3794
  return await this.#dispatch("suggestStickerSetSlug", title);
3614
3795
  }
3796
+ /**
3797
+ * Unarchive a sticker set. User-only.
3798
+ *
3799
+ * @method ss
3800
+ * @param slug The slug of the sticker set or its link.
3801
+ */
3802
+ async unarchiveStickerSet(slug) {
3803
+ return await this.#dispatch("unarchiveStickerSet", slug);
3804
+ }
3615
3805
  //
3616
3806
  // ========================= MANAGED BOTS ========================= //
3617
3807
  //
@@ -30,7 +30,7 @@ class StorageIndexedDB {
30
30
  #supportsFiles;
31
31
  constructor(name, params) {
32
32
  if (typeof indexedDB === "undefined") {
33
- throw new Error("Unavailable in current environment");
33
+ throw new TypeError("Unavailable in current environment");
34
34
  }
35
35
  this.#name = name;
36
36
  this.#supportsFiles = params?.storeFiles ?? true;
@@ -77,7 +77,7 @@ class StorageIndexedDB {
77
77
  set(k, v, tx_) {
78
78
  k = this.#fixKey(k);
79
79
  if (!this.database) {
80
- throw new Error("Not initialized");
80
+ throw new TypeError("Not initialized.");
81
81
  }
82
82
  const store = (tx_ ?? this.database
83
83
  .transaction(KV_OBJECT_STORE, "readwrite"))
@@ -102,7 +102,7 @@ class StorageIndexedDB {
102
102
  k = this.#fixKey(k);
103
103
  }
104
104
  if (!this.database) {
105
- throw new Error("Not initialized");
105
+ throw new TypeError("Not initialized.");
106
106
  }
107
107
  const tx = (tx_ ?? this.database
108
108
  .transaction(KV_OBJECT_STORE, "readonly"))
@@ -126,7 +126,7 @@ class StorageIndexedDB {
126
126
  filter.end = this.#fixKey(filter.end);
127
127
  }
128
128
  if (!this.database) {
129
- throw new Error("Not initialized");
129
+ throw new TypeError("Not initialized.");
130
130
  }
131
131
  if (params?.limit !== undefined && params.limit <= 0) {
132
132
  params.limit = 1;
@@ -165,7 +165,7 @@ class StorageIndexedDB {
165
165
  }
166
166
  async incr(key, by) {
167
167
  if (!this.database) {
168
- throw new Error("Not initialized");
168
+ throw new TypeError("Not initialized.");
169
169
  }
170
170
  const tx = this.database
171
171
  .transaction(KV_OBJECT_STORE, "readwrite");
@@ -25,10 +25,10 @@ class StorageSessionStorage {
25
25
  #prefix;
26
26
  constructor(prefix) {
27
27
  if (typeof sessionStorage === "undefined") {
28
- throw new Error("Unavailable in current environment");
28
+ throw new TypeError("Unavailable in current environment.");
29
29
  }
30
30
  if (prefix.length <= 0) {
31
- throw new Error("Empty prefix");
31
+ throw new TypeError("Empty prefix.");
32
32
  }
33
33
  this.#prefix = prefix;
34
34
  }
@@ -19,7 +19,7 @@
19
19
  */
20
20
  export declare function isOptionalParam(ntype: string): boolean;
21
21
  export declare function getOptionalParamInnerType(ntype: string): string;
22
- export declare function analyzeOptionalParam(ntype: string): {
22
+ export declare function analyzeOptionalParam(ntype: string, path: string[]): {
23
23
  flagField: string;
24
24
  bitIndex: number;
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"0_utilities.d.ts","sourceRoot":"","sources":["../../src/tl/0_utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD;AACD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AACD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAY3F;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAgClD;AAOD,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,GAAG,CAkB3C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK7D;AAID,eAAO,MAAM,CAAC,MAAM,CAAC;AACrB,eAAO,MAAM,MAAM,YAAa,CAAC;AACjC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEhE"}
1
+ {"version":3,"file":"0_utilities.d.ts","sourceRoot":"","sources":["../../src/tl/0_utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD;AACD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AACD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAY3G;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAgClD;AAOD,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,GAAG,CAkB3C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK7D;AAID,eAAO,MAAM,CAAC,MAAM,CAAC;AACrB,eAAO,MAAM,MAAM,YAAa,CAAC;AACjC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEhE"}
@@ -28,15 +28,16 @@ exports.toJSON = toJSON;
28
28
  exports.getVectorItemType = getVectorItemType;
29
29
  exports.constructorIdToHex = constructorIdToHex;
30
30
  const _0_deps_js_1 = require("../0_deps.js");
31
+ const _0_errors_js_1 = require("../0_errors.js");
31
32
  function isOptionalParam(ntype) {
32
33
  return ntype.includes("?");
33
34
  }
34
35
  function getOptionalParamInnerType(ntype) {
35
36
  return ntype.split("?")[1];
36
37
  }
37
- function analyzeOptionalParam(ntype) {
38
+ function analyzeOptionalParam(ntype, path) {
38
39
  if (!isOptionalParam(ntype)) {
39
- throw new Error("Parameter not optional");
40
+ throw new _0_errors_js_1.TLError(`Parameter ${ntype} is not optional.`, path);
40
41
  }
41
42
  const flagField = ntype.split(".")[0];
42
43
  (0, _0_deps_js_1.assertEquals)(typeof flagField, "string");
@@ -151,7 +151,7 @@ class TLReader {
151
151
  const flagFields = {};
152
152
  for (const [name, fieldType] of desc[1]) {
153
153
  if ((0, _0_utilities_js_1.isOptionalParam)(fieldType)) {
154
- const { flagField, bitIndex } = (0, _0_utilities_js_1.analyzeOptionalParam)(fieldType);
154
+ const { flagField, bitIndex } = (0, _0_utilities_js_1.analyzeOptionalParam)(fieldType, this.#path);
155
155
  const bits = flagFields[flagField];
156
156
  if ((bits & (1 << bitIndex)) === 0) {
157
157
  continue;
@@ -122,7 +122,7 @@ class TLWriter {
122
122
  const flagField_ = name;
123
123
  for (const [name, type] of parameters_) {
124
124
  if ((0, _0_utilities_js_1.isOptionalParam)(type)) {
125
- const { flagField, bitIndex } = (0, _0_utilities_js_1.analyzeOptionalParam)(type);
125
+ const { flagField, bitIndex } = (0, _0_utilities_js_1.analyzeOptionalParam)(type, this.#path);
126
126
  if (flagField === flagField_) {
127
127
  if (type__[name] !== undefined) {
128
128
  flags |= 1 << bitIndex;
@@ -35,7 +35,7 @@ export interface AvailableReactionsSome {
35
35
  /** The allowed reactions. */
36
36
  reactions: Reaction[];
37
37
  /** The maximum number of allowed reactions on a single message. */
38
- maxReactionCount: number;
38
+ maxReactionCount?: number;
39
39
  }
40
40
  /**
41
41
  * An available reactions value allowing all types of reactions.
@@ -44,9 +44,10 @@ export interface AvailableReactionsSome {
44
44
  export interface AvailableReactionsAll {
45
45
  type: "all";
46
46
  /** The maximum number of allowed reactions on a single message. */
47
- maxReactionCount: number;
47
+ maxReactionCount?: number;
48
48
  }
49
49
  /** A chat's available reactions. */
50
50
  export type AvailableReactions = AvailableReactionsNone | AvailableReactionsSome | AvailableReactionsAll;
51
+ export declare function constructAvailableReactions(cr: Api.ChatReactions): AvailableReactions;
51
52
  export declare function availableReactionsToTlObject(chatAvailableReactions: AvailableReactions): Api.ChatReactions;
52
53
  //# sourceMappingURL=1_available_reactions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1_available_reactions.d.ts","sourceRoot":"","sources":["../../src/types/1_available_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,CAAC;IACZ,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,oCAAoC;AACpC,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEzG,wBAAgB,4BAA4B,CAAC,sBAAsB,EAAE,kBAAkB,GAAG,GAAG,CAAC,aAAa,CAS1G"}
1
+ {"version":3,"file":"1_available_reactions.d.ts","sourceRoot":"","sources":["../../src/types/1_available_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAqB,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AAEvF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,CAAC;IACZ,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,oCAAoC;AACpC,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;AAEzG,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,GAAG,CAAC,aAAa,GAAG,kBAAkB,CAgBrF;AAED,wBAAgB,4BAA4B,CAAC,sBAAsB,EAAE,kBAAkB,GAAG,GAAG,CAAC,aAAa,CAS1G"}
@@ -19,8 +19,26 @@
19
19
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
20
  */
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructAvailableReactions = constructAvailableReactions;
22
23
  exports.availableReactionsToTlObject = availableReactionsToTlObject;
23
24
  const _0_reaction_js_1 = require("./0_reaction.js");
25
+ function constructAvailableReactions(cr) {
26
+ switch (cr._) {
27
+ case "chatReactionsNone":
28
+ return {
29
+ type: "none",
30
+ };
31
+ case "chatReactionsAll":
32
+ return {
33
+ type: "all",
34
+ };
35
+ case "chatReactionsSome":
36
+ return {
37
+ type: "some",
38
+ reactions: cr.reactions.map(_0_reaction_js_1.constructReaction),
39
+ };
40
+ }
41
+ }
24
42
  function availableReactionsToTlObject(chatAvailableReactions) {
25
43
  switch (chatAvailableReactions.type) {
26
44
  case "none":
@@ -0,0 +1,27 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { Api } from "../2_tl.js";
21
+ import { type Location } from "./0_location.js";
22
+ export interface ChannelLocation {
23
+ location?: Location;
24
+ address: string;
25
+ }
26
+ export declare function constructChannelLocation(cl: Api.channelLocation): ChannelLocation;
27
+ //# sourceMappingURL=1_channel_location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1_channel_location.d.ts","sourceRoot":"","sources":["../../src/types/1_channel_location.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,GAAG,CAAC,eAAe,GAAG,eAAe,CAOjF"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.constructChannelLocation = constructChannelLocation;
23
+ const _1_utilities_js_1 = require("../1_utilities.js");
24
+ const _2_tl_js_1 = require("../2_tl.js");
25
+ const _0_location_js_1 = require("./0_location.js");
26
+ function constructChannelLocation(cl) {
27
+ const location = _2_tl_js_1.Api.is("geoPoint", cl.geo_point) ? (0, _0_location_js_1.constructLocation)(cl.geo_point) : undefined;
28
+ const address = cl.address;
29
+ return (0, _1_utilities_js_1.cleanObject)({
30
+ location,
31
+ address,
32
+ });
33
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import { Api } from "../2_tl.js";
21
+ import type { Thumbnail } from "./0_thumbnail.js";
22
+ /** A partial sticker (or emoji) set. */
23
+ export interface StickerSetP {
24
+ /** The unique identifier of the set. */
25
+ id: string;
26
+ /** The set's slug. */
27
+ name: string;
28
+ /** The set's title. */
29
+ title: string;
30
+ /** The type of the set. */
31
+ type: "regular" | "mask" | "customEmoji";
32
+ /** Thumbnails if available. */
33
+ thumbnails: Thumbnail[];
34
+ /** Whether the emojis in the set are adaptive. */
35
+ isAdaptive: boolean;
36
+ /** Whether the emojis in the set can be set as channel status. */
37
+ canSetAsChannelStatus: boolean;
38
+ /** Whether the current account is the creator of the set. */
39
+ isCreator: boolean;
40
+ /** Whether the set is official. */
41
+ isOfficial: boolean;
42
+ /** Whether the set is archived. */
43
+ isArchived: boolean;
44
+ /** A point in time when the set was added to the current account. */
45
+ addedAt?: number;
46
+ }
47
+ export declare function constructStickerSetP(stickerSet: Api.StickerSet): StickerSetP;
48
+ //# sourceMappingURL=1_sticker_set_p.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1_sticker_set_p.d.ts","sourceRoot":"","sources":["../../src/types/1_sticker_set_p.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,wCAAwC;AACxC,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IACzC,+BAA+B;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,qBAAqB,EAAE,OAAO,CAAC;IAC/B,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,GAAG,WAAW,CAuD5E"}