@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
@@ -551,6 +551,32 @@ export class Client extends Composer {
551
551
  }
552
552
  }
553
553
  }
554
+ /**
555
+ * Get application configuration. User-only.
556
+ *
557
+ * @method ac
558
+ */
559
+ async getApplicationConfiguration() {
560
+ return await this.#accountManager.getApplicationConfiguration();
561
+ }
562
+ /**
563
+ * Allow a bot to set custom emoji status. User-only.
564
+ *
565
+ * @param botId The user identifier of the bot.
566
+ * @method ac
567
+ */
568
+ async allowBotToSetCustomEmojiStatus(botId) {
569
+ return await this.#accountManager.allowBotToSetCustomEmojiStatus(botId);
570
+ }
571
+ /**
572
+ * Disallow a bot to set custom emoji status. User-only.
573
+ *
574
+ * @param botId The user identifier of the bot.
575
+ * @method ac
576
+ */
577
+ async disallowBotToSetCustomEmojiStatus(botId) {
578
+ return await this.#accountManager.disallowBotToSetCustomEmojiStatus(botId);
579
+ }
554
580
  /**
555
581
  * Check if a code entered by the user was the same as the verification code.
556
582
  *
@@ -1254,6 +1280,14 @@ export class Client extends Composer {
1254
1280
  async checkUsername(username, params) {
1255
1281
  return await this.#accountManager.checkUsername(username, params);
1256
1282
  }
1283
+ /**
1284
+ * Clear recent emoji statuses. User-only.
1285
+ *
1286
+ * @method ac
1287
+ */
1288
+ async clearRecentEmojiStatuses() {
1289
+ return await this.#accountManager.clearRecentEmojiStatuses();
1290
+ }
1257
1291
  /**
1258
1292
  * Delete the current account. User-only.
1259
1293
  *
@@ -1406,6 +1440,14 @@ export class Client extends Composer {
1406
1440
  async getProfilePhotos(userId, params) {
1407
1441
  return await this.#accountManager.getProfilePhotos(userId, params);
1408
1442
  }
1443
+ /**
1444
+ * Get recent emoji statuses. User-only.
1445
+ *
1446
+ * @method ac
1447
+ */
1448
+ async getRecentEmojiStatuses() {
1449
+ return await this.#accountManager.getRecentEmojiStatuses();
1450
+ }
1409
1451
  /**
1410
1452
  * Get timezones. User-only.
1411
1453
  *
@@ -1787,7 +1829,7 @@ export class Client extends Composer {
1787
1829
  await this.#messageManager.deleteMessages(chatId, messageIds, params);
1788
1830
  }
1789
1831
  /**
1790
- * Delete a scheduled message.
1832
+ * Delete a scheduled message. User-only.
1791
1833
  *
1792
1834
  * @method ms
1793
1835
  * @param chatId The identifier of a chat.
@@ -1797,7 +1839,7 @@ export class Client extends Composer {
1797
1839
  await this.#messageManager.deleteScheduledMessage(chatId, messageId);
1798
1840
  }
1799
1841
  /**
1800
- * Delete multiple scheduled messages.
1842
+ * Delete multiple scheduled messages. User-only.
1801
1843
  *
1802
1844
  * @method ms
1803
1845
  * @param chatId The identifier of a chat.
@@ -1828,7 +1870,7 @@ export class Client extends Composer {
1828
1870
  await this.#messageManager.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
1829
1871
  }
1830
1872
  /**
1831
- * Edit an inline message's media.
1873
+ * Edit an inline message's media. User-only.
1832
1874
  *
1833
1875
  * @method ms
1834
1876
  * @param inlineMessageId The identifier of the inline message.
@@ -2103,7 +2145,7 @@ export class Client extends Composer {
2103
2145
  return await this.#messageManager.getSavedChats(params);
2104
2146
  }
2105
2147
  /**
2106
- * Get messages saved from a specific chat.
2148
+ * Get messages saved from a specific chat. User-only.
2107
2149
  *
2108
2150
  * @method ms
2109
2151
  * @param chatId The identifier of a chat.
@@ -2394,7 +2436,7 @@ export class Client extends Composer {
2394
2436
  return await this.#messageManager.sendRichTextDraft(chatId, draftId, richText, params);
2395
2437
  }
2396
2438
  /**
2397
- * Send a scheduled message before its schedule.
2439
+ * Send a scheduled message before its schedule. User-only.
2398
2440
  *
2399
2441
  * @method ms
2400
2442
  * @param chatId The identifier of a chat.
@@ -2404,7 +2446,7 @@ export class Client extends Composer {
2404
2446
  return await this.#messageManager.sendScheduledMessage(chatId, messageId);
2405
2447
  }
2406
2448
  /**
2407
- * Send multiple scheduled messages before their schedule.
2449
+ * Send multiple scheduled messages before their schedule. User-only.
2408
2450
  *
2409
2451
  * @method ms
2410
2452
  * @param chatId The identifier of a chat.
@@ -2869,6 +2911,15 @@ export class Client extends Composer {
2869
2911
  async banChatMember(chatId, memberId, params) {
2870
2912
  await this.#chatManager.banChatMember(chatId, memberId, params);
2871
2913
  }
2914
+ /**
2915
+ * Add a single user to a chat. User-only.
2916
+ *
2917
+ * @method ch
2918
+ * @param chatId The identifier of the chat to boost.
2919
+ */
2920
+ async boostChat(chatId, params) {
2921
+ return await this.#chatManager.boostChat(chatId, params);
2922
+ }
2872
2923
  /**
2873
2924
  * Close a chat previously opened by openChat.
2874
2925
  *
@@ -2985,6 +3036,26 @@ export class Client extends Composer {
2985
3036
  async deleteChatStickerSet(chatId) {
2986
3037
  await this.#messageManager.deleteChatStickerSet(chatId);
2987
3038
  }
3039
+ /**
3040
+ * Delete revoked invite links. User-only.
3041
+ *
3042
+ * @method ch
3043
+ * @param chatId The identifier of the chat.
3044
+ * @param userId The user identifier of a chat admin.
3045
+ */
3046
+ async deleteRevokedInviteLinks(chatId, userId) {
3047
+ return await this.#chatManager.deleteRevokedInviteLinks(chatId, userId);
3048
+ }
3049
+ /**
3050
+ * Delete a forum topic.
3051
+ *
3052
+ * @method ch
3053
+ * @param chatId The identifier of the chat.
3054
+ * @param topicId The identifier of the topic.
3055
+ */
3056
+ async deleteTopic(chatId, topicId) {
3057
+ return await this.#forumManager.deleteTopic(chatId, topicId);
3058
+ }
2988
3059
  /**
2989
3060
  * Disable automatic anti-spam in a group. User-only.
2990
3061
  *
@@ -3133,6 +3204,15 @@ export class Client extends Composer {
3133
3204
  async enableTopics(chatId, isShownAsTabs) {
3134
3205
  await this.#chatManager.enableTopics(chatId, isShownAsTabs);
3135
3206
  }
3207
+ /**
3208
+ * Get administered chats. User-only.
3209
+ *
3210
+ * @method ch
3211
+ * @returns A list of administered chats.
3212
+ */
3213
+ async getAdministeredChats(params) {
3214
+ return await this.#chatManager.getAdministeredChats(params);
3215
+ }
3136
3216
  /**
3137
3217
  * Get a chat.
3138
3218
  *
@@ -3276,6 +3356,15 @@ export class Client extends Composer {
3276
3356
  async getPinnedChats(from) {
3277
3357
  return await this.#chatListManager.getPinnedChats(from);
3278
3358
  }
3359
+ /**
3360
+ * Get the recent actions of a channel or a supergroup. User-only.
3361
+ *
3362
+ * @method ch
3363
+ * @param chatId The identifier of the chat.
3364
+ */
3365
+ async getRecentActions(chatId, params) {
3366
+ return await this.#chatManager.getRecentActions(chatId, params);
3367
+ }
3279
3368
  /**
3280
3369
  * Get recommended channels. User-only.
3281
3370
  *
@@ -3305,6 +3394,35 @@ export class Client extends Composer {
3305
3394
  async getSimilarChannels(chatId) {
3306
3395
  return await this.#chatManager.getSimilarChannels(chatId);
3307
3396
  }
3397
+ /**
3398
+ * Get a topic of a forum chat by its identifier. User-only.
3399
+ *
3400
+ * @method ch
3401
+ * @param chatId The identifier of the chat.
3402
+ * @param topicId The identifier of the topic.
3403
+ */
3404
+ async getTopic(chatId, topicId) {
3405
+ return await this.#forumManager.getTopic(chatId, topicId);
3406
+ }
3407
+ /**
3408
+ * Get the topics of a forum chat. User-only.
3409
+ *
3410
+ * @method ch
3411
+ * @param chatId The identifier of the chat.
3412
+ */
3413
+ async getTopics(chatId, params) {
3414
+ return await this.#forumManager.getTopics(chatId, params);
3415
+ }
3416
+ /**
3417
+ * Get topics of a forum chat by their identifiers. User-only.
3418
+ *
3419
+ * @method ch
3420
+ * @param chatId The identifier of the chat.
3421
+ * @param topicIds The identifiers of the topics.
3422
+ */
3423
+ async getTopicsById(chatId, topicIds) {
3424
+ return await this.#forumManager.getTopicsById(chatId, topicIds);
3425
+ }
3308
3426
  /**
3309
3427
  * Hide the general forum topic.
3310
3428
  *
@@ -4204,7 +4322,7 @@ export class Client extends Composer {
4204
4322
  return await this.#contactManager.getContacts();
4205
4323
  }
4206
4324
  /**
4207
- * Set a contact note.
4325
+ * Set a contact note. User-only.
4208
4326
  *
4209
4327
  * @method co
4210
4328
  * @param userId The identifier of the user to update the note for.
@@ -4356,6 +4474,16 @@ export class Client extends Composer {
4356
4474
  async removeGiftsFromCollection(chatId, collectionId, gifts) {
4357
4475
  return await this.#giftCollectionManager.removeGiftsFromCollection(chatId, collectionId, gifts);
4358
4476
  }
4477
+ /**
4478
+ * Reorder gift collections. User-only.
4479
+ *
4480
+ * @method gc
4481
+ * @param chatId The identifier of the chat that includes the gift collection.
4482
+ * @param collectionIds The identifiers of the gift collections.
4483
+ */
4484
+ async reorderGiftCollections(chatId, collectionIds) {
4485
+ return await this.#giftCollectionManager.reorderGiftCollections(chatId, collectionIds);
4486
+ }
4359
4487
  /**
4360
4488
  * Reorder gifts in a gift collection. User-only.
4361
4489
  *
@@ -4411,6 +4539,15 @@ export class Client extends Composer {
4411
4539
  //
4412
4540
  // ========================= STICKER SETS ========================= //
4413
4541
  //
4542
+ /**
4543
+ * Add a sticker set. User-only.
4544
+ *
4545
+ * @method ss
4546
+ * @param slug The slug of the sticker set or its link.
4547
+ */
4548
+ async addStickerSet(slug) {
4549
+ return await this.#stickerSetManager.addStickerSet(slug);
4550
+ }
4414
4551
  /**
4415
4552
  * Add a sticker to a sticker set.
4416
4553
  *
@@ -4421,6 +4558,15 @@ export class Client extends Composer {
4421
4558
  async addStickerToStickerSet(slug, sticker, params) {
4422
4559
  return await this.#stickerSetManager.addStickerToStickerSet(slug, sticker, params);
4423
4560
  }
4561
+ /**
4562
+ * Archive a sticker set. User-only.
4563
+ *
4564
+ * @method ss
4565
+ * @param slug The slug of the sticker set or its link.
4566
+ */
4567
+ async archiveStickerSet(slug) {
4568
+ return await this.#stickerSetManager.archiveStickerSet(slug);
4569
+ }
4424
4570
  /**
4425
4571
  * Change the position of a sticker in its set.
4426
4572
  *
@@ -4461,6 +4607,14 @@ export class Client extends Composer {
4461
4607
  async deleteStickerSet(slug) {
4462
4608
  return await this.#stickerSetManager.deleteStickerSet(slug);
4463
4609
  }
4610
+ /**
4611
+ * Get added sticker sets. User-only.
4612
+ *
4613
+ * @method ss
4614
+ */
4615
+ async getAddedStickerSets() {
4616
+ return await this.#stickerSetManager.getAddedStickerSets();
4617
+ }
4464
4618
  /**
4465
4619
  * Get a dice sticker set.
4466
4620
  *
@@ -4488,6 +4642,15 @@ export class Client extends Composer {
4488
4642
  async removeStickerFromStickerSet(fileId) {
4489
4643
  return await this.#stickerSetManager.removeStickerFromStickerSet(fileId);
4490
4644
  }
4645
+ /**
4646
+ * Remove a sticker set. User-only.
4647
+ *
4648
+ * @method ss
4649
+ * @param slug The slug of the sticker set or its link.
4650
+ */
4651
+ async removeStickerSet(slug) {
4652
+ return await this.#stickerSetManager.removeStickerSet(slug);
4653
+ }
4491
4654
  /**
4492
4655
  * Replace a sticker's emoji.
4493
4656
  *
@@ -4548,6 +4711,15 @@ export class Client extends Composer {
4548
4711
  async suggestStickerSetSlug(title) {
4549
4712
  return await this.#stickerSetManager.suggestStickerSetSlug(title);
4550
4713
  }
4714
+ /**
4715
+ * Unarchive a sticker set. User-only.
4716
+ *
4717
+ * @method ss
4718
+ * @param slug The slug of the sticker set or its link.
4719
+ */
4720
+ async unarchiveStickerSet(slug) {
4721
+ return await this.#stickerSetManager.unarchiveStickerSet(slug);
4722
+ }
4551
4723
  //
