rubjs 2.9.3 → 3.0.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 (821) hide show
  1. package/README.md +33 -26
  2. package/lib/clients/VoiceChatClient.d.ts +30 -0
  3. package/lib/clients/VoiceChatClient.js +179 -0
  4. package/lib/clients/index.d.ts +3 -0
  5. package/lib/clients/index.js +10 -0
  6. package/lib/clients/loginClient.d.ts +47 -0
  7. package/lib/clients/loginClient.js +108 -0
  8. package/lib/core/client.d.ts +38 -0
  9. package/lib/core/client.js +53 -0
  10. package/lib/core/crypto.d.ts +12 -0
  11. package/lib/core/crypto.js +95 -0
  12. package/lib/core/filters.d.ts +33 -0
  13. package/lib/core/filters.js +153 -0
  14. package/lib/core/methods/advanced/builder.d.ts +3 -0
  15. package/lib/core/methods/advanced/builder.js +30 -0
  16. package/lib/core/methods/auth/logout.d.ts +3 -0
  17. package/lib/core/methods/auth/logout.js +6 -0
  18. package/lib/core/methods/auth/registerDevice.d.ts +3 -0
  19. package/lib/core/methods/auth/registerDevice.js +47 -0
  20. package/lib/core/methods/auth/sendCode.d.ts +3 -0
  21. package/lib/core/methods/auth/sendCode.js +16 -0
  22. package/lib/core/methods/auth/signIn.d.ts +3 -0
  23. package/lib/core/methods/auth/signIn.js +13 -0
  24. package/lib/core/methods/channels/addChannel.d.ts +3 -0
  25. package/lib/core/methods/channels/addChannel.js +15 -0
  26. package/lib/core/methods/channels/addChannelMembers.d.ts +3 -0
  27. package/lib/core/methods/channels/addChannelMembers.js +11 -0
  28. package/lib/core/methods/channels/banChannelMember.d.ts +3 -0
  29. package/lib/core/methods/channels/banChannelMember.js +14 -0
  30. package/lib/core/methods/channels/cancelChangeObjectOwner.d.ts +3 -0
  31. package/lib/core/methods/channels/cancelChangeObjectOwner.js +6 -0
  32. package/lib/core/methods/channels/channelPreviewByJoinLink.d.ts +3 -0
  33. package/lib/core/methods/channels/channelPreviewByJoinLink.js +8 -0
  34. package/lib/core/methods/channels/checkChannelUsername.d.ts +3 -0
  35. package/lib/core/methods/channels/checkChannelUsername.js +8 -0
  36. package/lib/core/methods/channels/createChannelVoiceChat.d.ts +3 -0
  37. package/lib/core/methods/channels/createChannelVoiceChat.js +6 -0
  38. package/lib/core/methods/channels/discardChannelVoiceChat.d.ts +3 -0
  39. package/lib/core/methods/channels/discardChannelVoiceChat.js +9 -0
  40. package/lib/core/methods/channels/editChannelInfo.d.ts +4 -0
  41. package/lib/core/methods/channels/editChannelInfo.js +39 -0
  42. package/lib/core/methods/channels/getBannedChannelMembers.d.ts +3 -0
  43. package/lib/core/methods/channels/getBannedChannelMembers.js +9 -0
  44. package/lib/core/methods/channels/getChannelAdminAccessList.d.ts +3 -0
  45. package/lib/core/methods/channels/getChannelAdminAccessList.js +9 -0
  46. package/lib/core/methods/channels/getChannelAdminMembers.d.ts +3 -0
  47. package/lib/core/methods/channels/getChannelAdminMembers.js +9 -0
  48. package/lib/core/methods/channels/getChannelAllMembers.d.ts +3 -0
  49. package/lib/core/methods/channels/getChannelAllMembers.js +10 -0
  50. package/lib/core/methods/channels/getChannelInfo.d.ts +3 -0
  51. package/lib/core/methods/channels/getChannelInfo.js +6 -0
  52. package/lib/core/methods/channels/getChannelLink.d.ts +3 -0
  53. package/lib/core/methods/channels/getChannelLink.js +6 -0
  54. package/lib/core/methods/channels/getPendingObjectOwner.d.ts +3 -0
  55. package/lib/core/methods/channels/getPendingObjectOwner.js +6 -0
  56. package/lib/core/methods/channels/joinChannelAction.d.ts +3 -0
  57. package/lib/core/methods/channels/joinChannelAction.js +10 -0
  58. package/lib/core/methods/channels/joinChannelByLink.d.ts +3 -0
  59. package/lib/core/methods/channels/joinChannelByLink.js +8 -0
  60. package/lib/core/methods/channels/leaveChannelVoiceChat.d.ts +3 -0
  61. package/lib/core/methods/channels/leaveChannelVoiceChat.js +9 -0
  62. package/lib/core/methods/channels/removeChannel.d.ts +3 -0
  63. package/lib/core/methods/channels/removeChannel.js +6 -0
  64. package/lib/core/methods/channels/requestChangeObjectOwner.d.ts +3 -0
  65. package/lib/core/methods/channels/requestChangeObjectOwner.js +9 -0
  66. package/lib/core/methods/channels/seenChannelMessages.d.ts +3 -0
  67. package/lib/core/methods/channels/seenChannelMessages.js +10 -0
  68. package/lib/core/methods/channels/setChannelLink.d.ts +3 -0
  69. package/lib/core/methods/channels/setChannelLink.js +6 -0
  70. package/lib/core/methods/channels/setChannelVoiceChatSetting.d.ts +3 -0
  71. package/lib/core/methods/channels/setChannelVoiceChatSetting.js +15 -0
  72. package/lib/core/methods/channels/updateChannelUsername.d.ts +3 -0
  73. package/lib/core/methods/channels/updateChannelUsername.js +9 -0
  74. package/lib/core/methods/chats/actionOnJoinRequest.d.ts +3 -0
  75. package/lib/core/methods/chats/actionOnJoinRequest.js +11 -0
  76. package/lib/core/methods/chats/addLiveComment.d.ts +3 -0
  77. package/lib/core/methods/chats/addLiveComment.js +6 -0
  78. package/lib/core/methods/chats/clickMessageUrl.d.ts +3 -0
  79. package/lib/core/methods/chats/clickMessageUrl.js +6 -0
  80. package/lib/core/methods/chats/createJoinLink.d.ts +3 -0
  81. package/lib/core/methods/chats/createJoinLink.js +12 -0
  82. package/lib/core/methods/chats/deleteAvatar.d.ts +3 -0
  83. package/lib/core/methods/chats/deleteAvatar.js +6 -0
  84. package/lib/core/methods/chats/deleteChatHistory.d.ts +3 -0
  85. package/lib/core/methods/chats/deleteChatHistory.js +9 -0
  86. package/lib/core/methods/chats/editJoinLink.d.ts +3 -0
  87. package/lib/core/methods/chats/editJoinLink.js +23 -0
  88. package/lib/core/methods/chats/getAbsObjects.d.ts +3 -0
  89. package/lib/core/methods/chats/getAbsObjects.js +8 -0
  90. package/lib/core/methods/chats/getAvatars.d.ts +3 -0
  91. package/lib/core/methods/chats/getAvatars.js +6 -0
  92. package/lib/core/methods/chats/getChatReaction.d.ts +3 -0
  93. package/lib/core/methods/chats/getChatReaction.js +6 -0
  94. package/lib/core/methods/chats/getChats.d.ts +3 -0
  95. package/lib/core/methods/chats/getChats.js +6 -0
  96. package/lib/core/methods/chats/getChatsUpdates.d.ts +3 -0
  97. package/lib/core/methods/chats/getChatsUpdates.js +6 -0
  98. package/lib/core/methods/chats/getJoinLinks.d.ts +3 -0
  99. package/lib/core/methods/chats/getJoinLinks.js +6 -0
  100. package/lib/core/methods/chats/getJoinRequests.d.ts +3 -0
  101. package/lib/core/methods/chats/getJoinRequests.js +6 -0
  102. package/lib/core/methods/chats/getLinkFromAppUrl.d.ts +3 -0
  103. package/lib/core/methods/chats/getLinkFromAppUrl.js +6 -0
  104. package/lib/core/methods/chats/getLiveComments.d.ts +3 -0
  105. package/lib/core/methods/chats/getLiveComments.js +6 -0
  106. package/lib/core/methods/chats/getLivePlayUrl.d.ts +3 -0
  107. package/lib/core/methods/chats/getLivePlayUrl.js +6 -0
  108. package/lib/core/methods/chats/getLiveStatus.d.ts +3 -0
  109. package/lib/core/methods/chats/getLiveStatus.js +6 -0
  110. package/lib/core/methods/chats/getObjectInfoByUsername.d.ts +3 -0
  111. package/lib/core/methods/chats/getObjectInfoByUsername.js +8 -0
  112. package/lib/core/methods/chats/getTopChatUsers.d.ts +3 -0
  113. package/lib/core/methods/chats/getTopChatUsers.js +7 -0
  114. package/lib/core/methods/chats/removeFromTopChatUsers.d.ts +3 -0
  115. package/lib/core/methods/chats/removeFromTopChatUsers.js +6 -0
  116. package/lib/core/methods/chats/removeJoinLink.d.ts +3 -0
  117. package/lib/core/methods/chats/removeJoinLink.js +8 -0
  118. package/lib/core/methods/chats/searchChatMessages.d.ts +3 -0
  119. package/lib/core/methods/chats/searchChatMessages.js +14 -0
  120. package/lib/core/methods/chats/searchGlobalMessages.d.ts +3 -0
  121. package/lib/core/methods/chats/searchGlobalMessages.js +6 -0
  122. package/lib/core/methods/chats/seenChats.d.ts +3 -0
  123. package/lib/core/methods/chats/seenChats.js +6 -0
  124. package/lib/core/methods/chats/sendChatActivity.d.ts +3 -0
  125. package/lib/core/methods/chats/sendChatActivity.js +10 -0
  126. package/lib/core/methods/chats/sendLive.d.ts +3 -0
  127. package/lib/core/methods/chats/sendLive.js +17 -0
  128. package/lib/core/methods/chats/setActionChat.d.ts +3 -0
  129. package/lib/core/methods/chats/setActionChat.js +10 -0
  130. package/lib/core/methods/chats/uploadAvatar.d.ts +3 -0
  131. package/lib/core/methods/chats/uploadAvatar.js +14 -0
  132. package/lib/core/methods/contacts/addAddressBook.d.ts +3 -0
  133. package/lib/core/methods/contacts/addAddressBook.js +6 -0
  134. package/lib/core/methods/contacts/deleteContact.d.ts +3 -0
  135. package/lib/core/methods/contacts/deleteContact.js +6 -0
  136. package/lib/core/methods/contacts/getContacts.d.ts +3 -0
  137. package/lib/core/methods/contacts/getContacts.js +6 -0
  138. package/lib/core/methods/contacts/getContactsLastOnline.d.ts +3 -0
  139. package/lib/core/methods/contacts/getContactsLastOnline.js +6 -0
  140. package/lib/core/methods/contacts/getContactsUpdates.d.ts +3 -0
  141. package/lib/core/methods/contacts/getContactsUpdates.js +6 -0
  142. package/lib/core/methods/contacts/resetContacts.d.ts +3 -0
  143. package/lib/core/methods/contacts/resetContacts.js +7 -0
  144. package/lib/core/methods/extras/banMember.d.ts +3 -0
  145. package/lib/core/methods/extras/banMember.js +9 -0
  146. package/lib/core/methods/extras/deleteMessagebyCount.d.ts +3 -0
  147. package/lib/core/methods/extras/deleteMessagebyCount.js +19 -0
  148. package/lib/core/methods/extras/getInfo.d.ts +3 -0
  149. package/lib/core/methods/extras/getInfo.js +15 -0
  150. package/lib/core/methods/extras/getObjectByUsername.d.ts +3 -0
  151. package/lib/core/methods/extras/getObjectByUsername.js +8 -0
  152. package/lib/core/methods/extras/getProfileLinkItems.d.ts +3 -0
  153. package/lib/core/methods/extras/getProfileLinkItems.js +6 -0
  154. package/lib/core/methods/extras/getRelatedObjects.d.ts +3 -0
  155. package/lib/core/methods/extras/getRelatedObjects.js +6 -0
  156. package/lib/core/methods/extras/getTranscription.d.ts +3 -0
  157. package/lib/core/methods/extras/getTranscription.js +9 -0
  158. package/lib/core/methods/extras/join.d.ts +3 -0
  159. package/lib/core/methods/extras/join.js +11 -0
  160. package/lib/core/methods/extras/joinVoiceChat.d.ts +3 -0
  161. package/lib/core/methods/extras/joinVoiceChat.js +11 -0
  162. package/lib/core/methods/extras/leaveChat.d.ts +3 -0
  163. package/lib/core/methods/extras/leaveChat.js +9 -0
  164. package/lib/core/methods/extras/onEditMessages.d.ts +4 -0
  165. package/lib/core/methods/extras/onEditMessages.js +32 -0
  166. package/lib/core/methods/extras/reportObject.d.ts +14 -0
  167. package/lib/core/methods/extras/reportObject.js +21 -0
  168. package/lib/core/methods/extras/searchGlobalObjects.d.ts +3 -0
  169. package/lib/core/methods/extras/searchGlobalObjects.js +6 -0
  170. package/lib/core/methods/extras/sendVoiceChatActivity.d.ts +3 -0
  171. package/lib/core/methods/extras/sendVoiceChatActivity.js +13 -0
  172. package/lib/core/methods/extras/setVoiceChatState.d.ts +3 -0
  173. package/lib/core/methods/extras/setVoiceChatState.js +14 -0
  174. package/lib/core/methods/extras/transcribeVoice.d.ts +3 -0
  175. package/lib/core/methods/extras/transcribeVoice.js +6 -0
  176. package/lib/core/methods/extras/userIsAdmin.d.ts +3 -0
  177. package/lib/core/methods/extras/userIsAdmin.js +18 -0
  178. package/lib/core/methods/gif/addToMyGifSet.d.ts +3 -0
  179. package/lib/core/methods/gif/addToMyGifSet.js +6 -0
  180. package/lib/core/methods/gif/getMyGifSet.d.ts +3 -0
  181. package/lib/core/methods/gif/getMyGifSet.js +6 -0
  182. package/lib/core/methods/gif/removeFromMyGifSet.d.ts +3 -0
  183. package/lib/core/methods/gif/removeFromMyGifSet.js +6 -0
  184. package/lib/core/methods/groups/addGroup.d.ts +3 -0
  185. package/lib/core/methods/groups/addGroup.js +8 -0
  186. package/lib/core/methods/groups/addGroupMembers.d.ts +3 -0
  187. package/lib/core/methods/groups/addGroupMembers.js +8 -0
  188. package/lib/core/methods/groups/banGroupMember.d.ts +3 -0
  189. package/lib/core/methods/groups/banGroupMember.js +14 -0
  190. package/lib/core/methods/groups/createGroupVoiceChat.d.ts +3 -0
  191. package/lib/core/methods/groups/createGroupVoiceChat.js +6 -0
  192. package/lib/core/methods/groups/deleteNoAccessGroupChat.d.ts +3 -0
  193. package/lib/core/methods/groups/deleteNoAccessGroupChat.js +6 -0
  194. package/lib/core/methods/groups/discardGroupVoiceChat.d.ts +3 -0
  195. package/lib/core/methods/groups/discardGroupVoiceChat.js +9 -0
  196. package/lib/core/methods/groups/editGroupInfo.d.ts +6 -0
  197. package/lib/core/methods/groups/editGroupInfo.js +41 -0
  198. package/lib/core/methods/groups/getBannedGroupMembers.d.ts +3 -0
  199. package/lib/core/methods/groups/getBannedGroupMembers.js +6 -0
  200. package/lib/core/methods/groups/getGroupAdminAccessList.d.ts +3 -0
  201. package/lib/core/methods/groups/getGroupAdminAccessList.js +9 -0
  202. package/lib/core/methods/groups/getGroupAdminMembers.d.ts +3 -0
  203. package/lib/core/methods/groups/getGroupAdminMembers.js +6 -0
  204. package/lib/core/methods/groups/getGroupAllMembers.d.ts +3 -0
  205. package/lib/core/methods/groups/getGroupAllMembers.js +10 -0
  206. package/lib/core/methods/groups/getGroupDefaultAccess.d.ts +3 -0
  207. package/lib/core/methods/groups/getGroupDefaultAccess.js +6 -0
  208. package/lib/core/methods/groups/getGroupInfo.d.ts +3 -0
  209. package/lib/core/methods/groups/getGroupInfo.js +6 -0
  210. package/lib/core/methods/groups/getGroupLink.d.ts +3 -0
  211. package/lib/core/methods/groups/getGroupLink.js +6 -0
  212. package/lib/core/methods/groups/getGroupMentionList.d.ts +3 -0
  213. package/lib/core/methods/groups/getGroupMentionList.js +9 -0
  214. package/lib/core/methods/groups/getGroupOnlineCount.d.ts +3 -0
  215. package/lib/core/methods/groups/getGroupOnlineCount.js +6 -0
  216. package/lib/core/methods/groups/getGroupVoiceChatParticipants.d.ts +3 -0
  217. package/lib/core/methods/groups/getGroupVoiceChatParticipants.js +7 -0
  218. package/lib/core/methods/groups/getGroupVoiceChatUpdates.d.ts +3 -0
  219. package/lib/core/methods/groups/getGroupVoiceChatUpdates.js +10 -0
  220. package/lib/core/methods/groups/groupPreviewByJoinLink.d.ts +3 -0
  221. package/lib/core/methods/groups/groupPreviewByJoinLink.js +8 -0
  222. package/lib/core/methods/groups/joinGroup.d.ts +3 -0
  223. package/lib/core/methods/groups/joinGroup.js +9 -0
  224. package/lib/core/methods/groups/joinGroupVoiceChat.d.ts +3 -0
  225. package/lib/core/methods/groups/joinGroupVoiceChat.js +11 -0
  226. package/lib/core/methods/groups/leaveGroup.d.ts +3 -0
  227. package/lib/core/methods/groups/leaveGroup.js +6 -0
  228. package/lib/core/methods/groups/leaveGroupVoiceChat.d.ts +3 -0
  229. package/lib/core/methods/groups/leaveGroupVoiceChat.js +9 -0
  230. package/lib/core/methods/groups/removeGroup.d.ts +3 -0
  231. package/lib/core/methods/groups/removeGroup.js +6 -0
  232. package/lib/core/methods/groups/seenGroupMessages.d.ts +3 -0
  233. package/lib/core/methods/groups/seenGroupMessages.js +10 -0
  234. package/lib/core/methods/groups/setGroupAdmin.d.ts +5 -0
  235. package/lib/core/methods/groups/setGroupAdmin.js +17 -0
  236. package/lib/core/methods/groups/setGroupDefaultAccess.d.ts +4 -0
  237. package/lib/core/methods/groups/setGroupDefaultAccess.js +11 -0
  238. package/lib/core/methods/groups/setGroupLink.d.ts +3 -0
  239. package/lib/core/methods/groups/setGroupLink.js +6 -0
  240. package/lib/core/methods/groups/setGroupVoiceChatSetting.d.ts +3 -0
  241. package/lib/core/methods/groups/setGroupVoiceChatSetting.js +15 -0
  242. package/lib/core/methods/index.d.ts +188 -0
  243. package/lib/core/methods/index.js +598 -0
  244. package/lib/core/methods/messages/actionOnMessageReaction.d.ts +3 -0
  245. package/lib/core/methods/messages/actionOnMessageReaction.js +14 -0
  246. package/lib/core/methods/messages/createPoll.d.ts +3 -0
  247. package/lib/core/methods/messages/createPoll.js +26 -0
  248. package/lib/core/methods/messages/deleteMessages.d.ts +3 -0
  249. package/lib/core/methods/messages/deleteMessages.js +17 -0
  250. package/lib/core/methods/messages/editMessage.d.ts +3 -0
  251. package/lib/core/methods/messages/editMessage.js +15 -0
  252. package/lib/core/methods/messages/forwardMessages.d.ts +3 -0
  253. package/lib/core/methods/messages/forwardMessages.js +22 -0
  254. package/lib/core/methods/messages/getMessageShareUrl.d.ts +3 -0
  255. package/lib/core/methods/messages/getMessageShareUrl.js +6 -0
  256. package/lib/core/methods/messages/getMessages.d.ts +3 -0
  257. package/lib/core/methods/messages/getMessages.js +12 -0
  258. package/lib/core/methods/messages/getMessagesByID.d.ts +3 -0
  259. package/lib/core/methods/messages/getMessagesByID.js +11 -0
  260. package/lib/core/methods/messages/getMessagesInterval.d.ts +3 -0
  261. package/lib/core/methods/messages/getMessagesInterval.js +9 -0
  262. package/lib/core/methods/messages/getMessagesUpdates.d.ts +3 -0
  263. package/lib/core/methods/messages/getMessagesUpdates.js +6 -0
  264. package/lib/core/methods/messages/getPollOptionVoters.d.ts +3 -0
  265. package/lib/core/methods/messages/getPollOptionVoters.js +10 -0
  266. package/lib/core/methods/messages/getPollStatus.d.ts +3 -0
  267. package/lib/core/methods/messages/getPollStatus.js +6 -0
  268. package/lib/core/methods/messages/index.d.ts +26 -0
  269. package/lib/core/methods/messages/index.js +56 -0
  270. package/lib/core/methods/messages/sendDocument.d.ts +3 -0
  271. package/lib/core/methods/messages/sendDocument.js +6 -0
  272. package/lib/core/methods/messages/sendFileInline.d.ts +18 -0
  273. package/lib/core/methods/messages/sendFileInline.js +24 -0
  274. package/lib/core/methods/messages/sendGif.d.ts +3 -0
  275. package/lib/core/methods/messages/sendGif.js +6 -0
  276. package/lib/core/methods/messages/sendMessage.d.ts +3 -0
  277. package/lib/core/methods/messages/sendMessage.js +139 -0
  278. package/lib/core/methods/messages/sendMusic.d.ts +3 -0
  279. package/lib/core/methods/messages/sendMusic.js +6 -0
  280. package/lib/core/methods/messages/sendPhoto.d.ts +3 -0
  281. package/lib/core/methods/messages/sendPhoto.js +6 -0
  282. package/lib/core/methods/messages/sendSticker.d.ts +3 -0
  283. package/lib/core/methods/messages/sendSticker.js +6 -0
  284. package/lib/core/methods/messages/sendText.d.ts +3 -0
  285. package/lib/core/methods/messages/sendText.js +6 -0
  286. package/lib/core/methods/messages/sendVideo.d.ts +3 -0
  287. package/lib/core/methods/messages/sendVideo.js +6 -0
  288. package/lib/core/methods/messages/sendVideoMessage.d.ts +3 -0
  289. package/lib/core/methods/messages/sendVideoMessage.js +6 -0
  290. package/lib/core/methods/messages/sendVoice.d.ts +3 -0
  291. package/lib/core/methods/messages/sendVoice.js +6 -0
  292. package/lib/core/methods/messages/setPinMessage.d.ts +3 -0
  293. package/lib/core/methods/messages/setPinMessage.js +14 -0
  294. package/lib/core/methods/messages/votePoll.d.ts +3 -0
  295. package/lib/core/methods/messages/votePoll.js +6 -0
  296. package/lib/core/methods/settings/changePassword.d.ts +3 -0
  297. package/lib/core/methods/settings/changePassword.js +6 -0
  298. package/lib/core/methods/settings/checkTwoStepPasscode.d.ts +3 -0
  299. package/lib/core/methods/settings/checkTwoStepPasscode.js +6 -0
  300. package/lib/core/methods/settings/deleteFolder.d.ts +3 -0
  301. package/lib/core/methods/settings/deleteFolder.js +6 -0
  302. package/lib/core/methods/settings/getBlockedUsers.d.ts +3 -0
  303. package/lib/core/methods/settings/getBlockedUsers.js +6 -0
  304. package/lib/core/methods/settings/getFolders.d.ts +3 -0
  305. package/lib/core/methods/settings/getFolders.js +6 -0
  306. package/lib/core/methods/settings/getMySessions.d.ts +3 -0
  307. package/lib/core/methods/settings/getMySessions.js +6 -0
  308. package/lib/core/methods/settings/getPrivacySetting.d.ts +3 -0
  309. package/lib/core/methods/settings/getPrivacySetting.js +6 -0
  310. package/lib/core/methods/settings/getSuggestedFolders.d.ts +3 -0
  311. package/lib/core/methods/settings/getSuggestedFolders.js +6 -0
  312. package/lib/core/methods/settings/getTwoPasscodeStatus.d.ts +3 -0
  313. package/lib/core/methods/settings/getTwoPasscodeStatus.js +6 -0
  314. package/lib/core/methods/settings/requestRecoveryEmail.d.ts +3 -0
  315. package/lib/core/methods/settings/requestRecoveryEmail.js +9 -0
  316. package/lib/core/methods/settings/setSetting.d.ts +5 -0
  317. package/lib/core/methods/settings/setSetting.js +51 -0
  318. package/lib/core/methods/settings/setupTwoStepVerification.d.ts +3 -0
  319. package/lib/core/methods/settings/setupTwoStepVerification.js +10 -0
  320. package/lib/core/methods/settings/terminateOtherSessions.d.ts +3 -0
  321. package/lib/core/methods/settings/terminateOtherSessions.js +7 -0
  322. package/lib/core/methods/settings/terminateSession.d.ts +3 -0
  323. package/lib/core/methods/settings/terminateSession.js +6 -0
  324. package/lib/core/methods/settings/turnOffTwoStep.d.ts +3 -0
  325. package/lib/core/methods/settings/turnOffTwoStep.js +7 -0
  326. package/lib/core/methods/settings/updateProfile.d.ts +3 -0
  327. package/lib/core/methods/settings/updateProfile.js +21 -0
  328. package/lib/core/methods/settings/updateUsername.d.ts +3 -0
  329. package/lib/core/methods/settings/updateUsername.js +6 -0
  330. package/lib/core/methods/settings/verifyRecoveryEmail.d.ts +3 -0
  331. package/lib/core/methods/settings/verifyRecoveryEmail.js +6 -0
  332. package/lib/core/methods/stickers/actionOnStickerSet.d.ts +3 -0
  333. package/lib/core/methods/stickers/actionOnStickerSet.js +10 -0
  334. package/lib/core/methods/stickers/getMyStickerSets.d.ts +3 -0
  335. package/lib/core/methods/stickers/getMyStickerSets.js +6 -0
  336. package/lib/core/methods/stickers/getStickerSetByID.d.ts +3 -0
  337. package/lib/core/methods/stickers/getStickerSetByID.js +6 -0
  338. package/lib/core/methods/stickers/getStickersByEmoji.d.ts +3 -0
  339. package/lib/core/methods/stickers/getStickersByEmoji.js +6 -0
  340. package/lib/core/methods/stickers/getStickersBySetIds.d.ts +3 -0
  341. package/lib/core/methods/stickers/getStickersBySetIds.js +8 -0
  342. package/lib/core/methods/stickers/getTrendStickerSets.d.ts +3 -0
  343. package/lib/core/methods/stickers/getTrendStickerSets.js +6 -0
  344. package/lib/core/methods/stickers/searchStickers.d.ts +3 -0
  345. package/lib/core/methods/stickers/searchStickers.js +6 -0
  346. package/lib/core/methods/users/checkUserUsername.d.ts +3 -0
  347. package/lib/core/methods/users/checkUserUsername.js +6 -0
  348. package/lib/core/methods/users/deleteUserChat.d.ts +3 -0
  349. package/lib/core/methods/users/deleteUserChat.js +9 -0
  350. package/lib/core/methods/users/getMe.d.ts +3 -0
  351. package/lib/core/methods/users/getMe.js +6 -0
  352. package/lib/core/methods/users/getUserInfo.d.ts +3 -0
  353. package/lib/core/methods/users/getUserInfo.js +7 -0
  354. package/lib/core/methods/users/setBlockUser.d.ts +3 -0
  355. package/lib/core/methods/users/setBlockUser.js +9 -0
  356. package/lib/core/methods/utilities/index.d.ts +8 -0
  357. package/lib/core/methods/utilities/index.js +20 -0
  358. package/lib/core/methods/utilities/requestSendFile.d.ts +3 -0
  359. package/lib/core/methods/utilities/requestSendFile.js +11 -0
  360. package/lib/core/methods/utilities/run.d.ts +3 -0
  361. package/lib/core/methods/utilities/run.js +9 -0
  362. package/lib/core/methods/utilities/runErrorMiddlewares.d.ts +3 -0
  363. package/lib/core/methods/utilities/runErrorMiddlewares.js +13 -0
  364. package/lib/core/methods/utilities/start.d.ts +3 -0
  365. package/lib/core/methods/utilities/start.js +72 -0
  366. package/lib/core/methods/utilities/thumbnail.js +70 -0
  367. package/lib/core/methods/utilities/useError.d.ts +4 -0
  368. package/lib/core/methods/utilities/useError.js +6 -0
  369. package/lib/core/methods/utilities/usePlugin.d.ts +4 -0
  370. package/lib/core/methods/utilities/usePlugin.js +25 -0
  371. package/lib/core/network.d.ts +49 -0
  372. package/lib/core/network.js +436 -0
  373. package/lib/core/network_login.d.ts +47 -0
  374. package/lib/core/network_login.js +137 -0
  375. package/lib/core/session.d.ts +12 -0
  376. package/lib/core/session.js +65 -0
  377. package/lib/index.d.ts +9 -0
  378. package/lib/index.js +50 -0
  379. package/lib/types/activities.type.d.ts +12 -0
  380. package/lib/types/activities.type.js +18 -0
  381. package/lib/types/chat.type.d.ts +14 -0
  382. package/lib/types/chat.type.js +20 -0
  383. package/lib/types/client.type.d.ts +33 -0
  384. package/lib/types/decorators.type.d.ts +173 -0
  385. package/lib/types/index.type.d.ts +7 -0
  386. package/lib/types/index.type.js +51 -0
  387. package/lib/types/message.type.d.ts +26 -0
  388. package/lib/types/message.type.js +72 -0
  389. package/lib/types/network.type.d.ts +7 -0
  390. package/lib/types/notifications.type.d.ts +14 -0
  391. package/lib/types/notifications.type.js +20 -0
  392. package/lib/types/session.type.d.ts +7 -0
  393. package/lib/utils/prompt.d.ts +1 -0
  394. package/lib/utils/prompt.js +17 -0
  395. package/package.json +45 -43
  396. package/rubjs/client.d.ts +0 -41
  397. package/rubjs/client.js +0 -40
  398. package/rubjs/clients/VoiceChatClient.d.ts +0 -30
  399. package/rubjs/clients/VoiceChatClient.js +0 -183
  400. package/rubjs/clients/index.d.ts +0 -4
  401. package/rubjs/clients/index.js +0 -12
  402. package/rubjs/clients/loginClient.d.ts +0 -47
  403. package/rubjs/clients/loginClient.js +0 -122
  404. package/rubjs/clients/sendLiveClient.d.ts +0 -25
  405. package/rubjs/clients/sendLiveClient.js +0 -146
  406. package/rubjs/crypto/index.d.ts +0 -12
  407. package/rubjs/crypto/index.js +0 -95
  408. package/rubjs/index.d.ts +0 -7
  409. package/rubjs/index.js +0 -53
  410. package/rubjs/methods/advanced/builder.d.ts +0 -3
  411. package/rubjs/methods/advanced/builder.js +0 -41
  412. package/rubjs/methods/auth/logout.d.ts +0 -3
  413. package/rubjs/methods/auth/logout.js +0 -17
  414. package/rubjs/methods/auth/registerDevice.d.ts +0 -3
  415. package/rubjs/methods/auth/registerDevice.js +0 -61
  416. package/rubjs/methods/auth/sendCode.d.ts +0 -3
  417. package/rubjs/methods/auth/sendCode.js +0 -27
  418. package/rubjs/methods/auth/signIn.d.ts +0 -3
  419. package/rubjs/methods/auth/signIn.js +0 -24
  420. package/rubjs/methods/channels/addChannel.d.ts +0 -3
  421. package/rubjs/methods/channels/addChannel.js +0 -26
  422. package/rubjs/methods/channels/addChannelMembers.d.ts +0 -3
  423. package/rubjs/methods/channels/addChannelMembers.js +0 -22
  424. package/rubjs/methods/channels/banChannelMember.d.ts +0 -3
  425. package/rubjs/methods/channels/banChannelMember.js +0 -25
  426. package/rubjs/methods/channels/cancelChangeObjectOwner.d.ts +0 -3
  427. package/rubjs/methods/channels/cancelChangeObjectOwner.js +0 -17
  428. package/rubjs/methods/channels/channelPreviewByJoinLink.d.ts +0 -3
  429. package/rubjs/methods/channels/channelPreviewByJoinLink.js +0 -19
  430. package/rubjs/methods/channels/checkChannelUsername.d.ts +0 -3
  431. package/rubjs/methods/channels/checkChannelUsername.js +0 -19
  432. package/rubjs/methods/channels/createChannelVoiceChat.d.ts +0 -3
  433. package/rubjs/methods/channels/createChannelVoiceChat.js +0 -17
  434. package/rubjs/methods/channels/discardChannelVoiceChat.d.ts +0 -3
  435. package/rubjs/methods/channels/discardChannelVoiceChat.js +0 -20
  436. package/rubjs/methods/channels/editChannelInfo.d.ts +0 -4
  437. package/rubjs/methods/channels/editChannelInfo.js +0 -50
  438. package/rubjs/methods/channels/getBannedChannelMembers.d.ts +0 -3
  439. package/rubjs/methods/channels/getBannedChannelMembers.js +0 -20
  440. package/rubjs/methods/channels/getChannelAdminAccessList.d.ts +0 -3
  441. package/rubjs/methods/channels/getChannelAdminAccessList.js +0 -20
  442. package/rubjs/methods/channels/getChannelAdminMembers.d.ts +0 -3
  443. package/rubjs/methods/channels/getChannelAdminMembers.js +0 -20
  444. package/rubjs/methods/channels/getChannelAllMembers.d.ts +0 -3
  445. package/rubjs/methods/channels/getChannelAllMembers.js +0 -21
  446. package/rubjs/methods/channels/getChannelInfo.d.ts +0 -3
  447. package/rubjs/methods/channels/getChannelInfo.js +0 -17
  448. package/rubjs/methods/channels/getChannelLink.d.ts +0 -3
  449. package/rubjs/methods/channels/getChannelLink.js +0 -17
  450. package/rubjs/methods/channels/getPendingObjectOwner.d.ts +0 -3
  451. package/rubjs/methods/channels/getPendingObjectOwner.js +0 -17
  452. package/rubjs/methods/channels/joinChannelAction.d.ts +0 -3
  453. package/rubjs/methods/channels/joinChannelAction.js +0 -21
  454. package/rubjs/methods/channels/joinChannelByLink.d.ts +0 -3
  455. package/rubjs/methods/channels/joinChannelByLink.js +0 -19
  456. package/rubjs/methods/channels/leaveChannelVoiceChat.d.ts +0 -3
  457. package/rubjs/methods/channels/leaveChannelVoiceChat.js +0 -20
  458. package/rubjs/methods/channels/removeChannel.d.ts +0 -3
  459. package/rubjs/methods/channels/removeChannel.js +0 -17
  460. package/rubjs/methods/channels/requestChangeObjectOwner.d.ts +0 -3
  461. package/rubjs/methods/channels/requestChangeObjectOwner.js +0 -20
  462. package/rubjs/methods/channels/seenChannelMessages.d.ts +0 -3
  463. package/rubjs/methods/channels/seenChannelMessages.js +0 -21
  464. package/rubjs/methods/channels/setChannelLink.d.ts +0 -3
  465. package/rubjs/methods/channels/setChannelLink.js +0 -17
  466. package/rubjs/methods/channels/setChannelVoiceChatSetting.d.ts +0 -3
  467. package/rubjs/methods/channels/setChannelVoiceChatSetting.js +0 -26
  468. package/rubjs/methods/channels/updateChannelUsername.d.ts +0 -3
  469. package/rubjs/methods/channels/updateChannelUsername.js +0 -20
  470. package/rubjs/methods/chats/actionOnJoinRequest.d.ts +0 -3
  471. package/rubjs/methods/chats/actionOnJoinRequest.js +0 -22
  472. package/rubjs/methods/chats/addLiveComment.d.ts +0 -3
  473. package/rubjs/methods/chats/addLiveComment.js +0 -17
  474. package/rubjs/methods/chats/clickMessageUrl.d.ts +0 -3
  475. package/rubjs/methods/chats/clickMessageUrl.js +0 -17
  476. package/rubjs/methods/chats/createJoinLink.d.ts +0 -3
  477. package/rubjs/methods/chats/createJoinLink.js +0 -23
  478. package/rubjs/methods/chats/deleteAvatar.d.ts +0 -3
  479. package/rubjs/methods/chats/deleteAvatar.js +0 -17
  480. package/rubjs/methods/chats/deleteChatHistory.d.ts +0 -3
  481. package/rubjs/methods/chats/deleteChatHistory.js +0 -20
  482. package/rubjs/methods/chats/editJoinLink.d.ts +0 -3
  483. package/rubjs/methods/chats/editJoinLink.js +0 -34
  484. package/rubjs/methods/chats/getAbsObjects.d.ts +0 -3
  485. package/rubjs/methods/chats/getAbsObjects.js +0 -19
  486. package/rubjs/methods/chats/getAvatars.d.ts +0 -3
  487. package/rubjs/methods/chats/getAvatars.js +0 -17
  488. package/rubjs/methods/chats/getChatReaction.d.ts +0 -3
  489. package/rubjs/methods/chats/getChatReaction.js +0 -17
  490. package/rubjs/methods/chats/getChats.d.ts +0 -3
  491. package/rubjs/methods/chats/getChats.js +0 -17
  492. package/rubjs/methods/chats/getChatsUpdates.d.ts +0 -3
  493. package/rubjs/methods/chats/getChatsUpdates.js +0 -17
  494. package/rubjs/methods/chats/getJoinLinks.d.ts +0 -3
  495. package/rubjs/methods/chats/getJoinLinks.js +0 -17
  496. package/rubjs/methods/chats/getJoinRequests.d.ts +0 -3
  497. package/rubjs/methods/chats/getJoinRequests.js +0 -17
  498. package/rubjs/methods/chats/getLinkFromAppUrl.d.ts +0 -3
  499. package/rubjs/methods/chats/getLinkFromAppUrl.js +0 -17
  500. package/rubjs/methods/chats/getLiveComments.d.ts +0 -3
  501. package/rubjs/methods/chats/getLiveComments.js +0 -17
  502. package/rubjs/methods/chats/getLivePlayUrl.d.ts +0 -3
  503. package/rubjs/methods/chats/getLivePlayUrl.js +0 -17
  504. package/rubjs/methods/chats/getLiveStatus.d.ts +0 -3
  505. package/rubjs/methods/chats/getLiveStatus.js +0 -17
  506. package/rubjs/methods/chats/getObjectInfoByUsername.d.ts +0 -3
  507. package/rubjs/methods/chats/getObjectInfoByUsername.js +0 -19
  508. package/rubjs/methods/chats/getTopChatUsers.d.ts +0 -3
  509. package/rubjs/methods/chats/getTopChatUsers.js +0 -18
  510. package/rubjs/methods/chats/removeFromTopChatUsers.d.ts +0 -3
  511. package/rubjs/methods/chats/removeFromTopChatUsers.js +0 -17
  512. package/rubjs/methods/chats/removeJoinLink.d.ts +0 -3
  513. package/rubjs/methods/chats/removeJoinLink.js +0 -19
  514. package/rubjs/methods/chats/searchChatMessages.d.ts +0 -3
  515. package/rubjs/methods/chats/searchChatMessages.js +0 -25
  516. package/rubjs/methods/chats/searchGlobalMessages.d.ts +0 -3
  517. package/rubjs/methods/chats/searchGlobalMessages.js +0 -17
  518. package/rubjs/methods/chats/seenChats.d.ts +0 -3
  519. package/rubjs/methods/chats/seenChats.js +0 -17
  520. package/rubjs/methods/chats/sendChatActivity.d.ts +0 -3
  521. package/rubjs/methods/chats/sendChatActivity.js +0 -21
  522. package/rubjs/methods/chats/sendLive.d.ts +0 -3
  523. package/rubjs/methods/chats/sendLive.js +0 -28
  524. package/rubjs/methods/chats/setActionChat.d.ts +0 -3
  525. package/rubjs/methods/chats/setActionChat.js +0 -21
  526. package/rubjs/methods/chats/uploadAvatar.d.ts +0 -3
  527. package/rubjs/methods/chats/uploadAvatar.js +0 -29
  528. package/rubjs/methods/contacts/addAddressBook.d.ts +0 -3
  529. package/rubjs/methods/contacts/addAddressBook.js +0 -17
  530. package/rubjs/methods/contacts/deleteContact.d.ts +0 -3
  531. package/rubjs/methods/contacts/deleteContact.js +0 -17
  532. package/rubjs/methods/contacts/getContacts.d.ts +0 -3
  533. package/rubjs/methods/contacts/getContacts.js +0 -17
  534. package/rubjs/methods/contacts/getContactsLastOnline.d.ts +0 -3
  535. package/rubjs/methods/contacts/getContactsLastOnline.js +0 -17
  536. package/rubjs/methods/contacts/getContactsUpdates.d.ts +0 -3
  537. package/rubjs/methods/contacts/getContactsUpdates.js +0 -17
  538. package/rubjs/methods/contacts/resetContacts.d.ts +0 -3
  539. package/rubjs/methods/contacts/resetContacts.js +0 -18
  540. package/rubjs/methods/extras/banMember.d.ts +0 -3
  541. package/rubjs/methods/extras/banMember.js +0 -20
  542. package/rubjs/methods/extras/deleteMessagebyCount.d.ts +0 -3
  543. package/rubjs/methods/extras/deleteMessagebyCount.js +0 -30
  544. package/rubjs/methods/extras/getInfo.d.ts +0 -3
  545. package/rubjs/methods/extras/getInfo.js +0 -26
  546. package/rubjs/methods/extras/getObjectByUsername.d.ts +0 -3
  547. package/rubjs/methods/extras/getObjectByUsername.js +0 -19
  548. package/rubjs/methods/extras/getProfileLinkItems.d.ts +0 -3
  549. package/rubjs/methods/extras/getProfileLinkItems.js +0 -17
  550. package/rubjs/methods/extras/getRelatedObjects.d.ts +0 -3
  551. package/rubjs/methods/extras/getRelatedObjects.js +0 -17
  552. package/rubjs/methods/extras/getTranscription.d.ts +0 -3
  553. package/rubjs/methods/extras/getTranscription.js +0 -20
  554. package/rubjs/methods/extras/join.d.ts +0 -3
  555. package/rubjs/methods/extras/join.js +0 -22
  556. package/rubjs/methods/extras/joinVoiceChat.d.ts +0 -3
  557. package/rubjs/methods/extras/joinVoiceChat.js +0 -22
  558. package/rubjs/methods/extras/leaveChat.d.ts +0 -3
  559. package/rubjs/methods/extras/leaveChat.js +0 -20
  560. package/rubjs/methods/extras/onEditMessages.d.ts +0 -3
  561. package/rubjs/methods/extras/onEditMessages.js +0 -41
  562. package/rubjs/methods/extras/reportObject.d.ts +0 -14
  563. package/rubjs/methods/extras/reportObject.js +0 -32
  564. package/rubjs/methods/extras/searchGlobalObjects.d.ts +0 -3
  565. package/rubjs/methods/extras/searchGlobalObjects.js +0 -17
  566. package/rubjs/methods/extras/sendVoiceChatActivity.d.ts +0 -3
  567. package/rubjs/methods/extras/sendVoiceChatActivity.js +0 -24
  568. package/rubjs/methods/extras/setVoiceChatState.d.ts +0 -3
  569. package/rubjs/methods/extras/setVoiceChatState.js +0 -25
  570. package/rubjs/methods/extras/transcribeVoice.d.ts +0 -3
  571. package/rubjs/methods/extras/transcribeVoice.js +0 -17
  572. package/rubjs/methods/extras/userIsAdmin.d.ts +0 -3
  573. package/rubjs/methods/extras/userIsAdmin.js +0 -29
  574. package/rubjs/methods/gif/addToMyGifSet.d.ts +0 -3
  575. package/rubjs/methods/gif/addToMyGifSet.js +0 -17
  576. package/rubjs/methods/gif/getMyGifSet.d.ts +0 -3
  577. package/rubjs/methods/gif/getMyGifSet.js +0 -17
  578. package/rubjs/methods/gif/removeFromMyGifSet.d.ts +0 -3
  579. package/rubjs/methods/gif/removeFromMyGifSet.js +0 -17
  580. package/rubjs/methods/groups/addGroup.d.ts +0 -3
  581. package/rubjs/methods/groups/addGroup.js +0 -19
  582. package/rubjs/methods/groups/addGroupMembers.d.ts +0 -3
  583. package/rubjs/methods/groups/addGroupMembers.js +0 -19
  584. package/rubjs/methods/groups/banGroupMember.d.ts +0 -3
  585. package/rubjs/methods/groups/banGroupMember.js +0 -25
  586. package/rubjs/methods/groups/createGroupVoiceChat.d.ts +0 -3
  587. package/rubjs/methods/groups/createGroupVoiceChat.js +0 -17
  588. package/rubjs/methods/groups/deleteNoAccessGroupChat.d.ts +0 -3
  589. package/rubjs/methods/groups/deleteNoAccessGroupChat.js +0 -17
  590. package/rubjs/methods/groups/discardGroupVoiceChat.d.ts +0 -3
  591. package/rubjs/methods/groups/discardGroupVoiceChat.js +0 -20
  592. package/rubjs/methods/groups/editGroupInfo.d.ts +0 -6
  593. package/rubjs/methods/groups/editGroupInfo.js +0 -52
  594. package/rubjs/methods/groups/getBannedGroupMembers.d.ts +0 -3
  595. package/rubjs/methods/groups/getBannedGroupMembers.js +0 -17
  596. package/rubjs/methods/groups/getGroupAdminAccessList.d.ts +0 -3
  597. package/rubjs/methods/groups/getGroupAdminAccessList.js +0 -20
  598. package/rubjs/methods/groups/getGroupAdminMembers.d.ts +0 -3
  599. package/rubjs/methods/groups/getGroupAdminMembers.js +0 -17
  600. package/rubjs/methods/groups/getGroupAllMembers.d.ts +0 -3
  601. package/rubjs/methods/groups/getGroupAllMembers.js +0 -21
  602. package/rubjs/methods/groups/getGroupDefaultAccess.d.ts +0 -3
  603. package/rubjs/methods/groups/getGroupDefaultAccess.js +0 -17
  604. package/rubjs/methods/groups/getGroupInfo.d.ts +0 -3
  605. package/rubjs/methods/groups/getGroupInfo.js +0 -17
  606. package/rubjs/methods/groups/getGroupLink.d.ts +0 -3
  607. package/rubjs/methods/groups/getGroupLink.js +0 -17
  608. package/rubjs/methods/groups/getGroupMentionList.d.ts +0 -3
  609. package/rubjs/methods/groups/getGroupMentionList.js +0 -20
  610. package/rubjs/methods/groups/getGroupOnlineCount.d.ts +0 -3
  611. package/rubjs/methods/groups/getGroupOnlineCount.js +0 -17
  612. package/rubjs/methods/groups/getGroupVoiceChatParticipants.d.ts +0 -3
  613. package/rubjs/methods/groups/getGroupVoiceChatParticipants.js +0 -18
  614. package/rubjs/methods/groups/getGroupVoiceChatUpdates.d.ts +0 -3
  615. package/rubjs/methods/groups/getGroupVoiceChatUpdates.js +0 -21
  616. package/rubjs/methods/groups/groupPreviewByJoinLink.d.ts +0 -3
  617. package/rubjs/methods/groups/groupPreviewByJoinLink.js +0 -19
  618. package/rubjs/methods/groups/joinGroup.d.ts +0 -3
  619. package/rubjs/methods/groups/joinGroup.js +0 -19
  620. package/rubjs/methods/groups/joinGroupVoiceChat.d.ts +0 -3
  621. package/rubjs/methods/groups/joinGroupVoiceChat.js +0 -22
  622. package/rubjs/methods/groups/leaveGroup.d.ts +0 -3
  623. package/rubjs/methods/groups/leaveGroup.js +0 -17
  624. package/rubjs/methods/groups/leaveGroupVoiceChat.d.ts +0 -3
  625. package/rubjs/methods/groups/leaveGroupVoiceChat.js +0 -20
  626. package/rubjs/methods/groups/removeGroup.d.ts +0 -3
  627. package/rubjs/methods/groups/removeGroup.js +0 -17
  628. package/rubjs/methods/groups/seenGroupMessages.d.ts +0 -3
  629. package/rubjs/methods/groups/seenGroupMessages.js +0 -21
  630. package/rubjs/methods/groups/setGroupAdmin.d.ts +0 -5
  631. package/rubjs/methods/groups/setGroupAdmin.js +0 -28
  632. package/rubjs/methods/groups/setGroupDefaultAccess.d.ts +0 -4
  633. package/rubjs/methods/groups/setGroupDefaultAccess.js +0 -22
  634. package/rubjs/methods/groups/setGroupLink.d.ts +0 -3
  635. package/rubjs/methods/groups/setGroupLink.js +0 -17
  636. package/rubjs/methods/groups/setGroupVoiceChatSetting.d.ts +0 -3
  637. package/rubjs/methods/groups/setGroupVoiceChatSetting.js +0 -26
  638. package/rubjs/methods/index.d.ts +0 -203
  639. package/rubjs/methods/index.js +0 -967
  640. package/rubjs/methods/messages/actionOnMessageReaction.d.ts +0 -3
  641. package/rubjs/methods/messages/actionOnMessageReaction.js +0 -25
  642. package/rubjs/methods/messages/createPoll.d.ts +0 -3
  643. package/rubjs/methods/messages/createPoll.js +0 -37
  644. package/rubjs/methods/messages/deleteMessages.d.ts +0 -3
  645. package/rubjs/methods/messages/deleteMessages.js +0 -28
  646. package/rubjs/methods/messages/editMessage.d.ts +0 -3
  647. package/rubjs/methods/messages/editMessage.js +0 -23
  648. package/rubjs/methods/messages/forwardMessages.d.ts +0 -3
  649. package/rubjs/methods/messages/forwardMessages.js +0 -31
  650. package/rubjs/methods/messages/getMessageShareUrl.d.ts +0 -3
  651. package/rubjs/methods/messages/getMessageShareUrl.js +0 -17
  652. package/rubjs/methods/messages/getMessages.d.ts +0 -3
  653. package/rubjs/methods/messages/getMessages.js +0 -23
  654. package/rubjs/methods/messages/getMessagesByID.d.ts +0 -3
  655. package/rubjs/methods/messages/getMessagesByID.js +0 -22
  656. package/rubjs/methods/messages/getMessagesInterval.d.ts +0 -3
  657. package/rubjs/methods/messages/getMessagesInterval.js +0 -20
  658. package/rubjs/methods/messages/getMessagesUpdates.d.ts +0 -3
  659. package/rubjs/methods/messages/getMessagesUpdates.js +0 -17
  660. package/rubjs/methods/messages/getPollOptionVoters.d.ts +0 -3
  661. package/rubjs/methods/messages/getPollOptionVoters.js +0 -21
  662. package/rubjs/methods/messages/getPollStatus.d.ts +0 -3
  663. package/rubjs/methods/messages/getPollStatus.js +0 -17
  664. package/rubjs/methods/messages/index.d.ts +0 -27
  665. package/rubjs/methods/messages/index.js +0 -58
  666. package/rubjs/methods/messages/requestSendFile.d.ts +0 -4
  667. package/rubjs/methods/messages/requestSendFile.js +0 -22
  668. package/rubjs/methods/messages/sendDocument.d.ts +0 -3
  669. package/rubjs/methods/messages/sendDocument.js +0 -17
  670. package/rubjs/methods/messages/sendFileInline.d.ts +0 -18
  671. package/rubjs/methods/messages/sendFileInline.js +0 -35
  672. package/rubjs/methods/messages/sendGif.d.ts +0 -3
  673. package/rubjs/methods/messages/sendGif.js +0 -17
  674. package/rubjs/methods/messages/sendMessage.d.ts +0 -3
  675. package/rubjs/methods/messages/sendMessage.js +0 -149
  676. package/rubjs/methods/messages/sendMusic.d.ts +0 -3
  677. package/rubjs/methods/messages/sendMusic.js +0 -17
  678. package/rubjs/methods/messages/sendPhoto.d.ts +0 -3
  679. package/rubjs/methods/messages/sendPhoto.js +0 -17
  680. package/rubjs/methods/messages/sendSticker.d.ts +0 -3
  681. package/rubjs/methods/messages/sendSticker.js +0 -17
  682. package/rubjs/methods/messages/sendText.d.ts +0 -3
  683. package/rubjs/methods/messages/sendText.js +0 -17
  684. package/rubjs/methods/messages/sendVideo.d.ts +0 -3
  685. package/rubjs/methods/messages/sendVideo.js +0 -17
  686. package/rubjs/methods/messages/sendVideoMessage.d.ts +0 -3
  687. package/rubjs/methods/messages/sendVideoMessage.js +0 -17
  688. package/rubjs/methods/messages/sendVoice.d.ts +0 -3
  689. package/rubjs/methods/messages/sendVoice.js +0 -17
  690. package/rubjs/methods/messages/setPinMessage.d.ts +0 -3
  691. package/rubjs/methods/messages/setPinMessage.js +0 -25
  692. package/rubjs/methods/messages/votePoll.d.ts +0 -3
  693. package/rubjs/methods/messages/votePoll.js +0 -17
  694. package/rubjs/methods/settings/changePassword.d.ts +0 -3
  695. package/rubjs/methods/settings/changePassword.js +0 -17
  696. package/rubjs/methods/settings/checkTwoStepPasscode.d.ts +0 -3
  697. package/rubjs/methods/settings/checkTwoStepPasscode.js +0 -17
  698. package/rubjs/methods/settings/deleteFolder.d.ts +0 -3
  699. package/rubjs/methods/settings/deleteFolder.js +0 -17
  700. package/rubjs/methods/settings/getBlockedUsers.d.ts +0 -3
  701. package/rubjs/methods/settings/getBlockedUsers.js +0 -17
  702. package/rubjs/methods/settings/getFolders.d.ts +0 -3
  703. package/rubjs/methods/settings/getFolders.js +0 -17
  704. package/rubjs/methods/settings/getMySessions.d.ts +0 -3
  705. package/rubjs/methods/settings/getMySessions.js +0 -17
  706. package/rubjs/methods/settings/getPrivacySetting.d.ts +0 -3
  707. package/rubjs/methods/settings/getPrivacySetting.js +0 -17
  708. package/rubjs/methods/settings/getSuggestedFolders.d.ts +0 -3
  709. package/rubjs/methods/settings/getSuggestedFolders.js +0 -17
  710. package/rubjs/methods/settings/getTwoPasscodeStatus.d.ts +0 -3
  711. package/rubjs/methods/settings/getTwoPasscodeStatus.js +0 -17
  712. package/rubjs/methods/settings/requestRecoveryEmail.d.ts +0 -3
  713. package/rubjs/methods/settings/requestRecoveryEmail.js +0 -20
  714. package/rubjs/methods/settings/setSetting.d.ts +0 -5
  715. package/rubjs/methods/settings/setSetting.js +0 -60
  716. package/rubjs/methods/settings/setupTwoStepVerification.d.ts +0 -3
  717. package/rubjs/methods/settings/setupTwoStepVerification.js +0 -21
  718. package/rubjs/methods/settings/terminateOtherSessions.d.ts +0 -3
  719. package/rubjs/methods/settings/terminateOtherSessions.js +0 -18
  720. package/rubjs/methods/settings/terminateSession.d.ts +0 -3
  721. package/rubjs/methods/settings/terminateSession.js +0 -17
  722. package/rubjs/methods/settings/turnOffTwoStep.d.ts +0 -3
  723. package/rubjs/methods/settings/turnOffTwoStep.js +0 -18
  724. package/rubjs/methods/settings/updateProfile.d.ts +0 -3
  725. package/rubjs/methods/settings/updateProfile.js +0 -30
  726. package/rubjs/methods/settings/updateUsername.d.ts +0 -3
  727. package/rubjs/methods/settings/updateUsername.js +0 -17
  728. package/rubjs/methods/settings/verifyRecoveryEmail.d.ts +0 -3
  729. package/rubjs/methods/settings/verifyRecoveryEmail.js +0 -17
  730. package/rubjs/methods/stickers/actionOnStickerSet.d.ts +0 -3
  731. package/rubjs/methods/stickers/actionOnStickerSet.js +0 -21
  732. package/rubjs/methods/stickers/getMyStickerSets.d.ts +0 -3
  733. package/rubjs/methods/stickers/getMyStickerSets.js +0 -17
  734. package/rubjs/methods/stickers/getStickerSetByID.d.ts +0 -3
  735. package/rubjs/methods/stickers/getStickerSetByID.js +0 -17
  736. package/rubjs/methods/stickers/getStickersByEmoji.d.ts +0 -3
  737. package/rubjs/methods/stickers/getStickersByEmoji.js +0 -17
  738. package/rubjs/methods/stickers/getStickersBySetIds.d.ts +0 -3
  739. package/rubjs/methods/stickers/getStickersBySetIds.js +0 -19
  740. package/rubjs/methods/stickers/getTrendStickerSets.d.ts +0 -3
  741. package/rubjs/methods/stickers/getTrendStickerSets.js +0 -17
  742. package/rubjs/methods/stickers/searchStickers.d.ts +0 -3
  743. package/rubjs/methods/stickers/searchStickers.js +0 -17
  744. package/rubjs/methods/users/checkUserUsername.d.ts +0 -3
  745. package/rubjs/methods/users/checkUserUsername.js +0 -17
  746. package/rubjs/methods/users/deleteUserChat.d.ts +0 -3
  747. package/rubjs/methods/users/deleteUserChat.js +0 -20
  748. package/rubjs/methods/users/getMe.d.ts +0 -3
  749. package/rubjs/methods/users/getMe.js +0 -17
  750. package/rubjs/methods/users/getUserInfo.d.ts +0 -4
  751. package/rubjs/methods/users/getUserInfo.js +0 -18
  752. package/rubjs/methods/users/setBlockUser.d.ts +0 -3
  753. package/rubjs/methods/users/setBlockUser.js +0 -20
  754. package/rubjs/methods/utilities/download.d.ts +0 -4
  755. package/rubjs/methods/utilities/download.js +0 -17
  756. package/rubjs/methods/utilities/downloadProfilePicture.d.ts +0 -3
  757. package/rubjs/methods/utilities/downloadProfilePicture.js +0 -27
  758. package/rubjs/methods/utilities/get.d.ts +0 -4
  759. package/rubjs/methods/utilities/get.js +0 -21
  760. package/rubjs/methods/utilities/index.d.ts +0 -8
  761. package/rubjs/methods/utilities/index.js +0 -20
  762. package/rubjs/methods/utilities/post.d.ts +0 -4
  763. package/rubjs/methods/utilities/post.js +0 -21
  764. package/rubjs/methods/utilities/run.d.ts +0 -3
  765. package/rubjs/methods/utilities/run.js +0 -24
  766. package/rubjs/methods/utilities/start.d.ts +0 -3
  767. package/rubjs/methods/utilities/start.js +0 -82
  768. package/rubjs/methods/utilities/thumbnail.js +0 -85
  769. package/rubjs/network/index.d.ts +0 -37
  770. package/rubjs/network/index.js +0 -405
  771. package/rubjs/network/loginNetwork.d.ts +0 -39
  772. package/rubjs/network/loginNetwork.js +0 -122
  773. package/rubjs/session/index.d.ts +0 -23
  774. package/rubjs/session/index.js +0 -65
  775. package/rubjs/types/auth.d.ts +0 -40
  776. package/rubjs/types/chats.d.ts +0 -79
  777. package/rubjs/types/decorators.d.ts +0 -170
  778. package/rubjs/types/groups.d.ts +0 -155
  779. package/rubjs/types/index.d.ts +0 -8
  780. package/rubjs/types/index.js +0 -53
  781. package/rubjs/types/message.d.ts +0 -26
  782. package/rubjs/types/message.js +0 -81
  783. package/rubjs/types/messages.d.ts +0 -178
  784. package/rubjs/types/messages.js +0 -2
  785. package/rubjs/types/users.d.ts +0 -64
  786. package/rubjs/types/users.js +0 -2
  787. package/rubjs/utils/filters.d.ts +0 -33
  788. package/rubjs/utils/filters.js +0 -167
  789. package/rubjs/utils/index.d.ts +0 -3
  790. package/rubjs/utils/index.js +0 -10
  791. /package/{rubjs → lib/core}/methods/advanced/index.d.ts +0 -0
  792. /package/{rubjs → lib/core}/methods/advanced/index.js +0 -0
  793. /package/{rubjs → lib/core}/methods/auth/index.d.ts +0 -0
  794. /package/{rubjs → lib/core}/methods/auth/index.js +0 -0
  795. /package/{rubjs → lib/core}/methods/channels/index.d.ts +0 -0
  796. /package/{rubjs → lib/core}/methods/channels/index.js +0 -0
  797. /package/{rubjs → lib/core}/methods/chats/index.d.ts +0 -0
  798. /package/{rubjs → lib/core}/methods/chats/index.js +0 -0
  799. /package/{rubjs → lib/core}/methods/contacts/index.d.ts +0 -0
  800. /package/{rubjs → lib/core}/methods/contacts/index.js +0 -0
  801. /package/{rubjs → lib/core}/methods/extras/index.d.ts +0 -0
  802. /package/{rubjs → lib/core}/methods/extras/index.js +0 -0
  803. /package/{rubjs → lib/core}/methods/gif/index.d.ts +0 -0
  804. /package/{rubjs → lib/core}/methods/gif/index.js +0 -0
  805. /package/{rubjs → lib/core}/methods/groups/index.d.ts +0 -0
  806. /package/{rubjs → lib/core}/methods/groups/index.js +0 -0
  807. /package/{rubjs → lib/core}/methods/settings/index.d.ts +0 -0
  808. /package/{rubjs → lib/core}/methods/settings/index.js +0 -0
  809. /package/{rubjs → lib/core}/methods/stickers/index.d.ts +0 -0
  810. /package/{rubjs → lib/core}/methods/stickers/index.js +0 -0
  811. /package/{rubjs → lib/core}/methods/users/index.d.ts +0 -0
  812. /package/{rubjs → lib/core}/methods/users/index.js +0 -0
  813. /package/{rubjs → lib/core}/methods/utilities/thumbnail.d.ts +0 -0
  814. /package/{rubjs/parser/index.d.ts → lib/core/parser.d.ts} +0 -0
  815. /package/{rubjs/parser/index.js → lib/core/parser.js} +0 -0
  816. /package/{rubjs/utils → lib/core}/utils.d.ts +0 -0
  817. /package/{rubjs/utils → lib/core}/utils.js +0 -0
  818. /package/{rubjs/types/auth.js → lib/types/client.type.js} +0 -0
  819. /package/{rubjs/types/chats.js → lib/types/decorators.type.js} +0 -0
  820. /package/{rubjs/types/decorators.js → lib/types/network.type.js} +0 -0
  821. /package/{rubjs/types/groups.js → lib/types/session.type.js} +0 -0
