@mtkruto/node 0.107.0 → 0.109.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 (45) hide show
  1. package/esm/client/0_params.d.ts +1 -1
  2. package/esm/client/0_params.d.ts.map +1 -1
  3. package/esm/client/1_client_generic.d.ts +64 -14
  4. package/esm/client/1_client_generic.d.ts.map +1 -1
  5. package/esm/client/2_account_manager.d.ts +2 -0
  6. package/esm/client/2_account_manager.d.ts.map +1 -1
  7. package/esm/client/2_account_manager.js +12 -0
  8. package/esm/client/2_context.d.ts +110 -2
  9. package/esm/client/2_context.d.ts.map +1 -1
  10. package/esm/client/2_context.js +189 -0
  11. package/esm/client/2_file_manager.js +1 -1
  12. package/esm/client/3_message_manager.d.ts.map +1 -1
  13. package/esm/client/3_message_manager.js +28 -4
  14. package/esm/client/4_chat_manager.d.ts +11 -5
  15. package/esm/client/4_chat_manager.d.ts.map +1 -1
  16. package/esm/client/4_chat_manager.js +52 -12
  17. package/esm/client/5_client.d.ts +64 -14
  18. package/esm/client/5_client.d.ts.map +1 -1
  19. package/esm/client/5_client.js +83 -17
  20. package/esm/client/5_client_dispatcher.d.ts +64 -14
  21. package/esm/client/5_client_dispatcher.d.ts.map +1 -1
  22. package/esm/client/5_client_dispatcher.js +83 -17
  23. package/package.json +1 -1
  24. package/script/client/0_params.d.ts +1 -1
  25. package/script/client/0_params.d.ts.map +1 -1
  26. package/script/client/1_client_generic.d.ts +64 -14
  27. package/script/client/1_client_generic.d.ts.map +1 -1
  28. package/script/client/2_account_manager.d.ts +2 -0
  29. package/script/client/2_account_manager.d.ts.map +1 -1
  30. package/script/client/2_account_manager.js +12 -0
  31. package/script/client/2_context.d.ts +110 -2
  32. package/script/client/2_context.d.ts.map +1 -1
  33. package/script/client/2_context.js +189 -0
  34. package/script/client/2_file_manager.js +1 -1
  35. package/script/client/3_message_manager.d.ts.map +1 -1
  36. package/script/client/3_message_manager.js +28 -4
  37. package/script/client/4_chat_manager.d.ts +11 -5
  38. package/script/client/4_chat_manager.d.ts.map +1 -1
  39. package/script/client/4_chat_manager.js +52 -12
  40. package/script/client/5_client.d.ts +64 -14
  41. package/script/client/5_client.d.ts.map +1 -1
  42. package/script/client/5_client.js +83 -17
  43. package/script/client/5_client_dispatcher.d.ts +64 -14
  44. package/script/client/5_client_dispatcher.d.ts.map +1 -1
  45. package/script/client/5_client_dispatcher.js +83 -17
