@mtkruto/node 0.191.0 → 0.193.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 (184) hide show
  1. package/README.md +5 -5
  2. package/esm/3_types.d.ts +8 -3
  3. package/esm/3_types.d.ts.map +1 -1
  4. package/esm/3_types.js +8 -3
  5. package/esm/client/0_html.d.ts +2 -1
  6. package/esm/client/0_html.d.ts.map +1 -1
  7. package/esm/client/0_html.js +18 -16
  8. package/esm/client/0_markdown.d.ts +3 -2
  9. package/esm/client/0_markdown.d.ts.map +1 -1
  10. package/esm/client/0_markdown.js +6 -4
  11. package/esm/client/0_params.d.ts +54 -0
  12. package/esm/client/0_params.d.ts.map +1 -1
  13. package/esm/client/1_client_generic.d.ts +154 -14
  14. package/esm/client/1_client_generic.d.ts.map +1 -1
  15. package/esm/client/3_account_manager.d.ts +5 -1
  16. package/esm/client/3_account_manager.d.ts.map +1 -1
  17. package/esm/client/3_account_manager.js +40 -2
  18. package/esm/client/3_message_manager.js +1 -1
  19. package/esm/client/3_secret_chat_manager.d.ts +10 -4
  20. package/esm/client/3_secret_chat_manager.d.ts.map +1 -1
  21. package/esm/client/3_secret_chat_manager.js +82 -76
  22. package/esm/client/3_sticker_set_manager.d.ts +5 -0
  23. package/esm/client/3_sticker_set_manager.d.ts.map +1 -1
  24. package/esm/client/3_sticker_set_manager.js +40 -9
  25. package/esm/client/4_chat_manager.d.ts +5 -1
  26. package/esm/client/4_chat_manager.d.ts.map +1 -1
  27. package/esm/client/4_chat_manager.js +59 -1
  28. package/esm/client/4_checklist_manager.js +1 -1
  29. package/esm/client/4_context.d.ts +16 -4
  30. package/esm/client/4_context.d.ts.map +1 -1
  31. package/esm/client/4_context.js +38 -5
  32. package/esm/client/4_forum_manager.d.ts +5 -1
  33. package/esm/client/4_forum_manager.d.ts.map +1 -1
  34. package/esm/client/4_forum_manager.js +38 -1
  35. package/esm/client/6_client.d.ts +152 -12
  36. package/esm/client/6_client.d.ts.map +1 -1
  37. package/esm/client/6_client.js +191 -11
  38. package/esm/client/6_client_dispatcher.d.ts +152 -12
  39. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  40. package/esm/client/6_client_dispatcher.js +191 -11
  41. package/esm/types/0_report_reason.d.ts +1 -0
  42. package/esm/types/0_report_reason.d.ts.map +1 -1
  43. package/esm/types/0_story_report_option.d.ts +3 -0
  44. package/esm/types/0_story_report_option.d.ts.map +1 -1
  45. package/esm/types/1_available_reactions.d.ts +3 -2
  46. package/esm/types/1_available_reactions.d.ts.map +1 -1
  47. package/esm/types/1_available_reactions.js +18 -1
  48. package/esm/types/1_channel_location.d.ts +8 -0
  49. package/esm/types/1_channel_location.d.ts.map +1 -0
  50. package/esm/types/1_channel_location.js +11 -0
  51. package/esm/types/1_sticker_set_p.d.ts +48 -0
  52. package/esm/types/1_sticker_set_p.d.ts.map +1 -0
  53. package/esm/types/1_sticker_set_p.js +73 -0
  54. package/esm/types/1_story_report_result.d.ts +17 -3
  55. package/esm/types/1_story_report_result.d.ts.map +1 -1
  56. package/esm/types/2_poll_voter.d.ts +19 -0
  57. package/esm/types/2_poll_voter.d.ts.map +1 -1
  58. package/esm/types/2_poll_voter.js +19 -0
  59. package/esm/types/2_secret_message.d.ts +1 -0
  60. package/esm/types/2_secret_message.d.ts.map +1 -1
  61. package/esm/types/3_bot_access_settings.d.ts +3 -0
  62. package/esm/types/3_bot_access_settings.d.ts.map +1 -1
  63. package/esm/types/3_connected_website.d.ts +10 -0
  64. package/esm/types/3_connected_website.d.ts.map +1 -1
  65. package/esm/types/3_poll_voter_list.d.ts +1 -0
  66. package/esm/types/3_poll_voter_list.d.ts.map +1 -1
  67. package/esm/types/3_rich_text_component.d.ts +24 -0
  68. package/esm/types/3_rich_text_component.d.ts.map +1 -1
  69. package/esm/types/3_text_to_translate.d.ts +3 -0
  70. package/esm/types/3_text_to_translate.d.ts.map +1 -1
  71. package/esm/types/3_translated_text.d.ts +3 -0
  72. package/esm/types/3_translated_text.d.ts.map +1 -1
  73. package/esm/types/4_page_block.d.ts +45 -1
  74. package/esm/types/4_page_block.d.ts.map +1 -1
  75. package/esm/types/A_topic.d.ts +20 -3
  76. package/esm/types/A_topic.d.ts.map +1 -1
  77. package/esm/types/A_topic.js +37 -0
  78. package/esm/types/B_recent_action.d.ts +225 -0
  79. package/esm/types/B_recent_action.d.ts.map +1 -0
  80. package/esm/types/B_recent_action.js +303 -0
  81. package/esm/types/{1_secret_chat_action.js → B_topic_list_item.d.ts} +9 -8
  82. package/esm/types/B_topic_list_item.d.ts.map +1 -0
  83. package/esm/types/B_topic_list_item.js +20 -0
  84. package/esm/types/B_update.d.ts +16 -16
  85. package/esm/types/B_update.d.ts.map +1 -1
  86. package/esm/types/C_recent_actions_entry.d.ts +13 -0
  87. package/esm/types/C_recent_actions_entry.d.ts.map +1 -0
  88. package/esm/types/C_recent_actions_entry.js +13 -0
  89. package/esm/types/C_topic_list.d.ts +34 -0
  90. package/esm/types/C_topic_list.d.ts.map +1 -0
  91. package/esm/types/{1_secret_chat_action.d.ts → C_topic_list.js} +8 -10
  92. package/package.json +1 -1
  93. package/script/3_types.d.ts +8 -3
  94. package/script/3_types.d.ts.map +1 -1
  95. package/script/3_types.js +8 -3
  96. package/script/client/0_html.d.ts +2 -1
  97. package/script/client/0_html.d.ts.map +1 -1
  98. package/script/client/0_html.js +17 -15
  99. package/script/client/0_markdown.d.ts +3 -2
  100. package/script/client/0_markdown.d.ts.map +1 -1
  101. package/script/client/0_markdown.js +5 -3
  102. package/script/client/0_params.d.ts +54 -0
  103. package/script/client/0_params.d.ts.map +1 -1
  104. package/script/client/1_client_generic.d.ts +154 -14
  105. package/script/client/1_client_generic.d.ts.map +1 -1
  106. package/script/client/3_account_manager.d.ts +5 -1
  107. package/script/client/3_account_manager.d.ts.map +1 -1
  108. package/script/client/3_account_manager.js +40 -2
  109. package/script/client/3_message_manager.js +1 -1
  110. package/script/client/3_secret_chat_manager.d.ts +10 -4
  111. package/script/client/3_secret_chat_manager.d.ts.map +1 -1
  112. package/script/client/3_secret_chat_manager.js +81 -75
  113. package/script/client/3_sticker_set_manager.d.ts +5 -0
  114. package/script/client/3_sticker_set_manager.d.ts.map +1 -1
  115. package/script/client/3_sticker_set_manager.js +39 -8
  116. package/script/client/4_chat_manager.d.ts +5 -1
  117. package/script/client/4_chat_manager.d.ts.map +1 -1
  118. package/script/client/4_chat_manager.js +58 -0
  119. package/script/client/4_checklist_manager.js +1 -1
  120. package/script/client/4_context.d.ts +16 -4
  121. package/script/client/4_context.d.ts.map +1 -1
  122. package/script/client/4_context.js +38 -5
  123. package/script/client/4_forum_manager.d.ts +5 -1
  124. package/script/client/4_forum_manager.d.ts.map +1 -1
  125. package/script/client/4_forum_manager.js +37 -0
  126. package/script/client/6_client.d.ts +152 -12
  127. package/script/client/6_client.d.ts.map +1 -1
  128. package/script/client/6_client.js +191 -11
  129. package/script/client/6_client_dispatcher.d.ts +152 -12
  130. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  131. package/script/client/6_client_dispatcher.js +191 -11
  132. package/script/types/0_report_reason.d.ts +1 -0
  133. package/script/types/0_report_reason.d.ts.map +1 -1
  134. package/script/types/0_story_report_option.d.ts +3 -0
  135. package/script/types/0_story_report_option.d.ts.map +1 -1
  136. package/script/types/1_available_reactions.d.ts +3 -2
  137. package/script/types/1_available_reactions.d.ts.map +1 -1
  138. package/script/types/1_available_reactions.js +18 -0
  139. package/script/types/1_channel_location.d.ts +8 -0
  140. package/script/types/1_channel_location.d.ts.map +1 -0
  141. package/script/types/1_channel_location.js +14 -0
  142. package/script/types/1_sticker_set_p.d.ts +48 -0
  143. package/script/types/1_sticker_set_p.d.ts.map +1 -0
  144. package/script/types/1_sticker_set_p.js +76 -0
  145. package/script/types/1_story_report_result.d.ts +17 -3
  146. package/script/types/1_story_report_result.d.ts.map +1 -1
  147. package/script/types/2_poll_voter.d.ts +19 -0
  148. package/script/types/2_poll_voter.d.ts.map +1 -1
  149. package/script/types/2_poll_voter.js +19 -0
  150. package/script/types/2_secret_message.d.ts +1 -0
  151. package/script/types/2_secret_message.d.ts.map +1 -1
  152. package/script/types/3_bot_access_settings.d.ts +3 -0
  153. package/script/types/3_bot_access_settings.d.ts.map +1 -1
  154. package/script/types/3_connected_website.d.ts +10 -0
  155. package/script/types/3_connected_website.d.ts.map +1 -1
  156. package/script/types/3_poll_voter_list.d.ts +1 -0
  157. package/script/types/3_poll_voter_list.d.ts.map +1 -1
  158. package/script/types/3_rich_text_component.d.ts +24 -0
  159. package/script/types/3_rich_text_component.d.ts.map +1 -1
  160. package/script/types/3_text_to_translate.d.ts +3 -0
  161. package/script/types/3_text_to_translate.d.ts.map +1 -1
  162. package/script/types/3_translated_text.d.ts +3 -0
  163. package/script/types/3_translated_text.d.ts.map +1 -1
  164. package/script/types/4_page_block.d.ts +45 -1
  165. package/script/types/4_page_block.d.ts.map +1 -1
  166. package/script/types/A_topic.d.ts +20 -3
  167. package/script/types/A_topic.d.ts.map +1 -1
  168. package/script/types/A_topic.js +38 -0
  169. package/script/types/B_recent_action.d.ts +225 -0
  170. package/script/types/B_recent_action.d.ts.map +1 -0
  171. package/script/types/B_recent_action.js +306 -0
  172. package/script/types/{1_secret_chat_action.d.ts → B_topic_list_item.d.ts} +9 -10
  173. package/script/types/B_topic_list_item.d.ts.map +1 -0
  174. package/script/types/{1_secret_chat_action.js → B_topic_list_item.js} +0 -10
  175. package/script/types/B_update.d.ts +16 -16
  176. package/script/types/B_update.d.ts.map +1 -1
  177. package/script/types/C_recent_actions_entry.d.ts +13 -0
  178. package/script/types/C_recent_actions_entry.d.ts.map +1 -0
  179. package/script/types/C_recent_actions_entry.js +16 -0
  180. package/script/types/C_topic_list.d.ts +34 -0
  181. package/script/types/C_topic_list.d.ts.map +1 -0
  182. package/script/types/C_topic_list.js +31 -0
  183. package/esm/types/1_secret_chat_action.d.ts.map +0 -1
  184. package/script/types/1_secret_chat_action.d.ts.map +0 -1
