rubjs 2.4.1 → 2.5.4

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