@@ -465,6 +465,22 @@ class ClientDispatcher extends _4_composer_js_1.Composer {
465
465
  async disableSponsoredMessages() {
466
466
  return await this.#dispatch("disableSponsoredMessages");
467
467
  }
468
+ /**
469
+ * Pause the business bot in a chat. User-only.
470
+ *
471
+ * @method ac
472
+ */
473
+ async pauseBusinessBotConnection(chatId) {
474
+ return await this.#dispatch("pauseBusinessBotConnection", chatId);
475
+ }
476
+ /**
477
+ * Resume the business bot in a chat. User-only.
478
+ *
479
+ * @method ac
480
+ */
481
+ async resumeBusinessBotConnection(chatId) {
482
+ return await this.#dispatch("resumeBusinessBotConnection", chatId);
483
+ }
468
484
  //
469
485
  // ========================= MESSAGES ========================= //
470
486
  //
@@ -1614,45 +1630,77 @@ class ClientDispatcher extends _4_composer_js_1.Composer {
1614
1630
  return await this.#dispatch("setChatDescription", chatId, description);
1615
1631
  }
1616
1632
  /**
1617
- * Hide or show the member list of a group to non-admins. User-only.
1633
+ * Hide the member list of a group to non-admins. User-only.
1634
+ *
1635
+ * @method ch
1636
+ * @param chatId The identifier of the group.
1637
+ */
1638
+ async hideMemberList(chatId) {
1639
+ return await this.#dispatch("hideMemberList", chatId);
1640
+ }
1641
+ /**
1642
+ * Show the member list of a group to non-admins. User-only.
1643
+ *
1644
+ * @method ch
1645
+ * @param chatId The identifier of the group.
1646
+ */
1647
+ async showMemberList(chatId) {
1648
+ return await this.#dispatch("showMemberList", chatId);
1649
+ }
1650
+ /**
1651
+ * Enable topics in a group. User-only.
1652
+ *
1653
+ * @method ch
1654
+ * @param chatId The identifier of the group.
1655
+ * @param isShownAsTabs Whether topics should be displayed as tabs.
1656
+ */
1657
+ async enableTopics(chatId, isShownAsTabs) {
1658
+ return await this.#dispatch("enableTopics", chatId, isShownAsTabs);
1659
+ }
1660
+ /**
1661
+ * Disable topics in a group. User-only.
1618
1662
  *
1619
1663
  * @method ch
1620
1664
  * @param chatId The identifier of the group.
1621
- * @param visible Whether the member list of the group should be visible.
1622
1665
  */
1623
- async setMemberListVisibility(chatId, visible) {
1624
- return await this.#dispatch("setMemberListVisibility", chatId, visible);
1666
+ async disableTopics(chatId) {
1667
+ return await this.#dispatch("disableTopics", chatId);
1625
1668
  }
1626
1669
  /**
1627
- * Enable or disable topics in a group. User-only.
1670
+ * Enable automatic anti-spam in a group. User-only.
1628
1671
  *
1629
1672
  * @method ch
1630
1673
  * @param chatId The identifier of the group.
1631
- * @param enabled Whether topics should be enabled in the group.
1632
- * @param tabs Whether topics should be displayed as tabs.
1633
1674
  */
1634
- async setTopicsEnabled(chatId, enabled, tabs) {
1635
- return await this.#dispatch("setTopicsEnabled", chatId, enabled, tabs);
1675
+ async enableAntispam(chatId) {
1676
+ return await this.#dispatch("enableAntispam", chatId);
1636
1677
  }
1637
1678
  /**
1638
- * Enable or disable automatic anti-spam in a group. User-only.
1679
+ * Disable automatic anti-spam in a group. User-only.
1639
1680
  *
1640
1681
  * @method ch
1641
1682
  * @param chatId The identifier of the group.
1642
- * @param enabled Whether automatic anti-spam should be enabled in the group.
1643
1683
  */
1644
- async setAntispamEnabled(chatId, enabled) {
1645
- return await this.#dispatch("setAntispamEnabled", chatId, enabled);
1684
+ async disableAntispam(chatId) {
1685
+ return await this.#dispatch("disableAntispam", chatId);
1686
+ }
1687
+ /**
1688
+ * Enable post signatures in a channel. User-only.
1689
+ *
1690
+ * @method ch
1691
+ * @param chatId The identifier of the channel.
1692
+ */
1693
+ async enableSignatures(chatId, params) {
1694
+ return await this.#dispatch("enableSignatures", chatId, params);
1646
1695
  }
1647
1696
  /**
1648
- * Enable or disable post signatures in a channel. User-only.
1697
+ * Disable post signatures in a channel. User-only.
1649
1698
  *
1650
1699
  * @method ch
1651
1700
  * @param chatId The identifier of the channel.
1652
- * @param enabled Whether post signatures should be enabled in the channel.
1653
1701
  */
1654
- async setSignaturesEnabled(chatId, enabled, params) {
1655
- return await this.#dispatch("setSignaturesEnabled", chatId, enabled, params);
1702
+ async disableSignatures(chatId) {
1703
+ return await this.#dispatch("disableSignatures", chatId);
1656
1704
  }
1657
1705
  /**
1658
1706
  * Delete a chat. User-only.
@@ -1793,6 +1841,24 @@ class ClientDispatcher extends _4_composer_js_1.Composer {
1793
1841
  async setChatMemberTag(chatId, userId, params) {
1794
1842
  return await this.#dispatch("setChatMemberTag", chatId, userId, params);
1795
1843
  }
1844
+ /**
1845
+ * Enable sharing in a chat. User-only.
1846
+ *
1847
+ * @method ch
1848
+ * @param chatId The identifier of a chat.
1849
+ */
1850
+ async enableSharing(chatId) {
1851
+ return await this.#dispatch("enableSharing", chatId);
1852
+ }
1853
+ /**
1854
+ * Disable sharing in a chat. User-only.
1855
+ *
1856
+ * @method ch
1857
+ * @param chatId The identifier of a chat.
1858
+ */
1859
+ async disableSharing(chatId) {
1860
+ return await this.#dispatch("disableSharing", chatId);
1861
+ }
1796
1862
  //
1797
1863
  // ========================= CALLBACK QUERIES ========================= //
1798
1864
  //