@@ -0,0 +1,598 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const Advanced = __importStar(require("./advanced"));
37
+ const Auth = __importStar(require("./auth"));
38
+ const Channels = __importStar(require("./channels"));
39
+ const Chats = __importStar(require("./chats"));
40
+ const Contacts = __importStar(require("./contacts"));
41
+ const Extras = __importStar(require("./extras"));
42
+ const Gif = __importStar(require("./gif"));
43
+ const Groups = __importStar(require("./groups"));
44
+ const Messages = __importStar(require("./messages"));
45
+ const Settings = __importStar(require("./settings"));
46
+ const Stickers = __importStar(require("./stickers"));
47
+ const Users = __importStar(require("./users"));
48
+ const Utilities = __importStar(require("./utilities"));
49
+ class Methods {
50
+ // advanced
51
+ async builder(...args) {
52
+ return Advanced.builder.apply(this, args);
53
+ }
54
+ // auth
55
+ async registerDevice(...args) {
56
+ return Auth.registerDevice.apply(this, args);
57
+ }
58
+ async sendCode(...args) {
59
+ return Auth.sendCode.apply(this, args);
60
+ }
61
+ async signIn(...args) {
62
+ return Auth.signIn.apply(this, args);
63
+ }
64
+ async logout(...args) {
65
+ return Auth.logout.apply(this, args);
66
+ }
67
+ // channels
68
+ async addChannel(...args) {
69
+ return Channels.addChannel.apply(this, args);
70
+ }
71
+ async addChannelMembers(...args) {
72
+ return Channels.addChannelMembers.apply(this, args);
73
+ }
74
+ async banChannelMember(...args) {
75
+ return Channels.banChannelMember.apply(this, args);
76
+ }
77
+ async channelPreviewByJoinLink(...args) {
78
+ return Channels.channelPreviewByJoinLink.apply(this, args);
79
+ }
80
+ async leaveChannelVoiceChat(...args) {
81
+ return Channels.leaveChannelVoiceChat.apply(this, args);
82
+ }
83
+ async cancelChangeObjectOwner(...args) {
84
+ return Channels.cancelChangeObjectOwner.apply(this, args);
85
+ }
86
+ async requestChangeObjectOwner(...args) {
87
+ return Channels.requestChangeObjectOwner.apply(this, args);
88
+ }
89
+ async getPendingObjectOwner(...args) {
90
+ return Channels.getPendingObjectOwner.apply(this, args);
91
+ }
92
+ async checkChannelUsername(...args) {
93
+ return Channels.checkChannelUsername.apply(this, args);
94
+ }
95
+ async createChannelVoiceChat(...args) {
96
+ return Channels.createChannelVoiceChat.apply(this, args);
97
+ }
98
+ async discardChannelVoiceChat(...args) {
99
+ return Channels.discardChannelVoiceChat.apply(this, args);
100
+ }
101
+ async editChannelInfo(...args) {
102
+ return Channels.editChannelInfo.apply(this, args);
103
+ }
104
+ async getBannedChannelMembers(...args) {
105
+ return Channels.getBannedChannelMembers.apply(this, args);
106
+ }
107
+ async getChannelAdminAccessList(...args) {
108
+ return Channels.getChannelAdminAccessList.apply(this, args);
109
+ }
110
+ async getChannelAdminMembers(...args) {
111
+ return Channels.getChannelAdminMembers.apply(this, args);
112
+ }
113
+ async getChannelAllMembers(...args) {
114
+ return Channels.getChannelAllMembers.apply(this, args);
115
+ }
116
+ async getChannelInfo(...args) {
117
+ return Channels.getChannelInfo.apply(this, args);
118
+ }
119
+ async getChannelLink(...args) {
120
+ return Channels.getChannelLink.apply(this, args);
121
+ }
122
+ async joinChannelAction(...args) {
123
+ return Channels.joinChannelAction.apply(this, args);
124
+ }
125
+ async joinChannelByLink(...args) {
126
+ return Channels.joinChannelByLink.apply(this, args);
127
+ }
128
+ async removeChannel(...args) {
129
+ return Channels.removeChannel.apply(this, args);
130
+ }
131
+ async seenChannelMessages(...args) {
132
+ return Channels.seenChannelMessages.apply(this, args);
133
+ }
134
+ async setChannelLink(...args) {
135
+ return Channels.setChannelLink.apply(this, args);
136
+ }
137
+ async setChannelVoiceChatSetting(...args) {
138
+ return Channels.setChannelVoiceChatSetting.apply(this, args);
139
+ }
140
+ async updateChannelUsername(...args) {
141
+ return Channels.updateChannelUsername.apply(this, args);
142
+ }
143
+ // chats
144
+ async deleteAvatar(...args) {
145
+ return Chats.deleteAvatar.apply(this, args);
146
+ }
147
+ async deleteChatHistory(...args) {
148
+ return Chats.deleteChatHistory.apply(this, args);
149
+ }
150
+ async getAbsObjects(...args) {
151
+ return Chats.getAbsObjects.apply(this, args);
152
+ }
153
+ async getAvatars(...args) {
154
+ return Chats.getAvatars.apply(this, args);
155
+ }
156
+ async clickMessageUrl(...args) {
157
+ return Chats.clickMessageUrl.apply(this, args);
158
+ }
159
+ async searchGlobalMessages(...args) {
160
+ return Chats.searchGlobalMessages.apply(this, args);
161
+ }
162
+ async getChatReaction(...args) {
163
+ return Chats.getChatReaction.apply(this, args);
164
+ }
165
+ async sendLive(...args) {
166
+ return Chats.sendLive.apply(this, args);
167
+ }
168
+ async getLivePlayUrl(...args) {
169
+ return Chats.getLivePlayUrl.apply(this, args);
170
+ }
171
+ async getLiveComments(...args) {
172
+ return Chats.getLiveComments.apply(this, args);
173
+ }
174
+ async getLiveStatus(...args) {
175
+ return Chats.getLiveStatus.apply(this, args);
176
+ }
177
+ async addLiveComment(...args) {
178
+ return Chats.addLiveComment.apply(this, args);
179
+ }
180
+ async createJoinLink(...args) {
181
+ return Chats.createJoinLink.apply(this, args);
182
+ }
183
+ async editJoinLink(...args) {
184
+ return Chats.editJoinLink.apply(this, args);
185
+ }
186
+ async removeJoinLink(...args) {
187
+ return Chats.removeJoinLink.apply(this, args);
188
+ }
189
+ async getJoinRequests(...args) {
190
+ return Chats.getJoinRequests.apply(this, args);
191
+ }
192
+ async actionOnJoinRequest(...args) {
193
+ return Chats.actionOnJoinRequest.apply(this, args);
194
+ }
195
+ async getChats(...args) {
196
+ return Chats.getChats.apply(this, args);
197
+ }
198
+ async getChatsUpdates(...args) {
199
+ return Chats.getChatsUpdates.apply(this, args);
200
+ }
201
+ async getTopChatUsers(...args) {
202
+ return Chats.getTopChatUsers.apply(this, args);
203
+ }
204
+ async getObjectInfoByUsername(...args) {
205
+ return Chats.getObjectInfoByUsername.apply(this, args);
206
+ }
207
+ async removeFromTopChatUsers(...args) {
208
+ return Chats.removeFromTopChatUsers.apply(this, args);
209
+ }
210
+ async getLinkFromAppUrl(...args) {
211
+ return Chats.getLinkFromAppUrl.apply(this, args);
212
+ }
213
+ async searchChatMessages(...args) {
214
+ return Chats.searchChatMessages.apply(this, args);
215
+ }
216
+ async seenChats(...args) {
217
+ return Chats.seenChats.apply(this, args);
218
+ }
219
+ async sendChatActivity(...args) {
220
+ return Chats.sendChatActivity.apply(this, args);
221
+ }
222
+ async setActionChat(...args) {
223
+ return Chats.setActionChat.apply(this, args);
224
+ }
225
+ async uploadAvatar(...args) {
226
+ return Chats.uploadAvatar.apply(this, args);
227
+ }
228
+ // contacts
229
+ async addAddressBook(...args) {
230
+ return Contacts.addAddressBook.apply(this, args);
231
+ }
232
+ async deleteContact(...args) {
233
+ return Contacts.deleteContact.apply(this, args);
234
+ }
235
+ async getContacts(...args) {
236
+ return Contacts.getContacts.apply(this, args);
237
+ }
238
+ async getContactsLastOnline(...args) {
239
+ return Contacts.getContactsLastOnline.apply(this, args);
240
+ }
241
+ async resetContacts(...args) {
242
+ return Contacts.resetContacts.apply(this, args);
243
+ }
244
+ async getContactsUpdates(...args) {
245
+ return Contacts.getContactsUpdates.apply(this, args);
246
+ }
247
+ // extras
248
+ async banMember(...args) {
249
+ return Extras.banMember.apply(this, args);
250
+ }
251
+ async getInfo(...args) {
252
+ return Extras.getInfo.apply(this, args);
253
+ }
254
+ async getObjectByUsername(...args) {
255
+ return Extras.getObjectByUsername.apply(this, args);
256
+ }
257
+ async getProfileLinkItems(...args) {
258
+ return Extras.getProfileLinkItems.apply(this, args);
259
+ }
260
+ async getRelatedObjects(...args) {
261
+ return Extras.getRelatedObjects.apply(this, args);
262
+ }
263
+ async getTranscription(...args) {
264
+ return Extras.getTranscription.apply(this, args);
265
+ }
266
+ async join(...args) {
267
+ return Extras.join.apply(this, args);
268
+ }
269
+ async leaveChat(...args) {
270
+ return Extras.leaveChat.apply(this, args);
271
+ }
272
+ async reportObject(...args) {
273
+ return Extras.reportObject.apply(this, args);
274
+ }
275
+ async searchGlobalObjects(...args) {
276
+ return Extras.searchGlobalObjects.apply(this, args);
277
+ }
278
+ async transcribeVoice(...args) {
279
+ return Extras.transcribeVoice.apply(this, args);
280
+ }
281
+ async userIsAdmin(...args) {
282
+ return Extras.userIsAdmin.apply(this, args);
283
+ }
284
+ async deleteMessagebyCount(...args) {
285
+ return Extras.deleteMessagebyCount.apply(this, args);
286
+ }
287
+ async joinVoiceChat(...args) {
288
+ return Extras.joinVoiceChat.apply(this, args);
289
+ }
290
+ async setVoiceChatState(...args) {
291
+ return Extras.setVoiceChatState.apply(this, args);
292
+ }
293
+ async sendVoiceChatActivity(...args) {
294
+ return Extras.sendVoiceChatActivity.apply(this, args);
295
+ }
296
+ // gif
297
+ async addToMyGifSet(...args) {
298
+ return Gif.addToMyGifSet.apply(this, args);
299
+ }
300
+ async getMyGifSet(...args) {
301
+ return Gif.getMyGifSet.apply(this, args);
302
+ }
303
+ async removeFromMyGifSet(...args) {
304
+ return Gif.removeFromMyGifSet.apply(this, args);
305
+ }
306
+ // group
307
+ async addGroup(...args) {
308
+ return Groups.addGroup.apply(this, args);
309
+ }
310
+ async addGroupMembers(...args) {
311
+ return Groups.addGroupMembers.apply(this, args);
312
+ }
313
+ async banGroupMember(...args) {
314
+ return Groups.banGroupMember.apply(this, args);
315
+ }
316
+ async discardGroupVoiceChat(...args) {
317
+ return Groups.discardGroupVoiceChat.apply(this, args);
318
+ }
319
+ async createGroupVoiceChat(...args) {
320
+ return Groups.createGroupVoiceChat.apply(this, args);
321
+ }
322
+ async deleteNoAccessGroupChat(...args) {
323
+ return Groups.deleteNoAccessGroupChat.apply(this, args);
324
+ }
325
+ async editGroupInfo(...args) {
326
+ return Groups.editGroupInfo.apply(this, args);
327
+ }
328
+ async getBannedGroupMembers(...args) {
329
+ return Groups.getBannedGroupMembers.apply(this, args);
330
+ }
331
+ async getGroupAdminAccessList(...args) {
332
+ return Groups.getGroupAdminAccessList.apply(this, args);
333
+ }
334
+ async getGroupAdminMembers(...args) {
335
+ return Groups.getGroupAdminMembers.apply(this, args);
336
+ }
337
+ async getGroupOnlineCount(...args) {
338
+ return Groups.getGroupOnlineCount.apply(this, args);
339
+ }
340
+ async getGroupAllMembers(...args) {
341
+ return Groups.getGroupAllMembers.apply(this, args);
342
+ }
343
+ async getGroupDefaultAccess(...args) {
344
+ return Groups.getGroupDefaultAccess.apply(this, args);
345
+ }
346
+ async getGroupInfo(...args) {
347
+ return Groups.getGroupInfo.apply(this, args);
348
+ }
349
+ async getGroupLink(...args) {
350
+ return Groups.getGroupLink.apply(this, args);
351
+ }
352
+ async getGroupMentionList(...args) {
353
+ return Groups.getGroupMentionList.apply(this, args);
354
+ }
355
+ async getGroupVoiceChatUpdates(...args) {
356
+ return Groups.getGroupVoiceChatUpdates.apply(this, args);
357
+ }
358
+ async groupPreviewByJoinLink(...args) {
359
+ return Groups.groupPreviewByJoinLink.apply(this, args);
360
+ }
361
+ async joinGroup(...args) {
362
+ return Groups.joinGroup.apply(this, args);
363
+ }
364
+ async leaveGroup(...args) {
365
+ return Groups.leaveGroup.apply(this, args);
366
+ }
367
+ async leaveGroupVoiceChat(...args) {
368
+ return Groups.leaveGroupVoiceChat.apply(this, args);
369
+ }
370
+ async removeGroup(...args) {
371
+ return Groups.removeGroup.apply(this, args);
372
+ }
373
+ async setGroupAdmin(...args) {
374
+ return Groups.setGroupAdmin.apply(this, args);
375
+ }
376
+ async setGroupDefaultAccess(...args) {
377
+ return Groups.setGroupDefaultAccess.apply(this, args);
378
+ }
379
+ async seenGroupMessages(...args) {
380
+ return Groups.seenGroupMessages.apply(this, args);
381
+ }
382
+ async setGroupLink(...args) {
383
+ return Groups.setGroupLink.apply(this, args);
384
+ }
385
+ async setGroupVoiceChatSetting(...args) {
386
+ return Groups.setGroupVoiceChatSetting.apply(this, args);
387
+ }
388
+ async joinGroupVoiceChat(...args) {
389
+ return Groups.joinGroupVoiceChat.apply(this, args);
390
+ }
391
+ async getGroupVoiceChatParticipants(...args) {
392
+ return Groups.getGroupVoiceChatParticipants.apply(this, args);
393
+ }
394
+ // messages
395
+ async actionOnMessageReaction(...args) {
396
+ return Messages.actionOnMessageReaction.apply(this, args);
397
+ }
398
+ async createPoll(...args) {
399
+ return Messages.createPoll.apply(this, args);
400
+ }
401
+ async deleteMessages(...args) {
402
+ return Messages.deleteMessages.apply(this, args);
403
+ }
404
+ async editMessage(...args) {
405
+ return Messages.editMessage.apply(this, args);
406
+ }
407
+ async forwardMessages(...args) {
408
+ return Messages.forwardMessages.apply(this, args);
409
+ }
410
+ async getMessagesByID(...args) {
411
+ return Messages.getMessagesByID.apply(this, args);
412
+ }
413
+ async getMessagesInterval(...args) {
414
+ return Messages.getMessagesInterval.apply(this, args);
415
+ }
416
+ async getMessagesUpdates(...args) {
417
+ return Messages.getMessagesUpdates.apply(this, args);
418
+ }
419
+ async getMessageShareUrl(...args) {
420
+ return Messages.getMessageShareUrl.apply(this, args);
421
+ }
422
+ async getPollOptionVoters(...args) {
423
+ return Messages.getPollOptionVoters.apply(this, args);
424
+ }
425
+ async getPollStatus(...args) {
426
+ return Messages.getPollStatus.apply(this, args);
427
+ }
428
+ async sendDocument(...args) {
429
+ return Messages.sendDocument.apply(this, args);
430
+ }
431
+ async sendGif(...args) {
432
+ return Messages.sendGif.apply(this, args);
433
+ }
434
+ async sendMessage(...args) {
435
+ return Messages.sendMessage.apply(this, args);
436
+ }
437
+ async sendMusic(...args) {
438
+ return Messages.sendMusic.apply(this, args);
439
+ }
440
+ async sendPhoto(...args) {
441
+ return Messages.sendPhoto.apply(this, args);
442
+ }
443
+ // async sendSticker(
444
+ // this: Client,
445
+ // ...args: Parameters<typeof Messages.sendSticker>
446
+ // ): Promise<any> {
447
+ // return Messages.sendSticker.apply(this, args);
448
+ // }
449
+ async sendVideo(...args) {
450
+ return Messages.sendVideo.apply(this, args);
451
+ }
452
+ async sendVideoMessage(...args) {
453
+ return Messages.sendVideoMessage.apply(this, args);
454
+ }
455
+ async sendVoice(...args) {
456
+ return Messages.sendVoice.apply(this, args);
457
+ }
458
+ async setPinMessage(...args) {
459
+ return Messages.setPinMessage.apply(this, args);
460
+ }
461
+ async votePoll(...args) {
462
+ return Messages.votePoll.apply(this, args);
463
+ }
464
+ async sendText(...args) {
465
+ return Messages.sendText.apply(this, args);
466
+ }
467
+ async getMessages(...args) {
468
+ return Messages.getMessages.apply(this, args);
469
+ }
470
+ async sendFileInline(...args) {
471
+ return Messages.sendFileInline.apply(this, args);
472
+ }
473
+ // // settings
474
+ async deleteFolder(...args) {
475
+ return Settings.deleteFolder.apply(this, args);
476
+ }
477
+ async getBlockedUsers(...args) {
478
+ return Settings.getBlockedUsers.apply(this, args);
479
+ }
480
+ async getFolders(...args) {
481
+ return Settings.getFolders.apply(this, args);
482
+ }
483
+ async getMySessions(...args) {
484
+ return Settings.getMySessions.apply(this, args);
485
+ }
486
+ async getPrivacySetting(...args) {
487
+ return Settings.getPrivacySetting.apply(this, args);
488
+ }
489
+ async getSuggestedFolders(...args) {
490
+ return Settings.getSuggestedFolders.apply(this, args);
491
+ }
492
+ async getTwoPasscodeStatus(...args) {
493
+ return Settings.getTwoPasscodeStatus.apply(this, args);
494
+ }
495
+ async setupTwoStepVerification(...args) {
496
+ return Settings.setupTwoStepVerification.apply(this, args);
497
+ }
498
+ async setSetting(...args) {
499
+ return Settings.setSetting.apply(this, args);
500
+ }
501
+ async terminateSession(...args) {
502
+ return Settings.terminateSession.apply(this, args);
503
+ }
504
+ async updateProfile(...args) {
505
+ return Settings.updateProfile.apply(this, args);
506
+ }
507
+ async updateUsername(...args) {
508
+ return Settings.updateUsername.apply(this, args);
509
+ }
510
+ async changePassword(...args) {
511
+ return Settings.changePassword.apply(this, args);
512
+ }
513
+ async turnOffTwoStep(...args) {
514
+ return Settings.turnOffTwoStep.apply(this, args);
515
+ }
516
+ async verifyRecoveryEmail(...args) {
517
+ return Settings.verifyRecoveryEmail.apply(this, args);
518
+ }
519
+ async requestRecoveryEmail(...args) {
520
+ return Settings.requestRecoveryEmail.apply(this, args);
521
+ }
522
+ async checkTwoStepPasscode(...args) {
523
+ return Settings.checkTwoStepPasscode.apply(this, args);
524
+ }
525
+ async terminateOtherSessions(...args) {
526
+ return Settings.terminateOtherSessions.apply(this, args);
527
+ }
528
+ // // stickers
529
+ async actionOnStickerSet(...args) {
530
+ return Stickers.actionOnStickerSet.apply(this, args);
531
+ }
532
+ async getMyStickerSets(...args) {
533
+ return Stickers.getMyStickerSets.apply(this, args);
534
+ }
535
+ async getStickersByEmoji(...args) {
536
+ return Stickers.getStickersByEmoji.apply(this, args);
537
+ }
538
+ async getStickersBySetIds(...args) {
539
+ return Stickers.getStickersBySetIds.apply(this, args);
540
+ }
541
+ async getStickerSetByID(...args) {
542
+ return Stickers.getStickerSetByID.apply(this, args);
543
+ }
544
+ async getTrendStickerSets(...args) {
545
+ return Stickers.getTrendStickerSets.apply(this, args);
546
+ }
547
+ async searchStickers(...args) {
548
+ return Stickers.searchStickers.apply(this, args);
549
+ }
550
+ // // users
551
+ async checkUserUsername(...args) {
552
+ return Users.checkUserUsername.apply(this, args);
553
+ }
554
+ async deleteUserChat(...args) {
555
+ return Users.deleteUserChat.apply(this, args);
556
+ }
557
+ async getMe(...args) {
558
+ return Users.getMe.apply(this, args);
559
+ }
560
+ async getUserInfo(...args) {
561
+ return Users.getUserInfo.apply(this, args);
562
+ }
563
+ async setBlockUser(...args) {
564
+ return Users.setBlockUser.apply(this, args);
565
+ }
566
+ // // utilities
567
+ // async download(
568
+ // this: Client,
569
+ // ...args: Parameters<typeof Utilities.download>
570
+ // ): Promise<any> {
571
+ // return Utilities.download.apply(this, args);
572
+ // }
573
+ // async downloadProfilePicture(
574
+ // this: Client,
575
+ // ...args: Parameters<typeof Utilities.downloadProfilePicture>
576
+ // ): Promise<any> {
577
+ // return Utilities.downloadProfilePicture.apply(this, args);
578
+ // }
579
+ async runErrorMiddlewares(...args) {
580
+ return Utilities.runErrorMiddlewares.apply(this, args);
581
+ }
582
+ async usePlugin(...args) {
583
+ return Utilities.usePlugin.apply(this, args);
584
+ }
585
+ async useError(...args) {
586
+ return Utilities.useError.apply(this, args);
587
+ }
588
+ async run(...args) {
589
+ return Utilities.run.apply(this, args);
590
+ }
591
+ async requestSendFile(...args) {
592
+ return Utilities.requestSendFile.apply(this, args);
593
+ }
594
+ async start(...args) {
595
+ return Utilities.start.apply(this, args);
596
+ }
597
+ }
598
+ exports.default = Methods;
@@ -0,0 +1,3 @@
1
+ import Client from "../../client";
2
+ declare function actionOnMessageReaction(this: Client, object_guid: string, message_id: string, reaction_id?: number | null, action?: "Add" | "Remove"): Promise<any>;
3
+ export default actionOnMessageReaction;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ async function actionOnMessageReaction(object_guid, message_id, reaction_id = null, action = "Add") {
4
+ if (action === "Remove")
5
+ reaction_id = null;
6
+ const input = {
7
+ object_guid,
8
+ message_id,
9
+ action,
10
+ reaction_id,
11
+ };
12
+ return await this.builder("actionOnMessageReaction", input);
13
+ }
14
+ exports.default = actionOnMessageReaction;
@@ -0,0 +1,3 @@
1
+ import Client from '../../client';
2
+ declare function createPoll(this: Client, object_guid: string, question: string, options: string[], type?: 'Regular' | 'Quiz', is_anonymous?: boolean, allows_multiple_answers?: boolean, correct_option_index?: number, explanation?: string, reply_to_message_id?: string): Promise<any>;
3
+ export default createPoll;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ async function createPoll(object_guid, question, options, type = 'Regular', is_anonymous = true, allows_multiple_answers = true, correct_option_index, explanation, reply_to_message_id) {
4
+ if (options.length <= 1)
5
+ return console.warn('The `options` argument must have more than two string values.');
6
+ if (!['Quiz', 'Regular'].includes(type)) {
7
+ console.warn('The `type` argument can only be in `["Quiz", "Regular"]`. Using default "Quiz".');
8
+ type = 'Quiz';
9
+ }
10
+ const input = {
11
+ object_guid,
12
+ question,
13
+ options,
14
+ allows_multiple_answers,
15
+ is_anonymous,
16
+ reply_to_message_id,
17
+ type,
18
+ rnd: Math.floor(Math.random() * 1e6 + 1),
19
+ };
20
+ if (type === 'Quiz') {
21
+ input['correct_option_index'] = correct_option_index;
22
+ input['explanation'] = explanation;
23
+ }
24
+ return await this.builder('createPoll', input);
25
+ }
26
+ exports.default = createPoll;
@@ -0,0 +1,3 @@
1
+ import Client from "../../client";
2
+ declare function deleteMessages(this: Client, object_guid: string, message_ids: string | string[], type?: "Global" | "Local"): Promise<any>;
3
+ export default deleteMessages;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ async function deleteMessages(object_guid, message_ids, type = "Global") {
4
+ if (!["Global", "Local"].includes(type)) {
5
+ console.warn('`type` argument can only be in ("Global", "Local"). Using default "Global".');
6
+ type = "Global";
7
+ }
8
+ if (typeof message_ids === "string") {
9
+ message_ids = [message_ids];
10
+ }
11
+ return await this.builder("deleteMessages", {
12
+ object_guid,
13
+ message_ids,
14
+ type,
15
+ });
16
+ }
17
+ exports.default = deleteMessages;
@@ -0,0 +1,3 @@
1
+ import Client from "../../client";
2
+ declare function editMessage(this: Client, object_guid: string, message_id: string, text: string): Promise<any>;
3
+ export default editMessage;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const parser_1 = __importDefault(require("../../parser"));
7
+ async function editMessage(object_guid, message_id, text) {
8
+ const input = {
9
+ object_guid,
10
+ message_id,
11
+ ...parser_1.default.toMetadata(text),
12
+ };
13
+ return await this.builder("editMessage", input);
14
+ }
15
+ exports.default = editMessage;
@@ -0,0 +1,3 @@
1
+ import Client from '../../client';
2
+ declare function forwardMessages(this: Client, from_object_guid: string, to_object_guid: string, message_ids: string | string[]): Promise<any>;
3
+ export default forwardMessages;