4552
4724
  // ========================= MANAGED BOTS ========================= //
4553
4725
  //
@@ -4654,14 +4826,13 @@ export class Client extends Composer {
4654
4826
  return await this.#secretChatManager.sendSecretAudio(id, audio, params);
4655
4827
  }
4656
4828
  /**
4657
- * Send a secret chat action. User-only.
4829
+ * Send a cancel typing action to a secret chat. User-only.
4658
4830
  *
4659
4831
  * @method sc
4660
4832
  * @param id The identifier of the secret chat.
4661
- * @param action The type of action to send.
4662
4833
  */
4663
- async sendSecretChatAction(id, action) {
4664
- return await this.#secretChatManager.sendSecretChatAction(id, action);
4834
+ async sendSecretCancelTypingAction(id) {
4835
+ return await this.#secretChatManager.sendSecretTypingAction(id);
4665
4836
  }
4666
4837
  /**
4667
4838
  * Send a contact to a secret chat. User-only.
@@ -4735,6 +4906,15 @@ export class Client extends Composer {
4735
4906
  async sendSecretSticker(id, sticker, params) {
4736
4907
  return await this.#secretChatManager.sendSecretSticker(id, sticker, params);
4737
4908
  }
4909
+ /**
4910
+ * Send a typing action to a secret chat. User-only.
4911
+ *
4912
+ * @method sc
4913
+ * @param id The identifier of the secret chat.
4914
+ */
4915
+ async sendSecretTypingAction(id) {
4916
+ return await this.#secretChatManager.sendSecretCancelTypingAction(id);
4917
+ }
4738
4918
  /**
4739
4919
  * Send a venue to a secret chat. User-only.
4740
4920
  *