@@ -156,6 +156,24 @@ export class ClientDispatcher extends Composer {
156
156
  async sendCode(phoneNumber) {
157
157
  return await this.#dispatch("sendCode", phoneNumber);
158
158
  }
159
+ /**
160
+ * Allow a bot to set custom emoji status. User-only.
161
+ *
162
+ * @param botId The user identifier of the bot.
163
+ * @method ac
164
+ */
165
+ async allowBotToSetCustomEmojiStatus(botId) {
166
+ return await this.#dispatch("allowBotToSetCustomEmojiStatus", botId);
167
+ }
168
+ /**
169
+ * Disallow a bot to set custom emoji status. User-only.
170
+ *
171
+ * @param botId The user identifier of the bot.
172
+ * @method ac
173
+ */
174
+ async disallowBotToSetCustomEmojiStatus(botId) {
175
+ return await this.#dispatch("disallowBotToSetCustomEmojiStatus", botId);
176
+ }
159
177
  /**
160
178
  * Check if a code entered by the user was the same as the verification code.
161
179
  *
@@ -268,6 +286,14 @@ export class ClientDispatcher extends Composer {
268
286
  async checkUsername(username, params) {
269
287
  return await this.#dispatch("checkUsername", username, params);
270
288
  }
289
+ /**
290
+ * Clear recent emoji statuses. User-only.
291
+ *
292
+ * @method ac
293
+ */
294
+ async clearRecentEmojiStatuses() {
295
+ return await this.#dispatch("clearRecentEmojiStatuses");
296
+ }
271
297
  /**
272
298
  * Delete the current account. User-only.
273
299
  *
@@ -319,6 +345,14 @@ export class ClientDispatcher extends Composer {
319
345
  async getAccountTtl() {
320
346
  return await this.#dispatch("getAccountTtl");
321
347
  }
348
+ /**
349
+ * Get application configuration. User-only.
350
+ *
351
+ * @method ac
352
+ */
353
+ async getApplicationConfiguration() {
354
+ return await this.#dispatch("getApplicationConfiguration");
355
+ }
322
356
  /**
323
357
  * Get app support. User-only.
324
358
  *
@@ -411,6 +445,14 @@ export class ClientDispatcher extends Composer {
411
445
  async getProfilePhotos(userId, params) {
412
446
  return await this.#dispatch("getProfilePhotos", userId, params);
413
447
  }
448
+ /**
449
+ * Get recent emoji statuses. User-only.
450
+ *
451
+ * @method ac
452
+ */
453
+ async getRecentEmojiStatuses() {
454
+ return await this.#dispatch("getRecentEmojiStatuses");
455
+ }
414
456
  /**
415
457
  * Get timezones. User-only.
416
458
  *
@@ -792,7 +834,7 @@ export class ClientDispatcher extends Composer {
792
834
  return await this.#dispatch("deleteMessages", chatId, messageIds, params);
793
835
  }
794
836
  /**
795
- * Delete a scheduled message.
837
+ * Delete a scheduled message. User-only.
796
838
  *
797
839
  * @method ms
798
840
  * @param chatId The identifier of a chat.
@@ -802,7 +844,7 @@ export class ClientDispatcher extends Composer {
802
844
  return await this.#dispatch("deleteScheduledMessage", chatId, messageId);
803
845
  }
804
846
  /**
805
- * Delete multiple scheduled messages.
847
+ * Delete multiple scheduled messages. User-only.
806
848
  *
807
849
  * @method ms
808
850
  * @param chatId The identifier of a chat.
@@ -833,7 +875,7 @@ export class ClientDispatcher extends Composer {
833
875
  return await this.#dispatch("editInlineMessageLiveLocation", inlineMessageId, latitude, longitude, params);
834
876
  }
835
877
  /**
836
- * Edit an inline message's media.
878
+ * Edit an inline message's media. User-only.
837
879
  *
838
880
  * @method ms
839
881
  * @param inlineMessageId The identifier of the inline message.
@@ -1108,7 +1150,7 @@ export class ClientDispatcher extends Composer {
1108
1150
  return await this.#dispatch("getSavedChats", params);
1109
1151
  }
1110
1152
  /**
1111
- * Get messages saved from a specific chat.
1153
+ * Get messages saved from a specific chat. User-only.
1112
1154
  *
1113
1155
  * @method ms
1114
1156
  * @param chatId The identifier of a chat.
@@ -1399,7 +1441,7 @@ export class ClientDispatcher extends Composer {
1399
1441
  return await this.#dispatch("sendRichTextDraft", chatId, draftId, richText, params);
1400
1442
  }
1401
1443
  /**
1402
- * Send a scheduled message before its schedule.
1444
+ * Send a scheduled message before its schedule. User-only.
1403
1445
  *
1404
1446
  * @method ms
1405
1447
  * @param chatId The identifier of a chat.
@@ -1409,7 +1451,7 @@ export class ClientDispatcher extends Composer {
1409
1451
  return await this.#dispatch("sendScheduledMessage", chatId, messageId);
1410
1452
  }
1411
1453
  /**
1412
- * Send multiple scheduled messages before their schedule.
1454
+ * Send multiple scheduled messages before their schedule. User-only.
1413
1455
  *
1414
1456
  * @method ms
1415
1457
  * @param chatId The identifier of a chat.
@@ -1878,6 +1920,15 @@ export class ClientDispatcher extends Composer {
1878
1920
  async banChatMember(chatId, memberId, params) {
1879
1921
  return await this.#dispatch("banChatMember", chatId, memberId, params);
1880
1922
  }
1923
+ /**
1924
+ * Add a single user to a chat. User-only.
1925
+ *
1926
+ * @method ch
1927
+ * @param chatId The identifier of the chat to boost.
1928
+ */
1929
+ async boostChat(chatId, params) {
1930
+ return await this.#dispatch("boostChat", chatId, params);
1931
+ }
1881
1932
  /**
1882
1933
  * Close a chat previously opened by openChat.
1883
1934
  *
@@ -1994,6 +2045,26 @@ export class ClientDispatcher extends Composer {
1994
2045
  async deleteChatStickerSet(chatId) {
1995
2046
  return await this.#dispatch("deleteChatStickerSet", chatId);
1996
2047
  }
2048
+ /**
2049
+ * Delete revoked invite links. User-only.
2050
+ *
2051
+ * @method ch
2052
+ * @param chatId The identifier of the chat.
2053
+ * @param userId The user identifier of a chat admin.
2054
+ */
2055
+ async deleteRevokedInviteLinks(chatId, userId) {
2056
+ return await this.#dispatch("deleteRevokedInviteLinks", chatId, userId);
2057
+ }
2058
+ /**
2059
+ * Delete a forum topic.
2060
+ *
2061
+ * @method ch
2062
+ * @param chatId The identifier of the chat.
2063
+ * @param topicId The identifier of the topic.
2064
+ */
2065
+ async deleteTopic(chatId, topicId) {
2066
+ return await this.#dispatch("deleteTopic", chatId, topicId);
2067
+ }
1997
2068
  /**
1998
2069
  * Disable automatic anti-spam in a group. User-only.
1999
2070
  *
@@ -2142,6 +2213,15 @@ export class ClientDispatcher extends Composer {
2142
2213
  async enableTopics(chatId, isShownAsTabs) {
2143
2214
  return await this.#dispatch("enableTopics", chatId, isShownAsTabs);
2144
2215
  }
2216
+ /**
2217
+ * Get administered chats. User-only.
2218
+ *
2219
+ * @method ch
2220
+ * @returns A list of administered chats.
2221
+ */
2222
+ async getAdministeredChats(params) {
2223
+ return await this.#dispatch("getAdministeredChats", params);
2224
+ }
2145
2225
  /**
2146
2226
  * Get a chat.
2147
2227
  *
@@ -2279,6 +2359,15 @@ export class ClientDispatcher extends Composer {
2279
2359
  async getPinnedChats(from) {
2280
2360
  return await this.#dispatch("getPinnedChats", from);
2281
2361
  }
2362
+ /**
2363
+ * Get the recent actions of a channel or a supergroup. User-only.
2364
+ *
2365
+ * @method ch
2366
+ * @param chatId The identifier of the chat.
2367
+ */
2368
+ async getRecentActions(chatId, params) {
2369
+ return await this.#dispatch("getRecentActions", chatId, params);
2370
+ }
2282
2371
  /**
2283
2372
  * Get recommended channels. User-only.
2284
2373
  *
@@ -2308,6 +2397,35 @@ export class ClientDispatcher extends Composer {
2308
2397
  async getSimilarChannels(chatId) {
2309
2398
  return await this.#dispatch("getSimilarChannels", chatId);
2310
2399
  }
2400
+ /**
2401
+ * Get a topic of a forum chat by its identifier. User-only.
2402
+ *
2403
+ * @method ch
2404
+ * @param chatId The identifier of the chat.
2405
+ * @param topicId The identifier of the topic.
2406
+ */
2407
+ async getTopic(chatId, topicId) {
2408
+ return await this.#dispatch("getTopic", chatId, topicId);
2409
+ }
2410
+ /**
2411
+ * Get the topics of a forum chat. User-only.
2412
+ *
2413
+ * @method ch
2414
+ * @param chatId The identifier of the chat.
2415
+ */
2416
+ async getTopics(chatId, params) {
2417
+ return await this.#dispatch("getTopics", chatId, params);
2418
+ }
2419
+ /**
2420
+ * Get topics of a forum chat by their identifiers. User-only.
2421
+ *
2422
+ * @method ch
2423
+ * @param chatId The identifier of the chat.
2424
+ * @param topicIds The identifiers of the topics.
2425
+ */
2426
+ async getTopicsById(chatId, topicIds) {
2427
+ return await this.#dispatch("getTopicsById", chatId, topicIds);
2428
+ }
2311
2429
  /**
2312
2430
  * Hide the general forum topic.
2313
2431
  *
@@ -3203,7 +3321,7 @@ export class ClientDispatcher extends Composer {
3203
3321
  return await this.#dispatch("getContacts");
3204
3322
  }
3205
3323
  /**
3206
- * Set a contact note.
3324
+ * Set a contact note. User-only.
3207
3325
  *
3208
3326
  * @method co
3209
3327
  * @param userId The identifier of the user to update the note for.
@@ -3355,6 +3473,16 @@ export class ClientDispatcher extends Composer {
3355
3473
  async removeGiftsFromCollection(chatId, collectionId, gifts) {
3356
3474
  return await this.#dispatch("removeGiftsFromCollection", chatId, collectionId, gifts);
3357
3475
  }
3476
+ /**
3477
+ * Reorder gift collections. User-only.
3478
+ *
3479
+ * @method gc
3480
+ * @param chatId The identifier of the chat that includes the gift collection.
3481
+ * @param collectionIds The identifiers of the gift collections.
3482
+ */
3483
+ async reorderGiftCollections(chatId, collectionIds) {
3484
+ return await this.#dispatch("reorderGiftCollections", chatId, collectionIds);
3485
+ }
3358
3486
  /**
3359
3487
  * Reorder gifts in a gift collection. User-only.
3360
3488
  *
@@ -3410,6 +3538,15 @@ export class ClientDispatcher extends Composer {
3410
3538
  //
3411
3539
  // ========================= STICKER SETS ========================= //
3412
3540
  //
3541
+ /**
3542
+ * Add a sticker set. User-only.
3543
+ *
3544
+ * @method ss
3545
+ * @param slug The slug of the sticker set or its link.
3546
+ */
3547
+ async addStickerSet(slug) {
3548
+ return await this.#dispatch("addStickerSet", slug);
3549
+ }
3413
3550
  /**
3414
3551
  * Add a sticker to a sticker set.
3415
3552
  *
@@ -3420,6 +3557,15 @@ export class ClientDispatcher extends Composer {
3420
3557
  async addStickerToStickerSet(slug, sticker, params) {
3421
3558
  return await this.#dispatch("addStickerToStickerSet", slug, sticker, params);
3422
3559
  }
3560
+ /**
3561
+ * Archive a sticker set. User-only.
3562
+ *
3563
+ * @method ss
3564
+ * @param slug The slug of the sticker set or its link.
3565
+ */
3566
+ async archiveStickerSet(slug) {
3567
+ return await this.#dispatch("archiveStickerSet", slug);
3568
+ }
3423
3569
  /**
3424
3570
  * Change the position of a sticker in its set.
3425
3571
  *
@@ -3460,6 +3606,14 @@ export class ClientDispatcher extends Composer {
3460
3606
  async deleteStickerSet(slug) {
3461
3607
  return await this.#dispatch("deleteStickerSet", slug);
3462
3608
  }
3609
+ /**
3610
+ * Get added sticker sets. User-only.
3611
+ *
3612
+ * @method ss
3613
+ */
3614
+ async getAddedStickerSets() {
3615
+ return await this.#dispatch("getAddedStickerSets");
3616
+ }
3463
3617
  /**
3464
3618
  * Get a dice sticker set.
3465
3619
  *
@@ -3487,6 +3641,15 @@ export class ClientDispatcher extends Composer {
3487
3641
  async removeStickerFromStickerSet(fileId) {
3488
3642
  return await this.#dispatch("removeStickerFromStickerSet", fileId);
3489
3643
  }
3644
+ /**
3645
+ * Remove a sticker set. User-only.
3646
+ *
3647
+ * @method ss
3648
+ * @param slug The slug of the sticker set or its link.
3649
+ */
3650
+ async removeStickerSet(slug) {
3651
+ return await this.#dispatch("removeStickerSet", slug);
3652
+ }
3490
3653
  /**
3491
3654
  * Replace a sticker's emoji.
3492
3655
  *
@@ -3547,6 +3710,15 @@ export class ClientDispatcher extends Composer {
3547
3710
  async suggestStickerSetSlug(title) {
3548
3711
  return await this.#dispatch("suggestStickerSetSlug", title);
3549
3712
  }
3713
+ /**
3714
+ * Unarchive a sticker set. User-only.
3715
+ *
3716
+ * @method ss
3717
+ * @param slug The slug of the sticker set or its link.
3718
+ */
3719
+ async unarchiveStickerSet(slug) {
3720
+ return await this.#dispatch("unarchiveStickerSet", slug);
3721
+ }
3550
3722
  //
3551
3723
  // ========================= MANAGED BOTS ========================= //
3552
3724
  //
@@ -3653,14 +3825,13 @@ export class ClientDispatcher extends Composer {
3653
3825
  return await this.#dispatch("sendSecretAudio", id, audio, params);
3654
3826
  }
3655
3827
  /**
3656
- * Send a secret chat action. User-only.
3828
+ * Send a cancel typing action to a secret chat. User-only.
3657
3829
  *
3658
3830
  * @method sc
3659
3831
  * @param id The identifier of the secret chat.
3660
- * @param action The type of action to send.
3661
3832
  */
3662
- async sendSecretChatAction(id, action) {
3663
- return await this.#dispatch("sendSecretChatAction", id, action);
3833
+ async sendSecretCancelTypingAction(id) {
3834
+ return await this.#dispatch("sendSecretCancelTypingAction", id);
3664
3835
  }
3665
3836
  /**
3666
3837
  * Send a contact to a secret chat. User-only.
@@ -3734,6 +3905,15 @@ export class ClientDispatcher extends Composer {
3734
3905
  async sendSecretSticker(id, sticker, params) {
3735
3906
  return await this.#dispatch("sendSecretSticker", id, sticker, params);
3736
3907
  }
3908
+ /**
3909
+ * Send a typing action to a secret chat. User-only.
3910
+ *
3911
+ * @method sc
3912
+ * @param id The identifier of the secret chat.
3913
+ */
3914
+ async sendSecretTypingAction(id) {
3915
+ return await this.#dispatch("sendSecretTypingAction", id);
3916
+ }
3737
3917
  /**
3738
3918
  * Send a venue to a secret chat. User-only.
3739
3919
  *
@@ -58,6 +58,7 @@ export interface ReportReasonIllegalDrugs {
58
58
  export interface ReportReasonPersonalDetails {
59
59
  type: "personalDetails";
60
60
  }
61
+ /** Any type of report reason. */
61
62
  export type ReportReason = ReportReasonSpam | ReportReasonViolence | ReportReasonPornography | ReportReasonChildAbuse | ReportReasonOther | ReportReasonCopyright | ReportReasonLocationIrrelevant | ReportReasonFake | ReportReasonIllegalDrugs | ReportReasonPersonalDetails;
62
63
  export declare function reportReasonToTlObject(reportReason: ReportReason): Api.ReportReason;
63
64
  //# sourceMappingURL=0_report_reason.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_report_reason.d.ts","sourceRoot":"","sources":["../../src/types/0_report_reason.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,gBAAgB;AAChB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,8BAA8B,GAAG,gBAAgB,GAAG,wBAAwB,GAAG,2BAA2B,CAAC;AAE/Q,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,YAAY,GAAG,GAAG,CAAC,YAAY,CAyBnF"}
1
+ {"version":3,"file":"0_report_reason.d.ts","sourceRoot":"","sources":["../../src/types/0_report_reason.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,gBAAgB;AAChB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,gBAAgB;AAChB,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,iCAAiC;AACjC,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,8BAA8B,GAAG,gBAAgB,GAAG,wBAAwB,GAAG,2BAA2B,CAAC;AAE/Q,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,YAAY,GAAG,GAAG,CAAC,YAAY,CAyBnF"}
@@ -18,8 +18,11 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import type { Api } from "../2_tl.js";
21
+ /** A story report option. */
21
22
  export interface StoryReportOption {
23
+ /** The option's text. */
22
24
  text: string;
25
+ /** The option's identifier. */
23
26
  option: string;
24
27
  }
25
28
  export declare function constructStoryReportOption(rr: Api.messageReportOption): StoryReportOption;
@@ -1 +1 @@
1
- {"version":3,"file":"0_story_report_option.d.ts","sourceRoot":"","sources":["../../src/types/0_story_report_option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,CAAC,mBAAmB,GAAG,iBAAiB,CAIzF"}
1
+ {"version":3,"file":"0_story_report_option.d.ts","sourceRoot":"","sources":["../../src/types/0_story_report_option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,6BAA6B;AAC7B,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,CAAC,mBAAmB,GAAG,iBAAiB,CAIzF"}
@@ -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"}
@@ -17,7 +17,24 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- import { reactionToTlObject } from "./0_reaction.js";
20
+ import { constructReaction, reactionToTlObject } from "./0_reaction.js";
21
+ export function constructAvailableReactions(cr) {
22
+ switch (cr._) {
23
+ case "chatReactionsNone":
24
+ return {
25
+ type: "none",
26
+ };
27
+ case "chatReactionsAll":
28
+ return {
29
+ type: "all",
30
+ };
31
+ case "chatReactionsSome":
32
+ return {
33
+ type: "some",
34
+ reactions: cr.reactions.map(constructReaction),
35
+ };
36
+ }
37
+ }
21
38
  export function availableReactionsToTlObject(chatAvailableReactions) {
22
39
  switch (chatAvailableReactions.type) {
23
40
  case "none":
@@ -0,0 +1,8 @@
1
+ import { Api } from "../2_tl.js";
2
+ import { type Location } from "./0_location.js";
3
+ export interface ChannelLocation {
4
+ location?: Location;
5
+ address: string;
6
+ }
7
+ export declare function constructChannelLocation(cl: Api.channelLocation): ChannelLocation;
8
+ //# 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":"AACA,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,11 @@
1
+ import { cleanObject } from "../1_utilities.js";
2
+ import { Api } from "../2_tl.js";
3
+ import { constructLocation } from "./0_location.js";
4
+ export function constructChannelLocation(cl) {
5
+ const location = Api.is("geoPoint", cl.geo_point) ? constructLocation(cl.geo_point) : undefined;
6
+ const address = cl.address;
7
+ return cleanObject({
8
+ location,
9
+ address,
10
+ });
11
+ }
@@ -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"}
@@ -0,0 +1,73 @@
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 { FileType, PhotoSourceType, serializeFileId, toUniqueFileId } from "./_file_id.js";
22
+ export function constructStickerSetP(stickerSet) {
23
+ const type = stickerSet.emojis ? "customEmoji" : stickerSet.masks ? "mask" : "regular";
24
+ const name = stickerSet.short_name;
25
+ const title = stickerSet.title;
26
+ const thumbnails = new Array();
27
+ const thumb = stickerSet.thumbs?.[0];
28
+ if (thumb !== undefined && stickerSet.thumb_version !== undefined && stickerSet.thumb_dc_id !== undefined && Api.is("photoSize", thumb)) {
29
+ const fileId = {
30
+ type: FileType.Photo,
31
+ dcId: stickerSet.thumb_dc_id,
32
+ location: {
33
+ type: "photo",
34
+ source: {
35
+ type: PhotoSourceType.StickerSetThumbnailVersion,
36
+ stickerSetId: stickerSet.id,
37
+ stickerSetAccessHash: stickerSet.access_hash,
38
+ version: stickerSet.thumb_version,
39
+ },
40
+ id: 0n,
41
+ accessHash: 0n,
42
+ },
43
+ };
44
+ thumbnails.push({
45
+ fileId: serializeFileId(fileId),
46
+ fileUniqueId: toUniqueFileId(fileId),
47
+ width: thumb.w,
48
+ height: thumb.h,
49
+ fileSize: thumb.size,
50
+ });
51
+ }
52
+ const adaptive = !!stickerSet.text_color;
53
+ const canSetAsChannelStatus = !!stickerSet.channel_emoji_status;
54
+ const creator = !!stickerSet.creator;
55
+ const official = !!stickerSet.official;
56
+ const archived = !!stickerSet.archived;
57
+ const stickerSet_ = {
58
+ id: String(stickerSet.id),
59
+ type,
60
+ name,
61
+ title,
62
+ thumbnails,
63
+ isAdaptive: adaptive,
64
+ canSetAsChannelStatus,
65
+ isCreator: creator,
66
+ isOfficial: official,
67
+ isArchived: archived,
68
+ };
69
+ if (stickerSet.installed_date) {
70
+ stickerSet_.addedAt = stickerSet.installed_date;
71
+ }
72
+ return stickerSet_;
73
+ }
@@ -19,22 +19,36 @@
19
19
  */
20
20
  import type { Api } from "../2_tl.js";
21
21
  import { type StoryReportOption } from "./0_story_report_option.js";
22
- /** @unlisted */
22
+ /**
23
+ * A story report result indicating that a report option is required to complete the report.
24
+ * @unlisted
25
+ */
23
26
  export interface StoryReportResultOptionRequired {
24
27
  type: "optionRequired";
28
+ /** The title of the report result. */
25
29
  title: string;
30
+ /** The available report options. */
26
31
  options: StoryReportOption[];
27
32
  }
28
- /** @unlisted */
33
+ /**
34
+ * A story report result indicating that a text is required to complete the report.
35
+ * @unlisted
36
+ */
29
37
  export interface StoryReportResultTextRequired {
30
38
  type: "textRequired";
39
+ /** The identifier of the option requiring text. */
31
40
  option: string;
41
+ /** Whether the text is optional. */
32
42
  isOptional: boolean;
33
43
  }
34
- /** @unlisted */
44
+ /**
45
+ * A story report result indicating that the story was reported.
46
+ * @unlisted
47
+ */
35
48
  export interface StoryReportResultReported {
36
49
  type: "reported";
37
50
  }
51
+ /** Any type of story report result. */
38
52
  export type StoryReportResult = StoryReportResultOptionRequired | StoryReportResultTextRequired | StoryReportResultReported;
39
53
  export declare function constructStoryReportResult(rr: Api.ReportResult): StoryReportResult;
40
54
  //# sourceMappingURL=1_story_report_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1_story_report_result.d.ts","sourceRoot":"","sources":["../../src/types/1_story_report_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhG,gBAAgB;AAChB,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,gBAAgB;AAChB,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,GAAG,6BAA6B,GAAG,yBAAyB,CAAC;AAE5H,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,CAAC,YAAY,GAAG,iBAAiB,CAclF"}
1
+ {"version":3,"file":"1_story_report_result.d.ts","sourceRoot":"","sources":["../../src/types/1_story_report_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhG;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,gBAAgB,CAAC;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,cAAc,CAAC;IACrB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,uCAAuC;AACvC,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,GAAG,6BAA6B,GAAG,yBAAyB,CAAC;AAE5H,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,GAAG,CAAC,YAAY,GAAG,iBAAiB,CAclF"}