@mtcute/core 0.17.1 → 0.18.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 (1780) hide show
  1. package/client.cjs +692 -771
  2. package/client.d.cts +1 -1
  3. package/client.d.ts +1 -1
  4. package/client.js +419 -498
  5. package/highlevel/base.cjs +264 -0
  6. package/highlevel/base.d.cts +115 -0
  7. package/highlevel/base.d.ts +16 -19
  8. package/highlevel/base.js +259 -0
  9. package/highlevel/client.d.cts +5045 -0
  10. package/highlevel/client.d.ts +289 -246
  11. package/highlevel/client.types.d.cts +61 -0
  12. package/highlevel/client.types.d.ts +13 -10
  13. package/highlevel/index.d.cts +4 -0
  14. package/highlevel/managers/app-config-manager.cjs +49 -0
  15. package/highlevel/managers/app-config-manager.d.cts +11 -0
  16. package/highlevel/managers/app-config-manager.d.ts +1 -2
  17. package/highlevel/managers/app-config-manager.js +44 -0
  18. package/highlevel/managers/timers.cjs +43 -0
  19. package/highlevel/managers/timers.d.cts +10 -0
  20. package/highlevel/managers/timers.d.ts +10 -0
  21. package/highlevel/managers/timers.js +38 -0
  22. package/highlevel/methods/auth/check-password.cjs +21 -0
  23. package/highlevel/methods/auth/check-password.d.cts +10 -0
  24. package/highlevel/methods/auth/check-password.js +16 -0
  25. package/highlevel/methods/auth/get-password-hint.cjs +13 -0
  26. package/highlevel/methods/auth/get-password-hint.d.cts +7 -0
  27. package/highlevel/methods/auth/get-password-hint.js +8 -0
  28. package/highlevel/methods/auth/log-out.cjs +15 -0
  29. package/highlevel/methods/auth/log-out.d.cts +17 -0
  30. package/highlevel/methods/auth/log-out.js +10 -0
  31. package/highlevel/methods/auth/recover-password.cjs +17 -0
  32. package/highlevel/methods/auth/recover-password.d.cts +12 -0
  33. package/highlevel/methods/auth/recover-password.js +12 -0
  34. package/highlevel/methods/auth/resend-code.cjs +24 -0
  35. package/highlevel/methods/auth/resend-code.d.cts +16 -0
  36. package/highlevel/methods/auth/resend-code.js +19 -0
  37. package/highlevel/methods/auth/run.cjs +13 -0
  38. package/highlevel/methods/auth/run.d.cts +16 -0
  39. package/highlevel/methods/auth/run.js +8 -0
  40. package/highlevel/methods/auth/send-code.cjs +31 -0
  41. package/highlevel/methods/auth/send-code.d.cts +18 -0
  42. package/highlevel/methods/auth/send-code.js +26 -0
  43. package/highlevel/methods/auth/send-recovery-code.cjs +13 -0
  44. package/highlevel/methods/auth/send-recovery-code.d.cts +7 -0
  45. package/highlevel/methods/auth/send-recovery-code.js +8 -0
  46. package/highlevel/methods/auth/sign-in-bot.cjs +20 -0
  47. package/highlevel/methods/auth/sign-in-bot.d.cts +10 -0
  48. package/highlevel/methods/auth/sign-in-bot.js +15 -0
  49. package/highlevel/methods/auth/sign-in-qr.cjs +119 -0
  50. package/highlevel/methods/auth/sign-in-qr.d.cts +33 -0
  51. package/highlevel/methods/auth/sign-in-qr.js +114 -0
  52. package/highlevel/methods/auth/sign-in.cjs +23 -0
  53. package/highlevel/methods/auth/sign-in.d.cts +19 -0
  54. package/highlevel/methods/auth/sign-in.js +18 -0
  55. package/highlevel/methods/auth/start-test.cjs +54 -0
  56. package/highlevel/methods/auth/start-test.d.cts +30 -0
  57. package/highlevel/methods/auth/start-test.js +49 -0
  58. package/highlevel/methods/auth/start.cjs +154 -0
  59. package/highlevel/methods/auth/start.d.cts +89 -0
  60. package/highlevel/methods/auth/start.d.ts +3 -3
  61. package/highlevel/methods/auth/start.js +149 -0
  62. package/highlevel/methods/auth/utils.cjs +31 -0
  63. package/highlevel/methods/auth/utils.d.cts +9 -0
  64. package/highlevel/methods/auth/utils.js +26 -0
  65. package/highlevel/methods/bots/answer-callback-query.cjs +22 -0
  66. package/highlevel/methods/bots/answer-callback-query.d.cts +41 -0
  67. package/highlevel/methods/bots/answer-callback-query.d.ts +1 -1
  68. package/highlevel/methods/bots/answer-callback-query.js +17 -0
  69. package/highlevel/methods/bots/answer-inline-query.cjs +33 -0
  70. package/highlevel/methods/bots/answer-inline-query.d.cts +88 -0
  71. package/highlevel/methods/bots/answer-inline-query.js +28 -0
  72. package/highlevel/methods/bots/answer-pre-checkout-query.cjs +20 -0
  73. package/highlevel/methods/bots/answer-pre-checkout-query.d.cts +12 -0
  74. package/highlevel/methods/bots/answer-pre-checkout-query.js +15 -0
  75. package/highlevel/methods/bots/delete-my-commands.cjs +19 -0
  76. package/highlevel/methods/bots/delete-my-commands.d.cts +22 -0
  77. package/highlevel/methods/bots/delete-my-commands.js +14 -0
  78. package/highlevel/methods/bots/get-bot-info.cjs +17 -0
  79. package/highlevel/methods/bots/get-bot-info.d.cts +18 -0
  80. package/highlevel/methods/bots/get-bot-info.js +12 -0
  81. package/highlevel/methods/bots/get-bot-menu-button.cjs +15 -0
  82. package/highlevel/methods/bots/get-bot-menu-button.d.cts +7 -0
  83. package/highlevel/methods/bots/get-bot-menu-button.js +10 -0
  84. package/highlevel/methods/bots/get-callback-answer.cjs +40 -0
  85. package/highlevel/methods/bots/get-callback-answer.d.cts +41 -0
  86. package/highlevel/methods/bots/get-callback-answer.js +35 -0
  87. package/highlevel/methods/bots/get-game-high-scores.cjs +52 -0
  88. package/highlevel/methods/bots/get-game-high-scores.d.cts +17 -0
  89. package/highlevel/methods/bots/get-game-high-scores.js +47 -0
  90. package/highlevel/methods/bots/get-my-commands.cjs +18 -0
  91. package/highlevel/methods/bots/get-my-commands.d.cts +21 -0
  92. package/highlevel/methods/bots/get-my-commands.js +13 -0
  93. package/highlevel/methods/bots/normalize-command-scope.cjs +35 -0
  94. package/highlevel/methods/bots/normalize-command-scope.d.cts +5 -0
  95. package/highlevel/methods/bots/normalize-command-scope.d.ts +1 -1
  96. package/highlevel/methods/bots/normalize-command-scope.js +30 -0
  97. package/highlevel/methods/bots/open-webview.cjs +143 -0
  98. package/highlevel/methods/bots/open-webview.d.cts +73 -0
  99. package/highlevel/methods/bots/open-webview.d.ts +73 -0
  100. package/highlevel/methods/bots/open-webview.js +138 -0
  101. package/highlevel/methods/bots/prepare-inline-message.cjs +54 -0
  102. package/highlevel/methods/bots/prepare-inline-message.d.cts +32 -0
  103. package/highlevel/methods/bots/prepare-inline-message.d.ts +32 -0
  104. package/highlevel/methods/bots/prepare-inline-message.js +49 -0
  105. package/highlevel/methods/bots/set-bot-info.cjs +22 -0
  106. package/highlevel/methods/bots/set-bot-info.d.cts +23 -0
  107. package/highlevel/methods/bots/set-bot-info.js +17 -0
  108. package/highlevel/methods/bots/set-bot-menu-button.cjs +18 -0
  109. package/highlevel/methods/bots/set-bot-menu-button.d.cts +7 -0
  110. package/highlevel/methods/bots/set-bot-menu-button.js +13 -0
  111. package/highlevel/methods/bots/set-game-score.cjs +47 -0
  112. package/highlevel/methods/bots/set-game-score.d.cts +54 -0
  113. package/highlevel/methods/bots/set-game-score.js +42 -0
  114. package/highlevel/methods/bots/set-my-commands.cjs +31 -0
  115. package/highlevel/methods/bots/set-my-commands.d.cts +26 -0
  116. package/highlevel/methods/bots/set-my-commands.js +26 -0
  117. package/highlevel/methods/bots/set-my-default-rights.cjs +20 -0
  118. package/highlevel/methods/bots/set-my-default-rights.d.cts +11 -0
  119. package/highlevel/methods/bots/set-my-default-rights.js +15 -0
  120. package/highlevel/methods/bots/toggle-emoji-status-permission.cjs +22 -0
  121. package/highlevel/methods/bots/toggle-emoji-status-permission.d.cts +11 -0
  122. package/highlevel/methods/bots/toggle-emoji-status-permission.d.ts +11 -0
  123. package/highlevel/methods/bots/toggle-emoji-status-permission.js +17 -0
  124. package/highlevel/methods/chats/add-chat-members.cjs +41 -0
  125. package/highlevel/methods/chats/add-chat-members.d.cts +20 -0
  126. package/highlevel/methods/chats/add-chat-members.js +36 -0
  127. package/highlevel/methods/chats/archive-chats.cjs +23 -0
  128. package/highlevel/methods/chats/archive-chats.d.cts +9 -0
  129. package/highlevel/methods/chats/archive-chats.js +18 -0
  130. package/highlevel/methods/chats/ban-chat-member.cjs +40 -0
  131. package/highlevel/methods/chats/ban-chat-member.d.cts +24 -0
  132. package/highlevel/methods/chats/ban-chat-member.js +35 -0
  133. package/highlevel/methods/chats/batched-queries.cjs +117 -0
  134. package/highlevel/methods/chats/batched-queries.d.cts +11 -0
  135. package/highlevel/methods/chats/batched-queries.d.ts +1 -1
  136. package/highlevel/methods/chats/batched-queries.js +112 -0
  137. package/highlevel/methods/chats/create-channel.cjs +22 -0
  138. package/highlevel/methods/chats/create-channel.d.cts +17 -0
  139. package/highlevel/methods/chats/create-channel.js +17 -0
  140. package/highlevel/methods/chats/create-group.cjs +29 -0
  141. package/highlevel/methods/chats/create-group.d.cts +33 -0
  142. package/highlevel/methods/chats/create-group.js +24 -0
  143. package/highlevel/methods/chats/create-supergroup.cjs +24 -0
  144. package/highlevel/methods/chats/create-supergroup.d.cts +27 -0
  145. package/highlevel/methods/chats/create-supergroup.js +19 -0
  146. package/highlevel/methods/chats/delete-channel.cjs +16 -0
  147. package/highlevel/methods/chats/delete-channel.d.cts +8 -0
  148. package/highlevel/methods/chats/delete-channel.js +11 -0
  149. package/highlevel/methods/chats/delete-chat-photo.cjs +31 -0
  150. package/highlevel/methods/chats/delete-chat-photo.d.cts +10 -0
  151. package/highlevel/methods/chats/delete-chat-photo.js +26 -0
  152. package/highlevel/methods/chats/delete-group.cjs +28 -0
  153. package/highlevel/methods/chats/delete-group.d.cts +8 -0
  154. package/highlevel/methods/chats/delete-group.js +23 -0
  155. package/highlevel/methods/chats/delete-history.cjs +27 -0
  156. package/highlevel/methods/chats/delete-history.d.cts +22 -0
  157. package/highlevel/methods/chats/delete-history.js +22 -0
  158. package/highlevel/methods/chats/delete-user-history.cjs +23 -0
  159. package/highlevel/methods/chats/delete-user-history.d.cts +16 -0
  160. package/highlevel/methods/chats/delete-user-history.js +18 -0
  161. package/highlevel/methods/chats/edit-admin-rights.cjs +25 -0
  162. package/highlevel/methods/chats/edit-admin-rights.d.cts +16 -0
  163. package/highlevel/methods/chats/edit-admin-rights.js +20 -0
  164. package/highlevel/methods/chats/get-chat-event-log.cjs +42 -0
  165. package/highlevel/methods/chats/get-chat-event-log.d.cts +61 -0
  166. package/highlevel/methods/chats/get-chat-event-log.js +37 -0
  167. package/highlevel/methods/chats/get-chat-member.cjs +55 -0
  168. package/highlevel/methods/chats/get-chat-member.d.cts +15 -0
  169. package/highlevel/methods/chats/get-chat-member.js +50 -0
  170. package/highlevel/methods/chats/get-chat-members.cjs +79 -0
  171. package/highlevel/methods/chats/get-chat-members.d.cts +51 -0
  172. package/highlevel/methods/chats/get-chat-members.js +74 -0
  173. package/highlevel/methods/chats/get-chat-preview.cjs +24 -0
  174. package/highlevel/methods/chats/get-chat-preview.d.cts +12 -0
  175. package/highlevel/methods/chats/get-chat-preview.js +19 -0
  176. package/highlevel/methods/chats/get-chat.cjs +40 -0
  177. package/highlevel/methods/chats/get-chat.d.cts +11 -0
  178. package/highlevel/methods/chats/get-chat.js +35 -0
  179. package/highlevel/methods/chats/get-full-chat.cjs +44 -0
  180. package/highlevel/methods/chats/get-full-chat.d.cts +11 -0
  181. package/highlevel/methods/chats/get-full-chat.js +39 -0
  182. package/highlevel/methods/chats/get-full-user.cjs +18 -0
  183. package/highlevel/methods/chats/get-full-user.d.cts +8 -0
  184. package/highlevel/methods/chats/get-full-user.d.ts +8 -0
  185. package/highlevel/methods/chats/get-full-user.js +13 -0
  186. package/highlevel/methods/chats/get-nearby-chats.cjs +37 -0
  187. package/highlevel/methods/chats/get-nearby-chats.d.cts +9 -0
  188. package/highlevel/methods/chats/get-nearby-chats.js +32 -0
  189. package/highlevel/methods/chats/get-similar-channels.cjs +24 -0
  190. package/highlevel/methods/chats/get-similar-channels.d.cts +12 -0
  191. package/highlevel/methods/chats/get-similar-channels.js +19 -0
  192. package/highlevel/methods/chats/get-user.cjs +18 -0
  193. package/highlevel/methods/chats/get-user.d.cts +8 -0
  194. package/highlevel/methods/chats/get-user.d.ts +8 -0
  195. package/highlevel/methods/chats/get-user.js +13 -0
  196. package/highlevel/methods/chats/iter-chat-event-log.cjs +46 -0
  197. package/highlevel/methods/chats/iter-chat-event-log.d.cts +26 -0
  198. package/highlevel/methods/chats/iter-chat-event-log.js +41 -0
  199. package/highlevel/methods/chats/iter-chat-members.cjs +41 -0
  200. package/highlevel/methods/chats/iter-chat-members.d.cts +22 -0
  201. package/highlevel/methods/chats/iter-chat-members.js +36 -0
  202. package/highlevel/methods/chats/join-chat.cjs +33 -0
  203. package/highlevel/methods/chats/join-chat.d.cts +14 -0
  204. package/highlevel/methods/chats/join-chat.js +28 -0
  205. package/highlevel/methods/chats/kick-chat-member.cjs +24 -0
  206. package/highlevel/methods/chats/kick-chat-member.d.cts +15 -0
  207. package/highlevel/methods/chats/kick-chat-member.js +19 -0
  208. package/highlevel/methods/chats/leave-chat.cjs +34 -0
  209. package/highlevel/methods/chats/leave-chat.d.cts +13 -0
  210. package/highlevel/methods/chats/leave-chat.js +29 -0
  211. package/highlevel/methods/chats/mark-chat-unread.cjs +21 -0
  212. package/highlevel/methods/chats/mark-chat-unread.d.cts +8 -0
  213. package/highlevel/methods/chats/mark-chat-unread.js +16 -0
  214. package/highlevel/methods/chats/open-chat.cjs +31 -0
  215. package/highlevel/methods/chats/open-chat.d.cts +26 -0
  216. package/highlevel/methods/chats/open-chat.js +26 -0
  217. package/highlevel/methods/chats/reorder-usernames.cjs +38 -0
  218. package/highlevel/methods/chats/reorder-usernames.d.cts +8 -0
  219. package/highlevel/methods/chats/reorder-usernames.js +33 -0
  220. package/highlevel/methods/chats/restrict-chat-member.cjs +31 -0
  221. package/highlevel/methods/chats/restrict-chat-member.d.cts +28 -0
  222. package/highlevel/methods/chats/restrict-chat-member.js +26 -0
  223. package/highlevel/methods/chats/save-draft.cjs +25 -0
  224. package/highlevel/methods/chats/save-draft.d.cts +10 -0
  225. package/highlevel/methods/chats/save-draft.js +20 -0
  226. package/highlevel/methods/chats/set-chat-color.cjs +41 -0
  227. package/highlevel/methods/chats/set-chat-color.d.cts +38 -0
  228. package/highlevel/methods/chats/set-chat-color.js +36 -0
  229. package/highlevel/methods/chats/set-chat-default-permissions.cjs +26 -0
  230. package/highlevel/methods/chats/set-chat-default-permissions.d.cts +16 -0
  231. package/highlevel/methods/chats/set-chat-default-permissions.js +21 -0
  232. package/highlevel/methods/chats/set-chat-description.cjs +19 -0
  233. package/highlevel/methods/chats/set-chat-description.d.cts +11 -0
  234. package/highlevel/methods/chats/set-chat-description.js +14 -0
  235. package/highlevel/methods/chats/set-chat-photo.cjs +83 -0
  236. package/highlevel/methods/chats/set-chat-photo.d.cts +20 -0
  237. package/highlevel/methods/chats/set-chat-photo.js +78 -0
  238. package/highlevel/methods/chats/set-chat-title.cjs +31 -0
  239. package/highlevel/methods/chats/set-chat-title.d.cts +11 -0
  240. package/highlevel/methods/chats/set-chat-title.js +26 -0
  241. package/highlevel/methods/chats/set-chat-ttl.cjs +16 -0
  242. package/highlevel/methods/chats/set-chat-ttl.d.cts +9 -0
  243. package/highlevel/methods/chats/set-chat-ttl.js +11 -0
  244. package/highlevel/methods/chats/set-chat-username.cjs +18 -0
  245. package/highlevel/methods/chats/set-chat-username.d.cts +11 -0
  246. package/highlevel/methods/chats/set-chat-username.js +13 -0
  247. package/highlevel/methods/chats/set-slow-mode.cjs +17 -0
  248. package/highlevel/methods/chats/set-slow-mode.d.cts +12 -0
  249. package/highlevel/methods/chats/set-slow-mode.js +12 -0
  250. package/highlevel/methods/chats/toggle-content-protection.cjs +17 -0
  251. package/highlevel/methods/chats/toggle-content-protection.d.cts +9 -0
  252. package/highlevel/methods/chats/toggle-content-protection.js +12 -0
  253. package/highlevel/methods/chats/toggle-fragment-username.cjs +42 -0
  254. package/highlevel/methods/chats/toggle-fragment-username.d.cts +20 -0
  255. package/highlevel/methods/chats/toggle-fragment-username.js +37 -0
  256. package/highlevel/methods/chats/toggle-join-requests.cjs +17 -0
  257. package/highlevel/methods/chats/toggle-join-requests.d.cts +12 -0
  258. package/highlevel/methods/chats/toggle-join-requests.js +12 -0
  259. package/highlevel/methods/chats/toggle-join-to-send.cjs +17 -0
  260. package/highlevel/methods/chats/toggle-join-to-send.d.cts +12 -0
  261. package/highlevel/methods/chats/toggle-join-to-send.js +12 -0
  262. package/highlevel/methods/chats/unarchive-chats.cjs +25 -0
  263. package/highlevel/methods/chats/unarchive-chats.d.cts +9 -0
  264. package/highlevel/methods/chats/unarchive-chats.js +20 -0
  265. package/highlevel/methods/chats/unban-chat-member.cjs +31 -0
  266. package/highlevel/methods/chats/unban-chat-member.d.cts +16 -0
  267. package/highlevel/methods/chats/unban-chat-member.js +26 -0
  268. package/highlevel/methods/contacts/add-contact.cjs +26 -0
  269. package/highlevel/methods/contacts/add-contact.d.cts +28 -0
  270. package/highlevel/methods/contacts/add-contact.js +21 -0
  271. package/highlevel/methods/contacts/delete-contacts.cjs +27 -0
  272. package/highlevel/methods/contacts/delete-contacts.d.cts +12 -0
  273. package/highlevel/methods/contacts/delete-contacts.js +22 -0
  274. package/highlevel/methods/contacts/get-contacts.cjs +19 -0
  275. package/highlevel/methods/contacts/get-contacts.d.cts +6 -0
  276. package/highlevel/methods/contacts/get-contacts.js +14 -0
  277. package/highlevel/methods/contacts/import-contacts.cjs +21 -0
  278. package/highlevel/methods/contacts/import-contacts.d.cts +9 -0
  279. package/highlevel/methods/contacts/import-contacts.js +16 -0
  280. package/highlevel/methods/dialogs/create-folder.cjs +36 -0
  281. package/highlevel/methods/dialogs/create-folder.d.cts +13 -0
  282. package/highlevel/methods/dialogs/create-folder.js +31 -0
  283. package/highlevel/methods/dialogs/delete-folder.cjs +16 -0
  284. package/highlevel/methods/dialogs/delete-folder.d.cts +8 -0
  285. package/highlevel/methods/dialogs/delete-folder.js +11 -0
  286. package/highlevel/methods/dialogs/edit-folder.cjs +37 -0
  287. package/highlevel/methods/dialogs/edit-folder.d.cts +18 -0
  288. package/highlevel/methods/dialogs/edit-folder.js +32 -0
  289. package/highlevel/methods/dialogs/find-dialogs.cjs +71 -0
  290. package/highlevel/methods/dialogs/find-dialogs.d.cts +12 -0
  291. package/highlevel/methods/dialogs/find-dialogs.js +66 -0
  292. package/highlevel/methods/dialogs/find-folder.cjs +23 -0
  293. package/highlevel/methods/dialogs/find-folder.d.cts +19 -0
  294. package/highlevel/methods/dialogs/find-folder.js +18 -0
  295. package/highlevel/methods/dialogs/get-chatlist-preview.cjs +16 -0
  296. package/highlevel/methods/dialogs/get-chatlist-preview.d.cts +8 -0
  297. package/highlevel/methods/dialogs/get-chatlist-preview.js +11 -0
  298. package/highlevel/methods/dialogs/get-folders.cjs +31 -0
  299. package/highlevel/methods/dialogs/get-folders.d.cts +9 -0
  300. package/highlevel/methods/dialogs/get-folders.js +26 -0
  301. package/highlevel/methods/dialogs/get-peer-dialogs.cjs +24 -0
  302. package/highlevel/methods/dialogs/get-peer-dialogs.d.cts +10 -0
  303. package/highlevel/methods/dialogs/get-peer-dialogs.d.ts +1 -1
  304. package/highlevel/methods/dialogs/get-peer-dialogs.js +19 -0
  305. package/highlevel/methods/dialogs/iter-dialogs.cjs +166 -0
  306. package/highlevel/methods/dialogs/iter-dialogs.d.cts +103 -0
  307. package/highlevel/methods/dialogs/iter-dialogs.js +161 -0
  308. package/highlevel/methods/dialogs/join-chatlist.cjs +37 -0
  309. package/highlevel/methods/dialogs/join-chatlist.d.cts +15 -0
  310. package/highlevel/methods/dialogs/join-chatlist.js +32 -0
  311. package/highlevel/methods/dialogs/set-folders-order.cjs +16 -0
  312. package/highlevel/methods/dialogs/set-folders-order.d.cts +7 -0
  313. package/highlevel/methods/dialogs/set-folders-order.js +11 -0
  314. package/highlevel/methods/files/download-buffer.cjs +21 -0
  315. package/highlevel/methods/files/download-buffer.d.cts +11 -0
  316. package/highlevel/methods/files/download-buffer.js +16 -0
  317. package/highlevel/methods/files/download-iterable.cjs +169 -0
  318. package/highlevel/methods/files/download-iterable.d.cts +10 -0
  319. package/highlevel/methods/files/download-iterable.js +164 -0
  320. package/highlevel/methods/files/download-stream.cjs +40 -0
  321. package/highlevel/methods/files/download-stream.d.cts +9 -0
  322. package/highlevel/methods/files/download-stream.d.ts +1 -1
  323. package/highlevel/methods/files/download-stream.js +35 -0
  324. package/highlevel/methods/files/normalize-file-to-document.cjs +28 -0
  325. package/highlevel/methods/files/normalize-file-to-document.d.cts +9 -0
  326. package/highlevel/methods/files/normalize-file-to-document.d.ts +1 -1
  327. package/highlevel/methods/files/normalize-file-to-document.js +23 -0
  328. package/highlevel/methods/files/normalize-input-file.cjs +37 -0
  329. package/highlevel/methods/files/normalize-input-file.d.cts +13 -0
  330. package/highlevel/methods/files/normalize-input-file.d.ts +1 -1
  331. package/highlevel/methods/files/normalize-input-file.js +32 -0
  332. package/highlevel/methods/files/normalize-input-media.cjs +366 -0
  333. package/highlevel/methods/files/normalize-input-media.d.cts +12 -0
  334. package/highlevel/methods/files/normalize-input-media.d.ts +1 -1
  335. package/highlevel/methods/files/normalize-input-media.js +361 -0
  336. package/highlevel/methods/files/upload-file.cjs +225 -0
  337. package/highlevel/methods/files/upload-file.d.cts +72 -0
  338. package/highlevel/methods/files/upload-file.d.ts +1 -1
  339. package/highlevel/methods/files/upload-file.js +220 -0
  340. package/highlevel/methods/files/upload-media.cjs +58 -0
  341. package/highlevel/methods/files/upload-media.d.cts +28 -0
  342. package/highlevel/methods/files/upload-media.js +53 -0
  343. package/highlevel/methods/forums/create-forum-topic.cjs +24 -0
  344. package/highlevel/methods/forums/create-forum-topic.d.cts +36 -0
  345. package/highlevel/methods/forums/create-forum-topic.js +19 -0
  346. package/highlevel/methods/forums/delete-forum-topic-history.cjs +24 -0
  347. package/highlevel/methods/forums/delete-forum-topic-history.d.cts +15 -0
  348. package/highlevel/methods/forums/delete-forum-topic-history.js +19 -0
  349. package/highlevel/methods/forums/edit-forum-topic.cjs +22 -0
  350. package/highlevel/methods/forums/edit-forum-topic.d.cts +34 -0
  351. package/highlevel/methods/forums/edit-forum-topic.js +17 -0
  352. package/highlevel/methods/forums/get-forum-topics-by-id.cjs +19 -0
  353. package/highlevel/methods/forums/get-forum-topics-by-id.d.cts +9 -0
  354. package/highlevel/methods/forums/get-forum-topics-by-id.js +14 -0
  355. package/highlevel/methods/forums/get-forum-topics.cjs +41 -0
  356. package/highlevel/methods/forums/get-forum-topics.d.cts +28 -0
  357. package/highlevel/methods/forums/get-forum-topics.js +36 -0
  358. package/highlevel/methods/forums/iter-forum-topics.cjs +30 -0
  359. package/highlevel/methods/forums/iter-forum-topics.d.cts +20 -0
  360. package/highlevel/methods/forums/iter-forum-topics.js +25 -0
  361. package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +18 -0
  362. package/highlevel/methods/forums/reorder-pinned-forum-topics.d.cts +19 -0
  363. package/highlevel/methods/forums/reorder-pinned-forum-topics.js +13 -0
  364. package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +20 -0
  365. package/highlevel/methods/forums/toggle-forum-topic-closed.d.cts +22 -0
  366. package/highlevel/methods/forums/toggle-forum-topic-closed.js +15 -0
  367. package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +18 -0
  368. package/highlevel/methods/forums/toggle-forum-topic-pinned.d.cts +15 -0
  369. package/highlevel/methods/forums/toggle-forum-topic-pinned.js +13 -0
  370. package/highlevel/methods/forums/toggle-forum.cjs +17 -0
  371. package/highlevel/methods/forums/toggle-forum.d.cts +11 -0
  372. package/highlevel/methods/forums/toggle-forum.js +12 -0
  373. package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +20 -0
  374. package/highlevel/methods/forums/toggle-general-topic-hidden.d.cts +20 -0
  375. package/highlevel/methods/forums/toggle-general-topic-hidden.js +15 -0
  376. package/highlevel/methods/invite-links/create-invite-link.cjs +23 -0
  377. package/highlevel/methods/invite-links/create-invite-link.d.cts +38 -0
  378. package/highlevel/methods/invite-links/create-invite-link.d.ts +7 -0
  379. package/highlevel/methods/invite-links/create-invite-link.js +18 -0
  380. package/highlevel/methods/invite-links/edit-invite-link.cjs +25 -0
  381. package/highlevel/methods/invite-links/edit-invite-link.d.cts +36 -0
  382. package/highlevel/methods/invite-links/edit-invite-link.js +20 -0
  383. package/highlevel/methods/invite-links/export-invite-link.cjs +18 -0
  384. package/highlevel/methods/invite-links/export-invite-link.d.cts +12 -0
  385. package/highlevel/methods/invite-links/export-invite-link.js +13 -0
  386. package/highlevel/methods/invite-links/get-invite-link-members.cjs +38 -0
  387. package/highlevel/methods/invite-links/get-invite-link-members.d.cts +45 -0
  388. package/highlevel/methods/invite-links/get-invite-link-members.js +33 -0
  389. package/highlevel/methods/invite-links/get-invite-link.cjs +20 -0
  390. package/highlevel/methods/invite-links/get-invite-link.d.cts +9 -0
  391. package/highlevel/methods/invite-links/get-invite-link.js +15 -0
  392. package/highlevel/methods/invite-links/get-invite-links.cjs +33 -0
  393. package/highlevel/methods/invite-links/get-invite-links.d.cts +39 -0
  394. package/highlevel/methods/invite-links/get-invite-links.js +28 -0
  395. package/highlevel/methods/invite-links/get-primary-invite-link.cjs +33 -0
  396. package/highlevel/methods/invite-links/get-primary-invite-link.d.cts +8 -0
  397. package/highlevel/methods/invite-links/get-primary-invite-link.js +28 -0
  398. package/highlevel/methods/invite-links/hide-all-join-requests.cjs +18 -0
  399. package/highlevel/methods/invite-links/hide-all-join-requests.d.cts +13 -0
  400. package/highlevel/methods/invite-links/hide-all-join-requests.js +13 -0
  401. package/highlevel/methods/invite-links/hide-join-request.cjs +19 -0
  402. package/highlevel/methods/invite-links/hide-join-request.d.cts +13 -0
  403. package/highlevel/methods/invite-links/hide-join-request.js +14 -0
  404. package/highlevel/methods/invite-links/iter-invite-link-members.cjs +35 -0
  405. package/highlevel/methods/invite-links/iter-invite-link-members.d.cts +25 -0
  406. package/highlevel/methods/invite-links/iter-invite-link-members.js +30 -0
  407. package/highlevel/methods/invite-links/iter-invite-links.cjs +33 -0
  408. package/highlevel/methods/invite-links/iter-invite-links.d.cts +27 -0
  409. package/highlevel/methods/invite-links/iter-invite-links.js +28 -0
  410. package/highlevel/methods/invite-links/revoke-invite-link.cjs +22 -0
  411. package/highlevel/methods/invite-links/revoke-invite-link.d.cts +13 -0
  412. package/highlevel/methods/invite-links/revoke-invite-link.js +17 -0
  413. package/highlevel/methods/messages/_business-connection.cjs +42 -0
  414. package/highlevel/methods/messages/_business-connection.d.cts +8 -0
  415. package/highlevel/methods/messages/_business-connection.js +37 -0
  416. package/highlevel/methods/messages/close-poll.cjs +43 -0
  417. package/highlevel/methods/messages/close-poll.d.cts +15 -0
  418. package/highlevel/methods/messages/close-poll.js +38 -0
  419. package/highlevel/methods/messages/delete-messages.cjs +57 -0
  420. package/highlevel/methods/messages/delete-messages.d.cts +29 -0
  421. package/highlevel/methods/messages/delete-messages.js +52 -0
  422. package/highlevel/methods/messages/delete-scheduled-messages.cjs +18 -0
  423. package/highlevel/methods/messages/delete-scheduled-messages.d.cts +9 -0
  424. package/highlevel/methods/messages/delete-scheduled-messages.js +13 -0
  425. package/highlevel/methods/messages/edit-inline-message.cjs +51 -0
  426. package/highlevel/methods/messages/edit-inline-message.d.cts +51 -0
  427. package/highlevel/methods/messages/edit-inline-message.d.ts +1 -1
  428. package/highlevel/methods/messages/edit-inline-message.js +46 -0
  429. package/highlevel/methods/messages/edit-message.cjs +42 -0
  430. package/highlevel/methods/messages/edit-message.d.cts +55 -0
  431. package/highlevel/methods/messages/edit-message.js +37 -0
  432. package/highlevel/methods/messages/find-in-update.cjs +41 -0
  433. package/highlevel/methods/messages/find-in-update.d.cts +13 -0
  434. package/highlevel/methods/messages/find-in-update.js +36 -0
  435. package/highlevel/methods/messages/forward-messages.cjs +74 -0
  436. package/highlevel/methods/messages/forward-messages.d.cts +84 -0
  437. package/highlevel/methods/messages/forward-messages.d.ts +6 -0
  438. package/highlevel/methods/messages/forward-messages.js +69 -0
  439. package/highlevel/methods/messages/get-all-scheduled-messages.cjs +28 -0
  440. package/highlevel/methods/messages/get-all-scheduled-messages.d.cts +8 -0
  441. package/highlevel/methods/messages/get-all-scheduled-messages.js +23 -0
  442. package/highlevel/methods/messages/get-available-effects.cjs +24 -0
  443. package/highlevel/methods/messages/get-available-effects.d.cts +6 -0
  444. package/highlevel/methods/messages/get-available-effects.js +19 -0
  445. package/highlevel/methods/messages/get-callback-query-message.cjs +52 -0
  446. package/highlevel/methods/messages/get-callback-query-message.d.cts +14 -0
  447. package/highlevel/methods/messages/get-callback-query-message.d.ts +1 -1
  448. package/highlevel/methods/messages/get-callback-query-message.js +47 -0
  449. package/highlevel/methods/messages/get-discussion-message.cjs +49 -0
  450. package/highlevel/methods/messages/get-discussion-message.d.cts +21 -0
  451. package/highlevel/methods/messages/get-discussion-message.js +44 -0
  452. package/highlevel/methods/messages/get-fact-check.cjs +23 -0
  453. package/highlevel/methods/messages/get-fact-check.d.cts +11 -0
  454. package/highlevel/methods/messages/get-fact-check.js +18 -0
  455. package/highlevel/methods/messages/get-history.cjs +56 -0
  456. package/highlevel/methods/messages/get-history.d.cts +59 -0
  457. package/highlevel/methods/messages/get-history.d.ts +0 -2
  458. package/highlevel/methods/messages/get-history.js +51 -0
  459. package/highlevel/methods/messages/get-message-by-link.cjs +33 -0
  460. package/highlevel/methods/messages/get-message-by-link.d.cts +6 -0
  461. package/highlevel/methods/messages/get-message-by-link.js +28 -0
  462. package/highlevel/methods/messages/get-message-group.cjs +27 -0
  463. package/highlevel/methods/messages/get-message-group.d.cts +9 -0
  464. package/highlevel/methods/messages/get-message-group.js +22 -0
  465. package/highlevel/methods/messages/get-message-reactions.cjs +38 -0
  466. package/highlevel/methods/messages/get-message-reactions.d.cts +28 -0
  467. package/highlevel/methods/messages/get-message-reactions.js +33 -0
  468. package/highlevel/methods/messages/get-messages-unsafe.cjs +29 -0
  469. package/highlevel/methods/messages/get-messages-unsafe.d.cts +19 -0
  470. package/highlevel/methods/messages/get-messages-unsafe.js +24 -0
  471. package/highlevel/methods/messages/get-messages.cjs +61 -0
  472. package/highlevel/methods/messages/get-messages.d.cts +17 -0
  473. package/highlevel/methods/messages/get-messages.d.ts +1 -1
  474. package/highlevel/methods/messages/get-messages.js +56 -0
  475. package/highlevel/methods/messages/get-reaction-users.cjs +34 -0
  476. package/highlevel/methods/messages/get-reaction-users.d.cts +24 -0
  477. package/highlevel/methods/messages/get-reaction-users.js +29 -0
  478. package/highlevel/methods/messages/get-reply-to.cjs +21 -0
  479. package/highlevel/methods/messages/get-reply-to.d.cts +10 -0
  480. package/highlevel/methods/messages/get-reply-to.js +16 -0
  481. package/highlevel/methods/messages/get-scheduled-messages.cjs +28 -0
  482. package/highlevel/methods/messages/get-scheduled-messages.d.cts +13 -0
  483. package/highlevel/methods/messages/get-scheduled-messages.js +23 -0
  484. package/highlevel/methods/messages/iter-history.cjs +34 -0
  485. package/highlevel/methods/messages/iter-history.d.cts +23 -0
  486. package/highlevel/methods/messages/iter-history.js +29 -0
  487. package/highlevel/methods/messages/iter-reaction-users.cjs +34 -0
  488. package/highlevel/methods/messages/iter-reaction-users.d.cts +26 -0
  489. package/highlevel/methods/messages/iter-reaction-users.js +29 -0
  490. package/highlevel/methods/messages/iter-search-global.cjs +37 -0
  491. package/highlevel/methods/messages/iter-search-global.d.cts +27 -0
  492. package/highlevel/methods/messages/iter-search-global.js +32 -0
  493. package/highlevel/methods/messages/iter-search-messages.cjs +55 -0
  494. package/highlevel/methods/messages/iter-search-messages.d.cts +26 -0
  495. package/highlevel/methods/messages/iter-search-messages.js +50 -0
  496. package/highlevel/methods/messages/pin-message.cjs +23 -0
  497. package/highlevel/methods/messages/pin-message.d.cts +21 -0
  498. package/highlevel/methods/messages/pin-message.js +18 -0
  499. package/highlevel/methods/messages/read-history.cjs +46 -0
  500. package/highlevel/methods/messages/read-history.d.cts +24 -0
  501. package/highlevel/methods/messages/read-history.js +41 -0
  502. package/highlevel/methods/messages/read-reactions.cjs +20 -0
  503. package/highlevel/methods/messages/read-reactions.d.cts +14 -0
  504. package/highlevel/methods/messages/read-reactions.js +15 -0
  505. package/highlevel/methods/messages/search-global.cjs +52 -0
  506. package/highlevel/methods/messages/search-global.d.cts +51 -0
  507. package/highlevel/methods/messages/search-global.js +47 -0
  508. package/highlevel/methods/messages/search-hashtag.cjs +58 -0
  509. package/highlevel/methods/messages/search-hashtag.d.cts +44 -0
  510. package/highlevel/methods/messages/search-hashtag.d.ts +1 -1
  511. package/highlevel/methods/messages/search-hashtag.js +53 -0
  512. package/highlevel/methods/messages/search-messages.cjs +55 -0
  513. package/highlevel/methods/messages/search-messages.d.cts +93 -0
  514. package/highlevel/methods/messages/search-messages.js +50 -0
  515. package/highlevel/methods/messages/send-answer.cjs +37 -0
  516. package/highlevel/methods/messages/send-answer.d.cts +12 -0
  517. package/highlevel/methods/messages/send-answer.d.ts +1 -1
  518. package/highlevel/methods/messages/send-answer.js +32 -0
  519. package/highlevel/methods/messages/send-comment.cjs +48 -0
  520. package/highlevel/methods/messages/send-comment.d.cts +39 -0
  521. package/highlevel/methods/messages/send-comment.d.ts +1 -1
  522. package/highlevel/methods/messages/send-comment.js +43 -0
  523. package/highlevel/methods/messages/send-common.cjs +82 -0
  524. package/highlevel/methods/messages/send-common.d.cts +122 -0
  525. package/highlevel/methods/messages/send-common.d.ts +6 -0
  526. package/highlevel/methods/messages/send-common.js +77 -0
  527. package/highlevel/methods/messages/send-copy-group.cjs +43 -0
  528. package/highlevel/methods/messages/send-copy-group.d.cts +21 -0
  529. package/highlevel/methods/messages/send-copy-group.js +38 -0
  530. package/highlevel/methods/messages/send-copy.cjs +55 -0
  531. package/highlevel/methods/messages/send-copy.d.cts +32 -0
  532. package/highlevel/methods/messages/send-copy.js +50 -0
  533. package/highlevel/methods/messages/send-media-group.cjs +88 -0
  534. package/highlevel/methods/messages/send-media-group.d.cts +35 -0
  535. package/highlevel/methods/messages/send-media-group.d.ts +1 -1
  536. package/highlevel/methods/messages/send-media-group.js +83 -0
  537. package/highlevel/methods/messages/send-media.cjs +68 -0
  538. package/highlevel/methods/messages/send-media.d.cts +48 -0
  539. package/highlevel/methods/messages/send-media.js +63 -0
  540. package/highlevel/methods/messages/send-paid-reaction.cjs +49 -0
  541. package/highlevel/methods/messages/send-paid-reaction.d.cts +24 -0
  542. package/highlevel/methods/messages/send-paid-reaction.js +44 -0
  543. package/highlevel/methods/messages/send-quote.cjs +59 -0
  544. package/highlevel/methods/messages/send-quote.d.cts +33 -0
  545. package/highlevel/methods/messages/send-quote.d.ts +1 -1
  546. package/highlevel/methods/messages/send-quote.js +54 -0
  547. package/highlevel/methods/messages/send-reaction.cjs +28 -0
  548. package/highlevel/methods/messages/send-reaction.d.cts +21 -0
  549. package/highlevel/methods/messages/send-reaction.js +23 -0
  550. package/highlevel/methods/messages/send-reply.cjs +28 -0
  551. package/highlevel/methods/messages/send-reply.d.cts +12 -0
  552. package/highlevel/methods/messages/send-reply.d.ts +1 -1
  553. package/highlevel/methods/messages/send-reply.js +23 -0
  554. package/highlevel/methods/messages/send-scheduled.cjs +27 -0
  555. package/highlevel/methods/messages/send-scheduled.d.cts +14 -0
  556. package/highlevel/methods/messages/send-scheduled.js +22 -0
  557. package/highlevel/methods/messages/send-text.cjs +107 -0
  558. package/highlevel/methods/messages/send-text.d.cts +31 -0
  559. package/highlevel/methods/messages/send-text.d.ts +1 -1
  560. package/highlevel/methods/messages/send-text.js +102 -0
  561. package/highlevel/methods/messages/send-typing.cjs +63 -0
  562. package/highlevel/methods/messages/send-typing.d.cts +32 -0
  563. package/highlevel/methods/messages/send-typing.d.ts +3 -0
  564. package/highlevel/methods/messages/send-typing.js +58 -0
  565. package/highlevel/methods/messages/send-vote.cjs +57 -0
  566. package/highlevel/methods/messages/send-vote.d.cts +15 -0
  567. package/highlevel/methods/messages/send-vote.js +52 -0
  568. package/highlevel/methods/messages/set-typing.cjs +50 -0
  569. package/highlevel/methods/messages/set-typing.d.cts +33 -0
  570. package/highlevel/methods/messages/set-typing.d.ts +33 -0
  571. package/highlevel/methods/messages/set-typing.js +45 -0
  572. package/highlevel/methods/messages/translate-message.cjs +24 -0
  573. package/highlevel/methods/messages/translate-message.d.cts +11 -0
  574. package/highlevel/methods/messages/translate-message.js +19 -0
  575. package/highlevel/methods/messages/translate-text.cjs +31 -0
  576. package/highlevel/methods/messages/translate-text.d.cts +9 -0
  577. package/highlevel/methods/messages/translate-text.js +26 -0
  578. package/highlevel/methods/messages/unpin-all-messages.cjs +27 -0
  579. package/highlevel/methods/messages/unpin-all-messages.d.cts +18 -0
  580. package/highlevel/methods/messages/unpin-all-messages.js +22 -0
  581. package/highlevel/methods/messages/unpin-message.cjs +20 -0
  582. package/highlevel/methods/messages/unpin-message.d.cts +12 -0
  583. package/highlevel/methods/messages/unpin-message.js +15 -0
  584. package/highlevel/methods/misc/chain-id.cjs +13 -0
  585. package/highlevel/methods/misc/chain-id.d.cts +4 -0
  586. package/highlevel/methods/misc/chain-id.js +8 -0
  587. package/highlevel/methods/misc/get-collectible-info.cjs +23 -0
  588. package/highlevel/methods/misc/get-collectible-info.d.cts +6 -0
  589. package/highlevel/methods/misc/get-collectible-info.js +18 -0
  590. package/highlevel/methods/misc/init-takeout-session.cjs +18 -0
  591. package/highlevel/methods/misc/init-takeout-session.d.cts +9 -0
  592. package/highlevel/methods/misc/init-takeout-session.js +13 -0
  593. package/highlevel/methods/misc/normalize-privacy-rules.cjs +41 -0
  594. package/highlevel/methods/misc/normalize-privacy-rules.d.cts +8 -0
  595. package/highlevel/methods/misc/normalize-privacy-rules.js +36 -0
  596. package/highlevel/methods/misc/normalize-text.cjs +33 -0
  597. package/highlevel/methods/misc/normalize-text.d.cts +5 -0
  598. package/highlevel/methods/misc/normalize-text.js +28 -0
  599. package/highlevel/methods/misc/with-params.cjs +23 -0
  600. package/highlevel/methods/misc/with-params.d.cts +10 -0
  601. package/highlevel/methods/misc/with-params.js +18 -0
  602. package/highlevel/methods/password/change-cloud-password.cjs +29 -0
  603. package/highlevel/methods/password/change-cloud-password.d.cts +12 -0
  604. package/highlevel/methods/password/change-cloud-password.js +24 -0
  605. package/highlevel/methods/password/enable-cloud-password.cjs +31 -0
  606. package/highlevel/methods/password/enable-cloud-password.d.cts +17 -0
  607. package/highlevel/methods/password/enable-cloud-password.js +26 -0
  608. package/highlevel/methods/password/password-email.cjs +30 -0
  609. package/highlevel/methods/password/password-email.d.cts +15 -0
  610. package/highlevel/methods/password/password-email.js +25 -0
  611. package/highlevel/methods/password/remove-cloud-password.cjs +26 -0
  612. package/highlevel/methods/password/remove-cloud-password.d.cts +7 -0
  613. package/highlevel/methods/password/remove-cloud-password.js +21 -0
  614. package/highlevel/methods/premium/accept-star-gift.cjs +27 -0
  615. package/highlevel/methods/premium/accept-star-gift.d.cts +16 -0
  616. package/highlevel/methods/premium/accept-star-gift.js +22 -0
  617. package/highlevel/methods/premium/apply-boost.cjs +15 -0
  618. package/highlevel/methods/premium/apply-boost.d.cts +8 -0
  619. package/highlevel/methods/premium/apply-boost.js +10 -0
  620. package/highlevel/methods/premium/can-apply-boost.cjs +24 -0
  621. package/highlevel/methods/premium/can-apply-boost.d.cts +29 -0
  622. package/highlevel/methods/premium/can-apply-boost.js +19 -0
  623. package/highlevel/methods/premium/create-business-chat-link.cjs +23 -0
  624. package/highlevel/methods/premium/create-business-chat-link.d.cts +12 -0
  625. package/highlevel/methods/premium/create-business-chat-link.js +18 -0
  626. package/highlevel/methods/premium/edit-business-chat-link.cjs +33 -0
  627. package/highlevel/methods/premium/edit-business-chat-link.d.cts +20 -0
  628. package/highlevel/methods/premium/edit-business-chat-link.js +28 -0
  629. package/highlevel/methods/premium/get-boost-stats.cjs +17 -0
  630. package/highlevel/methods/premium/get-boost-stats.d.cts +9 -0
  631. package/highlevel/methods/premium/get-boost-stats.js +12 -0
  632. package/highlevel/methods/premium/get-boosts.cjs +27 -0
  633. package/highlevel/methods/premium/get-boosts.d.cts +18 -0
  634. package/highlevel/methods/premium/get-boosts.js +22 -0
  635. package/highlevel/methods/premium/get-business-chat-links.cjs +13 -0
  636. package/highlevel/methods/premium/get-business-chat-links.d.cts +6 -0
  637. package/highlevel/methods/premium/get-business-chat-links.js +8 -0
  638. package/highlevel/methods/premium/get-business-connection.cjs +23 -0
  639. package/highlevel/methods/premium/get-business-connection.d.cts +8 -0
  640. package/highlevel/methods/premium/get-business-connection.js +18 -0
  641. package/highlevel/methods/premium/get-my-boost-slots.cjs +17 -0
  642. package/highlevel/methods/premium/get-my-boost-slots.d.cts +9 -0
  643. package/highlevel/methods/premium/get-my-boost-slots.js +12 -0
  644. package/highlevel/methods/premium/get-star-gift-options.cjs +18 -0
  645. package/highlevel/methods/premium/get-star-gift-options.d.cts +6 -0
  646. package/highlevel/methods/premium/get-star-gift-options.js +13 -0
  647. package/highlevel/methods/premium/get-star-gifts.cjs +24 -0
  648. package/highlevel/methods/premium/get-star-gifts.d.cts +22 -0
  649. package/highlevel/methods/premium/get-star-gifts.d.ts +1 -1
  650. package/highlevel/methods/premium/get-star-gifts.js +19 -0
  651. package/highlevel/methods/premium/get-stars-transactions.cjs +24 -0
  652. package/highlevel/methods/premium/get-stars-transactions.d.cts +34 -0
  653. package/highlevel/methods/premium/get-stars-transactions.js +19 -0
  654. package/highlevel/methods/premium/iter-boosters.cjs +29 -0
  655. package/highlevel/methods/premium/iter-boosters.d.cts +24 -0
  656. package/highlevel/methods/premium/iter-boosters.js +24 -0
  657. package/highlevel/methods/premium/iter-star-gifts.cjs +29 -0
  658. package/highlevel/methods/premium/iter-star-gifts.d.cts +26 -0
  659. package/highlevel/methods/premium/iter-star-gifts.js +24 -0
  660. package/highlevel/methods/premium/iter-stars-transactions.cjs +29 -0
  661. package/highlevel/methods/premium/iter-stars-transactions.d.cts +29 -0
  662. package/highlevel/methods/premium/iter-stars-transactions.js +24 -0
  663. package/highlevel/methods/premium/send-star-gift.cjs +34 -0
  664. package/highlevel/methods/premium/send-star-gift.d.cts +35 -0
  665. package/highlevel/methods/premium/send-star-gift.d.ts +3 -3
  666. package/highlevel/methods/premium/send-star-gift.js +29 -0
  667. package/highlevel/methods/premium/set-business-intro.cjs +40 -0
  668. package/highlevel/methods/premium/set-business-intro.d.cts +22 -0
  669. package/highlevel/methods/premium/set-business-intro.js +35 -0
  670. package/highlevel/methods/premium/set-business-work-hours.cjs +31 -0
  671. package/highlevel/methods/premium/set-business-work-hours.d.cts +18 -0
  672. package/highlevel/methods/premium/set-business-work-hours.js +26 -0
  673. package/highlevel/methods/stickers/_utils.cjs +24 -0
  674. package/highlevel/methods/stickers/_utils.d.cts +10 -0
  675. package/highlevel/methods/stickers/_utils.js +19 -0
  676. package/highlevel/methods/stickers/add-sticker-to-set.cjs +18 -0
  677. package/highlevel/methods/stickers/add-sticker-to-set.d.cts +21 -0
  678. package/highlevel/methods/stickers/add-sticker-to-set.js +13 -0
  679. package/highlevel/methods/stickers/create-sticker-set.cjs +34 -0
  680. package/highlevel/methods/stickers/create-sticker-set.d.cts +66 -0
  681. package/highlevel/methods/stickers/create-sticker-set.js +29 -0
  682. package/highlevel/methods/stickers/delete-sticker-from-set.cjs +21 -0
  683. package/highlevel/methods/stickers/delete-sticker-from-set.d.cts +15 -0
  684. package/highlevel/methods/stickers/delete-sticker-from-set.d.ts +1 -1
  685. package/highlevel/methods/stickers/delete-sticker-from-set.js +16 -0
  686. package/highlevel/methods/stickers/get-custom-emojis.cjs +42 -0
  687. package/highlevel/methods/stickers/get-custom-emojis.d.cts +14 -0
  688. package/highlevel/methods/stickers/get-custom-emojis.js +37 -0
  689. package/highlevel/methods/stickers/get-installed-stickers.cjs +19 -0
  690. package/highlevel/methods/stickers/get-installed-stickers.d.cts +10 -0
  691. package/highlevel/methods/stickers/get-installed-stickers.js +14 -0
  692. package/highlevel/methods/stickers/get-my-sticker-sets.cjs +20 -0
  693. package/highlevel/methods/stickers/get-my-sticker-sets.d.cts +13 -0
  694. package/highlevel/methods/stickers/get-my-sticker-sets.d.ts +2 -2
  695. package/highlevel/methods/stickers/get-my-sticker-sets.js +15 -0
  696. package/highlevel/methods/stickers/get-sticker-set.cjs +17 -0
  697. package/highlevel/methods/stickers/get-sticker-set.d.cts +8 -0
  698. package/highlevel/methods/stickers/get-sticker-set.js +12 -0
  699. package/highlevel/methods/stickers/move-sticker-in-set.cjs +22 -0
  700. package/highlevel/methods/stickers/move-sticker-in-set.d.cts +17 -0
  701. package/highlevel/methods/stickers/move-sticker-in-set.d.ts +1 -1
  702. package/highlevel/methods/stickers/move-sticker-in-set.js +17 -0
  703. package/highlevel/methods/stickers/replace-sticker-in-set.cjs +23 -0
  704. package/highlevel/methods/stickers/replace-sticker-in-set.d.cts +24 -0
  705. package/highlevel/methods/stickers/replace-sticker-in-set.d.ts +1 -1
  706. package/highlevel/methods/stickers/replace-sticker-in-set.js +18 -0
  707. package/highlevel/methods/stickers/set-chat-sticker-set.cjs +19 -0
  708. package/highlevel/methods/stickers/set-chat-sticker-set.d.cts +11 -0
  709. package/highlevel/methods/stickers/set-chat-sticker-set.js +14 -0
  710. package/highlevel/methods/stickers/set-sticker-set-thumb.cjs +18 -0
  711. package/highlevel/methods/stickers/set-sticker-set-thumb.d.cts +20 -0
  712. package/highlevel/methods/stickers/set-sticker-set-thumb.js +13 -0
  713. package/highlevel/methods/stories/can-send-story.cjs +28 -0
  714. package/highlevel/methods/stories/can-send-story.d.cts +13 -0
  715. package/highlevel/methods/stories/can-send-story.js +23 -0
  716. package/highlevel/methods/stories/delete-stories.cjs +17 -0
  717. package/highlevel/methods/stories/delete-stories.d.cts +20 -0
  718. package/highlevel/methods/stories/delete-stories.js +12 -0
  719. package/highlevel/methods/stories/edit-story.cjs +40 -0
  720. package/highlevel/methods/stories/edit-story.d.cts +38 -0
  721. package/highlevel/methods/stories/edit-story.js +35 -0
  722. package/highlevel/methods/stories/find-in-update.cjs +24 -0
  723. package/highlevel/methods/stories/find-in-update.d.cts +5 -0
  724. package/highlevel/methods/stories/find-in-update.js +19 -0
  725. package/highlevel/methods/stories/get-all-stories.cjs +22 -0
  726. package/highlevel/methods/stories/get-all-stories.d.cts +15 -0
  727. package/highlevel/methods/stories/get-all-stories.js +17 -0
  728. package/highlevel/methods/stories/get-peer-stories.cjs +19 -0
  729. package/highlevel/methods/stories/get-peer-stories.d.cts +8 -0
  730. package/highlevel/methods/stories/get-peer-stories.js +14 -0
  731. package/highlevel/methods/stories/get-profile-stories.cjs +31 -0
  732. package/highlevel/methods/stories/get-profile-stories.d.cts +25 -0
  733. package/highlevel/methods/stories/get-profile-stories.js +26 -0
  734. package/highlevel/methods/stories/get-stories-by-id.cjs +26 -0
  735. package/highlevel/methods/stories/get-stories-by-id.d.cts +10 -0
  736. package/highlevel/methods/stories/get-stories-by-id.js +21 -0
  737. package/highlevel/methods/stories/get-stories-interactions.cjs +22 -0
  738. package/highlevel/methods/stories/get-stories-interactions.d.cts +9 -0
  739. package/highlevel/methods/stories/get-stories-interactions.js +17 -0
  740. package/highlevel/methods/stories/get-story-link.cjs +16 -0
  741. package/highlevel/methods/stories/get-story-link.d.cts +11 -0
  742. package/highlevel/methods/stories/get-story-link.js +11 -0
  743. package/highlevel/methods/stories/get-story-viewers.cjs +25 -0
  744. package/highlevel/methods/stories/get-story-viewers.d.cts +33 -0
  745. package/highlevel/methods/stories/get-story-viewers.js +20 -0
  746. package/highlevel/methods/stories/hide-my-stories-views.cjs +27 -0
  747. package/highlevel/methods/stories/hide-my-stories-views.d.cts +21 -0
  748. package/highlevel/methods/stories/hide-my-stories-views.js +22 -0
  749. package/highlevel/methods/stories/increment-stories-views.cjs +18 -0
  750. package/highlevel/methods/stories/increment-stories-views.d.cts +13 -0
  751. package/highlevel/methods/stories/increment-stories-views.js +13 -0
  752. package/highlevel/methods/stories/iter-all-stories.cjs +27 -0
  753. package/highlevel/methods/stories/iter-all-stories.d.cts +16 -0
  754. package/highlevel/methods/stories/iter-all-stories.js +22 -0
  755. package/highlevel/methods/stories/iter-profile-stories.cjs +30 -0
  756. package/highlevel/methods/stories/iter-profile-stories.d.cts +21 -0
  757. package/highlevel/methods/stories/iter-profile-stories.js +25 -0
  758. package/highlevel/methods/stories/iter-story-viewers.cjs +32 -0
  759. package/highlevel/methods/stories/iter-story-viewers.d.cts +22 -0
  760. package/highlevel/methods/stories/iter-story-viewers.js +27 -0
  761. package/highlevel/methods/stories/read-stories.cjs +16 -0
  762. package/highlevel/methods/stories/read-stories.d.cts +11 -0
  763. package/highlevel/methods/stories/read-stories.js +11 -0
  764. package/highlevel/methods/stories/send-story-reaction.cjs +21 -0
  765. package/highlevel/methods/stories/send-story-reaction.d.cts +14 -0
  766. package/highlevel/methods/stories/send-story-reaction.js +16 -0
  767. package/highlevel/methods/stories/send-story.cjs +46 -0
  768. package/highlevel/methods/stories/send-story.d.cts +51 -0
  769. package/highlevel/methods/stories/send-story.js +41 -0
  770. package/highlevel/methods/stories/toggle-peer-stories-archived.cjs +18 -0
  771. package/highlevel/methods/stories/toggle-peer-stories-archived.d.cts +8 -0
  772. package/highlevel/methods/stories/toggle-peer-stories-archived.js +13 -0
  773. package/highlevel/methods/stories/toggle-stories-pinned.cjs +18 -0
  774. package/highlevel/methods/stories/toggle-stories-pinned.d.cts +24 -0
  775. package/highlevel/methods/stories/toggle-stories-pinned.js +13 -0
  776. package/highlevel/methods/users/block-user.cjs +17 -0
  777. package/highlevel/methods/users/block-user.d.cts +8 -0
  778. package/highlevel/methods/users/block-user.js +12 -0
  779. package/highlevel/methods/users/delete-profile-photos.cjs +22 -0
  780. package/highlevel/methods/users/delete-profile-photos.d.cts +9 -0
  781. package/highlevel/methods/users/delete-profile-photos.js +17 -0
  782. package/highlevel/methods/users/edit-close-friends.cjs +31 -0
  783. package/highlevel/methods/users/edit-close-friends.d.cts +14 -0
  784. package/highlevel/methods/users/edit-close-friends.js +26 -0
  785. package/highlevel/methods/users/get-common-chats.cjs +18 -0
  786. package/highlevel/methods/users/get-common-chats.d.cts +9 -0
  787. package/highlevel/methods/users/get-common-chats.js +13 -0
  788. package/highlevel/methods/users/get-global-ttl.cjs +13 -0
  789. package/highlevel/methods/users/get-global-ttl.d.cts +5 -0
  790. package/highlevel/methods/users/get-global-ttl.js +8 -0
  791. package/highlevel/methods/users/get-me.cjs +24 -0
  792. package/highlevel/methods/users/get-me.d.cts +6 -0
  793. package/highlevel/methods/users/get-me.js +19 -0
  794. package/highlevel/methods/users/get-my-username.cjs +11 -0
  795. package/highlevel/methods/users/get-my-username.d.cts +8 -0
  796. package/highlevel/methods/users/get-my-username.js +6 -0
  797. package/highlevel/methods/users/get-profile-photo.cjs +23 -0
  798. package/highlevel/methods/users/get-profile-photo.d.cts +11 -0
  799. package/highlevel/methods/users/get-profile-photo.js +18 -0
  800. package/highlevel/methods/users/get-profile-photos.cjs +32 -0
  801. package/highlevel/methods/users/get-profile-photos.d.cts +22 -0
  802. package/highlevel/methods/users/get-profile-photos.js +27 -0
  803. package/highlevel/methods/users/get-users.cjs +22 -0
  804. package/highlevel/methods/users/get-users.d.cts +12 -0
  805. package/highlevel/methods/users/get-users.js +17 -0
  806. package/highlevel/methods/users/is-peer-available.cjs +40 -0
  807. package/highlevel/methods/users/is-peer-available.d.cts +20 -0
  808. package/highlevel/methods/users/is-peer-available.js +35 -0
  809. package/highlevel/methods/users/iter-profile-photos.cjs +29 -0
  810. package/highlevel/methods/users/iter-profile-photos.d.cts +23 -0
  811. package/highlevel/methods/users/iter-profile-photos.js +24 -0
  812. package/highlevel/methods/users/resolve-peer-many.cjs +84 -0
  813. package/highlevel/methods/users/resolve-peer-many.d.cts +26 -0
  814. package/highlevel/methods/users/resolve-peer-many.js +79 -0
  815. package/highlevel/methods/users/resolve-peer.cjs +200 -0
  816. package/highlevel/methods/users/resolve-peer.d.cts +20 -0
  817. package/highlevel/methods/users/resolve-peer.d.ts +1 -1
  818. package/highlevel/methods/users/resolve-peer.js +195 -0
  819. package/highlevel/methods/users/set-emoji-status.cjs +68 -0
  820. package/highlevel/methods/users/set-emoji-status.d.cts +32 -0
  821. package/highlevel/methods/users/set-emoji-status.d.ts +32 -0
  822. package/highlevel/methods/users/set-emoji-status.js +63 -0
  823. package/highlevel/methods/users/set-global-ttl.cjs +16 -0
  824. package/highlevel/methods/users/set-global-ttl.d.cts +8 -0
  825. package/highlevel/methods/users/set-global-ttl.js +11 -0
  826. package/highlevel/methods/users/set-my-birthday.cjs +19 -0
  827. package/highlevel/methods/users/set-my-birthday.d.cts +12 -0
  828. package/highlevel/methods/users/set-my-birthday.js +14 -0
  829. package/highlevel/methods/users/set-my-profile-photo.cjs +39 -0
  830. package/highlevel/methods/users/set-my-profile-photo.d.cts +16 -0
  831. package/highlevel/methods/users/set-my-profile-photo.d.ts +1 -1
  832. package/highlevel/methods/users/set-my-profile-photo.js +34 -0
  833. package/highlevel/methods/users/set-my-username.cjs +18 -0
  834. package/highlevel/methods/users/set-my-username.d.cts +11 -0
  835. package/highlevel/methods/users/set-my-username.js +13 -0
  836. package/highlevel/methods/users/set-online.cjs +33 -0
  837. package/highlevel/methods/users/set-online.d.cts +19 -0
  838. package/highlevel/methods/users/set-online.d.ts +19 -0
  839. package/highlevel/methods/users/set-online.js +28 -0
  840. package/highlevel/methods/users/unblock-user.cjs +17 -0
  841. package/highlevel/methods/users/unblock-user.d.cts +8 -0
  842. package/highlevel/methods/users/unblock-user.js +12 -0
  843. package/highlevel/methods/users/update-profile.cjs +18 -0
  844. package/highlevel/methods/users/update-profile.d.cts +23 -0
  845. package/highlevel/methods/users/update-profile.js +13 -0
  846. package/highlevel/methods.d.cts +291 -0
  847. package/highlevel/methods.d.ts +11 -2
  848. package/highlevel/storage/index.d.cts +4 -0
  849. package/highlevel/storage/provider.d.cts +7 -0
  850. package/highlevel/storage/repository/peers.d.cts +44 -0
  851. package/highlevel/storage/repository/ref-messages.d.cts +20 -0
  852. package/highlevel/storage/service/current-user.cjs +117 -0
  853. package/highlevel/storage/service/current-user.d.cts +23 -0
  854. package/highlevel/storage/service/current-user.js +112 -0
  855. package/highlevel/storage/service/peers.cjs +263 -0
  856. package/highlevel/storage/service/peers.d.cts +23 -0
  857. package/highlevel/storage/service/peers.js +258 -0
  858. package/highlevel/storage/service/ref-messages.cjs +38 -0
  859. package/highlevel/storage/service/ref-messages.d.cts +15 -0
  860. package/highlevel/storage/service/ref-messages.js +33 -0
  861. package/highlevel/storage/service/updates.cjs +72 -0
  862. package/highlevel/storage/service/updates.d.cts +16 -0
  863. package/highlevel/storage/service/updates.js +67 -0
  864. package/highlevel/storage/storage.cjs +48 -0
  865. package/highlevel/storage/storage.d.cts +27 -0
  866. package/highlevel/storage/storage.d.ts +1 -1
  867. package/highlevel/storage/storage.js +43 -0
  868. package/highlevel/types/auth/index.d.cts +1 -0
  869. package/highlevel/types/auth/sent-code.cjs +79 -0
  870. package/highlevel/types/auth/sent-code.d.cts +56 -0
  871. package/highlevel/types/auth/sent-code.js +74 -0
  872. package/highlevel/types/bots/command-scope/index.d.cts +10 -0
  873. package/highlevel/types/bots/command-scope/inner.cjs +53 -0
  874. package/highlevel/types/bots/command-scope/inner.d.cts +54 -0
  875. package/highlevel/types/bots/command-scope/inner.js +48 -0
  876. package/highlevel/types/bots/game-high-score.cjs +37 -0
  877. package/highlevel/types/bots/game-high-score.d.cts +23 -0
  878. package/highlevel/types/bots/game-high-score.js +32 -0
  879. package/highlevel/types/bots/index.d.cts +6 -0
  880. package/highlevel/types/bots/index.d.ts +1 -0
  881. package/highlevel/types/bots/inline-message/factories.cjs +144 -0
  882. package/highlevel/types/bots/inline-message/factories.d.cts +47 -0
  883. package/highlevel/types/bots/inline-message/factories.js +139 -0
  884. package/highlevel/types/bots/inline-message/index.d.cts +3 -0
  885. package/highlevel/types/bots/inline-message/types.d.cts +114 -0
  886. package/highlevel/types/bots/inline-result/factories.cjs +379 -0
  887. package/highlevel/types/bots/inline-result/factories.d.cts +97 -0
  888. package/highlevel/types/bots/inline-result/factories.js +374 -0
  889. package/highlevel/types/bots/inline-result/index.d.cts +3 -0
  890. package/highlevel/types/bots/inline-result/types.d.cts +417 -0
  891. package/highlevel/types/bots/keyboards/builder.cjs +85 -0
  892. package/highlevel/types/bots/keyboards/builder.d.cts +38 -0
  893. package/highlevel/types/bots/keyboards/builder.js +80 -0
  894. package/highlevel/types/bots/keyboards/factories.cjs +227 -0
  895. package/highlevel/types/bots/keyboards/factories.d.cts +208 -0
  896. package/highlevel/types/bots/keyboards/factories.d.ts +1 -1
  897. package/highlevel/types/bots/keyboards/factories.js +222 -0
  898. package/highlevel/types/bots/keyboards/index.d.cts +15 -0
  899. package/highlevel/types/bots/keyboards/types.d.cts +34 -0
  900. package/highlevel/types/bots/webview.cjs +34 -0
  901. package/highlevel/types/bots/webview.d.cts +114 -0
  902. package/highlevel/types/bots/webview.d.ts +114 -0
  903. package/highlevel/types/bots/webview.js +29 -0
  904. package/highlevel/types/calls/discard-reason.cjs +38 -0
  905. package/highlevel/types/calls/discard-reason.d.cts +13 -0
  906. package/highlevel/types/calls/discard-reason.js +33 -0
  907. package/highlevel/types/calls/index.d.cts +1 -0
  908. package/highlevel/types/conversation.cjs +435 -0
  909. package/highlevel/types/conversation.d.cts +210 -0
  910. package/highlevel/types/conversation.d.ts +3 -3
  911. package/highlevel/types/conversation.js +430 -0
  912. package/highlevel/types/errors.cjs +32 -0
  913. package/highlevel/types/errors.d.cts +33 -0
  914. package/highlevel/types/errors.d.ts +1 -1
  915. package/highlevel/types/errors.js +27 -0
  916. package/highlevel/types/files/file-location.cjs +17 -0
  917. package/highlevel/types/files/file-location.d.cts +48 -0
  918. package/highlevel/types/files/file-location.js +12 -0
  919. package/highlevel/types/files/index.d.cts +4 -0
  920. package/highlevel/types/files/uploaded-file.cjs +11 -0
  921. package/highlevel/types/files/uploaded-file.d.cts +24 -0
  922. package/highlevel/types/files/uploaded-file.js +6 -0
  923. package/highlevel/types/files/utils.d.cts +89 -0
  924. package/highlevel/types/files/utils.d.ts +2 -1
  925. package/highlevel/types/files/web-document.cjs +51 -0
  926. package/highlevel/types/files/web-document.d.cts +32 -0
  927. package/highlevel/types/files/web-document.js +46 -0
  928. package/highlevel/types/index.d.cts +15 -0
  929. package/highlevel/types/media/audio.cjs +46 -0
  930. package/highlevel/types/media/audio.d.cts +31 -0
  931. package/highlevel/types/media/audio.d.ts +1 -1
  932. package/highlevel/types/media/audio.js +41 -0
  933. package/highlevel/types/media/contact.cjs +51 -0
  934. package/highlevel/types/media/contact.d.cts +31 -0
  935. package/highlevel/types/media/contact.js +46 -0
  936. package/highlevel/types/media/dice.cjs +171 -0
  937. package/highlevel/types/media/dice.d.cts +155 -0
  938. package/highlevel/types/media/dice.js +166 -0
  939. package/highlevel/types/media/document-utils.cjs +45 -0
  940. package/highlevel/types/media/document-utils.d.cts +11 -0
  941. package/highlevel/types/media/document-utils.js +40 -0
  942. package/highlevel/types/media/document.cjs +135 -0
  943. package/highlevel/types/media/document.d.cts +75 -0
  944. package/highlevel/types/media/document.d.ts +1 -1
  945. package/highlevel/types/media/document.js +130 -0
  946. package/highlevel/types/media/extended-media.cjs +43 -0
  947. package/highlevel/types/media/extended-media.d.cts +20 -0
  948. package/highlevel/types/media/extended-media.js +38 -0
  949. package/highlevel/types/media/game.cjs +77 -0
  950. package/highlevel/types/media/game.d.cts +38 -0
  951. package/highlevel/types/media/game.js +72 -0
  952. package/highlevel/types/media/index.d.cts +19 -0
  953. package/highlevel/types/media/input-media/factories.cjs +142 -0
  954. package/highlevel/types/media/input-media/factories.d.cts +142 -0
  955. package/highlevel/types/media/input-media/factories.js +137 -0
  956. package/highlevel/types/media/input-media/index.d.cts +3 -0
  957. package/highlevel/types/media/input-media/types.d.cts +520 -0
  958. package/highlevel/types/media/invoice.cjs +128 -0
  959. package/highlevel/types/media/invoice.d.cts +89 -0
  960. package/highlevel/types/media/invoice.d.ts +1 -1
  961. package/highlevel/types/media/invoice.js +123 -0
  962. package/highlevel/types/media/location.cjs +119 -0
  963. package/highlevel/types/media/location.d.cts +83 -0
  964. package/highlevel/types/media/location.js +114 -0
  965. package/highlevel/types/media/paid-media.cjs +66 -0
  966. package/highlevel/types/media/paid-media.d.cts +33 -0
  967. package/highlevel/types/media/paid-media.js +61 -0
  968. package/highlevel/types/media/photo.cjs +164 -0
  969. package/highlevel/types/media/photo.d.cts +72 -0
  970. package/highlevel/types/media/photo.js +159 -0
  971. package/highlevel/types/media/poll.cjs +188 -0
  972. package/highlevel/types/media/poll.d.cts +110 -0
  973. package/highlevel/types/media/poll.d.ts +1 -1
  974. package/highlevel/types/media/poll.js +183 -0
  975. package/highlevel/types/media/sticker.cjs +145 -0
  976. package/highlevel/types/media/sticker.d.cts +123 -0
  977. package/highlevel/types/media/sticker.d.ts +1 -1
  978. package/highlevel/types/media/sticker.js +140 -0
  979. package/highlevel/types/media/story.cjs +53 -0
  980. package/highlevel/types/media/story.d.cts +33 -0
  981. package/highlevel/types/media/story.js +48 -0
  982. package/highlevel/types/media/thumbnail.cjs +238 -0
  983. package/highlevel/types/media/thumbnail.d.cts +70 -0
  984. package/highlevel/types/media/thumbnail.js +233 -0
  985. package/highlevel/types/media/venue.cjs +81 -0
  986. package/highlevel/types/media/venue.d.cts +58 -0
  987. package/highlevel/types/media/venue.js +76 -0
  988. package/highlevel/types/media/video.cjs +80 -0
  989. package/highlevel/types/media/video.d.cts +48 -0
  990. package/highlevel/types/media/video.d.ts +1 -1
  991. package/highlevel/types/media/video.js +75 -0
  992. package/highlevel/types/media/voice.cjs +40 -0
  993. package/highlevel/types/media/voice.d.cts +23 -0
  994. package/highlevel/types/media/voice.d.ts +1 -1
  995. package/highlevel/types/media/voice.js +35 -0
  996. package/highlevel/types/media/web-page.cjs +190 -0
  997. package/highlevel/types/media/web-page.d.cts +151 -0
  998. package/highlevel/types/media/web-page.js +185 -0
  999. package/highlevel/types/messages/dialog.cjs +219 -0
  1000. package/highlevel/types/messages/dialog.d.cts +110 -0
  1001. package/highlevel/types/messages/dialog.d.ts +3 -3
  1002. package/highlevel/types/messages/dialog.js +214 -0
  1003. package/highlevel/types/messages/draft-message.cjs +55 -0
  1004. package/highlevel/types/messages/draft-message.d.cts +29 -0
  1005. package/highlevel/types/messages/draft-message.js +50 -0
  1006. package/highlevel/types/messages/fact-check.cjs +55 -0
  1007. package/highlevel/types/messages/fact-check.d.cts +30 -0
  1008. package/highlevel/types/messages/fact-check.js +50 -0
  1009. package/highlevel/types/messages/index.d.cts +14 -0
  1010. package/highlevel/types/messages/index.d.ts +1 -1
  1011. package/highlevel/types/messages/input-message-id.cjs +12 -0
  1012. package/highlevel/types/messages/input-message-id.d.cts +20 -0
  1013. package/highlevel/types/messages/input-message-id.js +7 -0
  1014. package/highlevel/types/messages/message-action.cjs +302 -0
  1015. package/highlevel/types/messages/message-action.d.cts +420 -0
  1016. package/highlevel/types/messages/message-action.d.ts +15 -4
  1017. package/highlevel/types/messages/message-action.js +297 -0
  1018. package/highlevel/types/messages/message-effect.cjs +66 -0
  1019. package/highlevel/types/messages/message-effect.d.cts +20 -0
  1020. package/highlevel/types/messages/message-effect.js +61 -0
  1021. package/highlevel/types/messages/message-entity.cjs +104 -0
  1022. package/highlevel/types/messages/message-entity.d.cts +89 -0
  1023. package/highlevel/types/messages/message-entity.js +99 -0
  1024. package/highlevel/types/messages/message-forward.cjs +68 -0
  1025. package/highlevel/types/messages/message-forward.d.cts +39 -0
  1026. package/highlevel/types/messages/message-forward.d.ts +7 -4
  1027. package/highlevel/types/messages/message-forward.js +63 -0
  1028. package/highlevel/types/messages/message-media.cjs +73 -0
  1029. package/highlevel/types/messages/message-media.d.cts +23 -0
  1030. package/highlevel/types/messages/message-media.d.ts +5 -5
  1031. package/highlevel/types/messages/message-media.js +68 -0
  1032. package/highlevel/types/messages/message-reactions.cjs +47 -0
  1033. package/highlevel/types/messages/message-reactions.d.cts +31 -0
  1034. package/highlevel/types/messages/message-reactions.js +42 -0
  1035. package/highlevel/types/messages/message-replies.cjs +66 -0
  1036. package/highlevel/types/messages/message-replies.d.cts +42 -0
  1037. package/highlevel/types/messages/message-replies.js +61 -0
  1038. package/highlevel/types/messages/message.cjs +444 -0
  1039. package/highlevel/types/messages/message.d.cts +249 -0
  1040. package/highlevel/types/messages/message.d.ts +6 -5
  1041. package/highlevel/types/messages/message.js +439 -0
  1042. package/highlevel/types/messages/replied-message.cjs +152 -0
  1043. package/highlevel/types/messages/replied-message.d.cts +103 -0
  1044. package/highlevel/types/messages/replied-message.d.ts +4 -4
  1045. package/highlevel/types/messages/replied-message.js +147 -0
  1046. package/highlevel/types/messages/search-filters.cjs +33 -0
  1047. package/highlevel/types/messages/search-filters.d.cts +82 -0
  1048. package/highlevel/types/messages/search-filters.js +28 -0
  1049. package/highlevel/types/misc/app-config.d.cts +887 -0
  1050. package/highlevel/types/misc/collectible-info.cjs +45 -0
  1051. package/highlevel/types/misc/collectible-info.d.cts +27 -0
  1052. package/highlevel/types/misc/collectible-info.d.ts +1 -1
  1053. package/highlevel/types/misc/collectible-info.js +40 -0
  1054. package/highlevel/types/misc/entities.cjs +15 -0
  1055. package/highlevel/types/misc/entities.d.cts +22 -0
  1056. package/highlevel/types/misc/entities.js +10 -0
  1057. package/highlevel/types/misc/index.d.cts +6 -0
  1058. package/highlevel/types/misc/input-privacy-rule/allow.cjs +29 -0
  1059. package/highlevel/types/misc/input-privacy-rule/allow.d.cts +22 -0
  1060. package/highlevel/types/misc/input-privacy-rule/allow.js +24 -0
  1061. package/highlevel/types/misc/input-privacy-rule/bundle.cjs +11 -0
  1062. package/highlevel/types/misc/input-privacy-rule/bundle.d.cts +3 -0
  1063. package/highlevel/types/misc/input-privacy-rule/bundle.js +6 -0
  1064. package/highlevel/types/misc/input-privacy-rule/disallow.cjs +25 -0
  1065. package/highlevel/types/misc/input-privacy-rule/disallow.d.cts +20 -0
  1066. package/highlevel/types/misc/input-privacy-rule/disallow.js +20 -0
  1067. package/highlevel/types/misc/input-privacy-rule/index.d.cts +3 -0
  1068. package/highlevel/types/misc/input-privacy-rule/types.d.cts +11 -0
  1069. package/highlevel/types/misc/sticker-set.cjs +237 -0
  1070. package/highlevel/types/misc/sticker-set.d.cts +154 -0
  1071. package/highlevel/types/misc/sticker-set.d.ts +1 -1
  1072. package/highlevel/types/misc/sticker-set.js +232 -0
  1073. package/highlevel/types/misc/takeout-session.cjs +83 -0
  1074. package/highlevel/types/misc/takeout-session.d.cts +49 -0
  1075. package/highlevel/types/misc/takeout-session.js +78 -0
  1076. package/highlevel/types/peers/bot-info.cjs +53 -0
  1077. package/highlevel/types/peers/bot-info.d.cts +21 -0
  1078. package/highlevel/types/peers/bot-info.d.ts +21 -0
  1079. package/highlevel/types/peers/bot-info.js +48 -0
  1080. package/highlevel/types/peers/chat-colors.cjs +36 -0
  1081. package/highlevel/types/peers/chat-colors.d.cts +25 -0
  1082. package/highlevel/types/peers/chat-colors.js +31 -0
  1083. package/highlevel/types/peers/chat-event/actions.cjs +237 -0
  1084. package/highlevel/types/peers/chat-event/actions.d.cts +279 -0
  1085. package/highlevel/types/peers/chat-event/actions.d.ts +1 -1
  1086. package/highlevel/types/peers/chat-event/actions.js +232 -0
  1087. package/highlevel/types/peers/chat-event/filters.cjs +116 -0
  1088. package/highlevel/types/peers/chat-event/filters.d.cts +10 -0
  1089. package/highlevel/types/peers/chat-event/filters.js +111 -0
  1090. package/highlevel/types/peers/chat-event/index.cjs +45 -0
  1091. package/highlevel/types/peers/chat-event/index.d.cts +27 -0
  1092. package/highlevel/types/peers/chat-event/index.d.ts +1 -1
  1093. package/highlevel/types/peers/chat-event/index.js +40 -0
  1094. package/highlevel/types/peers/chat-invite-link-member.cjs +57 -0
  1095. package/highlevel/types/peers/chat-invite-link-member.d.cts +33 -0
  1096. package/highlevel/types/peers/chat-invite-link-member.js +52 -0
  1097. package/highlevel/types/peers/chat-invite-link.cjs +108 -0
  1098. package/highlevel/types/peers/chat-invite-link.d.cts +72 -0
  1099. package/highlevel/types/peers/chat-invite-link.d.ts +1 -1
  1100. package/highlevel/types/peers/chat-invite-link.js +103 -0
  1101. package/highlevel/types/peers/chat-location.cjs +30 -0
  1102. package/highlevel/types/peers/chat-location.d.cts +17 -0
  1103. package/highlevel/types/peers/chat-location.js +25 -0
  1104. package/highlevel/types/peers/chat-member.cjs +164 -0
  1105. package/highlevel/types/peers/chat-member.d.cts +86 -0
  1106. package/highlevel/types/peers/chat-member.d.ts +1 -1
  1107. package/highlevel/types/peers/chat-member.js +159 -0
  1108. package/highlevel/types/peers/chat-permissions.cjs +177 -0
  1109. package/highlevel/types/peers/chat-permissions.d.cts +127 -0
  1110. package/highlevel/types/peers/chat-permissions.js +172 -0
  1111. package/highlevel/types/peers/chat-photo.cjs +122 -0
  1112. package/highlevel/types/peers/chat-photo.d.cts +39 -0
  1113. package/highlevel/types/peers/chat-photo.js +117 -0
  1114. package/highlevel/types/peers/chat-preview.cjs +70 -0
  1115. package/highlevel/types/peers/chat-preview.d.cts +55 -0
  1116. package/highlevel/types/peers/chat-preview.js +65 -0
  1117. package/highlevel/types/peers/chat.cjs +444 -0
  1118. package/highlevel/types/peers/chat.d.cts +250 -0
  1119. package/highlevel/types/peers/chat.d.ts +57 -62
  1120. package/highlevel/types/peers/chat.js +439 -0
  1121. package/highlevel/types/peers/chatlist-preview.cjs +47 -0
  1122. package/highlevel/types/peers/chatlist-preview.d.cts +21 -0
  1123. package/highlevel/types/peers/chatlist-preview.d.ts +2 -2
  1124. package/highlevel/types/peers/chatlist-preview.js +42 -0
  1125. package/highlevel/types/peers/forum-topic.cjs +160 -0
  1126. package/highlevel/types/peers/forum-topic.d.cts +96 -0
  1127. package/highlevel/types/peers/forum-topic.d.ts +1 -1
  1128. package/highlevel/types/peers/forum-topic.js +155 -0
  1129. package/highlevel/types/peers/full-chat.cjs +308 -0
  1130. package/highlevel/types/peers/full-chat.d.cts +161 -0
  1131. package/highlevel/types/peers/full-chat.d.ts +96 -42
  1132. package/highlevel/types/peers/full-chat.js +303 -0
  1133. package/highlevel/types/peers/full-user.cjs +215 -0
  1134. package/highlevel/types/peers/full-user.d.cts +115 -0
  1135. package/highlevel/types/peers/full-user.d.ts +115 -0
  1136. package/highlevel/types/peers/full-user.js +210 -0
  1137. package/highlevel/types/peers/index.d.cts +19 -0
  1138. package/highlevel/types/peers/index.d.ts +5 -2
  1139. package/highlevel/types/peers/peer.cjs +20 -0
  1140. package/highlevel/types/peers/peer.d.cts +49 -0
  1141. package/highlevel/types/peers/peer.d.ts +1 -1
  1142. package/highlevel/types/peers/peer.js +15 -0
  1143. package/{chunks/cjs/ija5tZ1t.js → highlevel/types/peers/peers-index.cjs} +6 -5
  1144. package/highlevel/types/peers/peers-index.d.cts +15 -0
  1145. package/{chunks/es/N3PMYmCL.js → highlevel/types/peers/peers-index.js} +1 -1
  1146. package/highlevel/types/peers/typing-status.d.cts +26 -0
  1147. package/highlevel/types/peers/user.cjs +461 -0
  1148. package/highlevel/types/peers/user.d.cts +268 -0
  1149. package/highlevel/types/peers/user.d.ts +4 -0
  1150. package/highlevel/types/peers/user.js +456 -0
  1151. package/highlevel/types/peers/user.test.d.cts +1 -0
  1152. package/highlevel/types/premium/boost-slot.cjs +62 -0
  1153. package/highlevel/types/premium/boost-slot.d.cts +37 -0
  1154. package/highlevel/types/premium/boost-slot.js +57 -0
  1155. package/highlevel/types/premium/boost-stats.cjs +89 -0
  1156. package/highlevel/types/premium/boost-stats.d.cts +54 -0
  1157. package/highlevel/types/premium/boost-stats.js +84 -0
  1158. package/highlevel/types/premium/boost.cjs +79 -0
  1159. package/highlevel/types/premium/boost.d.cts +56 -0
  1160. package/highlevel/types/premium/boost.d.ts +1 -2
  1161. package/highlevel/types/premium/boost.js +74 -0
  1162. package/highlevel/types/premium/business-account.cjs +43 -0
  1163. package/highlevel/types/premium/business-account.d.cts +19 -0
  1164. package/highlevel/types/premium/business-account.js +38 -0
  1165. package/highlevel/types/premium/business-chat-link.cjs +38 -0
  1166. package/highlevel/types/premium/business-chat-link.d.cts +19 -0
  1167. package/highlevel/types/premium/business-chat-link.js +33 -0
  1168. package/highlevel/types/premium/business-connection.cjs +43 -0
  1169. package/highlevel/types/premium/business-connection.d.cts +23 -0
  1170. package/highlevel/types/premium/business-connection.js +38 -0
  1171. package/highlevel/types/premium/business-intro.cjs +39 -0
  1172. package/highlevel/types/premium/business-intro.d.cts +22 -0
  1173. package/highlevel/types/premium/business-intro.js +34 -0
  1174. package/highlevel/types/premium/business-location.cjs +26 -0
  1175. package/highlevel/types/premium/business-location.d.cts +10 -0
  1176. package/highlevel/types/premium/business-location.js +21 -0
  1177. package/highlevel/types/premium/business-work-hours.cjs +129 -0
  1178. package/highlevel/types/premium/business-work-hours.d.cts +42 -0
  1179. package/highlevel/types/premium/business-work-hours.js +124 -0
  1180. package/highlevel/types/premium/business-work-hours.test.d.cts +1 -0
  1181. package/highlevel/types/premium/index.d.cts +12 -0
  1182. package/highlevel/types/premium/index.d.ts +4 -3
  1183. package/highlevel/types/premium/stars-gift.cjs +119 -0
  1184. package/highlevel/types/premium/stars-gift.d.cts +68 -0
  1185. package/highlevel/types/premium/stars-gift.d.ts +12 -1
  1186. package/highlevel/types/premium/stars-gift.js +114 -0
  1187. package/highlevel/types/premium/stars-status.cjs +35 -0
  1188. package/highlevel/types/premium/stars-status.d.cts +16 -0
  1189. package/highlevel/types/premium/stars-status.d.ts +1 -1
  1190. package/highlevel/types/premium/stars-status.js +30 -0
  1191. package/highlevel/types/premium/stars-transaction.cjs +152 -0
  1192. package/highlevel/types/premium/stars-transaction.d.cts +134 -0
  1193. package/highlevel/types/premium/stars-transaction.d.ts +9 -3
  1194. package/highlevel/types/premium/stars-transaction.js +147 -0
  1195. package/highlevel/types/reactions/emoji-status.cjs +24 -0
  1196. package/highlevel/types/reactions/emoji-status.d.cts +12 -0
  1197. package/highlevel/types/reactions/emoji-status.js +19 -0
  1198. package/highlevel/types/reactions/index.d.cts +4 -0
  1199. package/highlevel/types/reactions/index.d.ts +2 -0
  1200. package/highlevel/types/reactions/peer-reaction.cjs +83 -0
  1201. package/highlevel/types/reactions/peer-reaction.d.cts +53 -0
  1202. package/highlevel/types/reactions/peer-reaction.d.ts +2 -2
  1203. package/highlevel/types/reactions/peer-reaction.js +78 -0
  1204. package/highlevel/types/reactions/reaction-count.cjs +40 -0
  1205. package/highlevel/types/reactions/reaction-count.d.cts +25 -0
  1206. package/highlevel/types/reactions/reaction-count.js +35 -0
  1207. package/highlevel/types/reactions/types.cjs +49 -0
  1208. package/highlevel/types/reactions/types.d.cts +16 -0
  1209. package/highlevel/types/reactions/types.js +44 -0
  1210. package/highlevel/types/stories/all-stories.cjs +43 -0
  1211. package/highlevel/types/stories/all-stories.d.cts +28 -0
  1212. package/highlevel/types/stories/all-stories.js +38 -0
  1213. package/highlevel/types/stories/index.d.cts +7 -0
  1214. package/highlevel/types/stories/index.d.ts +1 -1
  1215. package/highlevel/types/stories/interactive/base.cjs +34 -0
  1216. package/highlevel/types/stories/interactive/base.d.cts +16 -0
  1217. package/highlevel/types/stories/interactive/base.js +29 -0
  1218. package/highlevel/types/stories/interactive/channel-post.cjs +30 -0
  1219. package/highlevel/types/stories/interactive/channel-post.d.cts +17 -0
  1220. package/highlevel/types/stories/interactive/channel-post.d.ts +1 -1
  1221. package/highlevel/types/stories/interactive/channel-post.js +25 -0
  1222. package/highlevel/types/stories/interactive/index.cjs +40 -0
  1223. package/highlevel/types/stories/interactive/index.d.cts +12 -0
  1224. package/highlevel/types/stories/interactive/index.js +35 -0
  1225. package/highlevel/types/stories/interactive/input.cjs +79 -0
  1226. package/highlevel/types/stories/interactive/input.d.cts +68 -0
  1227. package/highlevel/types/stories/interactive/input.js +74 -0
  1228. package/highlevel/types/stories/interactive/location.cjs +29 -0
  1229. package/highlevel/types/stories/interactive/location.d.cts +15 -0
  1230. package/highlevel/types/stories/interactive/location.js +24 -0
  1231. package/highlevel/types/stories/interactive/reaction.cjs +31 -0
  1232. package/highlevel/types/stories/interactive/reaction.d.cts +21 -0
  1233. package/highlevel/types/stories/interactive/reaction.js +26 -0
  1234. package/highlevel/types/stories/interactive/url.cjs +19 -0
  1235. package/highlevel/types/stories/interactive/url.d.cts +11 -0
  1236. package/highlevel/types/stories/interactive/url.js +14 -0
  1237. package/highlevel/types/stories/interactive/venue.cjs +52 -0
  1238. package/highlevel/types/stories/interactive/venue.d.cts +28 -0
  1239. package/highlevel/types/stories/interactive/venue.d.ts +1 -1
  1240. package/highlevel/types/stories/interactive/venue.js +47 -0
  1241. package/highlevel/types/stories/interactive/weather.cjs +29 -0
  1242. package/highlevel/types/stories/interactive/weather.d.cts +15 -0
  1243. package/highlevel/types/stories/interactive/weather.js +24 -0
  1244. package/highlevel/types/stories/peer-stories.cjs +42 -0
  1245. package/highlevel/types/stories/peer-stories.d.cts +20 -0
  1246. package/highlevel/types/stories/peer-stories.js +37 -0
  1247. package/highlevel/types/stories/stealth-mode.cjs +25 -0
  1248. package/highlevel/types/stories/stealth-mode.d.cts +9 -0
  1249. package/highlevel/types/stories/stealth-mode.js +20 -0
  1250. package/highlevel/types/stories/story-interactions.cjs +55 -0
  1251. package/highlevel/types/stories/story-interactions.d.cts +34 -0
  1252. package/highlevel/types/stories/story-interactions.js +50 -0
  1253. package/highlevel/types/stories/story-viewer.cjs +133 -0
  1254. package/highlevel/types/stories/story-viewer.d.cts +75 -0
  1255. package/highlevel/types/stories/story-viewer.d.ts +1 -1
  1256. package/highlevel/types/stories/story-viewer.js +128 -0
  1257. package/highlevel/types/stories/story.cjs +141 -0
  1258. package/highlevel/types/stories/story.d.cts +79 -0
  1259. package/highlevel/types/stories/story.d.ts +2 -2
  1260. package/highlevel/types/stories/story.js +136 -0
  1261. package/highlevel/types/updates/bot-chat-join-request.cjs +64 -0
  1262. package/highlevel/types/updates/bot-chat-join-request.d.cts +42 -0
  1263. package/highlevel/types/updates/bot-chat-join-request.js +59 -0
  1264. package/highlevel/types/updates/bot-reaction.cjs +90 -0
  1265. package/highlevel/types/updates/bot-reaction.d.cts +71 -0
  1266. package/highlevel/types/updates/bot-reaction.d.ts +3 -4
  1267. package/highlevel/types/updates/bot-reaction.js +85 -0
  1268. package/highlevel/types/updates/bot-stopped.cjs +40 -0
  1269. package/highlevel/types/updates/bot-stopped.d.cts +28 -0
  1270. package/highlevel/types/updates/bot-stopped.js +35 -0
  1271. package/highlevel/types/updates/business-message.cjs +33 -0
  1272. package/highlevel/types/updates/business-message.d.cts +18 -0
  1273. package/highlevel/types/updates/business-message.d.ts +1 -1
  1274. package/highlevel/types/updates/business-message.js +28 -0
  1275. package/highlevel/types/updates/callback-query.cjs +142 -0
  1276. package/highlevel/types/updates/callback-query.d.cts +95 -0
  1277. package/highlevel/types/updates/callback-query.d.ts +3 -3
  1278. package/highlevel/types/updates/callback-query.js +137 -0
  1279. package/highlevel/types/updates/chat-join-request.cjs +46 -0
  1280. package/highlevel/types/updates/chat-join-request.d.cts +30 -0
  1281. package/highlevel/types/updates/chat-join-request.js +41 -0
  1282. package/highlevel/types/updates/chat-member-update.cjs +161 -0
  1283. package/highlevel/types/updates/chat-member-update.d.cts +76 -0
  1284. package/highlevel/types/updates/chat-member-update.d.ts +2 -2
  1285. package/highlevel/types/updates/chat-member-update.js +156 -0
  1286. package/highlevel/types/updates/chosen-inline-result.cjs +71 -0
  1287. package/highlevel/types/updates/chosen-inline-result.d.cts +50 -0
  1288. package/highlevel/types/updates/chosen-inline-result.d.ts +1 -1
  1289. package/highlevel/types/updates/chosen-inline-result.js +66 -0
  1290. package/highlevel/types/updates/delete-business-message-update.cjs +35 -0
  1291. package/highlevel/types/updates/delete-business-message-update.d.cts +21 -0
  1292. package/highlevel/types/updates/delete-business-message-update.d.ts +2 -2
  1293. package/highlevel/types/updates/delete-business-message-update.js +30 -0
  1294. package/highlevel/types/updates/delete-message-update.cjs +28 -0
  1295. package/highlevel/types/updates/delete-message-update.d.cts +16 -0
  1296. package/highlevel/types/updates/delete-message-update.js +23 -0
  1297. package/highlevel/types/updates/delete-story-update.cjs +31 -0
  1298. package/highlevel/types/updates/delete-story-update.d.cts +18 -0
  1299. package/highlevel/types/updates/delete-story-update.js +26 -0
  1300. package/highlevel/types/updates/history-read-update.cjs +111 -0
  1301. package/highlevel/types/updates/history-read-update.d.cts +39 -0
  1302. package/highlevel/types/updates/history-read-update.js +106 -0
  1303. package/highlevel/types/updates/index.d.cts +107 -0
  1304. package/highlevel/types/updates/index.d.ts +3 -3
  1305. package/highlevel/types/updates/inline-query.cjs +75 -0
  1306. package/highlevel/types/updates/inline-query.d.cts +42 -0
  1307. package/highlevel/types/updates/inline-query.d.ts +1 -1
  1308. package/highlevel/types/updates/inline-query.js +70 -0
  1309. package/highlevel/types/updates/parse-update.cjs +108 -0
  1310. package/highlevel/types/updates/parse-update.d.cts +4 -0
  1311. package/highlevel/types/updates/parse-update.d.ts +3 -3
  1312. package/highlevel/types/updates/parse-update.js +103 -0
  1313. package/highlevel/types/updates/poll-update.cjs +62 -0
  1314. package/highlevel/types/updates/poll-update.d.cts +39 -0
  1315. package/highlevel/types/updates/poll-update.d.ts +1 -1
  1316. package/highlevel/types/updates/poll-update.js +57 -0
  1317. package/highlevel/types/updates/poll-vote.cjs +75 -0
  1318. package/highlevel/types/updates/poll-vote.d.cts +52 -0
  1319. package/highlevel/types/updates/poll-vote.js +70 -0
  1320. package/highlevel/types/updates/pre-checkout-query.cjs +63 -0
  1321. package/highlevel/types/updates/pre-checkout-query.d.cts +36 -0
  1322. package/highlevel/types/updates/pre-checkout-query.js +58 -0
  1323. package/highlevel/types/updates/story-update.cjs +34 -0
  1324. package/highlevel/types/updates/story-update.d.cts +22 -0
  1325. package/highlevel/types/updates/story-update.js +29 -0
  1326. package/highlevel/types/updates/user-status-update.cjs +47 -0
  1327. package/highlevel/types/updates/user-status-update.d.cts +28 -0
  1328. package/highlevel/types/updates/user-status-update.js +42 -0
  1329. package/highlevel/types/updates/user-typing-update.cjs +97 -0
  1330. package/highlevel/types/updates/user-typing-update.d.cts +31 -0
  1331. package/highlevel/types/updates/user-typing-update.js +92 -0
  1332. package/highlevel/types/utils.d.cts +12 -0
  1333. package/highlevel/updates/index.d.cts +2 -0
  1334. package/highlevel/updates/manager.cjs +1448 -0
  1335. package/highlevel/updates/manager.d.cts +121 -0
  1336. package/highlevel/updates/manager.d.ts +4 -7
  1337. package/highlevel/updates/manager.js +1443 -0
  1338. package/highlevel/updates/parsed.cjs +48 -0
  1339. package/highlevel/updates/parsed.d.cts +26 -0
  1340. package/highlevel/updates/parsed.d.ts +2 -8
  1341. package/highlevel/updates/parsed.js +43 -0
  1342. package/highlevel/updates/types.cjs +14 -0
  1343. package/highlevel/updates/types.d.cts +147 -0
  1344. package/highlevel/updates/types.d.ts +14 -9
  1345. package/highlevel/updates/types.js +9 -0
  1346. package/highlevel/updates/utils.cjs +91 -0
  1347. package/highlevel/updates/utils.d.cts +21 -0
  1348. package/highlevel/updates/utils.js +86 -0
  1349. package/highlevel/utils/convert-file-id.cjs +236 -0
  1350. package/highlevel/utils/convert-file-id.d.cts +46 -0
  1351. package/highlevel/utils/convert-file-id.d.ts +1 -1
  1352. package/highlevel/utils/convert-file-id.js +231 -0
  1353. package/highlevel/utils/entities.cjs +39 -0
  1354. package/highlevel/utils/entities.d.cts +19 -0
  1355. package/highlevel/utils/entities.js +34 -0
  1356. package/highlevel/utils/entities.test.d.cts +1 -0
  1357. package/highlevel/utils/file-type.cjs +136 -0
  1358. package/highlevel/utils/file-type.d.cts +2 -0
  1359. package/highlevel/utils/file-type.js +131 -0
  1360. package/highlevel/utils/file-type.test.d.cts +1 -0
  1361. package/highlevel/utils/file-utils.cjs +74 -0
  1362. package/highlevel/utils/file-utils.d.cts +31 -0
  1363. package/highlevel/utils/file-utils.js +69 -0
  1364. package/highlevel/utils/file-utils.test.d.cts +1 -0
  1365. package/highlevel/utils/index.d.cts +11 -0
  1366. package/highlevel/utils/index.d.ts +1 -0
  1367. package/highlevel/utils/inline-utils.cjs +59 -0
  1368. package/highlevel/utils/inline-utils.d.cts +14 -0
  1369. package/highlevel/utils/inline-utils.js +54 -0
  1370. package/highlevel/utils/inline-utils.test.d.cts +1 -0
  1371. package/highlevel/utils/inspectable.cjs +53 -0
  1372. package/highlevel/utils/inspectable.d.cts +9 -0
  1373. package/highlevel/utils/inspectable.js +48 -0
  1374. package/highlevel/utils/inspectable.test.d.cts +1 -0
  1375. package/highlevel/utils/memoize.cjs +30 -0
  1376. package/highlevel/utils/memoize.d.cts +1 -0
  1377. package/highlevel/utils/memoize.js +25 -0
  1378. package/highlevel/utils/memoize.test.d.cts +1 -0
  1379. package/highlevel/utils/misc-utils.cjs +40 -0
  1380. package/highlevel/utils/misc-utils.d.cts +12 -0
  1381. package/highlevel/utils/misc-utils.js +35 -0
  1382. package/highlevel/utils/peer-utils.cjs +137 -0
  1383. package/highlevel/utils/peer-utils.d.cts +11 -0
  1384. package/highlevel/utils/peer-utils.d.ts +1 -1
  1385. package/highlevel/utils/peer-utils.js +132 -0
  1386. package/highlevel/utils/peer-utils.test.d.cts +1 -0
  1387. package/highlevel/utils/query-batcher.cjs +124 -0
  1388. package/highlevel/utils/query-batcher.d.cts +49 -0
  1389. package/highlevel/utils/query-batcher.js +119 -0
  1390. package/highlevel/utils/query-batcher.test.d.cts +1 -0
  1391. package/highlevel/utils/rps-meter.cjs +39 -0
  1392. package/highlevel/utils/rps-meter.d.cts +9 -0
  1393. package/highlevel/utils/rps-meter.d.ts +1 -1
  1394. package/highlevel/utils/rps-meter.js +34 -0
  1395. package/highlevel/utils/stream-utils.cjs +19 -0
  1396. package/highlevel/utils/stream-utils.d.cts +1 -0
  1397. package/highlevel/utils/stream-utils.d.ts +0 -5
  1398. package/highlevel/utils/stream-utils.js +14 -0
  1399. package/highlevel/utils/string-session.cjs +96 -0
  1400. package/highlevel/utils/string-session.d.cts +16 -0
  1401. package/highlevel/utils/string-session.d.ts +7 -2
  1402. package/highlevel/utils/string-session.js +91 -0
  1403. package/highlevel/utils/string-session.test.d.cts +1 -0
  1404. package/highlevel/utils/voice-utils.cjs +41 -0
  1405. package/highlevel/utils/voice-utils.d.cts +14 -0
  1406. package/highlevel/utils/voice-utils.js +36 -0
  1407. package/highlevel/utils/voice-utils.test.d.cts +1 -0
  1408. package/highlevel/worker/app-config.cjs +18 -0
  1409. package/highlevel/worker/app-config.d.cts +9 -0
  1410. package/highlevel/worker/app-config.js +13 -0
  1411. package/highlevel/worker/errors.cjs +118 -0
  1412. package/highlevel/worker/errors.d.cts +8 -0
  1413. package/highlevel/worker/errors.js +113 -0
  1414. package/highlevel/worker/index.d.cts +3 -0
  1415. package/highlevel/worker/invoker.cjs +71 -0
  1416. package/highlevel/worker/invoker.d.cts +18 -0
  1417. package/highlevel/worker/invoker.js +66 -0
  1418. package/highlevel/worker/port.cjs +141 -0
  1419. package/highlevel/worker/port.d.cts +60 -0
  1420. package/highlevel/worker/port.d.ts +14 -13
  1421. package/highlevel/worker/port.js +136 -0
  1422. package/highlevel/worker/protocol.cjs +63 -0
  1423. package/highlevel/worker/protocol.d.cts +57 -0
  1424. package/highlevel/worker/protocol.d.ts +2 -2
  1425. package/highlevel/worker/protocol.js +58 -0
  1426. package/highlevel/worker/storage.cjs +80 -0
  1427. package/highlevel/worker/storage.d.cts +39 -0
  1428. package/highlevel/worker/storage.js +75 -0
  1429. package/highlevel/worker/worker.cjs +147 -0
  1430. package/highlevel/worker/worker.d.cts +15 -0
  1431. package/highlevel/worker/worker.js +142 -0
  1432. package/index.cjs +309 -1282
  1433. package/index.js +249 -1228
  1434. package/methods.cjs +526 -269
  1435. package/methods.d.cts +1 -1
  1436. package/methods.d.ts +1 -1
  1437. package/methods.js +260 -3
  1438. package/network/auth-key.cjs +103 -0
  1439. package/network/auth-key.d.cts +21 -0
  1440. package/network/auth-key.d.ts +1 -1
  1441. package/network/auth-key.js +98 -0
  1442. package/network/auth-key.test.d.cts +1 -0
  1443. package/network/authorization.cjs +326 -0
  1444. package/network/authorization.d.cts +9 -0
  1445. package/network/authorization.d.ts +1 -1
  1446. package/network/authorization.js +321 -0
  1447. package/network/client.cjs +191 -0
  1448. package/network/client.d.cts +218 -0
  1449. package/network/client.d.ts +15 -10
  1450. package/network/client.js +186 -0
  1451. package/network/config-manager.cjs +47 -0
  1452. package/network/config-manager.d.cts +19 -0
  1453. package/network/config-manager.d.ts +2 -2
  1454. package/network/config-manager.js +42 -0
  1455. package/network/config-manager.test.d.cts +1 -0
  1456. package/network/index.d.cts +6 -0
  1457. package/network/index.d.ts +1 -1
  1458. package/network/middlewares/bundle.cjs +13 -0
  1459. package/network/middlewares/bundle.d.cts +3 -0
  1460. package/network/middlewares/bundle.js +8 -0
  1461. package/network/middlewares/default.cjs +13 -0
  1462. package/network/middlewares/default.d.cts +8 -0
  1463. package/network/middlewares/default.js +8 -0
  1464. package/network/middlewares/flood-waiter.cjs +70 -0
  1465. package/network/middlewares/flood-waiter.d.cts +37 -0
  1466. package/network/middlewares/flood-waiter.js +65 -0
  1467. package/network/middlewares/index.d.cts +4 -0
  1468. package/network/middlewares/index.d.ts +2 -0
  1469. package/network/middlewares/internal-errors.cjs +52 -0
  1470. package/network/middlewares/internal-errors.d.cts +17 -0
  1471. package/network/middlewares/internal-errors.js +47 -0
  1472. package/network/middlewares/on-error.cjs +21 -0
  1473. package/network/middlewares/on-error.d.cts +30 -0
  1474. package/network/middlewares/on-error.js +16 -0
  1475. package/network/middlewares/on-method.cjs +16 -0
  1476. package/network/middlewares/on-method.d.cts +39 -0
  1477. package/network/middlewares/on-method.d.ts +1 -1
  1478. package/network/middlewares/on-method.js +11 -0
  1479. package/network/mtproto-session.cjs +244 -0
  1480. package/network/mtproto-session.d.cts +127 -0
  1481. package/network/mtproto-session.d.ts +7 -5
  1482. package/network/mtproto-session.js +239 -0
  1483. package/network/mtproxy/_fake-tls.cjs +327 -0
  1484. package/network/mtproxy/_fake-tls.d.cts +22 -0
  1485. package/network/mtproxy/_fake-tls.d.ts +22 -0
  1486. package/network/mtproxy/_fake-tls.js +322 -0
  1487. package/network/mtproxy/index.cjs +132 -0
  1488. package/network/mtproxy/index.d.cts +42 -0
  1489. package/network/mtproxy/index.d.ts +42 -0
  1490. package/network/mtproxy/index.js +127 -0
  1491. package/network/multi-session-connection.cjs +213 -0
  1492. package/network/multi-session-connection.d.cts +43 -0
  1493. package/network/multi-session-connection.d.ts +19 -9
  1494. package/network/multi-session-connection.js +208 -0
  1495. package/network/network-manager.cjs +581 -0
  1496. package/network/network-manager.d.cts +256 -0
  1497. package/network/network-manager.d.ts +19 -11
  1498. package/network/network-manager.js +576 -0
  1499. package/network/persistent-connection.cjs +176 -0
  1500. package/network/persistent-connection.d.cts +55 -0
  1501. package/network/persistent-connection.d.ts +22 -19
  1502. package/network/persistent-connection.js +171 -0
  1503. package/network/server-salt.cjs +44 -0
  1504. package/network/server-salt.d.cts +12 -0
  1505. package/network/server-salt.d.ts +1 -1
  1506. package/network/server-salt.js +39 -0
  1507. package/network/session-connection.cjs +1450 -0
  1508. package/network/session-connection.d.cts +94 -0
  1509. package/network/session-connection.d.ts +21 -6
  1510. package/network/session-connection.js +1445 -0
  1511. package/network/transports/abstract.cjs +15 -0
  1512. package/network/transports/abstract.d.cts +47 -0
  1513. package/network/transports/abstract.d.ts +9 -59
  1514. package/network/transports/abstract.js +10 -0
  1515. package/network/transports/index.d.cts +3 -0
  1516. package/network/transports/index.d.ts +0 -2
  1517. package/network/transports/intermediate.cjs +59 -0
  1518. package/network/transports/intermediate.d.cts +23 -0
  1519. package/network/transports/intermediate.d.ts +7 -7
  1520. package/network/transports/intermediate.js +54 -0
  1521. package/network/transports/intermediate.test.d.cts +1 -0
  1522. package/network/transports/obfuscated.cjs +88 -0
  1523. package/network/transports/obfuscated.d.cts +23 -0
  1524. package/network/transports/obfuscated.d.ts +9 -4
  1525. package/network/transports/obfuscated.js +83 -0
  1526. package/network/transports/obfuscated.test.d.cts +1 -0
  1527. package/package.json +16 -23
  1528. package/storage/driver.cjs +41 -0
  1529. package/storage/driver.d.cts +58 -0
  1530. package/storage/driver.d.ts +4 -2
  1531. package/storage/driver.js +36 -0
  1532. package/storage/index.d.cts +6 -0
  1533. package/storage/memory/driver.cjs +19 -0
  1534. package/storage/memory/driver.d.cts +6 -0
  1535. package/storage/memory/driver.js +14 -0
  1536. package/storage/memory/index.cjs +21 -0
  1537. package/storage/memory/index.d.cts +22 -0
  1538. package/storage/memory/index.js +16 -0
  1539. package/storage/memory/memory.test.d.cts +1 -0
  1540. package/storage/memory/repository/auth-keys.cjs +60 -0
  1541. package/storage/memory/repository/auth-keys.d.cts +19 -0
  1542. package/storage/memory/repository/auth-keys.js +55 -0
  1543. package/storage/memory/repository/kv.cjs +27 -0
  1544. package/storage/memory/repository/kv.d.cts +11 -0
  1545. package/storage/memory/repository/kv.js +22 -0
  1546. package/storage/memory/repository/peers.cjs +61 -0
  1547. package/storage/memory/repository/peers.d.cts +18 -0
  1548. package/storage/memory/repository/peers.js +56 -0
  1549. package/storage/memory/repository/ref-messages.cjs +43 -0
  1550. package/storage/memory/repository/ref-messages.d.cts +16 -0
  1551. package/storage/memory/repository/ref-messages.js +38 -0
  1552. package/storage/provider.d.cts +10 -0
  1553. package/storage/repository/auth-keys.d.cts +41 -0
  1554. package/storage/repository/index.d.cts +2 -0
  1555. package/storage/repository/key-value.d.cts +10 -0
  1556. package/storage/service/auth-keys.cjs +20 -0
  1557. package/storage/service/auth-keys.d.cts +9 -0
  1558. package/storage/service/auth-keys.js +15 -0
  1559. package/storage/service/auth-keys.test.d.cts +1 -0
  1560. package/storage/service/base.cjs +31 -0
  1561. package/storage/service/base.d.cts +19 -0
  1562. package/storage/service/base.js +26 -0
  1563. package/storage/service/default-dcs.cjs +55 -0
  1564. package/storage/service/default-dcs.d.cts +10 -0
  1565. package/storage/service/default-dcs.js +50 -0
  1566. package/storage/service/future-salts.cjs +42 -0
  1567. package/storage/service/future-salts.d.cts +11 -0
  1568. package/storage/service/future-salts.js +37 -0
  1569. package/storage/service/updates.test.d.cts +1 -0
  1570. package/storage/service/utils.test-utils.d.cts +2 -0
  1571. package/storage/sqlite/driver.cjs +127 -0
  1572. package/storage/sqlite/driver.d.cts +24 -0
  1573. package/storage/sqlite/driver.d.ts +1 -1
  1574. package/storage/sqlite/driver.js +122 -0
  1575. package/storage/sqlite/index.cjs +25 -0
  1576. package/storage/sqlite/index.d.cts +17 -0
  1577. package/storage/sqlite/index.js +20 -0
  1578. package/storage/sqlite/repository/auth-keys.cjs +79 -0
  1579. package/storage/sqlite/repository/auth-keys.d.cts +20 -0
  1580. package/storage/sqlite/repository/auth-keys.js +74 -0
  1581. package/storage/sqlite/repository/kv.cjs +87 -0
  1582. package/storage/sqlite/repository/kv.d.cts +14 -0
  1583. package/storage/sqlite/repository/kv.js +82 -0
  1584. package/storage/sqlite/repository/peers.cjs +102 -0
  1585. package/storage/sqlite/repository/peers.d.cts +19 -0
  1586. package/storage/sqlite/repository/peers.js +97 -0
  1587. package/storage/sqlite/repository/ref-messages.cjs +58 -0
  1588. package/storage/sqlite/repository/ref-messages.d.cts +16 -0
  1589. package/storage/sqlite/repository/ref-messages.js +53 -0
  1590. package/storage/sqlite/types.d.cts +18 -0
  1591. package/storage/storage.cjs +74 -0
  1592. package/storage/storage.d.cts +55 -0
  1593. package/storage/storage.d.ts +4 -1
  1594. package/storage/storage.js +69 -0
  1595. package/{chunks/cjs/j7rWn_1y.js → types/errors.cjs} +3 -25
  1596. package/types/errors.d.cts +53 -0
  1597. package/{chunks/es/DBMBgE7t.js → types/errors.js} +1 -24
  1598. package/types/index.d.cts +4 -0
  1599. package/types/index.d.ts +1 -0
  1600. package/types/peers.d.cts +4 -0
  1601. package/{platform.d.cts → types/platform.d.cts} +3 -6
  1602. package/{platform.d.ts → types/platform.d.ts} +3 -6
  1603. package/types/utils.cjs +11 -0
  1604. package/types/utils.d.cts +9 -0
  1605. package/types/utils.d.ts +1 -2
  1606. package/types/utils.js +6 -0
  1607. package/utils/abort-signal.cjs +23 -0
  1608. package/utils/abort-signal.d.cts +1 -0
  1609. package/utils/abort-signal.js +18 -0
  1610. package/utils/bigint-utils.cjs +31 -0
  1611. package/utils/bigint-utils.d.cts +18 -0
  1612. package/utils/bigint-utils.d.ts +0 -29
  1613. package/utils/bigint-utils.js +26 -0
  1614. package/utils/bigint-utils.test.d.cts +1 -0
  1615. package/utils/binary/asn1-parser.cjs +99 -0
  1616. package/utils/binary/asn1-parser.d.cts +17 -0
  1617. package/utils/binary/asn1-parser.js +94 -0
  1618. package/utils/crypto/abstract.cjs +20 -0
  1619. package/utils/crypto/abstract.d.cts +29 -0
  1620. package/utils/crypto/abstract.js +15 -0
  1621. package/utils/crypto/factorization.cjs +58 -0
  1622. package/utils/crypto/factorization.d.cts +6 -0
  1623. package/utils/crypto/factorization.js +53 -0
  1624. package/utils/crypto/factorization.test.d.cts +1 -0
  1625. package/utils/crypto/index.d.cts +6 -0
  1626. package/utils/crypto/index.d.ts +0 -1
  1627. package/utils/crypto/keys.cjs +49 -0
  1628. package/utils/crypto/keys.d.cts +27 -0
  1629. package/utils/crypto/keys.d.ts +1 -1
  1630. package/utils/crypto/keys.js +44 -0
  1631. package/utils/crypto/keys.test.d.cts +1 -0
  1632. package/utils/crypto/miller-rabin.cjs +37 -0
  1633. package/utils/crypto/miller-rabin.d.cts +2 -0
  1634. package/utils/crypto/miller-rabin.js +32 -0
  1635. package/utils/crypto/miller-rabin.test.d.cts +1 -0
  1636. package/utils/crypto/mtproto.cjs +44 -0
  1637. package/utils/crypto/mtproto.d.cts +31 -0
  1638. package/utils/crypto/mtproto.js +39 -0
  1639. package/utils/crypto/mtproto.test.d.cts +1 -0
  1640. package/utils/crypto/password.cjs +76 -0
  1641. package/utils/crypto/password.d.cts +29 -0
  1642. package/utils/crypto/password.js +71 -0
  1643. package/utils/crypto/password.test.d.cts +1 -0
  1644. package/utils/dcs.cjs +104 -0
  1645. package/utils/dcs.d.cts +18 -0
  1646. package/utils/dcs.d.ts +1 -0
  1647. package/utils/dcs.js +99 -0
  1648. package/utils/early-timer.cjs +73 -0
  1649. package/utils/early-timer.d.cts +41 -0
  1650. package/utils/early-timer.d.ts +0 -1
  1651. package/utils/early-timer.js +68 -0
  1652. package/utils/error-reporting.cjs +23 -0
  1653. package/utils/error-reporting.d.cts +3 -0
  1654. package/utils/error-reporting.js +18 -0
  1655. package/utils/function-utils.cjs +54 -0
  1656. package/utils/function-utils.d.cts +22 -0
  1657. package/utils/function-utils.js +49 -0
  1658. package/utils/function-utils.test.d.cts +1 -0
  1659. package/utils/index.d.cts +20 -0
  1660. package/utils/index.d.ts +1 -11
  1661. package/utils/linked-list.cjs +65 -0
  1662. package/utils/linked-list.d.cts +21 -0
  1663. package/utils/linked-list.js +60 -0
  1664. package/utils/linked-list.test.d.cts +1 -0
  1665. package/utils/links/bots.cjs +211 -0
  1666. package/utils/links/bots.d.cts +72 -0
  1667. package/utils/links/bots.js +206 -0
  1668. package/utils/links/bots.test.d.cts +1 -0
  1669. package/utils/links/bundle.cjs +32 -0
  1670. package/utils/links/bundle.d.cts +7 -0
  1671. package/utils/links/bundle.js +27 -0
  1672. package/utils/links/calls.cjs +52 -0
  1673. package/utils/links/calls.d.cts +17 -0
  1674. package/utils/links/calls.js +47 -0
  1675. package/{chunks/cjs/BijPAnvP.js → utils/links/chat.cjs} +21 -65
  1676. package/utils/links/chat.d.cts +47 -0
  1677. package/{chunks/es/Bi0OVMv8.js → utils/links/chat.js} +1 -46
  1678. package/utils/links/chat.test.d.cts +1 -0
  1679. package/utils/links/common.cjs +53 -0
  1680. package/utils/links/common.d.cts +31 -0
  1681. package/utils/links/common.js +48 -0
  1682. package/utils/links/index.d.cts +2 -0
  1683. package/utils/links/misc.cjs +82 -0
  1684. package/utils/links/misc.d.cts +26 -0
  1685. package/utils/links/misc.js +77 -0
  1686. package/utils/links/misc.test.d.cts +1 -0
  1687. package/utils/links/proxy.cjs +52 -0
  1688. package/utils/links/proxy.d.cts +18 -0
  1689. package/utils/links/proxy.js +47 -0
  1690. package/utils/links/proxy.test.d.cts +1 -0
  1691. package/utils/links/stickers.cjs +24 -0
  1692. package/utils/links/stickers.d.cts +10 -0
  1693. package/utils/links/stickers.js +19 -0
  1694. package/utils/links/user.cjs +57 -0
  1695. package/utils/links/user.d.cts +28 -0
  1696. package/utils/links/user.js +52 -0
  1697. package/utils/links/user.test.d.cts +1 -0
  1698. package/{chunks/cjs/D4qcXFYA.js → utils/logger.cjs} +11 -12
  1699. package/utils/logger.d.cts +54 -0
  1700. package/utils/logger.d.ts +2 -3
  1701. package/{chunks/es/BRgz_-S8.js → utils/logger.js} +7 -9
  1702. package/utils/logger.test.d.cts +1 -0
  1703. package/utils/long-utils.cjs +68 -0
  1704. package/utils/long-utils.d.cts +67 -0
  1705. package/utils/long-utils.d.ts +5 -18
  1706. package/utils/long-utils.js +63 -0
  1707. package/utils/long-utils.test.d.cts +1 -0
  1708. package/utils/misc-utils.cjs +27 -0
  1709. package/utils/misc-utils.d.cts +2 -0
  1710. package/utils/misc-utils.d.ts +0 -6
  1711. package/utils/misc-utils.js +22 -0
  1712. package/utils/peer-utils.cjs +143 -0
  1713. package/utils/peer-utils.d.cts +29 -0
  1714. package/utils/peer-utils.js +138 -0
  1715. package/utils/peer-utils.test.d.cts +1 -0
  1716. package/utils/sorted-array.cjs +79 -0
  1717. package/utils/sorted-array.d.cts +17 -0
  1718. package/utils/sorted-array.js +74 -0
  1719. package/utils/sorted-array.test.d.cts +1 -0
  1720. package/utils/timers.d.cts +1 -0
  1721. package/utils/timers.d.ts +1 -16
  1722. package/utils/tl-json.cjs +51 -0
  1723. package/utils/tl-json.d.cts +13 -0
  1724. package/utils/tl-json.js +46 -0
  1725. package/utils/tl-json.test.d.cts +1 -0
  1726. package/utils/type-assertions.cjs +46 -0
  1727. package/utils/type-assertions.d.cts +29 -0
  1728. package/utils/type-assertions.js +41 -0
  1729. package/utils/type-assertions.test.d.cts +1 -0
  1730. package/utils.cjs +126 -672
  1731. package/utils.d.cts +1 -1
  1732. package/utils.d.ts +1 -1
  1733. package/utils.js +41 -590
  1734. package/worker.cjs +9 -584
  1735. package/worker.d.cts +1 -1
  1736. package/worker.d.ts +1 -1
  1737. package/worker.js +3 -578
  1738. package/chunks/cjs/BQETTb_8.js +0 -229
  1739. package/chunks/cjs/B_4IhLh8.js +0 -6728
  1740. package/chunks/cjs/C1cFqHcW.js +0 -989
  1741. package/chunks/cjs/CSfUPcui.js +0 -10300
  1742. package/chunks/cjs/CZAB54t2.js +0 -81
  1743. package/chunks/cjs/CgIc6lxt.js +0 -5082
  1744. package/chunks/cjs/eX3zeDAz.js +0 -1128
  1745. package/chunks/cjs/package.json +0 -3
  1746. package/chunks/es/BN3qj7tU.js +0 -77
  1747. package/chunks/es/CO4G3ySK.js +0 -985
  1748. package/chunks/es/DKzd1_Yg.js +0 -10296
  1749. package/chunks/es/DY1E3mHM.js +0 -1124
  1750. package/chunks/es/DzOlHce2.js +0 -6724
  1751. package/chunks/es/KKzIgirK.js +0 -5078
  1752. package/chunks/es/hecWgeql.js +0 -225
  1753. package/highlevel/methods/users/set-my-emoji-status.d.ts +0 -13
  1754. package/highlevel/methods/users/set-offline.d.ts +0 -7
  1755. package/network/reconnection.d.ts +0 -11
  1756. package/network/transports/streamed.d.ts +0 -23
  1757. package/network/transports/wrapped.d.ts +0 -10
  1758. package/platform.cjs +0 -11
  1759. package/platform.js +0 -6
  1760. package/utils/async-lock.d.ts +0 -10
  1761. package/utils/buffer-utils.d.ts +0 -27
  1762. package/utils/composer.d.ts +0 -3
  1763. package/utils/condition-variable.d.ts +0 -9
  1764. package/utils/controllable-promise.d.ts +0 -11
  1765. package/utils/crypto/utils.d.ts +0 -14
  1766. package/utils/deque.d.ts +0 -29
  1767. package/utils/lru-map.d.ts +0 -22
  1768. package/utils/lru-set.d.ts +0 -22
  1769. package/utils/reloadable.d.ts +0 -24
  1770. /package/highlevel/{utils/stream-utils.test.d.ts → base.test.d.cts} +0 -0
  1771. /package/{network/persistent-connection.test.d.ts → highlevel/methods/_imports.d.cts} +0 -0
  1772. /package/{utils/async-lock.test.d.ts → highlevel/methods/_init.d.cts} +0 -0
  1773. /package/{utils/buffer-utils.test.d.ts → highlevel/methods/files/download-file.d.cts} +0 -0
  1774. /package/{utils/composer.test.d.ts → highlevel/methods/files/download-node-stream.d.cts} +0 -0
  1775. /package/{utils/condition-variable.test.d.ts → highlevel/methods/messages/send-text.test.d.cts} +0 -0
  1776. /package/{utils/controllable-promise.test.d.ts → highlevel/methods/users/get-users.test.d.cts} +0 -0
  1777. /package/{utils/crypto/utils.test.d.ts → highlevel/methods/users/resolve-peer.test.d.cts} +0 -0
  1778. /package/{utils/deque.test.d.ts → highlevel/types/bots/keyboards/builder.test.d.cts} +0 -0
  1779. /package/{utils/lru-map.test.d.ts → highlevel/types/bots/keyboards/keyboards.test.d.cts} +0 -0
  1780. /package/{utils/lru-set.test.d.ts → highlevel/types/peers/peers-index.test.d.cts} +0 -0
package/client.cjs CHANGED
@@ -1,1312 +1,1248 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed soon. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
- const EventEmitter = require("events");
9
- const tl = require("@mtcute/tl");
10
- const client = require("./chunks/cjs/B_4IhLh8.js");
11
- const platform = require("./chunks/cjs/j7rWn_1y.js");
12
- const sortedArray = require("./chunks/cjs/C1cFqHcW.js");
13
- const logger = require("./chunks/cjs/D4qcXFYA.js");
14
- const controllablePromise = require("./chunks/cjs/CZAB54t2.js");
15
- require("@mtcute/tl-runtime");
16
- const tlJson = require("./chunks/cjs/BQETTb_8.js");
17
- const conditionVariable = require("./chunks/cjs/eX3zeDAz.js");
18
- const storyViewer = require("./chunks/cjs/CSfUPcui.js");
19
- const updateProfile = require("./chunks/cjs/CgIc6lxt.js");
20
- function reportUnknownError(log, error, method) {
21
- if (typeof fetch !== "function") return;
22
- fetch(`https://report-rpc-error.madelineproto.xyz/?code=${error.code}&method=${method}&error=${error.text}`).then((r) => r.json()).then((r) => {
23
- if (r.result) {
24
- log.info("telerpc responded with error info for %s: %s", error.text, r.result);
25
- } else {
26
- log.info(
27
- "Reported error %s to telerpc. You can disable this using `enableErrorReporting: false`",
28
- error.text
29
- );
30
- }
31
- }).catch((e) => {
32
- log.debug("failed to report error %s to telerpc: %e", error.text, e);
33
- });
34
- }
35
- class AppConfigManager {
36
- constructor(client2) {
37
- this.client = client2;
38
- }
39
- _reloadable = new client.Reloadable({
40
- reload: this._reload.bind(this),
41
- getExpiresAt: () => 36e5,
42
- disableAutoReload: true
43
- });
44
- async _reload(old) {
45
- const res = await this.client.call({
46
- _: "help.getAppConfig",
47
- hash: old?.hash ?? 0
48
- });
49
- if (res._ === "help.appConfigNotModified") return old;
50
- return res;
51
- }
52
- _object;
53
- async get() {
54
- if (!this._reloadable.isStale && this._object) return this._object;
55
- const obj = tlJson.tlJsonToJson((await this._reloadable.get()).config);
56
- if (!obj || typeof obj !== "object") {
57
- throw new platform.MtTypeAssertionError("appConfig", "object", typeof obj);
58
- }
59
- this._object = obj;
60
- return this._object;
61
- }
62
- async getField(field, fallback) {
63
- const obj = await this.get();
64
- return obj[field] ?? fallback;
65
- }
66
- }
67
- function makeRpcError(raw, stack, method) {
68
- const error = tl.tl.RpcError.fromTl(raw);
69
- error.stack = `RpcError (${error.code} ${error.text}): ${error.message}
70
- at ${method}
71
- ${stack.split("\n").slice(2).join("\n")}`;
72
- return error;
73
- }
74
- class BaseTelegramClient {
75
- constructor(params) {
76
- this.params = params;
77
- this.log = this.params.logger ?? new logger.LogManager("client");
78
- this.mt = new client.MtClient({
79
- ...this.params,
80
- logger: this.log.create("mtproto")
81
- });
82
- if (!params.disableUpdates && params.updates !== false) {
83
- this.updates = new client.UpdatesManager(this, params.updates);
84
- this._serverUpdatesHandler = this.updates.handleUpdate.bind(this.updates);
85
- this.updates.onCatchingUp((catchingUp) => {
86
- this._connectionStateHandler(catchingUp ? "updating" : "connected");
87
- });
88
- }
89
- this.mt.on("update", (update) => {
90
- this._serverUpdatesHandler(update);
91
- });
92
- this.mt.on("usable", () => {
93
- this._connectionStateHandler("connected");
94
- });
95
- this.mt.on("wait", () => {
96
- this._connectionStateHandler("connecting");
97
- });
98
- this.mt.on("networkChanged", (connected) => {
99
- if (!connected) {
100
- this._connectionStateHandler("offline");
101
- }
102
- });
103
- this.crypto = this.mt.crypto;
104
- this.storage = new client.TelegramStorageManager(this.mt.storage, {
105
- provider: this.params.storage,
106
- ...this.params.storageOptions
107
- });
108
- }
109
- updates;
110
- _serverUpdatesHandler = () => {
111
- };
112
- _connectionStateHandler = () => {
113
- };
114
- log;
115
- mt;
116
- crypto;
117
- storage;
118
- appConfig = new AppConfigManager(this);
119
- _prepare = sortedArray.asyncResettable(async () => {
120
- await this.mt.prepare();
121
- const self = await this.storage.self.fetch();
122
- this.log.prefix = `[USER ${self?.userId ?? "n/a"}] `;
123
- this.mt.network.setIsPremium(self?.isPremium ?? false);
124
- await this.updates?.prepare();
125
- });
126
- /**
127
- * **ADVANCED**
128
- *
129
- * Do all the preparations, but don't connect just yet.
130
- * Useful when you want to do some preparations before
131
- * connecting, like setting up session.
132
- *
133
- * Call {@link connect} to actually connect.
134
- */
135
- prepare() {
136
- return this._prepare.run();
137
- }
138
- // used in a hot path, avoid extra function calls
139
- _connected = false;
140
- _connect = sortedArray.asyncResettable(async () => {
141
- await this._prepare.run();
142
- await this.mt.connect();
143
- this._connected = true;
144
- });
145
- /**
146
- * Initialize the connection to the primary DC.
147
- *
148
- * You shouldn't usually call this method directly as it is called
149
- * implicitly the first time you call {@link call}.
150
- */
151
- async connect() {
152
- return this._connect.run();
153
- }
154
- get isConnected() {
155
- return this._connected;
156
- }
157
- async close() {
158
- this._connected = false;
159
- await this.mt.close();
160
- this.updates?.stopLoop();
161
- this._prepare.reset();
162
- this._connect.reset();
163
- }
164
- async notifyLoggedIn(auth) {
165
- const user = this.mt.network.notifyLoggedIn(auth);
166
- this.log.prefix = `[USER ${user.id}] `;
167
- const self = await this.storage.self.storeFrom(user);
168
- this.updates?.notifyLoggedIn(self);
169
- return user;
170
- }
171
- async notifyLoggedOut() {
172
- this.mt.network.notifyLoggedOut();
173
- this.log.prefix = "[USER n/a] ";
174
- await this.storage.self.store(null);
175
- }
176
- async notifyChannelOpened(channelId, pts) {
177
- return this.updates?.notifyChannelOpened(channelId, pts) ?? false;
178
- }
179
- async notifyChannelClosed(channelId) {
180
- return this.updates?.notifyChannelClosed(channelId) ?? false;
181
- }
182
- async startUpdatesLoop() {
183
- await this.updates?.startLoop();
184
- }
185
- async stopUpdatesLoop() {
186
- this.updates?.stopLoop();
187
- }
188
- /**
189
- * Make an RPC call
190
- *
191
- * This method is still quite low-level and you shouldn't use this
192
- * when using high-level API provided by `@mtcute/client`.
193
- *
194
- * @param message RPC method to call
195
- * @param params Additional call parameters
196
- */
197
- async call(message, params) {
198
- if (!this._connected) {
199
- await this._connect.run();
200
- }
201
- const res = await this.mt.call(message, params);
202
- if (controllablePromise.isTlRpcError(res)) {
203
- const error = makeRpcError(res, new Error().stack ?? "", message._);
204
- if (error.unknown && this.params.enableErrorReporting) {
205
- reportUnknownError(this.log, error, message._);
206
- }
207
- throw error;
208
- }
209
- await this.storage.peers.updatePeersFrom(res);
210
- return res;
211
- }
212
- /**
213
- * Import the session from the given session string.
214
- *
215
- * Note that the session will only be imported in case
216
- * the storage is missing authorization (i.e. does not contain
217
- * auth key for the primary DC), otherwise it will be ignored (unless `force`).
218
- *
219
- * @param session Session string to import
220
- * @param force Whether to overwrite existing session
221
- */
222
- async importSession(session, force = false) {
223
- await this.prepare();
224
- const defaultDcAuthKey = await this.mt.storage.provider.authKeys.get(this.mt._defaultDcs.main.id);
225
- if (defaultDcAuthKey && !force) return;
226
- const data = typeof session === "string" ? tlJson.readStringSession(session) : session;
227
- if (data.testMode && !this.params.testMode) {
228
- throw new Error(
229
- `This session string is not for the current backend. Session is ${data.testMode ? "test" : "prod"}, but the client is ${this.params.testMode ? "test" : "prod"}`
230
- );
231
- }
232
- this.mt._defaultDcs = data.primaryDcs;
233
- await this.mt.storage.dcs.store(data.primaryDcs);
234
- if (data.self) {
235
- await this.storage.self.store(data.self);
236
- }
237
- await this.mt.storage.provider.authKeys.set(data.primaryDcs.main.id, data.authKey);
238
- await this.mt.storage.save();
239
- }
240
- /**
241
- * Export current session to a single *LONG* string, containing
242
- * all the needed information.
243
- *
244
- * > **Warning!** Anyone with this string will be able
245
- * > to authorize as you and do anything. Treat this
246
- * > as your password, and never give it away!
247
- * >
248
- * > In case you have accidentally leaked this string,
249
- * > make sure to revoke this session in account settings:
250
- * > "Privacy & Security" > "Active sessions" >
251
- * > find the one containing `mtcute` > Revoke,
252
- * > or, in case this is a bot, revoke bot token
253
- * > with [@BotFather](//t.me/botfather)
254
- */
255
- async exportSession() {
256
- await this._prepare.run();
257
- const primaryDcs = await this.mt.storage.dcs.fetch() ?? this.mt._defaultDcs;
258
- const authKey = await this.mt.storage.provider.authKeys.get(primaryDcs.main.id);
259
- if (!authKey) throw new Error("Auth key is not ready yet");
260
- return tlJson.writeStringSession({
261
- version: 3,
262
- self: await this.storage.self.fetch(),
263
- testMode: Boolean(this.params.testMode),
264
- primaryDcs,
265
- authKey
266
- });
267
- }
268
- /**
269
- * Register an error handler for the client
270
- *
271
- * @param handler Error handler.
272
- */
273
- onError(handler) {
274
- this.mt.onError(handler);
275
- }
276
- emitError(err) {
277
- this.mt.emitError(err);
278
- }
279
- handleClientUpdate(updates, noDispatch) {
280
- this.updates?.handleClientUpdate(updates, noDispatch);
281
- }
282
- onServerUpdate(handler) {
283
- this._serverUpdatesHandler = handler;
284
- }
285
- getServerUpdateHandler() {
286
- return this._serverUpdatesHandler;
287
- }
288
- onUpdate(handler) {
289
- if (!this.updates) {
290
- throw new platform.MtArgumentError("Updates manager is disabled");
291
- }
292
- this.updates.setHandler(handler);
293
- }
294
- onConnectionState(handler) {
295
- this._connectionStateHandler = handler;
296
- }
297
- async getApiCrenetials() {
298
- return {
299
- id: this.params.apiId,
300
- hash: this.params.apiHash
301
- };
302
- }
303
- async getPoolSize(kind, dcId) {
304
- if (!this._connected) {
305
- await this._connect.run();
306
- }
307
- return this.mt.network.getPoolSize(kind, dcId);
308
- }
309
- async getPrimaryDcId() {
310
- if (!this._connected) {
311
- await this._connect.run();
312
- }
313
- return this.mt.network.getPrimaryDcId();
314
- }
315
- computeSrpParams(request, password) {
316
- return tlJson.computeSrpParams(this.crypto, request, password);
317
- }
318
- computeNewPasswordHash(algo, password) {
319
- return tlJson.computeNewPasswordHash(this.crypto, algo, password);
320
- }
321
- get stopSignal() {
322
- return this.mt.stopSignal;
323
- }
324
- changePrimaryDc(dcId) {
325
- return this.mt.network.changePrimaryDc(dcId);
326
- }
327
- async getMtprotoMessageId() {
328
- return this.mt.network.getMtprotoMessageId();
329
- }
330
- }
331
- function _parseUpdate(update, peers) {
332
- switch (update._) {
333
- case "updateNewMessage":
334
- case "updateNewChannelMessage":
335
- case "updateNewScheduledMessage":
336
- return {
337
- name: "new_message",
338
- data: new storyViewer.Message$2(update.message, peers, update._ === "updateNewScheduledMessage")
339
- };
340
- case "updateEditMessage":
341
- case "updateEditChannelMessage":
342
- return { name: "edit_message", data: new storyViewer.Message$2(update.message, peers) };
343
- case "updateChatParticipant":
344
- case "updateChannelParticipant":
345
- return { name: "chat_member", data: new client.ChatMemberUpdate$2(update, peers) };
346
- case "updateBotInlineQuery":
347
- return { name: "inline_query", data: new client.InlineQuery$2(update, peers) };
348
- case "updateBotInlineSend":
349
- return { name: "chosen_inline_result", data: new client.ChosenInlineResult$2(update, peers) };
350
- case "updateBotCallbackQuery":
351
- return { name: "callback_query", data: new client.CallbackQuery$2(update, peers) };
352
- case "updateInlineBotCallbackQuery":
353
- return { name: "inline_callback_query", data: new client.InlineCallbackQuery$2(update, peers) };
354
- case "updateMessagePoll":
355
- return { name: "poll", data: new client.PollUpdate$2(update, peers) };
356
- case "updateMessagePollVote":
357
- return { name: "poll_vote", data: new client.PollVoteUpdate$2(update, peers) };
358
- case "updateUserStatus":
359
- return { name: "user_status", data: new client.UserStatusUpdate$2(update) };
360
- case "updateChannelUserTyping":
361
- case "updateChatUserTyping":
362
- case "updateUserTyping":
363
- return { name: "user_typing", data: new client.UserTypingUpdate$1(update) };
364
- case "updateDeleteChannelMessages":
365
- case "updateDeleteMessages":
366
- return { name: "delete_message", data: new client.DeleteMessageUpdate$1(update) };
367
- case "updateReadHistoryInbox":
368
- case "updateReadHistoryOutbox":
369
- case "updateReadChannelInbox":
370
- case "updateReadChannelOutbox":
371
- case "updateReadChannelDiscussionInbox":
372
- case "updateReadChannelDiscussionOutbox":
373
- return { name: "history_read", data: new client.HistoryReadUpdate$1(update) };
374
- case "updateBotStopped":
375
- return { name: "bot_stopped", data: new client.BotStoppedUpdate$2(update, peers) };
376
- case "updateBotChatInviteRequester":
377
- return { name: "bot_chat_join_request", data: new client.BotChatJoinRequestUpdate$2(update, peers) };
378
- case "updatePendingJoinRequests":
379
- return { name: "chat_join_request", data: new client.ChatJoinRequestUpdate$2(update, peers) };
380
- case "updateBotPrecheckoutQuery":
381
- return { name: "pre_checkout_query", data: new client.PreCheckoutQuery$2(update, peers) };
382
- case "updateStory": {
383
- const story = update.story;
384
- if (story._ === "storyItemDeleted") {
385
- return { name: "delete_story", data: new client.DeleteStoryUpdate$2(update, peers) };
386
- }
387
- return {
388
- name: "story",
389
- data: new client.StoryUpdate$2(update, peers)
390
- };
391
- }
392
- case "updateBotMessageReaction":
393
- return { name: "bot_reaction", data: new client.BotReactionUpdate$2(update, peers) };
394
- case "updateBotMessageReactions":
395
- return { name: "bot_reaction_count", data: new client.BotReactionCountUpdate$2(update, peers) };
396
- case "updateBotBusinessConnect":
397
- return { name: "business_connection", data: new storyViewer.BusinessConnection$2(update.connection, peers) };
398
- case "updateBotNewBusinessMessage":
399
- return { name: "new_business_message", data: new client.BusinessMessage(update, peers) };
400
- case "updateBotEditBusinessMessage":
401
- return { name: "edit_business_message", data: new client.BusinessMessage(update, peers) };
402
- case "updateBotDeleteBusinessMessage":
403
- return { name: "delete_business_message", data: new client.DeleteBusinessMessageUpdate$2(update, peers) };
404
- case "updateBusinessBotCallbackQuery":
405
- return { name: "business_callback_query", data: new client.BusinessCallbackQuery$2(update, peers) };
406
- default:
407
- return null;
408
- }
409
- }
410
- function makeParsedUpdateHandler(params) {
411
- const { messageGroupingInterval, onUpdate, onRawUpdate = () => {
412
- } } = params;
413
- if (!messageGroupingInterval) {
414
- return (update, peers) => {
415
- const parsed = _parseUpdate(update, peers);
416
- onRawUpdate(update, peers);
417
- if (parsed) onUpdate(parsed);
418
- };
419
- }
420
- const pending = /* @__PURE__ */ new Map();
421
- return (update, peers) => {
422
- const parsed = _parseUpdate(update, peers);
423
- onRawUpdate(update, peers);
424
- if (parsed) {
425
- if (parsed.name === "new_message" || parsed.name === "new_business_message") {
426
- const group = parsed.data.groupedIdUnique;
427
- if (group) {
428
- const isBusiness = parsed.name === "new_business_message";
429
- const pendingGroup = pending.get(group);
430
- if (pendingGroup) {
431
- pendingGroup[0].push(parsed.data);
432
- } else {
433
- const messages = [parsed.data];
434
- const timeout = conditionVariable.setTimeoutWrap(() => {
435
- pending.delete(group);
436
- if (isBusiness) {
437
- onUpdate({ name: "business_message_group", data: messages });
438
- } else {
439
- onUpdate({ name: "message_group", data: messages });
440
- }
441
- }, messageGroupingInterval);
442
- pending.set(group, [messages, timeout]);
443
- }
444
- return;
445
- }
446
- }
447
- onUpdate(parsed);
448
- }
449
- };
450
- }
451
- function withParams(client2, params) {
452
- const wrappedCall = (message, extraParams) => client2.call(message, extraParams ? { ...params, ...extraParams } : params);
453
- const proxy = new Proxy(client2, {
454
- get: (target, prop, receiver) => {
455
- if (prop === "call") {
456
- return wrappedCall;
457
- }
458
- if (prop === "_client") {
459
- return proxy;
460
- }
461
- return Reflect.get(target, prop, receiver);
462
- }
463
- });
464
- return proxy;
465
- }
466
- class TelegramClient extends EventEmitter {
8
+ const utils = require("@fuman/utils");
9
+ const base = require("./highlevel/base.cjs");
10
+ const checkPassword = require("./highlevel/methods/auth/check-password.cjs");
11
+ const getPasswordHint = require("./highlevel/methods/auth/get-password-hint.cjs");
12
+ const logOut = require("./highlevel/methods/auth/log-out.cjs");
13
+ const recoverPassword = require("./highlevel/methods/auth/recover-password.cjs");
14
+ const resendCode = require("./highlevel/methods/auth/resend-code.cjs");
15
+ const run = require("./highlevel/methods/auth/run.cjs");
16
+ const sendCode = require("./highlevel/methods/auth/send-code.cjs");
17
+ const sendRecoveryCode = require("./highlevel/methods/auth/send-recovery-code.cjs");
18
+ const signInBot = require("./highlevel/methods/auth/sign-in-bot.cjs");
19
+ const signInQr = require("./highlevel/methods/auth/sign-in-qr.cjs");
20
+ const signIn = require("./highlevel/methods/auth/sign-in.cjs");
21
+ const startTest = require("./highlevel/methods/auth/start-test.cjs");
22
+ const start = require("./highlevel/methods/auth/start.cjs");
23
+ const utils$1 = require("./highlevel/methods/auth/utils.cjs");
24
+ const answerCallbackQuery = require("./highlevel/methods/bots/answer-callback-query.cjs");
25
+ const answerInlineQuery = require("./highlevel/methods/bots/answer-inline-query.cjs");
26
+ const answerPreCheckoutQuery = require("./highlevel/methods/bots/answer-pre-checkout-query.cjs");
27
+ const deleteMyCommands = require("./highlevel/methods/bots/delete-my-commands.cjs");
28
+ const getBotInfo = require("./highlevel/methods/bots/get-bot-info.cjs");
29
+ const getBotMenuButton = require("./highlevel/methods/bots/get-bot-menu-button.cjs");
30
+ const getCallbackAnswer = require("./highlevel/methods/bots/get-callback-answer.cjs");
31
+ const getGameHighScores = require("./highlevel/methods/bots/get-game-high-scores.cjs");
32
+ const getMyCommands = require("./highlevel/methods/bots/get-my-commands.cjs");
33
+ const openWebview = require("./highlevel/methods/bots/open-webview.cjs");
34
+ const prepareInlineMessage = require("./highlevel/methods/bots/prepare-inline-message.cjs");
35
+ const setBotInfo = require("./highlevel/methods/bots/set-bot-info.cjs");
36
+ const setBotMenuButton = require("./highlevel/methods/bots/set-bot-menu-button.cjs");
37
+ const setGameScore = require("./highlevel/methods/bots/set-game-score.cjs");
38
+ const setMyCommands = require("./highlevel/methods/bots/set-my-commands.cjs");
39
+ const setMyDefaultRights = require("./highlevel/methods/bots/set-my-default-rights.cjs");
40
+ const toggleEmojiStatusPermission = require("./highlevel/methods/bots/toggle-emoji-status-permission.cjs");
41
+ const addChatMembers = require("./highlevel/methods/chats/add-chat-members.cjs");
42
+ const archiveChats = require("./highlevel/methods/chats/archive-chats.cjs");
43
+ const banChatMember = require("./highlevel/methods/chats/ban-chat-member.cjs");
44
+ const createChannel = require("./highlevel/methods/chats/create-channel.cjs");
45
+ const createGroup = require("./highlevel/methods/chats/create-group.cjs");
46
+ const createSupergroup = require("./highlevel/methods/chats/create-supergroup.cjs");
47
+ const deleteChannel = require("./highlevel/methods/chats/delete-channel.cjs");
48
+ const deleteChatPhoto = require("./highlevel/methods/chats/delete-chat-photo.cjs");
49
+ const deleteGroup = require("./highlevel/methods/chats/delete-group.cjs");
50
+ const deleteHistory = require("./highlevel/methods/chats/delete-history.cjs");
51
+ const deleteUserHistory = require("./highlevel/methods/chats/delete-user-history.cjs");
52
+ const editAdminRights = require("./highlevel/methods/chats/edit-admin-rights.cjs");
53
+ const getChatEventLog = require("./highlevel/methods/chats/get-chat-event-log.cjs");
54
+ const getChatMember = require("./highlevel/methods/chats/get-chat-member.cjs");
55
+ const getChatMembers = require("./highlevel/methods/chats/get-chat-members.cjs");
56
+ const getChatPreview = require("./highlevel/methods/chats/get-chat-preview.cjs");
57
+ const getChat = require("./highlevel/methods/chats/get-chat.cjs");
58
+ const getFullChat = require("./highlevel/methods/chats/get-full-chat.cjs");
59
+ const getFullUser = require("./highlevel/methods/chats/get-full-user.cjs");
60
+ const getNearbyChats = require("./highlevel/methods/chats/get-nearby-chats.cjs");
61
+ const getSimilarChannels = require("./highlevel/methods/chats/get-similar-channels.cjs");
62
+ const getUser = require("./highlevel/methods/chats/get-user.cjs");
63
+ const iterChatEventLog = require("./highlevel/methods/chats/iter-chat-event-log.cjs");
64
+ const iterChatMembers = require("./highlevel/methods/chats/iter-chat-members.cjs");
65
+ const joinChat = require("./highlevel/methods/chats/join-chat.cjs");
66
+ const kickChatMember = require("./highlevel/methods/chats/kick-chat-member.cjs");
67
+ const leaveChat = require("./highlevel/methods/chats/leave-chat.cjs");
68
+ const markChatUnread = require("./highlevel/methods/chats/mark-chat-unread.cjs");
69
+ const openChat = require("./highlevel/methods/chats/open-chat.cjs");
70
+ const reorderUsernames = require("./highlevel/methods/chats/reorder-usernames.cjs");
71
+ const restrictChatMember = require("./highlevel/methods/chats/restrict-chat-member.cjs");
72
+ const saveDraft = require("./highlevel/methods/chats/save-draft.cjs");
73
+ const setChatColor = require("./highlevel/methods/chats/set-chat-color.cjs");
74
+ const setChatDefaultPermissions = require("./highlevel/methods/chats/set-chat-default-permissions.cjs");
75
+ const setChatDescription = require("./highlevel/methods/chats/set-chat-description.cjs");
76
+ const setChatPhoto = require("./highlevel/methods/chats/set-chat-photo.cjs");
77
+ const setChatTitle = require("./highlevel/methods/chats/set-chat-title.cjs");
78
+ const setChatTtl = require("./highlevel/methods/chats/set-chat-ttl.cjs");
79
+ const setChatUsername = require("./highlevel/methods/chats/set-chat-username.cjs");
80
+ const setSlowMode = require("./highlevel/methods/chats/set-slow-mode.cjs");
81
+ const toggleContentProtection = require("./highlevel/methods/chats/toggle-content-protection.cjs");
82
+ const toggleFragmentUsername = require("./highlevel/methods/chats/toggle-fragment-username.cjs");
83
+ const toggleJoinRequests = require("./highlevel/methods/chats/toggle-join-requests.cjs");
84
+ const toggleJoinToSend = require("./highlevel/methods/chats/toggle-join-to-send.cjs");
85
+ const unarchiveChats = require("./highlevel/methods/chats/unarchive-chats.cjs");
86
+ const unbanChatMember = require("./highlevel/methods/chats/unban-chat-member.cjs");
87
+ const addContact = require("./highlevel/methods/contacts/add-contact.cjs");
88
+ const deleteContacts = require("./highlevel/methods/contacts/delete-contacts.cjs");
89
+ const getContacts = require("./highlevel/methods/contacts/get-contacts.cjs");
90
+ const importContacts = require("./highlevel/methods/contacts/import-contacts.cjs");
91
+ const createFolder = require("./highlevel/methods/dialogs/create-folder.cjs");
92
+ const deleteFolder = require("./highlevel/methods/dialogs/delete-folder.cjs");
93
+ const editFolder = require("./highlevel/methods/dialogs/edit-folder.cjs");
94
+ const findDialogs = require("./highlevel/methods/dialogs/find-dialogs.cjs");
95
+ const findFolder = require("./highlevel/methods/dialogs/find-folder.cjs");
96
+ const getChatlistPreview = require("./highlevel/methods/dialogs/get-chatlist-preview.cjs");
97
+ const getFolders = require("./highlevel/methods/dialogs/get-folders.cjs");
98
+ const getPeerDialogs = require("./highlevel/methods/dialogs/get-peer-dialogs.cjs");
99
+ const iterDialogs = require("./highlevel/methods/dialogs/iter-dialogs.cjs");
100
+ const joinChatlist = require("./highlevel/methods/dialogs/join-chatlist.cjs");
101
+ const setFoldersOrder = require("./highlevel/methods/dialogs/set-folders-order.cjs");
102
+ const downloadBuffer = require("./highlevel/methods/files/download-buffer.cjs");
103
+ const downloadIterable = require("./highlevel/methods/files/download-iterable.cjs");
104
+ const downloadStream = require("./highlevel/methods/files/download-stream.cjs");
105
+ const normalizeInputFile = require("./highlevel/methods/files/normalize-input-file.cjs");
106
+ const normalizeInputMedia = require("./highlevel/methods/files/normalize-input-media.cjs");
107
+ const uploadFile = require("./highlevel/methods/files/upload-file.cjs");
108
+ const uploadMedia = require("./highlevel/methods/files/upload-media.cjs");
109
+ const createForumTopic = require("./highlevel/methods/forums/create-forum-topic.cjs");
110
+ const deleteForumTopicHistory = require("./highlevel/methods/forums/delete-forum-topic-history.cjs");
111
+ const editForumTopic = require("./highlevel/methods/forums/edit-forum-topic.cjs");
112
+ const getForumTopicsById = require("./highlevel/methods/forums/get-forum-topics-by-id.cjs");
113
+ const getForumTopics = require("./highlevel/methods/forums/get-forum-topics.cjs");
114
+ const iterForumTopics = require("./highlevel/methods/forums/iter-forum-topics.cjs");
115
+ const reorderPinnedForumTopics = require("./highlevel/methods/forums/reorder-pinned-forum-topics.cjs");
116
+ const toggleForumTopicClosed = require("./highlevel/methods/forums/toggle-forum-topic-closed.cjs");
117
+ const toggleForumTopicPinned = require("./highlevel/methods/forums/toggle-forum-topic-pinned.cjs");
118
+ const toggleForum = require("./highlevel/methods/forums/toggle-forum.cjs");
119
+ const toggleGeneralTopicHidden = require("./highlevel/methods/forums/toggle-general-topic-hidden.cjs");
120
+ const createInviteLink = require("./highlevel/methods/invite-links/create-invite-link.cjs");
121
+ const editInviteLink = require("./highlevel/methods/invite-links/edit-invite-link.cjs");
122
+ const exportInviteLink = require("./highlevel/methods/invite-links/export-invite-link.cjs");
123
+ const getInviteLinkMembers = require("./highlevel/methods/invite-links/get-invite-link-members.cjs");
124
+ const getInviteLink = require("./highlevel/methods/invite-links/get-invite-link.cjs");
125
+ const getInviteLinks = require("./highlevel/methods/invite-links/get-invite-links.cjs");
126
+ const getPrimaryInviteLink = require("./highlevel/methods/invite-links/get-primary-invite-link.cjs");
127
+ const hideAllJoinRequests = require("./highlevel/methods/invite-links/hide-all-join-requests.cjs");
128
+ const hideJoinRequest = require("./highlevel/methods/invite-links/hide-join-request.cjs");
129
+ const iterInviteLinkMembers = require("./highlevel/methods/invite-links/iter-invite-link-members.cjs");
130
+ const iterInviteLinks = require("./highlevel/methods/invite-links/iter-invite-links.cjs");
131
+ const revokeInviteLink = require("./highlevel/methods/invite-links/revoke-invite-link.cjs");
132
+ const closePoll = require("./highlevel/methods/messages/close-poll.cjs");
133
+ const deleteMessages = require("./highlevel/methods/messages/delete-messages.cjs");
134
+ const deleteScheduledMessages = require("./highlevel/methods/messages/delete-scheduled-messages.cjs");
135
+ const editInlineMessage = require("./highlevel/methods/messages/edit-inline-message.cjs");
136
+ const editMessage = require("./highlevel/methods/messages/edit-message.cjs");
137
+ const forwardMessages = require("./highlevel/methods/messages/forward-messages.cjs");
138
+ const getAllScheduledMessages = require("./highlevel/methods/messages/get-all-scheduled-messages.cjs");
139
+ const getAvailableEffects = require("./highlevel/methods/messages/get-available-effects.cjs");
140
+ const getCallbackQueryMessage = require("./highlevel/methods/messages/get-callback-query-message.cjs");
141
+ const getDiscussionMessage = require("./highlevel/methods/messages/get-discussion-message.cjs");
142
+ const getFactCheck = require("./highlevel/methods/messages/get-fact-check.cjs");
143
+ const getHistory = require("./highlevel/methods/messages/get-history.cjs");
144
+ const getMessageByLink = require("./highlevel/methods/messages/get-message-by-link.cjs");
145
+ const getMessageGroup = require("./highlevel/methods/messages/get-message-group.cjs");
146
+ const getMessageReactions = require("./highlevel/methods/messages/get-message-reactions.cjs");
147
+ const getMessagesUnsafe = require("./highlevel/methods/messages/get-messages-unsafe.cjs");
148
+ const getMessages = require("./highlevel/methods/messages/get-messages.cjs");
149
+ const getReactionUsers = require("./highlevel/methods/messages/get-reaction-users.cjs");
150
+ const getReplyTo = require("./highlevel/methods/messages/get-reply-to.cjs");
151
+ const getScheduledMessages = require("./highlevel/methods/messages/get-scheduled-messages.cjs");
152
+ const iterHistory = require("./highlevel/methods/messages/iter-history.cjs");
153
+ const iterReactionUsers = require("./highlevel/methods/messages/iter-reaction-users.cjs");
154
+ const iterSearchGlobal = require("./highlevel/methods/messages/iter-search-global.cjs");
155
+ const iterSearchMessages = require("./highlevel/methods/messages/iter-search-messages.cjs");
156
+ const pinMessage = require("./highlevel/methods/messages/pin-message.cjs");
157
+ const readHistory = require("./highlevel/methods/messages/read-history.cjs");
158
+ const readReactions = require("./highlevel/methods/messages/read-reactions.cjs");
159
+ const searchGlobal = require("./highlevel/methods/messages/search-global.cjs");
160
+ const searchHashtag = require("./highlevel/methods/messages/search-hashtag.cjs");
161
+ const searchMessages = require("./highlevel/methods/messages/search-messages.cjs");
162
+ const sendAnswer = require("./highlevel/methods/messages/send-answer.cjs");
163
+ const sendComment = require("./highlevel/methods/messages/send-comment.cjs");
164
+ const sendCopyGroup = require("./highlevel/methods/messages/send-copy-group.cjs");
165
+ const sendCopy = require("./highlevel/methods/messages/send-copy.cjs");
166
+ const sendMediaGroup = require("./highlevel/methods/messages/send-media-group.cjs");
167
+ const sendMedia = require("./highlevel/methods/messages/send-media.cjs");
168
+ const sendPaidReaction = require("./highlevel/methods/messages/send-paid-reaction.cjs");
169
+ const sendQuote = require("./highlevel/methods/messages/send-quote.cjs");
170
+ const sendReaction = require("./highlevel/methods/messages/send-reaction.cjs");
171
+ const sendReply = require("./highlevel/methods/messages/send-reply.cjs");
172
+ const sendScheduled = require("./highlevel/methods/messages/send-scheduled.cjs");
173
+ const sendText = require("./highlevel/methods/messages/send-text.cjs");
174
+ const sendTyping = require("./highlevel/methods/messages/send-typing.cjs");
175
+ const sendVote = require("./highlevel/methods/messages/send-vote.cjs");
176
+ const setTyping = require("./highlevel/methods/messages/set-typing.cjs");
177
+ const translateMessage = require("./highlevel/methods/messages/translate-message.cjs");
178
+ const translateText = require("./highlevel/methods/messages/translate-text.cjs");
179
+ const unpinAllMessages = require("./highlevel/methods/messages/unpin-all-messages.cjs");
180
+ const unpinMessage = require("./highlevel/methods/messages/unpin-message.cjs");
181
+ const getCollectibleInfo = require("./highlevel/methods/misc/get-collectible-info.cjs");
182
+ const initTakeoutSession = require("./highlevel/methods/misc/init-takeout-session.cjs");
183
+ const normalizePrivacyRules = require("./highlevel/methods/misc/normalize-privacy-rules.cjs");
184
+ const withParams = require("./highlevel/methods/misc/with-params.cjs");
185
+ const changeCloudPassword = require("./highlevel/methods/password/change-cloud-password.cjs");
186
+ const enableCloudPassword = require("./highlevel/methods/password/enable-cloud-password.cjs");
187
+ const passwordEmail = require("./highlevel/methods/password/password-email.cjs");
188
+ const removeCloudPassword = require("./highlevel/methods/password/remove-cloud-password.cjs");
189
+ const acceptStarGift = require("./highlevel/methods/premium/accept-star-gift.cjs");
190
+ const applyBoost = require("./highlevel/methods/premium/apply-boost.cjs");
191
+ const canApplyBoost = require("./highlevel/methods/premium/can-apply-boost.cjs");
192
+ const createBusinessChatLink = require("./highlevel/methods/premium/create-business-chat-link.cjs");
193
+ const editBusinessChatLink = require("./highlevel/methods/premium/edit-business-chat-link.cjs");
194
+ const getBoostStats = require("./highlevel/methods/premium/get-boost-stats.cjs");
195
+ const getBoosts = require("./highlevel/methods/premium/get-boosts.cjs");
196
+ const getBusinessChatLinks = require("./highlevel/methods/premium/get-business-chat-links.cjs");
197
+ const getBusinessConnection = require("./highlevel/methods/premium/get-business-connection.cjs");
198
+ const getMyBoostSlots = require("./highlevel/methods/premium/get-my-boost-slots.cjs");
199
+ const getStarGiftOptions = require("./highlevel/methods/premium/get-star-gift-options.cjs");
200
+ const getStarGifts = require("./highlevel/methods/premium/get-star-gifts.cjs");
201
+ const getStarsTransactions = require("./highlevel/methods/premium/get-stars-transactions.cjs");
202
+ const iterBoosters = require("./highlevel/methods/premium/iter-boosters.cjs");
203
+ const iterStarGifts = require("./highlevel/methods/premium/iter-star-gifts.cjs");
204
+ const iterStarsTransactions = require("./highlevel/methods/premium/iter-stars-transactions.cjs");
205
+ const sendStarGift = require("./highlevel/methods/premium/send-star-gift.cjs");
206
+ const setBusinessIntro = require("./highlevel/methods/premium/set-business-intro.cjs");
207
+ const setBusinessWorkHours = require("./highlevel/methods/premium/set-business-work-hours.cjs");
208
+ const addStickerToSet = require("./highlevel/methods/stickers/add-sticker-to-set.cjs");
209
+ const createStickerSet = require("./highlevel/methods/stickers/create-sticker-set.cjs");
210
+ const deleteStickerFromSet = require("./highlevel/methods/stickers/delete-sticker-from-set.cjs");
211
+ const getCustomEmojis = require("./highlevel/methods/stickers/get-custom-emojis.cjs");
212
+ const getInstalledStickers = require("./highlevel/methods/stickers/get-installed-stickers.cjs");
213
+ const getMyStickerSets = require("./highlevel/methods/stickers/get-my-sticker-sets.cjs");
214
+ const getStickerSet = require("./highlevel/methods/stickers/get-sticker-set.cjs");
215
+ const moveStickerInSet = require("./highlevel/methods/stickers/move-sticker-in-set.cjs");
216
+ const replaceStickerInSet = require("./highlevel/methods/stickers/replace-sticker-in-set.cjs");
217
+ const setChatStickerSet = require("./highlevel/methods/stickers/set-chat-sticker-set.cjs");
218
+ const setStickerSetThumb = require("./highlevel/methods/stickers/set-sticker-set-thumb.cjs");
219
+ const canSendStory = require("./highlevel/methods/stories/can-send-story.cjs");
220
+ const deleteStories = require("./highlevel/methods/stories/delete-stories.cjs");
221
+ const editStory = require("./highlevel/methods/stories/edit-story.cjs");
222
+ const getAllStories = require("./highlevel/methods/stories/get-all-stories.cjs");
223
+ const getPeerStories = require("./highlevel/methods/stories/get-peer-stories.cjs");
224
+ const getProfileStories = require("./highlevel/methods/stories/get-profile-stories.cjs");
225
+ const getStoriesById = require("./highlevel/methods/stories/get-stories-by-id.cjs");
226
+ const getStoriesInteractions = require("./highlevel/methods/stories/get-stories-interactions.cjs");
227
+ const getStoryLink = require("./highlevel/methods/stories/get-story-link.cjs");
228
+ const getStoryViewers = require("./highlevel/methods/stories/get-story-viewers.cjs");
229
+ const hideMyStoriesViews = require("./highlevel/methods/stories/hide-my-stories-views.cjs");
230
+ const incrementStoriesViews = require("./highlevel/methods/stories/increment-stories-views.cjs");
231
+ const iterAllStories = require("./highlevel/methods/stories/iter-all-stories.cjs");
232
+ const iterProfileStories = require("./highlevel/methods/stories/iter-profile-stories.cjs");
233
+ const iterStoryViewers = require("./highlevel/methods/stories/iter-story-viewers.cjs");
234
+ const readStories = require("./highlevel/methods/stories/read-stories.cjs");
235
+ const sendStoryReaction = require("./highlevel/methods/stories/send-story-reaction.cjs");
236
+ const sendStory = require("./highlevel/methods/stories/send-story.cjs");
237
+ const togglePeerStoriesArchived = require("./highlevel/methods/stories/toggle-peer-stories-archived.cjs");
238
+ const toggleStoriesPinned = require("./highlevel/methods/stories/toggle-stories-pinned.cjs");
239
+ const blockUser = require("./highlevel/methods/users/block-user.cjs");
240
+ const deleteProfilePhotos = require("./highlevel/methods/users/delete-profile-photos.cjs");
241
+ const editCloseFriends = require("./highlevel/methods/users/edit-close-friends.cjs");
242
+ const getCommonChats = require("./highlevel/methods/users/get-common-chats.cjs");
243
+ const getGlobalTtl = require("./highlevel/methods/users/get-global-ttl.cjs");
244
+ const getMe = require("./highlevel/methods/users/get-me.cjs");
245
+ const getMyUsername = require("./highlevel/methods/users/get-my-username.cjs");
246
+ const getProfilePhoto = require("./highlevel/methods/users/get-profile-photo.cjs");
247
+ const getProfilePhotos = require("./highlevel/methods/users/get-profile-photos.cjs");
248
+ const getUsers = require("./highlevel/methods/users/get-users.cjs");
249
+ const isPeerAvailable = require("./highlevel/methods/users/is-peer-available.cjs");
250
+ const iterProfilePhotos = require("./highlevel/methods/users/iter-profile-photos.cjs");
251
+ const resolvePeerMany = require("./highlevel/methods/users/resolve-peer-many.cjs");
252
+ const resolvePeer = require("./highlevel/methods/users/resolve-peer.cjs");
253
+ const setEmojiStatus = require("./highlevel/methods/users/set-emoji-status.cjs");
254
+ const setGlobalTtl = require("./highlevel/methods/users/set-global-ttl.cjs");
255
+ const setMyBirthday = require("./highlevel/methods/users/set-my-birthday.cjs");
256
+ const setMyProfilePhoto = require("./highlevel/methods/users/set-my-profile-photo.cjs");
257
+ const setMyUsername = require("./highlevel/methods/users/set-my-username.cjs");
258
+ const setOnline = require("./highlevel/methods/users/set-online.cjs");
259
+ const unblockUser = require("./highlevel/methods/users/unblock-user.cjs");
260
+ const updateProfile = require("./highlevel/methods/users/update-profile.cjs");
261
+ const conversation = require("./highlevel/types/conversation.cjs");
262
+ const parsed = require("./highlevel/updates/parsed.cjs");
263
+ const errors = require("./types/errors.cjs");
264
+ class TelegramClient {
467
265
  _client;
468
266
  constructor(opts) {
469
- super();
267
+ this.onRawUpdate = new utils.Emitter();
268
+ this.onUpdate = new utils.Emitter();
269
+ this.onNewMessage = new utils.Emitter();
270
+ this.onEditMessage = new utils.Emitter();
271
+ this.onMessageGroup = new utils.Emitter();
272
+ this.onDeleteMessage = new utils.Emitter();
273
+ this.onChatMemberUpdate = new utils.Emitter();
274
+ this.onInlineQuery = new utils.Emitter();
275
+ this.onChosenInlineResult = new utils.Emitter();
276
+ this.onCallbackQuery = new utils.Emitter();
277
+ this.onInlineCallbackQuery = new utils.Emitter();
278
+ this.onBusinessCallbackQuery = new utils.Emitter();
279
+ this.onPollUpdate = new utils.Emitter();
280
+ this.onPollVote = new utils.Emitter();
281
+ this.onUserStatusUpdate = new utils.Emitter();
282
+ this.onUserTyping = new utils.Emitter();
283
+ this.onHistoryRead = new utils.Emitter();
284
+ this.onBotStopped = new utils.Emitter();
285
+ this.onBotChatJoinRequest = new utils.Emitter();
286
+ this.onChatJoinRequest = new utils.Emitter();
287
+ this.onPreCheckoutQuery = new utils.Emitter();
288
+ this.onStoryUpdate = new utils.Emitter();
289
+ this.onDeleteStory = new utils.Emitter();
290
+ this.onBotReactionUpdate = new utils.Emitter();
291
+ this.onBotReactionCountUpdate = new utils.Emitter();
292
+ this.onBusinessConnectionUpdate = new utils.Emitter();
293
+ this.onNewBusinessMessage = new utils.Emitter();
294
+ this.onEditBusinessMessage = new utils.Emitter();
295
+ this.onBusinessMessageGroup = new utils.Emitter();
296
+ this.onDeleteBusinessMessage = new utils.Emitter();
470
297
  if ("client" in opts) {
471
298
  this._client = opts.client;
472
299
  } else {
473
- if (!opts.storage || typeof opts.storage === "string" || !opts.transport || !opts.crypto) {
474
- throw new platform.MtUnsupportedError(
475
- "You need to explicitly provide storage, transport and crypto for @mtcute/core"
300
+ if (!opts.storage || typeof opts.storage === "string" || !opts.transport || !opts.crypto || !opts.platform) {
301
+ throw new errors.MtUnsupportedError(
302
+ "You need to explicitly provide storage, transport, crypto and platform for @mtcute/core"
476
303
  );
477
304
  }
478
- this._client = new BaseTelegramClient(opts);
305
+ this._client = new base.BaseTelegramClient(opts);
479
306
  }
480
- this.log = this._client.log;
481
- this.storage = this._client.storage;
482
- Object.defineProperty(this, "stopSignal", {
483
- get: () => this._client.stopSignal
484
- });
485
- Object.defineProperty(this, "appConfig", {
486
- get: () => this._client.appConfig
487
- });
307
+ Object.defineProperty(this, "log", { value: this._client.log });
308
+ Object.defineProperty(this, "storage", { value: this._client.storage });
309
+ Object.defineProperty(this, "stopSignal", { value: this._client.stopSignal });
310
+ Object.defineProperty(this, "appConfig", { value: this._client.appConfig });
311
+ Object.defineProperty(this, "onServerUpdate", { value: this._client.onServerUpdate });
312
+ Object.defineProperty(this, "onRawUpdate", { value: this._client.onServerUpdate });
313
+ Object.defineProperty(this, "onConnectionState", { value: this._client.onConnectionState });
314
+ Object.defineProperty(this, "onError", { value: this._client.onError });
488
315
  if (!opts.disableUpdates) {
489
316
  const skipConversationUpdates = opts.skipConversationUpdates ?? true;
490
317
  const { messageGroupingInterval } = opts.updates ?? {};
491
- this._client.onUpdate(
492
- makeParsedUpdateHandler({
318
+ this._client.onRawUpdate.add(
319
+ parsed.makeParsedUpdateHandler({
493
320
  messageGroupingInterval,
494
321
  onUpdate: (update) => {
495
- if (client.Conversation.handleUpdate(this, update) && skipConversationUpdates) return;
496
- this.emit("update", update);
497
- this.emit(update.name, update.data);
498
- },
499
- onRawUpdate: (update, peers) => {
500
- this.emit("raw_update", update, peers);
322
+ if (conversation.Conversation.handleUpdate(this, update) && skipConversationUpdates) return;
323
+ this.onUpdate.emit(update);
324
+ switch (update.name) {
325
+ case "new_message":
326
+ this.onNewMessage.emit(update.data);
327
+ break;
328
+ case "edit_message":
329
+ this.onEditMessage.emit(update.data);
330
+ break;
331
+ case "message_group":
332
+ this.onMessageGroup.emit(update.data);
333
+ break;
334
+ case "delete_message":
335
+ this.onDeleteMessage.emit(update.data);
336
+ break;
337
+ case "chat_member":
338
+ this.onChatMemberUpdate.emit(update.data);
339
+ break;
340
+ case "inline_query":
341
+ this.onInlineQuery.emit(update.data);
342
+ break;
343
+ case "chosen_inline_result":
344
+ this.onChosenInlineResult.emit(update.data);
345
+ break;
346
+ case "callback_query":
347
+ this.onCallbackQuery.emit(update.data);
348
+ break;
349
+ case "inline_callback_query":
350
+ this.onInlineCallbackQuery.emit(update.data);
351
+ break;
352
+ case "business_callback_query":
353
+ this.onBusinessCallbackQuery.emit(update.data);
354
+ break;
355
+ case "poll":
356
+ this.onPollUpdate.emit(update.data);
357
+ break;
358
+ case "poll_vote":
359
+ this.onPollVote.emit(update.data);
360
+ break;
361
+ case "user_status":
362
+ this.onUserStatusUpdate.emit(update.data);
363
+ break;
364
+ case "user_typing":
365
+ this.onUserTyping.emit(update.data);
366
+ break;
367
+ case "history_read":
368
+ this.onHistoryRead.emit(update.data);
369
+ break;
370
+ case "bot_stopped":
371
+ this.onBotStopped.emit(update.data);
372
+ break;
373
+ case "bot_chat_join_request":
374
+ this.onBotChatJoinRequest.emit(update.data);
375
+ break;
376
+ case "chat_join_request":
377
+ this.onChatJoinRequest.emit(update.data);
378
+ break;
379
+ case "pre_checkout_query":
380
+ this.onPreCheckoutQuery.emit(update.data);
381
+ break;
382
+ case "story":
383
+ this.onStoryUpdate.emit(update.data);
384
+ break;
385
+ case "delete_story":
386
+ this.onDeleteStory.emit(update.data);
387
+ break;
388
+ case "bot_reaction":
389
+ this.onBotReactionUpdate.emit(update.data);
390
+ break;
391
+ case "bot_reaction_count":
392
+ this.onBotReactionCountUpdate.emit(update.data);
393
+ break;
394
+ case "business_connection":
395
+ this.onBusinessConnectionUpdate.emit(update.data);
396
+ break;
397
+ case "new_business_message":
398
+ this.onNewBusinessMessage.emit(update.data);
399
+ break;
400
+ case "edit_business_message":
401
+ this.onEditBusinessMessage.emit(update.data);
402
+ break;
403
+ case "business_message_group":
404
+ this.onBusinessMessageGroup.emit(update.data);
405
+ break;
406
+ case "delete_business_message":
407
+ this.onDeleteBusinessMessage.emit(update.data);
408
+ break;
409
+ }
501
410
  }
502
411
  })
503
412
  );
504
413
  }
505
414
  }
506
415
  withParams(params) {
507
- return withParams(this, params);
416
+ return withParams.withParams(this, params);
508
417
  }
509
418
  }
510
419
  TelegramClient.prototype.checkPassword = function(...args) {
511
- return updateProfile.checkPassword(this._client, ...args);
420
+ return checkPassword.checkPassword(this._client, ...args);
512
421
  };
513
422
  TelegramClient.prototype.getPasswordHint = function(...args) {
514
- return updateProfile.getPasswordHint(this._client, ...args);
423
+ return getPasswordHint.getPasswordHint(this._client, ...args);
515
424
  };
516
425
  TelegramClient.prototype.logOut = function(...args) {
517
- return updateProfile.logOut(this._client, ...args);
426
+ return logOut.logOut(this._client, ...args);
518
427
  };
519
428
  TelegramClient.prototype.recoverPassword = function(...args) {
520
- return updateProfile.recoverPassword(this._client, ...args);
429
+ return recoverPassword.recoverPassword(this._client, ...args);
521
430
  };
522
431
  TelegramClient.prototype.resendCode = function(...args) {
523
- return updateProfile.resendCode(this._client, ...args);
432
+ return resendCode.resendCode(this._client, ...args);
524
433
  };
525
434
  TelegramClient.prototype.run = function(...args) {
526
- return updateProfile.run(this._client, ...args);
435
+ return run.run(this._client, ...args);
527
436
  };
528
437
  TelegramClient.prototype.sendCode = function(...args) {
529
- return updateProfile.sendCode(this._client, ...args);
438
+ return sendCode.sendCode(this._client, ...args);
530
439
  };
531
440
  TelegramClient.prototype.sendRecoveryCode = function(...args) {
532
- return updateProfile.sendRecoveryCode(this._client, ...args);
441
+ return sendRecoveryCode.sendRecoveryCode(this._client, ...args);
533
442
  };
534
443
  TelegramClient.prototype.signInBot = function(...args) {
535
- return updateProfile.signInBot(this._client, ...args);
444
+ return signInBot.signInBot(this._client, ...args);
536
445
  };
537
446
  TelegramClient.prototype.signInQr = function(...args) {
538
- return updateProfile.signInQr(this._client, ...args);
447
+ return signInQr.signInQr(this._client, ...args);
539
448
  };
540
449
  TelegramClient.prototype.signIn = function(...args) {
541
- return updateProfile.signIn(this._client, ...args);
450
+ return signIn.signIn(this._client, ...args);
542
451
  };
543
452
  TelegramClient.prototype.startTest = function(...args) {
544
- return updateProfile.startTest(this._client, ...args);
453
+ return startTest.startTest(this._client, ...args);
545
454
  };
546
455
  TelegramClient.prototype.start = function(...args) {
547
- return updateProfile.start(this._client, ...args);
456
+ return start.start(this._client, ...args);
548
457
  };
549
458
  TelegramClient.prototype.isSelfPeer = function(...args) {
550
- return updateProfile.isSelfPeer(this._client, ...args);
459
+ return utils$1.isSelfPeer(this._client, ...args);
551
460
  };
552
461
  TelegramClient.prototype.answerCallbackQuery = function(...args) {
553
- return updateProfile.answerCallbackQuery(this._client, ...args);
462
+ return answerCallbackQuery.answerCallbackQuery(this._client, ...args);
554
463
  };
555
464
  TelegramClient.prototype.answerInlineQuery = function(...args) {
556
- return updateProfile.answerInlineQuery(this._client, ...args);
465
+ return answerInlineQuery.answerInlineQuery(this._client, ...args);
557
466
  };
558
467
  TelegramClient.prototype.answerPreCheckoutQuery = function(...args) {
559
- return updateProfile.answerPreCheckoutQuery(this._client, ...args);
468
+ return answerPreCheckoutQuery.answerPreCheckoutQuery(this._client, ...args);
560
469
  };
561
470
  TelegramClient.prototype.deleteMyCommands = function(...args) {
562
- return updateProfile.deleteMyCommands(this._client, ...args);
471
+ return deleteMyCommands.deleteMyCommands(this._client, ...args);
563
472
  };
564
473
  TelegramClient.prototype.getBotInfo = function(...args) {
565
- return updateProfile.getBotInfo(this._client, ...args);
474
+ return getBotInfo.getBotInfo(this._client, ...args);
566
475
  };
567
476
  TelegramClient.prototype.getBotMenuButton = function(...args) {
568
- return updateProfile.getBotMenuButton(this._client, ...args);
477
+ return getBotMenuButton.getBotMenuButton(this._client, ...args);
569
478
  };
570
479
  TelegramClient.prototype.getCallbackAnswer = function(...args) {
571
- return updateProfile.getCallbackAnswer(this._client, ...args);
480
+ return getCallbackAnswer.getCallbackAnswer(this._client, ...args);
572
481
  };
573
482
  TelegramClient.prototype.getGameHighScores = function(...args) {
574
- return updateProfile.getGameHighScores(this._client, ...args);
483
+ return getGameHighScores.getGameHighScores(this._client, ...args);
575
484
  };
576
485
  TelegramClient.prototype.getInlineGameHighScores = function(...args) {
577
- return updateProfile.getInlineGameHighScores(this._client, ...args);
486
+ return getGameHighScores.getInlineGameHighScores(this._client, ...args);
578
487
  };
579
488
  TelegramClient.prototype.getMyCommands = function(...args) {
580
- return updateProfile.getMyCommands(this._client, ...args);
489
+ return getMyCommands.getMyCommands(this._client, ...args);
490
+ };
491
+ TelegramClient.prototype.openWebview = function(...args) {
492
+ return openWebview.openWebview(this._client, ...args);
493
+ };
494
+ TelegramClient.prototype.closeWebview = function(...args) {
495
+ return openWebview.closeWebview(this._client, ...args);
496
+ };
497
+ TelegramClient.prototype.prepareInlineMessage = function(...args) {
498
+ return prepareInlineMessage.prepareInlineMessage(this._client, ...args);
581
499
  };
582
500
  TelegramClient.prototype.setBotInfo = function(...args) {
583
- return updateProfile.setBotInfo(this._client, ...args);
501
+ return setBotInfo.setBotInfo(this._client, ...args);
584
502
  };
585
503
  TelegramClient.prototype.setBotMenuButton = function(...args) {
586
- return updateProfile.setBotMenuButton(this._client, ...args);
504
+ return setBotMenuButton.setBotMenuButton(this._client, ...args);
587
505
  };
588
506
  TelegramClient.prototype.setGameScore = function(...args) {
589
- return updateProfile.setGameScore(this._client, ...args);
507
+ return setGameScore.setGameScore(this._client, ...args);
590
508
  };
591
509
  TelegramClient.prototype.setInlineGameScore = function(...args) {
592
- return updateProfile.setInlineGameScore(this._client, ...args);
510
+ return setGameScore.setInlineGameScore(this._client, ...args);
593
511
  };
594
512
  TelegramClient.prototype.setMyCommands = function(...args) {
595
- return updateProfile.setMyCommands(this._client, ...args);
513
+ return setMyCommands.setMyCommands(this._client, ...args);
596
514
  };
597
515
  TelegramClient.prototype.setMyDefaultRights = function(...args) {
598
- return updateProfile.setMyDefaultRights(this._client, ...args);
516
+ return setMyDefaultRights.setMyDefaultRights(this._client, ...args);
517
+ };
518
+ TelegramClient.prototype.toggleEmojiStatusPermission = function(...args) {
519
+ return toggleEmojiStatusPermission.toggleEmojiStatusPermission(this._client, ...args);
599
520
  };
600
521
  TelegramClient.prototype.addChatMembers = function(...args) {
601
- return updateProfile.addChatMembers(this._client, ...args);
522
+ return addChatMembers.addChatMembers(this._client, ...args);
602
523
  };
603
524
  TelegramClient.prototype.archiveChats = function(...args) {
604
- return updateProfile.archiveChats(this._client, ...args);
525
+ return archiveChats.archiveChats(this._client, ...args);
605
526
  };
606
527
  TelegramClient.prototype.banChatMember = function(...args) {
607
- return updateProfile.banChatMember(this._client, ...args);
528
+ return banChatMember.banChatMember(this._client, ...args);
608
529
  };
609
530
  TelegramClient.prototype.createChannel = function(...args) {
610
- return updateProfile.createChannel(this._client, ...args);
531
+ return createChannel.createChannel(this._client, ...args);
611
532
  };
612
533
  TelegramClient.prototype.createGroup = function(...args) {
613
- return updateProfile.createGroup(this._client, ...args);
534
+ return createGroup.createGroup(this._client, ...args);
614
535
  };
615
536
  TelegramClient.prototype.createSupergroup = function(...args) {
616
- return updateProfile.createSupergroup(this._client, ...args);
537
+ return createSupergroup.createSupergroup(this._client, ...args);
617
538
  };
618
539
  TelegramClient.prototype.deleteChannel = function(...args) {
619
- return updateProfile.deleteChannel(this._client, ...args);
540
+ return deleteChannel.deleteChannel(this._client, ...args);
620
541
  };
621
542
  TelegramClient.prototype.deleteSupergroup = function(...args) {
622
- return updateProfile.deleteChannel(this._client, ...args);
543
+ return deleteChannel.deleteChannel(this._client, ...args);
623
544
  };
624
545
  TelegramClient.prototype.deleteChatPhoto = function(...args) {
625
- return updateProfile.deleteChatPhoto(this._client, ...args);
546
+ return deleteChatPhoto.deleteChatPhoto(this._client, ...args);
626
547
  };
627
548
  TelegramClient.prototype.deleteGroup = function(...args) {
628
- return updateProfile.deleteGroup(this._client, ...args);
549
+ return deleteGroup.deleteGroup(this._client, ...args);
629
550
  };
630
551
  TelegramClient.prototype.deleteHistory = function(...args) {
631
- return updateProfile.deleteHistory(this._client, ...args);
552
+ return deleteHistory.deleteHistory(this._client, ...args);
632
553
  };
633
554
  TelegramClient.prototype.deleteUserHistory = function(...args) {
634
- return updateProfile.deleteUserHistory(this._client, ...args);
555
+ return deleteUserHistory.deleteUserHistory(this._client, ...args);
635
556
  };
636
557
  TelegramClient.prototype.editAdminRights = function(...args) {
637
- return updateProfile.editAdminRights(this._client, ...args);
558
+ return editAdminRights.editAdminRights(this._client, ...args);
638
559
  };
639
560
  TelegramClient.prototype.getChatEventLog = function(...args) {
640
- return updateProfile.getChatEventLog(this._client, ...args);
561
+ return getChatEventLog.getChatEventLog(this._client, ...args);
641
562
  };
642
563
  TelegramClient.prototype.getChatMember = function(...args) {
643
- return updateProfile.getChatMember(this._client, ...args);
564
+ return getChatMember.getChatMember(this._client, ...args);
644
565
  };
645
566
  TelegramClient.prototype.getChatMembers = function(...args) {
646
- return updateProfile.getChatMembers(this._client, ...args);
567
+ return getChatMembers.getChatMembers(this._client, ...args);
647
568
  };
648
569
  TelegramClient.prototype.getChatPreview = function(...args) {
649
- return updateProfile.getChatPreview(this._client, ...args);
570
+ return getChatPreview.getChatPreview(this._client, ...args);
650
571
  };
651
572
  TelegramClient.prototype.getChat = function(...args) {
652
- return updateProfile.getChat(this._client, ...args);
573
+ return getChat.getChat(this._client, ...args);
653
574
  };
654
575
  TelegramClient.prototype.getFullChat = function(...args) {
655
- return updateProfile.getFullChat(this._client, ...args);
576
+ return getFullChat.getFullChat(this._client, ...args);
577
+ };
578
+ TelegramClient.prototype.getFullUser = function(...args) {
579
+ return getFullUser.getFullUser(this._client, ...args);
656
580
  };
657
581
  TelegramClient.prototype.getNearbyChats = function(...args) {
658
- return updateProfile.getNearbyChats(this._client, ...args);
582
+ return getNearbyChats.getNearbyChats(this._client, ...args);
659
583
  };
660
584
  TelegramClient.prototype.getSimilarChannels = function(...args) {
661
- return updateProfile.getSimilarChannels(this._client, ...args);
585
+ return getSimilarChannels.getSimilarChannels(this._client, ...args);
586
+ };
587
+ TelegramClient.prototype.getUser = function(...args) {
588
+ return getUser.getUser(this._client, ...args);
662
589
  };
663
590
  TelegramClient.prototype.iterChatEventLog = function(...args) {
664
- return updateProfile.iterChatEventLog(this._client, ...args);
591
+ return iterChatEventLog.iterChatEventLog(this._client, ...args);
665
592
  };
666
593
  TelegramClient.prototype.iterChatMembers = function(...args) {
667
- return updateProfile.iterChatMembers(this._client, ...args);
594
+ return iterChatMembers.iterChatMembers(this._client, ...args);
668
595
  };
669
596
  TelegramClient.prototype.joinChat = function(...args) {
670
- return updateProfile.joinChat(this._client, ...args);
597
+ return joinChat.joinChat(this._client, ...args);
671
598
  };
672
599
  TelegramClient.prototype.kickChatMember = function(...args) {
673
- return updateProfile.kickChatMember(this._client, ...args);
600
+ return kickChatMember.kickChatMember(this._client, ...args);
674
601
  };
675
602
  TelegramClient.prototype.leaveChat = function(...args) {
676
- return updateProfile.leaveChat(this._client, ...args);
603
+ return leaveChat.leaveChat(this._client, ...args);
677
604
  };
678
605
  TelegramClient.prototype.markChatUnread = function(...args) {
679
- return updateProfile.markChatUnread(this._client, ...args);
606
+ return markChatUnread.markChatUnread(this._client, ...args);
680
607
  };
681
608
  TelegramClient.prototype.openChat = function(...args) {
682
- return updateProfile.openChat(this._client, ...args);
609
+ return openChat.openChat(this._client, ...args);
683
610
  };
684
611
  TelegramClient.prototype.closeChat = function(...args) {
685
- return updateProfile.closeChat(this._client, ...args);
612
+ return openChat.closeChat(this._client, ...args);
686
613
  };
687
614
  TelegramClient.prototype.reorderUsernames = function(...args) {
688
- return updateProfile.reorderUsernames(this._client, ...args);
615
+ return reorderUsernames.reorderUsernames(this._client, ...args);
689
616
  };
690
617
  TelegramClient.prototype.restrictChatMember = function(...args) {
691
- return updateProfile.restrictChatMember(this._client, ...args);
618
+ return restrictChatMember.restrictChatMember(this._client, ...args);
692
619
  };
693
620
  TelegramClient.prototype.saveDraft = function(...args) {
694
- return updateProfile.saveDraft(this._client, ...args);
621
+ return saveDraft.saveDraft(this._client, ...args);
695
622
  };
696
623
  TelegramClient.prototype.setChatColor = function(...args) {
697
- return updateProfile.setChatColor(this._client, ...args);
624
+ return setChatColor.setChatColor(this._client, ...args);
698
625
  };
699
626
  TelegramClient.prototype.setChatDefaultPermissions = function(...args) {
700
- return updateProfile.setChatDefaultPermissions(this._client, ...args);
627
+ return setChatDefaultPermissions.setChatDefaultPermissions(this._client, ...args);
701
628
  };
702
629
  TelegramClient.prototype.setChatDescription = function(...args) {
703
- return updateProfile.setChatDescription(this._client, ...args);
630
+ return setChatDescription.setChatDescription(this._client, ...args);
704
631
  };
705
632
  TelegramClient.prototype.setChatPhoto = function(...args) {
706
- return updateProfile.setChatPhoto(this._client, ...args);
633
+ return setChatPhoto.setChatPhoto(this._client, ...args);
707
634
  };
708
635
  TelegramClient.prototype.setChatTitle = function(...args) {
709
- return updateProfile.setChatTitle(this._client, ...args);
636
+ return setChatTitle.setChatTitle(this._client, ...args);
710
637
  };
711
638
  TelegramClient.prototype.setChatTtl = function(...args) {
712
- return updateProfile.setChatTtl(this._client, ...args);
639
+ return setChatTtl.setChatTtl(this._client, ...args);
713
640
  };
714
641
  TelegramClient.prototype.setChatUsername = function(...args) {
715
- return updateProfile.setChatUsername(this._client, ...args);
642
+ return setChatUsername.setChatUsername(this._client, ...args);
716
643
  };
717
644
  TelegramClient.prototype.setSlowMode = function(...args) {
718
- return updateProfile.setSlowMode(this._client, ...args);
645
+ return setSlowMode.setSlowMode(this._client, ...args);
719
646
  };
720
647
  TelegramClient.prototype.toggleContentProtection = function(...args) {
721
- return updateProfile.toggleContentProtection(this._client, ...args);
648
+ return toggleContentProtection.toggleContentProtection(this._client, ...args);
722
649
  };
723
650
  TelegramClient.prototype.toggleFragmentUsername = function(...args) {
724
- return updateProfile.toggleFragmentUsername(this._client, ...args);
651
+ return toggleFragmentUsername.toggleFragmentUsername(this._client, ...args);
725
652
  };
726
653
  TelegramClient.prototype.toggleJoinRequests = function(...args) {
727
- return updateProfile.toggleJoinRequests(this._client, ...args);
654
+ return toggleJoinRequests.toggleJoinRequests(this._client, ...args);
728
655
  };
729
656
  TelegramClient.prototype.toggleJoinToSend = function(...args) {
730
- return updateProfile.toggleJoinToSend(this._client, ...args);
657
+ return toggleJoinToSend.toggleJoinToSend(this._client, ...args);
731
658
  };
732
659
  TelegramClient.prototype.unarchiveChats = function(...args) {
733
- return updateProfile.unarchiveChats(this._client, ...args);
660
+ return unarchiveChats.unarchiveChats(this._client, ...args);
734
661
  };
735
662
  TelegramClient.prototype.unbanChatMember = function(...args) {
736
- return updateProfile.unbanChatMember(this._client, ...args);
663
+ return unbanChatMember.unbanChatMember(this._client, ...args);
737
664
  };
738
665
  TelegramClient.prototype.unrestrictChatMember = function(...args) {
739
- return updateProfile.unbanChatMember(this._client, ...args);
666
+ return unbanChatMember.unbanChatMember(this._client, ...args);
740
667
  };
741
668
  TelegramClient.prototype.addContact = function(...args) {
742
- return updateProfile.addContact(this._client, ...args);
669
+ return addContact.addContact(this._client, ...args);
743
670
  };
744
671
  TelegramClient.prototype.deleteContacts = function(...args) {
745
- return updateProfile.deleteContacts(this._client, ...args);
672
+ return deleteContacts.deleteContacts(this._client, ...args);
746
673
  };
747
674
  TelegramClient.prototype.getContacts = function(...args) {
748
- return updateProfile.getContacts(this._client, ...args);
675
+ return getContacts.getContacts(this._client, ...args);
749
676
  };
750
677
  TelegramClient.prototype.importContacts = function(...args) {
751
- return updateProfile.importContacts(this._client, ...args);
678
+ return importContacts.importContacts(this._client, ...args);
752
679
  };
753
680
  TelegramClient.prototype.createFolder = function(...args) {
754
- return updateProfile.createFolder(this._client, ...args);
681
+ return createFolder.createFolder(this._client, ...args);
755
682
  };
756
683
  TelegramClient.prototype.deleteFolder = function(...args) {
757
- return updateProfile.deleteFolder(this._client, ...args);
684
+ return deleteFolder.deleteFolder(this._client, ...args);
758
685
  };
759
686
  TelegramClient.prototype.editFolder = function(...args) {
760
- return updateProfile.editFolder(this._client, ...args);
687
+ return editFolder.editFolder(this._client, ...args);
761
688
  };
762
689
  TelegramClient.prototype.findDialogs = function(...args) {
763
- return updateProfile.findDialogs(this._client, ...args);
690
+ return findDialogs.findDialogs(this._client, ...args);
764
691
  };
765
692
  TelegramClient.prototype.findFolder = function(...args) {
766
- return updateProfile.findFolder(this._client, ...args);
693
+ return findFolder.findFolder(this._client, ...args);
767
694
  };
768
695
  TelegramClient.prototype.getChatlistPreview = function(...args) {
769
- return updateProfile.getChatlistPreview(this._client, ...args);
696
+ return getChatlistPreview.getChatlistPreview(this._client, ...args);
770
697
  };
771
698
  TelegramClient.prototype.getFolders = function(...args) {
772
- return updateProfile.getFolders(this._client, ...args);
699
+ return getFolders.getFolders(this._client, ...args);
773
700
  };
774
701
  TelegramClient.prototype.getPeerDialogs = function(...args) {
775
- return storyViewer.getPeerDialogs(this._client, ...args);
702
+ return getPeerDialogs.getPeerDialogs(this._client, ...args);
776
703
  };
777
704
  TelegramClient.prototype.iterDialogs = function(...args) {
778
- return updateProfile.iterDialogs(this._client, ...args);
705
+ return iterDialogs.iterDialogs(this._client, ...args);
779
706
  };
780
707
  TelegramClient.prototype.joinChatlist = function(...args) {
781
- return updateProfile.joinChatlist(this._client, ...args);
708
+ return joinChatlist.joinChatlist(this._client, ...args);
782
709
  };
783
710
  TelegramClient.prototype.setFoldersOrder = function(...args) {
784
- return updateProfile.setFoldersOrder(this._client, ...args);
711
+ return setFoldersOrder.setFoldersOrder(this._client, ...args);
785
712
  };
786
713
  TelegramClient.prototype.downloadAsBuffer = function(...args) {
787
- return updateProfile.downloadAsBuffer(this._client, ...args);
714
+ return downloadBuffer.downloadAsBuffer(this._client, ...args);
788
715
  };
789
716
  TelegramClient.prototype.downloadAsIterable = function(...args) {
790
- return updateProfile.downloadAsIterable(this._client, ...args);
717
+ return downloadIterable.downloadAsIterable(this._client, ...args);
791
718
  };
792
719
  TelegramClient.prototype.downloadAsStream = function(...args) {
793
- return updateProfile.downloadAsStream(this._client, ...args);
720
+ return downloadStream.downloadAsStream(this._client, ...args);
794
721
  };
795
722
  TelegramClient.prototype._normalizeInputFile = function(...args) {
796
- return storyViewer._normalizeInputFile(this._client, ...args);
723
+ return normalizeInputFile._normalizeInputFile(this._client, ...args);
797
724
  };
798
725
  TelegramClient.prototype._normalizeInputMedia = function(...args) {
799
- return storyViewer._normalizeInputMedia(this._client, ...args);
726
+ return normalizeInputMedia._normalizeInputMedia(this._client, ...args);
800
727
  };
801
728
  TelegramClient.prototype.uploadFile = function(...args) {
802
- return storyViewer.uploadFile(this._client, ...args);
729
+ return uploadFile.uploadFile(this._client, ...args);
803
730
  };
804
731
  TelegramClient.prototype.uploadMedia = function(...args) {
805
- return updateProfile.uploadMedia(this._client, ...args);
732
+ return uploadMedia.uploadMedia(this._client, ...args);
806
733
  };
807
734
  TelegramClient.prototype.createForumTopic = function(...args) {
808
- return updateProfile.createForumTopic(this._client, ...args);
735
+ return createForumTopic.createForumTopic(this._client, ...args);
809
736
  };
810
737
  TelegramClient.prototype.deleteForumTopicHistory = function(...args) {
811
- return updateProfile.deleteForumTopicHistory(this._client, ...args);
738
+ return deleteForumTopicHistory.deleteForumTopicHistory(this._client, ...args);
812
739
  };
813
740
  TelegramClient.prototype.editForumTopic = function(...args) {
814
- return updateProfile.editForumTopic(this._client, ...args);
741
+ return editForumTopic.editForumTopic(this._client, ...args);
815
742
  };
816
743
  TelegramClient.prototype.getForumTopicsById = function(...args) {
817
- return updateProfile.getForumTopicsById(this._client, ...args);
744
+ return getForumTopicsById.getForumTopicsById(this._client, ...args);
818
745
  };
819
746
  TelegramClient.prototype.getForumTopics = function(...args) {
820
- return updateProfile.getForumTopics(this._client, ...args);
747
+ return getForumTopics.getForumTopics(this._client, ...args);
821
748
  };
822
749
  TelegramClient.prototype.iterForumTopics = function(...args) {
823
- return updateProfile.iterForumTopics(this._client, ...args);
750
+ return iterForumTopics.iterForumTopics(this._client, ...args);
824
751
  };
825
752
  TelegramClient.prototype.reorderPinnedForumTopics = function(...args) {
826
- return updateProfile.reorderPinnedForumTopics(this._client, ...args);
753
+ return reorderPinnedForumTopics.reorderPinnedForumTopics(this._client, ...args);
827
754
  };
828
755
  TelegramClient.prototype.toggleForumTopicClosed = function(...args) {
829
- return updateProfile.toggleForumTopicClosed(this._client, ...args);
756
+ return toggleForumTopicClosed.toggleForumTopicClosed(this._client, ...args);
830
757
  };
831
758
  TelegramClient.prototype.toggleForumTopicPinned = function(...args) {
832
- return updateProfile.toggleForumTopicPinned(this._client, ...args);
759
+ return toggleForumTopicPinned.toggleForumTopicPinned(this._client, ...args);
833
760
  };
834
761
  TelegramClient.prototype.toggleForum = function(...args) {
835
- return updateProfile.toggleForum(this._client, ...args);
762
+ return toggleForum.toggleForum(this._client, ...args);
836
763
  };
837
764
  TelegramClient.prototype.toggleGeneralTopicHidden = function(...args) {
838
- return updateProfile.toggleGeneralTopicHidden(this._client, ...args);
765
+ return toggleGeneralTopicHidden.toggleGeneralTopicHidden(this._client, ...args);
839
766
  };
840
767
  TelegramClient.prototype.createInviteLink = function(...args) {
841
- return updateProfile.createInviteLink(this._client, ...args);
768
+ return createInviteLink.createInviteLink(this._client, ...args);
842
769
  };
843
770
  TelegramClient.prototype.editInviteLink = function(...args) {
844
- return updateProfile.editInviteLink(this._client, ...args);
771
+ return editInviteLink.editInviteLink(this._client, ...args);
845
772
  };
846
773
  TelegramClient.prototype.exportInviteLink = function(...args) {
847
- return updateProfile.exportInviteLink(this._client, ...args);
774
+ return exportInviteLink.exportInviteLink(this._client, ...args);
848
775
  };
849
776
  TelegramClient.prototype.getInviteLinkMembers = function(...args) {
850
- return updateProfile.getInviteLinkMembers(this._client, ...args);
777
+ return getInviteLinkMembers.getInviteLinkMembers(this._client, ...args);
851
778
  };
852
779
  TelegramClient.prototype.getInviteLink = function(...args) {
853
- return updateProfile.getInviteLink(this._client, ...args);
780
+ return getInviteLink.getInviteLink(this._client, ...args);
854
781
  };
855
782
  TelegramClient.prototype.getInviteLinks = function(...args) {
856
- return updateProfile.getInviteLinks(this._client, ...args);
783
+ return getInviteLinks.getInviteLinks(this._client, ...args);
857
784
  };
858
785
  TelegramClient.prototype.getPrimaryInviteLink = function(...args) {
859
- return updateProfile.getPrimaryInviteLink(this._client, ...args);
786
+ return getPrimaryInviteLink.getPrimaryInviteLink(this._client, ...args);
860
787
  };
861
788
  TelegramClient.prototype.hideAllJoinRequests = function(...args) {
862
- return updateProfile.hideAllJoinRequests(this._client, ...args);
789
+ return hideAllJoinRequests.hideAllJoinRequests(this._client, ...args);
863
790
  };
864
791
  TelegramClient.prototype.hideJoinRequest = function(...args) {
865
- return updateProfile.hideJoinRequest(this._client, ...args);
792
+ return hideJoinRequest.hideJoinRequest(this._client, ...args);
866
793
  };
867
794
  TelegramClient.prototype.iterInviteLinkMembers = function(...args) {
868
- return updateProfile.iterInviteLinkMembers(this._client, ...args);
795
+ return iterInviteLinkMembers.iterInviteLinkMembers(this._client, ...args);
869
796
  };
870
797
  TelegramClient.prototype.iterInviteLinks = function(...args) {
871
- return updateProfile.iterInviteLinks(this._client, ...args);
798
+ return iterInviteLinks.iterInviteLinks(this._client, ...args);
872
799
  };
873
800
  TelegramClient.prototype.revokeInviteLink = function(...args) {
874
- return updateProfile.revokeInviteLink(this._client, ...args);
801
+ return revokeInviteLink.revokeInviteLink(this._client, ...args);
875
802
  };
876
803
  TelegramClient.prototype.closePoll = function(...args) {
877
- return updateProfile.closePoll(this._client, ...args);
804
+ return closePoll.closePoll(this._client, ...args);
878
805
  };
879
806
  TelegramClient.prototype.deleteMessagesById = function(...args) {
880
- return updateProfile.deleteMessagesById(this._client, ...args);
807
+ return deleteMessages.deleteMessagesById(this._client, ...args);
881
808
  };
882
809
  TelegramClient.prototype.deleteMessages = function(...args) {
883
- return updateProfile.deleteMessages(this._client, ...args);
810
+ return deleteMessages.deleteMessages(this._client, ...args);
884
811
  };
885
812
  TelegramClient.prototype.deleteScheduledMessages = function(...args) {
886
- return updateProfile.deleteScheduledMessages(this._client, ...args);
813
+ return deleteScheduledMessages.deleteScheduledMessages(this._client, ...args);
887
814
  };
888
815
  TelegramClient.prototype.editInlineMessage = function(...args) {
889
- return updateProfile.editInlineMessage(this._client, ...args);
816
+ return editInlineMessage.editInlineMessage(this._client, ...args);
890
817
  };
891
818
  TelegramClient.prototype.editMessage = function(...args) {
892
- return updateProfile.editMessage(this._client, ...args);
819
+ return editMessage.editMessage(this._client, ...args);
893
820
  };
894
821
  TelegramClient.prototype.forwardMessagesById = function(...args) {
895
- return updateProfile.forwardMessagesById(this._client, ...args);
822
+ return forwardMessages.forwardMessagesById(this._client, ...args);
896
823
  };
897
824
  TelegramClient.prototype.forwardMessages = function(...args) {
898
- return updateProfile.forwardMessages(this._client, ...args);
825
+ return forwardMessages.forwardMessages(this._client, ...args);
899
826
  };
900
827
  TelegramClient.prototype.getAllScheduledMessages = function(...args) {
901
- return updateProfile.getAllScheduledMessages(this._client, ...args);
828
+ return getAllScheduledMessages.getAllScheduledMessages(this._client, ...args);
902
829
  };
903
830
  TelegramClient.prototype.getAvailableMessageEffects = function(...args) {
904
- return updateProfile.getAvailableMessageEffects(this._client, ...args);
831
+ return getAvailableEffects.getAvailableMessageEffects(this._client, ...args);
905
832
  };
906
833
  TelegramClient.prototype.getCallbackQueryMessage = function(...args) {
907
- return updateProfile.getCallbackQueryMessage(this._client, ...args);
834
+ return getCallbackQueryMessage.getCallbackQueryMessage(this._client, ...args);
908
835
  };
909
836
  TelegramClient.prototype.getDiscussionMessage = function(...args) {
910
- return storyViewer.getDiscussionMessage(this._client, ...args);
837
+ return getDiscussionMessage.getDiscussionMessage(this._client, ...args);
911
838
  };
912
839
  TelegramClient.prototype.getFactCheck = function(...args) {
913
- return updateProfile.getFactCheck(this._client, ...args);
840
+ return getFactCheck.getFactCheck(this._client, ...args);
914
841
  };
915
842
  TelegramClient.prototype.getHistory = function(...args) {
916
- return updateProfile.getHistory(this._client, ...args);
843
+ return getHistory.getHistory(this._client, ...args);
917
844
  };
918
845
  TelegramClient.prototype.getMessageByLink = function(...args) {
919
- return updateProfile.getMessageByLink(this._client, ...args);
846
+ return getMessageByLink.getMessageByLink(this._client, ...args);
920
847
  };
921
848
  TelegramClient.prototype.getMessageGroup = function(...args) {
922
- return updateProfile.getMessageGroup(this._client, ...args);
849
+ return getMessageGroup.getMessageGroup(this._client, ...args);
923
850
  };
924
851
  TelegramClient.prototype.getMessageReactionsById = function(...args) {
925
- return updateProfile.getMessageReactionsById(this._client, ...args);
852
+ return getMessageReactions.getMessageReactionsById(this._client, ...args);
926
853
  };
927
854
  TelegramClient.prototype.getMessageReactions = function(...args) {
928
- return updateProfile.getMessageReactions(this._client, ...args);
855
+ return getMessageReactions.getMessageReactions(this._client, ...args);
929
856
  };
930
857
  TelegramClient.prototype.getMessagesUnsafe = function(...args) {
931
- return updateProfile.getMessagesUnsafe(this._client, ...args);
858
+ return getMessagesUnsafe.getMessagesUnsafe(this._client, ...args);
932
859
  };
933
860
  TelegramClient.prototype.getMessages = function(...args) {
934
- return storyViewer.getMessages(this._client, ...args);
861
+ return getMessages.getMessages(this._client, ...args);
935
862
  };
936
863
  TelegramClient.prototype.getReactionUsers = function(...args) {
937
- return updateProfile.getReactionUsers(this._client, ...args);
864
+ return getReactionUsers.getReactionUsers(this._client, ...args);
938
865
  };
939
866
  TelegramClient.prototype.getReplyTo = function(...args) {
940
- return updateProfile.getReplyTo(this._client, ...args);
867
+ return getReplyTo.getReplyTo(this._client, ...args);
941
868
  };
942
869
  TelegramClient.prototype.getScheduledMessages = function(...args) {
943
- return updateProfile.getScheduledMessages(this._client, ...args);
870
+ return getScheduledMessages.getScheduledMessages(this._client, ...args);
944
871
  };
945
872
  TelegramClient.prototype.iterHistory = function(...args) {
946
- return updateProfile.iterHistory(this._client, ...args);
873
+ return iterHistory.iterHistory(this._client, ...args);
947
874
  };
948
875
  TelegramClient.prototype.iterReactionUsers = function(...args) {
949
- return updateProfile.iterReactionUsers(this._client, ...args);
876
+ return iterReactionUsers.iterReactionUsers(this._client, ...args);
950
877
  };
951
878
  TelegramClient.prototype.iterSearchGlobal = function(...args) {
952
- return updateProfile.iterSearchGlobal(this._client, ...args);
879
+ return iterSearchGlobal.iterSearchGlobal(this._client, ...args);
953
880
  };
954
881
  TelegramClient.prototype.iterSearchMessages = function(...args) {
955
- return updateProfile.iterSearchMessages(this._client, ...args);
882
+ return iterSearchMessages.iterSearchMessages(this._client, ...args);
956
883
  };
957
884
  TelegramClient.prototype.pinMessage = function(...args) {
958
- return updateProfile.pinMessage(this._client, ...args);
885
+ return pinMessage.pinMessage(this._client, ...args);
959
886
  };
960
887
  TelegramClient.prototype.readHistory = function(...args) {
961
- return storyViewer.readHistory(this._client, ...args);
888
+ return readHistory.readHistory(this._client, ...args);
962
889
  };
963
890
  TelegramClient.prototype.readReactions = function(...args) {
964
- return updateProfile.readReactions(this._client, ...args);
891
+ return readReactions.readReactions(this._client, ...args);
965
892
  };
966
893
  TelegramClient.prototype.searchGlobal = function(...args) {
967
- return updateProfile.searchGlobal(this._client, ...args);
894
+ return searchGlobal.searchGlobal(this._client, ...args);
968
895
  };
969
896
  TelegramClient.prototype.searchHashtag = function(...args) {
970
- return updateProfile.searchHashtag(this._client, ...args);
897
+ return searchHashtag.searchHashtag(this._client, ...args);
971
898
  };
972
899
  TelegramClient.prototype.iterSearchHashtag = function(...args) {
973
- return updateProfile.iterSearchHashtag(this._client, ...args);
900
+ return searchHashtag.iterSearchHashtag(this._client, ...args);
974
901
  };
975
902
  TelegramClient.prototype.searchMessages = function(...args) {
976
- return updateProfile.searchMessages(this._client, ...args);
903
+ return searchMessages.searchMessages(this._client, ...args);
977
904
  };
978
905
  TelegramClient.prototype.answerText = function(...args) {
979
- return updateProfile.answerText(this._client, ...args);
906
+ return sendAnswer.answerText(this._client, ...args);
980
907
  };
981
908
  TelegramClient.prototype.answerMedia = function(...args) {
982
- return updateProfile.answerMedia(this._client, ...args);
909
+ return sendAnswer.answerMedia(this._client, ...args);
983
910
  };
984
911
  TelegramClient.prototype.answerMediaGroup = function(...args) {
985
- return updateProfile.answerMediaGroup(this._client, ...args);
912
+ return sendAnswer.answerMediaGroup(this._client, ...args);
986
913
  };
987
914
  TelegramClient.prototype.commentText = function(...args) {
988
- return updateProfile.commentText(this._client, ...args);
915
+ return sendComment.commentText(this._client, ...args);
989
916
  };
990
917
  TelegramClient.prototype.commentMedia = function(...args) {
991
- return updateProfile.commentMedia(this._client, ...args);
918
+ return sendComment.commentMedia(this._client, ...args);
992
919
  };
993
920
  TelegramClient.prototype.commentMediaGroup = function(...args) {
994
- return updateProfile.commentMediaGroup(this._client, ...args);
921
+ return sendComment.commentMediaGroup(this._client, ...args);
995
922
  };
996
923
  TelegramClient.prototype.sendCopyGroup = function(...args) {
997
- return updateProfile.sendCopyGroup(this._client, ...args);
924
+ return sendCopyGroup.sendCopyGroup(this._client, ...args);
998
925
  };
999
926
  TelegramClient.prototype.sendCopy = function(...args) {
1000
- return updateProfile.sendCopy(this._client, ...args);
927
+ return sendCopy.sendCopy(this._client, ...args);
1001
928
  };
1002
929
  TelegramClient.prototype.sendMediaGroup = function(...args) {
1003
- return storyViewer.sendMediaGroup(this._client, ...args);
930
+ return sendMediaGroup.sendMediaGroup(this._client, ...args);
1004
931
  };
1005
932
  TelegramClient.prototype.sendMedia = function(...args) {
1006
- return storyViewer.sendMedia(this._client, ...args);
933
+ return sendMedia.sendMedia(this._client, ...args);
1007
934
  };
1008
935
  TelegramClient.prototype.sendPaidReaction = function(...args) {
1009
- return updateProfile.sendPaidReaction(this._client, ...args);
936
+ return sendPaidReaction.sendPaidReaction(this._client, ...args);
1010
937
  };
1011
938
  TelegramClient.prototype.quoteWithText = function(...args) {
1012
- return updateProfile.quoteWithText(this._client, ...args);
939
+ return sendQuote.quoteWithText(this._client, ...args);
1013
940
  };
1014
941
  TelegramClient.prototype.quoteWithMedia = function(...args) {
1015
- return updateProfile.quoteWithMedia(this._client, ...args);
942
+ return sendQuote.quoteWithMedia(this._client, ...args);
1016
943
  };
1017
944
  TelegramClient.prototype.quoteWithMediaGroup = function(...args) {
1018
- return updateProfile.quoteWithMediaGroup(this._client, ...args);
945
+ return sendQuote.quoteWithMediaGroup(this._client, ...args);
1019
946
  };
1020
947
  TelegramClient.prototype.sendReaction = function(...args) {
1021
- return updateProfile.sendReaction(this._client, ...args);
948
+ return sendReaction.sendReaction(this._client, ...args);
1022
949
  };
1023
950
  TelegramClient.prototype.replyText = function(...args) {
1024
- return updateProfile.replyText(this._client, ...args);
951
+ return sendReply.replyText(this._client, ...args);
1025
952
  };
1026
953
  TelegramClient.prototype.replyMedia = function(...args) {
1027
- return updateProfile.replyMedia(this._client, ...args);
954
+ return sendReply.replyMedia(this._client, ...args);
1028
955
  };
1029
956
  TelegramClient.prototype.replyMediaGroup = function(...args) {
1030
- return updateProfile.replyMediaGroup(this._client, ...args);
957
+ return sendReply.replyMediaGroup(this._client, ...args);
1031
958
  };
1032
959
  TelegramClient.prototype.sendScheduled = function(...args) {
1033
- return updateProfile.sendScheduled(this._client, ...args);
960
+ return sendScheduled.sendScheduled(this._client, ...args);
1034
961
  };
1035
962
  TelegramClient.prototype.sendText = function(...args) {
1036
- return storyViewer.sendText(this._client, ...args);
963
+ return sendText.sendText(this._client, ...args);
1037
964
  };
1038
965
  TelegramClient.prototype.sendTyping = function(...args) {
1039
- return updateProfile.sendTyping(this._client, ...args);
966
+ return sendTyping.sendTyping(this._client, ...args);
1040
967
  };
1041
968
  TelegramClient.prototype.sendVote = function(...args) {
1042
- return updateProfile.sendVote(this._client, ...args);
969
+ return sendVote.sendVote(this._client, ...args);
970
+ };
971
+ TelegramClient.prototype.setTyping = function(...args) {
972
+ return setTyping.setTyping(this._client, ...args);
1043
973
  };
1044
974
  TelegramClient.prototype.translateMessage = function(...args) {
1045
- return updateProfile.translateMessage(this._client, ...args);
975
+ return translateMessage.translateMessage(this._client, ...args);
1046
976
  };
1047
977
  TelegramClient.prototype.translateText = function(...args) {
1048
- return updateProfile.translateText(this._client, ...args);
978
+ return translateText.translateText(this._client, ...args);
1049
979
  };
1050
980
  TelegramClient.prototype.unpinAllMessages = function(...args) {
1051
- return updateProfile.unpinAllMessages(this._client, ...args);
981
+ return unpinAllMessages.unpinAllMessages(this._client, ...args);
1052
982
  };
1053
983
  TelegramClient.prototype.unpinMessage = function(...args) {
1054
- return updateProfile.unpinMessage(this._client, ...args);
984
+ return unpinMessage.unpinMessage(this._client, ...args);
1055
985
  };
1056
986
  TelegramClient.prototype.getCollectibleInfo = function(...args) {
1057
- return updateProfile.getCollectibleInfo(this._client, ...args);
987
+ return getCollectibleInfo.getCollectibleInfo(this._client, ...args);
1058
988
  };
1059
989
  TelegramClient.prototype.initTakeoutSession = function(...args) {
1060
- return updateProfile.initTakeoutSession(this._client, ...args);
990
+ return initTakeoutSession.initTakeoutSession(this._client, ...args);
1061
991
  };
1062
992
  TelegramClient.prototype._normalizePrivacyRules = function(...args) {
1063
- return updateProfile._normalizePrivacyRules(this._client, ...args);
993
+ return normalizePrivacyRules._normalizePrivacyRules(this._client, ...args);
1064
994
  };
1065
995
  TelegramClient.prototype.changeCloudPassword = function(...args) {
1066
- return updateProfile.changeCloudPassword(this._client, ...args);
996
+ return changeCloudPassword.changeCloudPassword(this._client, ...args);
1067
997
  };
1068
998
  TelegramClient.prototype.enableCloudPassword = function(...args) {
1069
- return updateProfile.enableCloudPassword(this._client, ...args);
999
+ return enableCloudPassword.enableCloudPassword(this._client, ...args);
1070
1000
  };
1071
1001
  TelegramClient.prototype.verifyPasswordEmail = function(...args) {
1072
- return updateProfile.verifyPasswordEmail(this._client, ...args);
1002
+ return passwordEmail.verifyPasswordEmail(this._client, ...args);
1073
1003
  };
1074
1004
  TelegramClient.prototype.resendPasswordEmail = function(...args) {
1075
- return updateProfile.resendPasswordEmail(this._client, ...args);
1005
+ return passwordEmail.resendPasswordEmail(this._client, ...args);
1076
1006
  };
1077
1007
  TelegramClient.prototype.cancelPasswordEmail = function(...args) {
1078
- return updateProfile.cancelPasswordEmail(this._client, ...args);
1008
+ return passwordEmail.cancelPasswordEmail(this._client, ...args);
1079
1009
  };
1080
1010
  TelegramClient.prototype.removeCloudPassword = function(...args) {
1081
- return updateProfile.removeCloudPassword(this._client, ...args);
1011
+ return removeCloudPassword.removeCloudPassword(this._client, ...args);
1082
1012
  };
1083
1013
  TelegramClient.prototype.acceptStarGift = function(...args) {
1084
- return updateProfile.acceptStarGift(this._client, ...args);
1014
+ return acceptStarGift.acceptStarGift(this._client, ...args);
1085
1015
  };
1086
1016
  TelegramClient.prototype.applyBoost = function(...args) {
1087
- return updateProfile.applyBoost(this._client, ...args);
1017
+ return applyBoost.applyBoost(this._client, ...args);
1088
1018
  };
1089
1019
  TelegramClient.prototype.canApplyBoost = function(...args) {
1090
- return updateProfile.canApplyBoost(this._client, ...args);
1020
+ return canApplyBoost.canApplyBoost(this._client, ...args);
1091
1021
  };
1092
1022
  TelegramClient.prototype.createBusinessChatLink = function(...args) {
1093
- return updateProfile.createBusinessChatLink(this._client, ...args);
1023
+ return createBusinessChatLink.createBusinessChatLink(this._client, ...args);
1094
1024
  };
1095
1025
  TelegramClient.prototype.editBusinessChatLink = function(...args) {
1096
- return updateProfile.editBusinessChatLink(this._client, ...args);
1026
+ return editBusinessChatLink.editBusinessChatLink(this._client, ...args);
1097
1027
  };
1098
1028
  TelegramClient.prototype.deleteBusinessChatLink = function(...args) {
1099
- return updateProfile.deleteBusinessChatLink(this._client, ...args);
1029
+ return editBusinessChatLink.deleteBusinessChatLink(this._client, ...args);
1100
1030
  };
1101
1031
  TelegramClient.prototype.getBoostStats = function(...args) {
1102
- return updateProfile.getBoostStats(this._client, ...args);
1032
+ return getBoostStats.getBoostStats(this._client, ...args);
1103
1033
  };
1104
1034
  TelegramClient.prototype.getBoosts = function(...args) {
1105
- return updateProfile.getBoosts(this._client, ...args);
1035
+ return getBoosts.getBoosts(this._client, ...args);
1106
1036
  };
1107
1037
  TelegramClient.prototype.getBusinessChatLinks = function(...args) {
1108
- return updateProfile.getBusinessChatLinks(this._client, ...args);
1038
+ return getBusinessChatLinks.getBusinessChatLinks(this._client, ...args);
1109
1039
  };
1110
1040
  TelegramClient.prototype.getBusinessConnection = function(...args) {
1111
- return storyViewer.getBusinessConnection(this._client, ...args);
1041
+ return getBusinessConnection.getBusinessConnection(this._client, ...args);
1112
1042
  };
1113
1043
  TelegramClient.prototype.getMyBoostSlots = function(...args) {
1114
- return updateProfile.getMyBoostSlots(this._client, ...args);
1044
+ return getMyBoostSlots.getMyBoostSlots(this._client, ...args);
1115
1045
  };
1116
1046
  TelegramClient.prototype.getStarGiftOptions = function(...args) {
1117
- return updateProfile.getStarGiftOptions(this._client, ...args);
1047
+ return getStarGiftOptions.getStarGiftOptions(this._client, ...args);
1118
1048
  };
1119
1049
  TelegramClient.prototype.getStarGifts = function(...args) {
1120
- return updateProfile.getStarGifts(this._client, ...args);
1050
+ return getStarGifts.getStarGifts(this._client, ...args);
1121
1051
  };
1122
1052
  TelegramClient.prototype.getStarsTransactions = function(...args) {
1123
- return updateProfile.getStarsTransactions(this._client, ...args);
1053
+ return getStarsTransactions.getStarsTransactions(this._client, ...args);
1124
1054
  };
1125
1055
  TelegramClient.prototype.iterBoosters = function(...args) {
1126
- return updateProfile.iterBoosters(this._client, ...args);
1056
+ return iterBoosters.iterBoosters(this._client, ...args);
1127
1057
  };
1128
1058
  TelegramClient.prototype.iterStarGifts = function(...args) {
1129
- return updateProfile.iterStarGifts(this._client, ...args);
1059
+ return iterStarGifts.iterStarGifts(this._client, ...args);
1130
1060
  };
1131
1061
  TelegramClient.prototype.iterStarsTransactions = function(...args) {
1132
- return updateProfile.iterStarsTransactions(this._client, ...args);
1062
+ return iterStarsTransactions.iterStarsTransactions(this._client, ...args);
1133
1063
  };
1134
1064
  TelegramClient.prototype.sendStarGift = function(...args) {
1135
- return updateProfile.sendStarGift(this._client, ...args);
1065
+ return sendStarGift.sendStarGift(this._client, ...args);
1136
1066
  };
1137
1067
  TelegramClient.prototype.setBusinessIntro = function(...args) {
1138
- return updateProfile.setBusinessIntro(this._client, ...args);
1068
+ return setBusinessIntro.setBusinessIntro(this._client, ...args);
1139
1069
  };
1140
1070
  TelegramClient.prototype.setBusinessWorkHours = function(...args) {
1141
- return updateProfile.setBusinessWorkHours(this._client, ...args);
1071
+ return setBusinessWorkHours.setBusinessWorkHours(this._client, ...args);
1142
1072
  };
1143
1073
  TelegramClient.prototype.addStickerToSet = function(...args) {
1144
- return updateProfile.addStickerToSet(this._client, ...args);
1074
+ return addStickerToSet.addStickerToSet(this._client, ...args);
1145
1075
  };
1146
1076
  TelegramClient.prototype.createStickerSet = function(...args) {
1147
- return updateProfile.createStickerSet(this._client, ...args);
1077
+ return createStickerSet.createStickerSet(this._client, ...args);
1148
1078
  };
1149
1079
  TelegramClient.prototype.deleteStickerFromSet = function(...args) {
1150
- return updateProfile.deleteStickerFromSet(this._client, ...args);
1080
+ return deleteStickerFromSet.deleteStickerFromSet(this._client, ...args);
1151
1081
  };
1152
1082
  TelegramClient.prototype.getCustomEmojis = function(...args) {
1153
- return updateProfile.getCustomEmojis(this._client, ...args);
1083
+ return getCustomEmojis.getCustomEmojis(this._client, ...args);
1154
1084
  };
1155
1085
  TelegramClient.prototype.getCustomEmojisFromMessages = function(...args) {
1156
- return updateProfile.getCustomEmojisFromMessages(this._client, ...args);
1086
+ return getCustomEmojis.getCustomEmojisFromMessages(this._client, ...args);
1157
1087
  };
1158
1088
  TelegramClient.prototype.getInstalledStickers = function(...args) {
1159
- return updateProfile.getInstalledStickers(this._client, ...args);
1089
+ return getInstalledStickers.getInstalledStickers(this._client, ...args);
1160
1090
  };
1161
1091
  TelegramClient.prototype.getMyStickerSets = function(...args) {
1162
- return updateProfile.getMyStickerSets(this._client, ...args);
1092
+ return getMyStickerSets.getMyStickerSets(this._client, ...args);
1163
1093
  };
1164
1094
  TelegramClient.prototype.getStickerSet = function(...args) {
1165
- return updateProfile.getStickerSet(this._client, ...args);
1095
+ return getStickerSet.getStickerSet(this._client, ...args);
1166
1096
  };
1167
1097
  TelegramClient.prototype.moveStickerInSet = function(...args) {
1168
- return updateProfile.moveStickerInSet(this._client, ...args);
1098
+ return moveStickerInSet.moveStickerInSet(this._client, ...args);
1169
1099
  };
1170
1100
  TelegramClient.prototype.replaceStickerInSet = function(...args) {
1171
- return updateProfile.replaceStickerInSet(this._client, ...args);
1101
+ return replaceStickerInSet.replaceStickerInSet(this._client, ...args);
1172
1102
  };
1173
1103
  TelegramClient.prototype.setChatStickerSet = function(...args) {
1174
- return updateProfile.setChatStickerSet(this._client, ...args);
1104
+ return setChatStickerSet.setChatStickerSet(this._client, ...args);
1175
1105
  };
1176
1106
  TelegramClient.prototype.setStickerSetThumb = function(...args) {
1177
- return updateProfile.setStickerSetThumb(this._client, ...args);
1107
+ return setStickerSetThumb.setStickerSetThumb(this._client, ...args);
1178
1108
  };
1179
1109
  TelegramClient.prototype.canSendStory = function(...args) {
1180
- return updateProfile.canSendStory(this._client, ...args);
1110
+ return canSendStory.canSendStory(this._client, ...args);
1181
1111
  };
1182
1112
  TelegramClient.prototype.deleteStories = function(...args) {
1183
- return updateProfile.deleteStories(this._client, ...args);
1113
+ return deleteStories.deleteStories(this._client, ...args);
1184
1114
  };
1185
1115
  TelegramClient.prototype.editStory = function(...args) {
1186
- return updateProfile.editStory(this._client, ...args);
1116
+ return editStory.editStory(this._client, ...args);
1187
1117
  };
1188
1118
  TelegramClient.prototype.getAllStories = function(...args) {
1189
- return updateProfile.getAllStories(this._client, ...args);
1119
+ return getAllStories.getAllStories(this._client, ...args);
1190
1120
  };
1191
1121
  TelegramClient.prototype.getPeerStories = function(...args) {
1192
- return updateProfile.getPeerStories(this._client, ...args);
1122
+ return getPeerStories.getPeerStories(this._client, ...args);
1193
1123
  };
1194
1124
  TelegramClient.prototype.getProfileStories = function(...args) {
1195
- return updateProfile.getProfileStories(this._client, ...args);
1125
+ return getProfileStories.getProfileStories(this._client, ...args);
1196
1126
  };
1197
1127
  TelegramClient.prototype.getStoriesById = function(...args) {
1198
- return updateProfile.getStoriesById(this._client, ...args);
1128
+ return getStoriesById.getStoriesById(this._client, ...args);
1199
1129
  };
1200
1130
  TelegramClient.prototype.getStoriesInteractions = function(...args) {
1201
- return updateProfile.getStoriesInteractions(this._client, ...args);
1131
+ return getStoriesInteractions.getStoriesInteractions(this._client, ...args);
1202
1132
  };
1203
1133
  TelegramClient.prototype.getStoryLink = function(...args) {
1204
- return updateProfile.getStoryLink(this._client, ...args);
1134
+ return getStoryLink.getStoryLink(this._client, ...args);
1205
1135
  };
1206
1136
  TelegramClient.prototype.getStoryViewers = function(...args) {
1207
- return updateProfile.getStoryViewers(this._client, ...args);
1137
+ return getStoryViewers.getStoryViewers(this._client, ...args);
1208
1138
  };
1209
1139
  TelegramClient.prototype.hideMyStoriesViews = function(...args) {
1210
- return updateProfile.hideMyStoriesViews(this._client, ...args);
1140
+ return hideMyStoriesViews.hideMyStoriesViews(this._client, ...args);
1211
1141
  };
1212
1142
  TelegramClient.prototype.incrementStoriesViews = function(...args) {
1213
- return updateProfile.incrementStoriesViews(this._client, ...args);
1143
+ return incrementStoriesViews.incrementStoriesViews(this._client, ...args);
1214
1144
  };
1215
1145
  TelegramClient.prototype.iterAllStories = function(...args) {
1216
- return updateProfile.iterAllStories(this._client, ...args);
1146
+ return iterAllStories.iterAllStories(this._client, ...args);
1217
1147
  };
1218
1148
  TelegramClient.prototype.iterProfileStories = function(...args) {
1219
- return updateProfile.iterProfileStories(this._client, ...args);
1149
+ return iterProfileStories.iterProfileStories(this._client, ...args);
1220
1150
  };
1221
1151
  TelegramClient.prototype.iterStoryViewers = function(...args) {
1222
- return updateProfile.iterStoryViewers(this._client, ...args);
1152
+ return iterStoryViewers.iterStoryViewers(this._client, ...args);
1223
1153
  };
1224
1154
  TelegramClient.prototype.readStories = function(...args) {
1225
- return updateProfile.readStories(this._client, ...args);
1155
+ return readStories.readStories(this._client, ...args);
1226
1156
  };
1227
1157
  TelegramClient.prototype.sendStoryReaction = function(...args) {
1228
- return updateProfile.sendStoryReaction(this._client, ...args);
1158
+ return sendStoryReaction.sendStoryReaction(this._client, ...args);
1229
1159
  };
1230
1160
  TelegramClient.prototype.sendStory = function(...args) {
1231
- return updateProfile.sendStory(this._client, ...args);
1161
+ return sendStory.sendStory(this._client, ...args);
1232
1162
  };
1233
1163
  TelegramClient.prototype.togglePeerStoriesArchived = function(...args) {
1234
- return updateProfile.togglePeerStoriesArchived(this._client, ...args);
1164
+ return togglePeerStoriesArchived.togglePeerStoriesArchived(this._client, ...args);
1235
1165
  };
1236
1166
  TelegramClient.prototype.toggleStoriesPinned = function(...args) {
1237
- return updateProfile.toggleStoriesPinned(this._client, ...args);
1167
+ return toggleStoriesPinned.toggleStoriesPinned(this._client, ...args);
1238
1168
  };
1239
1169
  TelegramClient.prototype.blockUser = function(...args) {
1240
- return updateProfile.blockUser(this._client, ...args);
1170
+ return blockUser.blockUser(this._client, ...args);
1241
1171
  };
1242
1172
  TelegramClient.prototype.deleteProfilePhotos = function(...args) {
1243
- return updateProfile.deleteProfilePhotos(this._client, ...args);
1173
+ return deleteProfilePhotos.deleteProfilePhotos(this._client, ...args);
1244
1174
  };
1245
1175
  TelegramClient.prototype.editCloseFriendsRaw = function(...args) {
1246
- return updateProfile.editCloseFriendsRaw(this._client, ...args);
1176
+ return editCloseFriends.editCloseFriendsRaw(this._client, ...args);
1247
1177
  };
1248
1178
  TelegramClient.prototype.editCloseFriends = function(...args) {
1249
- return updateProfile.editCloseFriends(this._client, ...args);
1179
+ return editCloseFriends.editCloseFriends(this._client, ...args);
1250
1180
  };
1251
1181
  TelegramClient.prototype.getCommonChats = function(...args) {
1252
- return updateProfile.getCommonChats(this._client, ...args);
1182
+ return getCommonChats.getCommonChats(this._client, ...args);
1253
1183
  };
1254
1184
  TelegramClient.prototype.getGlobalTtl = function(...args) {
1255
- return updateProfile.getGlobalTtl(this._client, ...args);
1185
+ return getGlobalTtl.getGlobalTtl(this._client, ...args);
1256
1186
  };
1257
1187
  TelegramClient.prototype.getMe = function(...args) {
1258
- return updateProfile.getMe(this._client, ...args);
1188
+ return getMe.getMe(this._client, ...args);
1259
1189
  };
1260
1190
  TelegramClient.prototype.getMyUsername = function(...args) {
1261
- return updateProfile.getMyUsername(this._client, ...args);
1191
+ return getMyUsername.getMyUsername(this._client, ...args);
1262
1192
  };
1263
1193
  TelegramClient.prototype.getProfilePhoto = function(...args) {
1264
- return updateProfile.getProfilePhoto(this._client, ...args);
1194
+ return getProfilePhoto.getProfilePhoto(this._client, ...args);
1265
1195
  };
1266
1196
  TelegramClient.prototype.getProfilePhotos = function(...args) {
1267
- return updateProfile.getProfilePhotos(this._client, ...args);
1197
+ return getProfilePhotos.getProfilePhotos(this._client, ...args);
1268
1198
  };
1269
1199
  TelegramClient.prototype.getUsers = function(...args) {
1270
- return updateProfile.getUsers(this._client, ...args);
1200
+ return getUsers.getUsers(this._client, ...args);
1271
1201
  };
1272
1202
  TelegramClient.prototype.isPeerAvailable = function(...args) {
1273
- return updateProfile.isPeerAvailable(this._client, ...args);
1203
+ return isPeerAvailable.isPeerAvailable(this._client, ...args);
1274
1204
  };
1275
1205
  TelegramClient.prototype.iterProfilePhotos = function(...args) {
1276
- return updateProfile.iterProfilePhotos(this._client, ...args);
1206
+ return iterProfilePhotos.iterProfilePhotos(this._client, ...args);
1277
1207
  };
1278
1208
  TelegramClient.prototype.resolvePeerMany = function(...args) {
1279
- return storyViewer.resolvePeerMany(this._client, ...args);
1209
+ return resolvePeerMany.resolvePeerMany(this._client, ...args);
1280
1210
  };
1281
1211
  TelegramClient.prototype.resolvePeer = function(...args) {
1282
- return storyViewer.resolvePeer(this._client, ...args);
1212
+ return resolvePeer.resolvePeer(this._client, ...args);
1283
1213
  };
1284
1214
  TelegramClient.prototype.resolveUser = function(...args) {
1285
- return storyViewer.resolveUser(this._client, ...args);
1215
+ return resolvePeer.resolveUser(this._client, ...args);
1286
1216
  };
1287
1217
  TelegramClient.prototype.resolveChannel = function(...args) {
1288
- return storyViewer.resolveChannel(this._client, ...args);
1218
+ return resolvePeer.resolveChannel(this._client, ...args);
1219
+ };
1220
+ TelegramClient.prototype.setMyEmojiStatus = function(...args) {
1221
+ return setEmojiStatus.setMyEmojiStatus(this._client, ...args);
1222
+ };
1223
+ TelegramClient.prototype.setEmojiStatus = function(...args) {
1224
+ return setEmojiStatus.setEmojiStatus(this._client, ...args);
1289
1225
  };
1290
1226
  TelegramClient.prototype.setGlobalTtl = function(...args) {
1291
- return updateProfile.setGlobalTtl(this._client, ...args);
1227
+ return setGlobalTtl.setGlobalTtl(this._client, ...args);
1292
1228
  };
1293
1229
  TelegramClient.prototype.setMyBirthday = function(...args) {
1294
- return updateProfile.setMyBirthday(this._client, ...args);
1295
- };
1296
- TelegramClient.prototype.setMyEmojiStatus = function(...args) {
1297
- return updateProfile.setMyEmojiStatus(this._client, ...args);
1230
+ return setMyBirthday.setMyBirthday(this._client, ...args);
1298
1231
  };
1299
1232
  TelegramClient.prototype.setMyProfilePhoto = function(...args) {
1300
- return updateProfile.setMyProfilePhoto(this._client, ...args);
1233
+ return setMyProfilePhoto.setMyProfilePhoto(this._client, ...args);
1301
1234
  };
1302
1235
  TelegramClient.prototype.setMyUsername = function(...args) {
1303
- return updateProfile.setMyUsername(this._client, ...args);
1236
+ return setMyUsername.setMyUsername(this._client, ...args);
1237
+ };
1238
+ TelegramClient.prototype.sendOnline = function(...args) {
1239
+ return setOnline.sendOnline(this._client, ...args);
1304
1240
  };
1305
- TelegramClient.prototype.setOffline = function(...args) {
1306
- return updateProfile.setOffline(this._client, ...args);
1241
+ TelegramClient.prototype.setOnline = function(...args) {
1242
+ return setOnline.setOnline(this._client, ...args);
1307
1243
  };
1308
1244
  TelegramClient.prototype.unblockUser = function(...args) {
1309
- return updateProfile.unblockUser(this._client, ...args);
1245
+ return unblockUser.unblockUser(this._client, ...args);
1310
1246
  };
1311
1247
  TelegramClient.prototype.updateProfile = function(...args) {
1312
1248
  return updateProfile.updateProfile(this._client, ...args);
@@ -1347,12 +1283,6 @@ TelegramClient.prototype.importSession = function(...args) {
1347
1283
  TelegramClient.prototype.exportSession = function(...args) {
1348
1284
  return this._client.exportSession(...args);
1349
1285
  };
1350
- TelegramClient.prototype.onError = function(...args) {
1351
- return this._client.onError(...args);
1352
- };
1353
- TelegramClient.prototype.emitError = function(...args) {
1354
- return this._client.emitError(...args);
1355
- };
1356
1286
  TelegramClient.prototype.handleClientUpdate = function(...args) {
1357
1287
  return this._client.handleClientUpdate(...args);
1358
1288
  };
@@ -1371,23 +1301,14 @@ TelegramClient.prototype.computeSrpParams = function(...args) {
1371
1301
  TelegramClient.prototype.computeNewPasswordHash = function(...args) {
1372
1302
  return this._client.computeNewPasswordHash(...args);
1373
1303
  };
1374
- TelegramClient.prototype.onConnectionState = function(...args) {
1375
- return this._client.onConnectionState(...args);
1376
- };
1377
- TelegramClient.prototype.getServerUpdateHandler = function(...args) {
1378
- return this._client.getServerUpdateHandler(...args);
1379
- };
1380
1304
  TelegramClient.prototype.changePrimaryDc = function(...args) {
1381
1305
  return this._client.changePrimaryDc(...args);
1382
1306
  };
1383
1307
  TelegramClient.prototype.getMtprotoMessageId = function(...args) {
1384
1308
  return this._client.getMtprotoMessageId(...args);
1385
1309
  };
1386
- TelegramClient.prototype.onServerUpdate = function() {
1387
- throw new Error("onServerUpdate is not available for TelegramClient, use .on() methods instead");
1388
- };
1389
- TelegramClient.prototype.onUpdate = function() {
1390
- throw new Error("onUpdate is not available for TelegramClient, use .on() methods instead");
1310
+ TelegramClient.prototype.recreateDc = function(...args) {
1311
+ return this._client.recreateDc(...args);
1391
1312
  };
1392
- exports.BaseTelegramClient = BaseTelegramClient;
1313
+ exports.BaseTelegramClient = base.BaseTelegramClient;
1393
1314
  exports.TelegramClient = TelegramClient;