zalo-api-sdk 1.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 (459) hide show
  1. package/.prettierrc +5 -0
  2. package/.tmp-cache/_update-notifier-last-checked +0 -0
  3. package/CODE_OF_CONDUCT.md +157 -0
  4. package/CONTRIBUTING.md +491 -0
  5. package/LICENSE +21 -0
  6. package/README.md +421 -0
  7. package/SECURITY.md +82 -0
  8. package/commit-push.sh +79 -0
  9. package/deploy.sh +172 -0
  10. package/dist/Errors/ZaloApiError.d.ts +4 -0
  11. package/dist/Errors/ZaloApiError.js +7 -0
  12. package/dist/Errors/index.d.ts +1 -0
  13. package/dist/Errors/index.js +1 -0
  14. package/dist/apis/acceptFriendRequest.d.ts +2 -0
  15. package/dist/apis/acceptFriendRequest.js +28 -0
  16. package/dist/apis/addGroupBlockedMember.d.ts +2 -0
  17. package/dist/apis/addGroupBlockedMember.js +28 -0
  18. package/dist/apis/addGroupDeputy.d.ts +2 -0
  19. package/dist/apis/addGroupDeputy.js +30 -0
  20. package/dist/apis/addQuickMessage.d.ts +11 -0
  21. package/dist/apis/addQuickMessage.js +60 -0
  22. package/dist/apis/addReaction.d.ts +18 -0
  23. package/dist/apis/addReaction.js +294 -0
  24. package/dist/apis/addUnreadMark.d.ts +8 -0
  25. package/dist/apis/addUnreadMark.js +52 -0
  26. package/dist/apis/addUserToGroup.d.ts +5 -0
  27. package/dist/apis/addUserToGroup.js +34 -0
  28. package/dist/apis/blockUser.d.ts +2 -0
  29. package/dist/apis/blockUser.js +28 -0
  30. package/dist/apis/blockViewFeed.d.ts +2 -0
  31. package/dist/apis/blockViewFeed.js +30 -0
  32. package/dist/apis/changeAccountAvatar.d.ts +3 -0
  33. package/dist/apis/changeAccountAvatar.js +52 -0
  34. package/dist/apis/changeFriendAlias.d.ts +2 -0
  35. package/dist/apis/changeFriendAlias.js +27 -0
  36. package/dist/apis/changeGroupAvatar.d.ts +3 -0
  37. package/dist/apis/changeGroupAvatar.js +44 -0
  38. package/dist/apis/changeGroupName.d.ts +4 -0
  39. package/dist/apis/changeGroupName.js +32 -0
  40. package/dist/apis/changeGroupOwner.d.ts +4 -0
  41. package/dist/apis/changeGroupOwner.js +30 -0
  42. package/dist/apis/createAutoReply.d.ts +14 -0
  43. package/dist/apis/createAutoReply.js +37 -0
  44. package/dist/apis/createCatalog.d.ts +7 -0
  45. package/dist/apis/createCatalog.js +29 -0
  46. package/dist/apis/createGroup.d.ts +28 -0
  47. package/dist/apis/createGroup.js +43 -0
  48. package/dist/apis/createNoteGroup.d.ts +7 -0
  49. package/dist/apis/createNoteGroup.js +47 -0
  50. package/dist/apis/createPoll.d.ts +57 -0
  51. package/dist/apis/createPoll.js +40 -0
  52. package/dist/apis/createProductCatalog.d.ts +23 -0
  53. package/dist/apis/createProductCatalog.js +50 -0
  54. package/dist/apis/createReminder.d.ts +10 -0
  55. package/dist/apis/createReminder.js +63 -0
  56. package/dist/apis/custom.d.ts +9 -0
  57. package/dist/apis/custom.js +15 -0
  58. package/dist/apis/deleteAutoReply.d.ts +5 -0
  59. package/dist/apis/deleteAutoReply.js +29 -0
  60. package/dist/apis/deleteAvatar.d.ts +9 -0
  61. package/dist/apis/deleteAvatar.js +27 -0
  62. package/dist/apis/deleteCatalog.d.ts +2 -0
  63. package/dist/apis/deleteCatalog.js +28 -0
  64. package/dist/apis/deleteChat.d.ts +19 -0
  65. package/dist/apis/deleteChat.js +50 -0
  66. package/dist/apis/deleteMessage.d.ts +14 -0
  67. package/dist/apis/deleteMessage.js +52 -0
  68. package/dist/apis/deleteProductCatalog.d.ts +10 -0
  69. package/dist/apis/deleteProductCatalog.js +31 -0
  70. package/dist/apis/disableGroupLink.d.ts +2 -0
  71. package/dist/apis/disableGroupLink.js +24 -0
  72. package/dist/apis/disperseGroup.d.ts +2 -0
  73. package/dist/apis/disperseGroup.js +28 -0
  74. package/dist/apis/editNoteGroup.d.ts +32 -0
  75. package/dist/apis/editNoteGroup.js +40 -0
  76. package/dist/apis/editReminder.d.ts +18 -0
  77. package/dist/apis/editReminder.js +61 -0
  78. package/dist/apis/enableGroupLink.d.ts +6 -0
  79. package/dist/apis/enableGroupLink.js +25 -0
  80. package/dist/apis/fetchAccountInfo.d.ts +34 -0
  81. package/dist/apis/fetchAccountInfo.js +10 -0
  82. package/dist/apis/findUser.d.ts +15 -0
  83. package/dist/apis/findUser.js +40 -0
  84. package/dist/apis/forwardMessage.d.ts +26 -0
  85. package/dist/apis/forwardMessage.js +99 -0
  86. package/dist/apis/getAliasList.d.ts +8 -0
  87. package/dist/apis/getAliasList.js +27 -0
  88. package/dist/apis/getAllFriends.d.ts +34 -0
  89. package/dist/apis/getAllFriends.js +32 -0
  90. package/dist/apis/getAllGroups.d.ts +7 -0
  91. package/dist/apis/getAllGroups.js +10 -0
  92. package/dist/apis/getArchivedChatList.d.ts +5 -0
  93. package/dist/apis/getArchivedChatList.js +23 -0
  94. package/dist/apis/getAutoDeleteChat.d.ts +9 -0
  95. package/dist/apis/getAutoDeleteChat.js +21 -0
  96. package/dist/apis/getAutoReplyList.d.ts +6 -0
  97. package/dist/apis/getAutoReplyList.js +24 -0
  98. package/dist/apis/getAvatarList.d.ts +12 -0
  99. package/dist/apis/getAvatarList.js +28 -0
  100. package/dist/apis/getBizAccount.d.ts +19 -0
  101. package/dist/apis/getBizAccount.js +27 -0
  102. package/dist/apis/getCatalogList.d.ts +12 -0
  103. package/dist/apis/getCatalogList.js +32 -0
  104. package/dist/apis/getContext.d.ts +1 -0
  105. package/dist/apis/getContext.js +4 -0
  106. package/dist/apis/getCookie.d.ts +1 -0
  107. package/dist/apis/getCookie.js +9 -0
  108. package/dist/apis/getFriendBoardList.d.ts +5 -0
  109. package/dist/apis/getFriendBoardList.js +26 -0
  110. package/dist/apis/getFriendRequestStatus.d.ts +8 -0
  111. package/dist/apis/getFriendRequestStatus.js +25 -0
  112. package/dist/apis/getGroupBlockedMember.d.ts +17 -0
  113. package/dist/apis/getGroupBlockedMember.js +29 -0
  114. package/dist/apis/getGroupInfo.d.ts +43 -0
  115. package/dist/apis/getGroupInfo.js +32 -0
  116. package/dist/apis/getGroupLinkDetail.d.ts +6 -0
  117. package/dist/apis/getGroupLinkDetail.js +25 -0
  118. package/dist/apis/getGroupLinkInfo.d.ts +31 -0
  119. package/dist/apis/getGroupLinkInfo.js +28 -0
  120. package/dist/apis/getGroupMembersInfo.d.ts +17 -0
  121. package/dist/apis/getGroupMembersInfo.js +24 -0
  122. package/dist/apis/getHiddenConversations.d.ts +11 -0
  123. package/dist/apis/getHiddenConversations.js +23 -0
  124. package/dist/apis/getLabels.d.ts +15 -0
  125. package/dist/apis/getLabels.js +28 -0
  126. package/dist/apis/getListBoard.d.ts +15 -0
  127. package/dist/apis/getListBoard.js +45 -0
  128. package/dist/apis/getListReminder.d.ts +22 -0
  129. package/dist/apis/getListReminder.js +47 -0
  130. package/dist/apis/getMute.d.ts +13 -0
  131. package/dist/apis/getMute.js +22 -0
  132. package/dist/apis/getOwnId.d.ts +1 -0
  133. package/dist/apis/getOwnId.js +4 -0
  134. package/dist/apis/getPendingGroupMembers.d.ts +10 -0
  135. package/dist/apis/getPendingGroupMembers.js +27 -0
  136. package/dist/apis/getPinConversations.d.ts +5 -0
  137. package/dist/apis/getPinConversations.js +22 -0
  138. package/dist/apis/getPollDetail.d.ts +3 -0
  139. package/dist/apis/getPollDetail.js +30 -0
  140. package/dist/apis/getProductCatalogList.d.ts +14 -0
  141. package/dist/apis/getProductCatalogList.js +33 -0
  142. package/dist/apis/getQR.d.ts +4 -0
  143. package/dist/apis/getQR.js +29 -0
  144. package/dist/apis/getQuickMessage.d.ts +7 -0
  145. package/dist/apis/getQuickMessage.js +24 -0
  146. package/dist/apis/getReceivedFriendRequests.d.ts +35 -0
  147. package/dist/apis/getReceivedFriendRequests.js +22 -0
  148. package/dist/apis/getReminder.d.ts +13 -0
  149. package/dist/apis/getReminder.js +25 -0
  150. package/dist/apis/getReminderResponses.d.ts +5 -0
  151. package/dist/apis/getReminderResponses.js +24 -0
  152. package/dist/apis/getSentFriendRequest.d.ts +17 -0
  153. package/dist/apis/getSentFriendRequest.js +24 -0
  154. package/dist/apis/getStickers.d.ts +1 -0
  155. package/dist/apis/getStickers.js +40 -0
  156. package/dist/apis/getStickersDetail.d.ts +24 -0
  157. package/dist/apis/getStickersDetail.js +40 -0
  158. package/dist/apis/getUnreadMark.d.ts +14 -0
  159. package/dist/apis/getUnreadMark.js +30 -0
  160. package/dist/apis/getUserInfo.d.ts +39 -0
  161. package/dist/apis/getUserInfo.js +42 -0
  162. package/dist/apis/inviteUserToGroups.d.ts +10 -0
  163. package/dist/apis/inviteUserToGroups.js +30 -0
  164. package/dist/apis/joinGroupLink.d.ts +2 -0
  165. package/dist/apis/joinGroupLink.js +27 -0
  166. package/dist/apis/keepAlive.d.ts +4 -0
  167. package/dist/apis/keepAlive.js +22 -0
  168. package/dist/apis/lastOnline.d.ts +7 -0
  169. package/dist/apis/lastOnline.js +26 -0
  170. package/dist/apis/leaveGroup.d.ts +4 -0
  171. package/dist/apis/leaveGroup.js +33 -0
  172. package/dist/apis/listen.d.ts +100 -0
  173. package/dist/apis/listen.js +424 -0
  174. package/dist/apis/lockPoll.d.ts +2 -0
  175. package/dist/apis/lockPoll.js +28 -0
  176. package/dist/apis/login.d.ts +3 -0
  177. package/dist/apis/login.js +96 -0
  178. package/dist/apis/loginQR.d.ts +70 -0
  179. package/dist/apis/loginQR.js +359 -0
  180. package/dist/apis/parseLink.d.ts +21 -0
  181. package/dist/apis/parseLink.js +27 -0
  182. package/dist/apis/removeFriend.d.ts +2 -0
  183. package/dist/apis/removeFriend.js +28 -0
  184. package/dist/apis/removeFriendAlias.d.ts +2 -0
  185. package/dist/apis/removeFriendAlias.js +24 -0
  186. package/dist/apis/removeGroupBlockedMember.d.ts +2 -0
  187. package/dist/apis/removeGroupBlockedMember.js +28 -0
  188. package/dist/apis/removeGroupDeputy.d.ts +2 -0
  189. package/dist/apis/removeGroupDeputy.js +30 -0
  190. package/dist/apis/removeQuickMessage.d.ts +5 -0
  191. package/dist/apis/removeQuickMessage.js +27 -0
  192. package/dist/apis/removeReminder.d.ts +3 -0
  193. package/dist/apis/removeReminder.js +40 -0
  194. package/dist/apis/removeUnreadMark.d.ts +8 -0
  195. package/dist/apis/removeUnreadMark.js +50 -0
  196. package/dist/apis/removeUserFromGroup.d.ts +4 -0
  197. package/dist/apis/removeUserFromGroup.js +34 -0
  198. package/dist/apis/resetHiddenConversPin.d.ts +2 -0
  199. package/dist/apis/resetHiddenConversPin.js +20 -0
  200. package/dist/apis/reuseAvatar.d.ts +2 -0
  201. package/dist/apis/reuseAvatar.js +26 -0
  202. package/dist/apis/reviewPendingMemberRequest.d.ts +6 -0
  203. package/dist/apis/reviewPendingMemberRequest.js +31 -0
  204. package/dist/apis/sendBankCard.d.ts +9 -0
  205. package/dist/apis/sendBankCard.js +39 -0
  206. package/dist/apis/sendCard.d.ts +10 -0
  207. package/dist/apis/sendCard.js +59 -0
  208. package/dist/apis/sendDeliveredEvent.d.ts +16 -0
  209. package/dist/apis/sendDeliveredEvent.js +55 -0
  210. package/dist/apis/sendFriendRequest.d.ts +2 -0
  211. package/dist/apis/sendFriendRequest.js +39 -0
  212. package/dist/apis/sendLink.d.ts +10 -0
  213. package/dist/apis/sendLink.js +61 -0
  214. package/dist/apis/sendMessage.d.ts +99 -0
  215. package/dist/apis/sendMessage.js +460 -0
  216. package/dist/apis/sendReport.d.ts +17 -0
  217. package/dist/apis/sendReport.js +53 -0
  218. package/dist/apis/sendSeenEvent.d.ts +16 -0
  219. package/dist/apis/sendSeenEvent.js +63 -0
  220. package/dist/apis/sendSticker.d.ts +6 -0
  221. package/dist/apis/sendSticker.js +56 -0
  222. package/dist/apis/sendTypingEvent.d.ts +5 -0
  223. package/dist/apis/sendTypingEvent.js +33 -0
  224. package/dist/apis/sendVideo.d.ts +35 -0
  225. package/dist/apis/sendVideo.js +118 -0
  226. package/dist/apis/sendVoice.d.ts +12 -0
  227. package/dist/apis/sendVoice.js +73 -0
  228. package/dist/apis/setHiddenConversations.d.ts +3 -0
  229. package/dist/apis/setHiddenConversations.js +37 -0
  230. package/dist/apis/setMute.d.ts +17 -0
  231. package/dist/apis/setMute.js +67 -0
  232. package/dist/apis/setPinnedConversations.d.ts +3 -0
  233. package/dist/apis/setPinnedConversations.js +34 -0
  234. package/dist/apis/unblockUser.d.ts +2 -0
  235. package/dist/apis/unblockUser.js +28 -0
  236. package/dist/apis/undo.d.ts +9 -0
  237. package/dist/apis/undo.js +42 -0
  238. package/dist/apis/undoFriendRequest.d.ts +2 -0
  239. package/dist/apis/undoFriendRequest.js +27 -0
  240. package/dist/apis/updateAutoDeleteChat.d.ts +9 -0
  241. package/dist/apis/updateAutoDeleteChat.js +40 -0
  242. package/dist/apis/updateAutoReply.d.ts +14 -0
  243. package/dist/apis/updateAutoReply.js +37 -0
  244. package/dist/apis/updateCatalog.d.ts +11 -0
  245. package/dist/apis/updateCatalog.js +30 -0
  246. package/dist/apis/updateGroupSettings.d.ts +40 -0
  247. package/dist/apis/updateGroupSettings.js +43 -0
  248. package/dist/apis/updateHiddenConversPin.d.ts +2 -0
  249. package/dist/apis/updateHiddenConversPin.js +30 -0
  250. package/dist/apis/updateLabels.d.ts +24 -0
  251. package/dist/apis/updateLabels.js +34 -0
  252. package/dist/apis/updateLang.d.ts +7 -0
  253. package/dist/apis/updateLang.js +32 -0
  254. package/dist/apis/updateProductCatalog.d.ts +25 -0
  255. package/dist/apis/updateProductCatalog.js +51 -0
  256. package/dist/apis/updateProfile.d.ts +13 -0
  257. package/dist/apis/updateProfile.js +42 -0
  258. package/dist/apis/updateQuickMessage.d.ts +11 -0
  259. package/dist/apis/updateQuickMessage.js +61 -0
  260. package/dist/apis/updateSettings.d.ts +3 -0
  261. package/dist/apis/updateSettings.js +23 -0
  262. package/dist/apis/uploadAttachment.d.ts +50 -0
  263. package/dist/apis/uploadAttachment.js +205 -0
  264. package/dist/apis/uploadProductPhoto.d.ts +14 -0
  265. package/dist/apis/uploadProductPhoto.js +50 -0
  266. package/dist/cjs/Errors/ZaloApiError.cjs +11 -0
  267. package/dist/cjs/apis/acceptFriendRequest.cjs +33 -0
  268. package/dist/cjs/apis/addGroupBlockedMember.cjs +33 -0
  269. package/dist/cjs/apis/addGroupDeputy.cjs +35 -0
  270. package/dist/cjs/apis/addQuickMessage.cjs +65 -0
  271. package/dist/cjs/apis/addReaction.cjs +304 -0
  272. package/dist/cjs/apis/addUnreadMark.cjs +62 -0
  273. package/dist/cjs/apis/addUserToGroup.cjs +39 -0
  274. package/dist/cjs/apis/blockUser.cjs +33 -0
  275. package/dist/cjs/apis/blockViewFeed.cjs +35 -0
  276. package/dist/cjs/apis/changeAccountAvatar.cjs +57 -0
  277. package/dist/cjs/apis/changeFriendAlias.cjs +32 -0
  278. package/dist/cjs/apis/changeGroupAvatar.cjs +49 -0
  279. package/dist/cjs/apis/changeGroupName.cjs +37 -0
  280. package/dist/cjs/apis/changeGroupOwner.cjs +35 -0
  281. package/dist/cjs/apis/createAutoReply.cjs +42 -0
  282. package/dist/cjs/apis/createCatalog.cjs +34 -0
  283. package/dist/cjs/apis/createGroup.cjs +48 -0
  284. package/dist/cjs/apis/createNoteGroup.cjs +52 -0
  285. package/dist/cjs/apis/createPoll.cjs +45 -0
  286. package/dist/cjs/apis/createProductCatalog.cjs +55 -0
  287. package/dist/cjs/apis/createReminder.cjs +73 -0
  288. package/dist/cjs/apis/custom.cjs +19 -0
  289. package/dist/cjs/apis/deleteAutoReply.cjs +34 -0
  290. package/dist/cjs/apis/deleteAvatar.cjs +32 -0
  291. package/dist/cjs/apis/deleteCatalog.cjs +33 -0
  292. package/dist/cjs/apis/deleteChat.cjs +60 -0
  293. package/dist/cjs/apis/deleteMessage.cjs +62 -0
  294. package/dist/cjs/apis/deleteProductCatalog.cjs +36 -0
  295. package/dist/cjs/apis/disableGroupLink.cjs +29 -0
  296. package/dist/cjs/apis/disperseGroup.cjs +33 -0
  297. package/dist/cjs/apis/editNoteGroup.cjs +45 -0
  298. package/dist/cjs/apis/editReminder.cjs +71 -0
  299. package/dist/cjs/apis/enableGroupLink.cjs +30 -0
  300. package/dist/cjs/apis/fetchAccountInfo.cjs +15 -0
  301. package/dist/cjs/apis/findUser.cjs +45 -0
  302. package/dist/cjs/apis/forwardMessage.cjs +109 -0
  303. package/dist/cjs/apis/getAliasList.cjs +32 -0
  304. package/dist/cjs/apis/getAllFriends.cjs +37 -0
  305. package/dist/cjs/apis/getAllGroups.cjs +15 -0
  306. package/dist/cjs/apis/getArchivedChatList.cjs +28 -0
  307. package/dist/cjs/apis/getAutoDeleteChat.cjs +26 -0
  308. package/dist/cjs/apis/getAutoReplyList.cjs +29 -0
  309. package/dist/cjs/apis/getAvatarList.cjs +33 -0
  310. package/dist/cjs/apis/getBizAccount.cjs +32 -0
  311. package/dist/cjs/apis/getCatalogList.cjs +37 -0
  312. package/dist/cjs/apis/getContext.cjs +9 -0
  313. package/dist/cjs/apis/getCookie.cjs +14 -0
  314. package/dist/cjs/apis/getFriendBoardList.cjs +31 -0
  315. package/dist/cjs/apis/getFriendRequestStatus.cjs +30 -0
  316. package/dist/cjs/apis/getGroupBlockedMember.cjs +34 -0
  317. package/dist/cjs/apis/getGroupInfo.cjs +37 -0
  318. package/dist/cjs/apis/getGroupLinkDetail.cjs +30 -0
  319. package/dist/cjs/apis/getGroupLinkInfo.cjs +33 -0
  320. package/dist/cjs/apis/getGroupMembersInfo.cjs +29 -0
  321. package/dist/cjs/apis/getHiddenConversations.cjs +28 -0
  322. package/dist/cjs/apis/getLabels.cjs +33 -0
  323. package/dist/cjs/apis/getListBoard.cjs +55 -0
  324. package/dist/cjs/apis/getListReminder.cjs +57 -0
  325. package/dist/cjs/apis/getMute.cjs +27 -0
  326. package/dist/cjs/apis/getOwnId.cjs +9 -0
  327. package/dist/cjs/apis/getPendingGroupMembers.cjs +32 -0
  328. package/dist/cjs/apis/getPinConversations.cjs +27 -0
  329. package/dist/cjs/apis/getPollDetail.cjs +35 -0
  330. package/dist/cjs/apis/getProductCatalogList.cjs +38 -0
  331. package/dist/cjs/apis/getQR.cjs +34 -0
  332. package/dist/cjs/apis/getQuickMessage.cjs +29 -0
  333. package/dist/cjs/apis/getReceivedFriendRequests.cjs +27 -0
  334. package/dist/cjs/apis/getReminder.cjs +30 -0
  335. package/dist/cjs/apis/getReminderResponses.cjs +29 -0
  336. package/dist/cjs/apis/getSentFriendRequest.cjs +29 -0
  337. package/dist/cjs/apis/getStickers.cjs +45 -0
  338. package/dist/cjs/apis/getStickersDetail.cjs +45 -0
  339. package/dist/cjs/apis/getUnreadMark.cjs +35 -0
  340. package/dist/cjs/apis/getUserInfo.cjs +47 -0
  341. package/dist/cjs/apis/inviteUserToGroups.cjs +35 -0
  342. package/dist/cjs/apis/joinGroupLink.cjs +32 -0
  343. package/dist/cjs/apis/keepAlive.cjs +27 -0
  344. package/dist/cjs/apis/lastOnline.cjs +31 -0
  345. package/dist/cjs/apis/leaveGroup.cjs +38 -0
  346. package/dist/cjs/apis/listen.cjs +435 -0
  347. package/dist/cjs/apis/lockPoll.cjs +33 -0
  348. package/dist/cjs/apis/login.cjs +102 -0
  349. package/dist/cjs/apis/loginQR.cjs +364 -0
  350. package/dist/cjs/apis/parseLink.cjs +32 -0
  351. package/dist/cjs/apis/removeFriend.cjs +33 -0
  352. package/dist/cjs/apis/removeFriendAlias.cjs +29 -0
  353. package/dist/cjs/apis/removeGroupBlockedMember.cjs +33 -0
  354. package/dist/cjs/apis/removeGroupDeputy.cjs +35 -0
  355. package/dist/cjs/apis/removeQuickMessage.cjs +32 -0
  356. package/dist/cjs/apis/removeReminder.cjs +50 -0
  357. package/dist/cjs/apis/removeUnreadMark.cjs +60 -0
  358. package/dist/cjs/apis/removeUserFromGroup.cjs +39 -0
  359. package/dist/cjs/apis/resetHiddenConversPin.cjs +25 -0
  360. package/dist/cjs/apis/reuseAvatar.cjs +31 -0
  361. package/dist/cjs/apis/reviewPendingMemberRequest.cjs +36 -0
  362. package/dist/cjs/apis/sendBankCard.cjs +49 -0
  363. package/dist/cjs/apis/sendCard.cjs +69 -0
  364. package/dist/cjs/apis/sendDeliveredEvent.cjs +65 -0
  365. package/dist/cjs/apis/sendFriendRequest.cjs +44 -0
  366. package/dist/cjs/apis/sendLink.cjs +71 -0
  367. package/dist/cjs/apis/sendMessage.cjs +469 -0
  368. package/dist/cjs/apis/sendReport.cjs +63 -0
  369. package/dist/cjs/apis/sendSeenEvent.cjs +73 -0
  370. package/dist/cjs/apis/sendSticker.cjs +66 -0
  371. package/dist/cjs/apis/sendTypingEvent.cjs +43 -0
  372. package/dist/cjs/apis/sendVideo.cjs +128 -0
  373. package/dist/cjs/apis/sendVoice.cjs +83 -0
  374. package/dist/cjs/apis/setHiddenConversations.cjs +47 -0
  375. package/dist/cjs/apis/setMute.cjs +77 -0
  376. package/dist/cjs/apis/setPinnedConversations.cjs +44 -0
  377. package/dist/cjs/apis/unblockUser.cjs +33 -0
  378. package/dist/cjs/apis/undo.cjs +52 -0
  379. package/dist/cjs/apis/undoFriendRequest.cjs +32 -0
  380. package/dist/cjs/apis/updateAutoDeleteChat.cjs +50 -0
  381. package/dist/cjs/apis/updateAutoReply.cjs +42 -0
  382. package/dist/cjs/apis/updateCatalog.cjs +35 -0
  383. package/dist/cjs/apis/updateGroupSettings.cjs +48 -0
  384. package/dist/cjs/apis/updateHiddenConversPin.cjs +35 -0
  385. package/dist/cjs/apis/updateLabels.cjs +39 -0
  386. package/dist/cjs/apis/updateLang.cjs +37 -0
  387. package/dist/cjs/apis/updateProductCatalog.cjs +56 -0
  388. package/dist/cjs/apis/updateProfile.cjs +47 -0
  389. package/dist/cjs/apis/updateQuickMessage.cjs +66 -0
  390. package/dist/cjs/apis/updateSettings.cjs +28 -0
  391. package/dist/cjs/apis/uploadAttachment.cjs +215 -0
  392. package/dist/cjs/apis/uploadProductPhoto.cjs +55 -0
  393. package/dist/cjs/context.cjs +34 -0
  394. package/dist/cjs/index.cjs +121 -0
  395. package/dist/cjs/models/AutoReply.cjs +9 -0
  396. package/dist/cjs/models/DeliveredMessage.cjs +23 -0
  397. package/dist/cjs/models/Enum.cjs +95 -0
  398. package/dist/cjs/models/FriendEvent.cjs +87 -0
  399. package/dist/cjs/models/GroupEvent.cjs +88 -0
  400. package/dist/cjs/models/Message.cjs +32 -0
  401. package/dist/cjs/models/Reaction.cjs +74 -0
  402. package/dist/cjs/models/SeenMessage.cjs +23 -0
  403. package/dist/cjs/models/Typing.cjs +23 -0
  404. package/dist/cjs/models/Undo.cjs +16 -0
  405. package/dist/cjs/models/ZBusiness.cjs +46 -0
  406. package/dist/cjs/update.cjs +27 -0
  407. package/dist/cjs/utils.cjs +732 -0
  408. package/dist/cjs/zalo.cjs +360 -0
  409. package/dist/context.d.ts +177 -0
  410. package/dist/context.js +28 -0
  411. package/dist/index.d.ts +130 -0
  412. package/dist/index.js +11 -0
  413. package/dist/models/Attachment.d.ts +9 -0
  414. package/dist/models/Attachment.js +1 -0
  415. package/dist/models/AutoReply.d.ts +20 -0
  416. package/dist/models/AutoReply.js +7 -0
  417. package/dist/models/Board.d.ts +54 -0
  418. package/dist/models/Board.js +1 -0
  419. package/dist/models/Catalog.d.ts +16 -0
  420. package/dist/models/Catalog.js +1 -0
  421. package/dist/models/DeliveredMessage.d.ts +27 -0
  422. package/dist/models/DeliveredMessage.js +17 -0
  423. package/dist/models/Enum.d.ts +87 -0
  424. package/dist/models/Enum.js +93 -0
  425. package/dist/models/FriendEvent.d.ts +107 -0
  426. package/dist/models/FriendEvent.js +83 -0
  427. package/dist/models/GroupEvent.d.ts +197 -0
  428. package/dist/models/GroupEvent.js +84 -0
  429. package/dist/models/Message.d.ts +91 -0
  430. package/dist/models/Message.js +26 -0
  431. package/dist/models/ProductCatalog.d.ts +17 -0
  432. package/dist/models/ProductCatalog.js +1 -0
  433. package/dist/models/QuickMessage.d.ts +25 -0
  434. package/dist/models/QuickMessage.js +1 -0
  435. package/dist/models/Reaction.d.ts +85 -0
  436. package/dist/models/Reaction.js +70 -0
  437. package/dist/models/Reminder.d.ts +35 -0
  438. package/dist/models/Reminder.js +1 -0
  439. package/dist/models/SeenMessage.d.ts +26 -0
  440. package/dist/models/SeenMessage.js +17 -0
  441. package/dist/models/Typing.d.ts +24 -0
  442. package/dist/models/Typing.js +17 -0
  443. package/dist/models/Undo.d.ts +34 -0
  444. package/dist/models/Undo.js +12 -0
  445. package/dist/models/ZBusiness.d.ts +29 -0
  446. package/dist/models/ZBusiness.js +42 -0
  447. package/dist/models/index.d.ts +17 -0
  448. package/dist/models/index.js +17 -0
  449. package/dist/update.d.ts +2 -0
  450. package/dist/update.js +22 -0
  451. package/dist/utils.d.ts +168 -0
  452. package/dist/utils.js +748 -0
  453. package/dist/zalo.d.ts +291 -0
  454. package/dist/zalo.js +354 -0
  455. package/eslint.config.js +21 -0
  456. package/index.d.ts +2 -0
  457. package/package.json +143 -0
  458. package/qr.png +0 -0
  459. package/rollup.config.js +28 -0
package/dist/zalo.d.ts ADDED
@@ -0,0 +1,291 @@
1
+ import { Listener } from "./apis/listen.js";
2
+ import { type ContextSession, type Options, type ZPWServiceMap } from "./context.js";
3
+ import toughCookie from "tough-cookie";
4
+ import { acceptFriendRequestFactory } from "./apis/acceptFriendRequest.js";
5
+ import { addGroupBlockedMemberFactory } from "./apis/addGroupBlockedMember.js";
6
+ import { addGroupDeputyFactory } from "./apis/addGroupDeputy.js";
7
+ import { addQuickMessageFactory } from "./apis/addQuickMessage.js";
8
+ import { addReactionFactory } from "./apis/addReaction.js";
9
+ import { addUnreadMarkFactory } from "./apis/addUnreadMark.js";
10
+ import { addUserToGroupFactory } from "./apis/addUserToGroup.js";
11
+ import { blockUserFactory } from "./apis/blockUser.js";
12
+ import { blockViewFeedFactory } from "./apis/blockViewFeed.js";
13
+ import { changeAccountAvatarFactory } from "./apis/changeAccountAvatar.js";
14
+ import { changeFriendAliasFactory } from "./apis/changeFriendAlias.js";
15
+ import { changeGroupAvatarFactory } from "./apis/changeGroupAvatar.js";
16
+ import { changeGroupNameFactory } from "./apis/changeGroupName.js";
17
+ import { changeGroupOwnerFactory } from "./apis/changeGroupOwner.js";
18
+ import { createAutoReplyFactory } from "./apis/createAutoReply.js";
19
+ import { createCatalogFactory } from "./apis/createCatalog.js";
20
+ import { createGroupFactory } from "./apis/createGroup.js";
21
+ import { createNoteGroupFactory } from "./apis/createNoteGroup.js";
22
+ import { createPollFactory } from "./apis/createPoll.js";
23
+ import { createProductCatalogFactory } from "./apis/createProductCatalog.js";
24
+ import { createReminderFactory } from "./apis/createReminder.js";
25
+ import { deleteAutoReplyFactory } from "./apis/deleteAutoReply.js";
26
+ import { deleteAvatarFactory } from "./apis/deleteAvatar.js";
27
+ import { deleteCatalogFactory } from "./apis/deleteCatalog.js";
28
+ import { deleteChatFactory } from "./apis/deleteChat.js";
29
+ import { deleteMessageFactory } from "./apis/deleteMessage.js";
30
+ import { deleteProductCatalogFactory } from "./apis/deleteProductCatalog.js";
31
+ import { disableGroupLinkFactory } from "./apis/disableGroupLink.js";
32
+ import { disperseGroupFactory } from "./apis/disperseGroup.js";
33
+ import { editNoteGroupFactory } from "./apis/editNoteGroup.js";
34
+ import { editReminderFactory } from "./apis/editReminder.js";
35
+ import { enableGroupLinkFactory } from "./apis/enableGroupLink.js";
36
+ import { fetchAccountInfoFactory } from "./apis/fetchAccountInfo.js";
37
+ import { findUserFactory } from "./apis/findUser.js";
38
+ import { forwardMessageFactory } from "./apis/forwardMessage.js";
39
+ import { getAliasListFactory } from "./apis/getAliasList.js";
40
+ import { getAllFriendsFactory } from "./apis/getAllFriends.js";
41
+ import { getAllGroupsFactory } from "./apis/getAllGroups.js";
42
+ import { getArchivedChatListFactory } from "./apis/getArchivedChatList.js";
43
+ import { getAutoDeleteChatFactory } from "./apis/getAutoDeleteChat.js";
44
+ import { getAutoReplyListFactory } from "./apis/getAutoReplyList.js";
45
+ import { getAvatarListFactory } from "./apis/getAvatarList.js";
46
+ import { getBizAccountFactory } from "./apis/getBizAccount.js";
47
+ import { getCatalogListFactory } from "./apis/getCatalogList.js";
48
+ import { getContextFactory } from "./apis/getContext.js";
49
+ import { getCookieFactory } from "./apis/getCookie.js";
50
+ import { getFriendBoardListFactory } from "./apis/getFriendBoardList.js";
51
+ import { getFriendRequestStatusFactory } from "./apis/getFriendRequestStatus.js";
52
+ import { getGroupBlockedMemberFactory } from "./apis/getGroupBlockedMember.js";
53
+ import { getGroupInfoFactory } from "./apis/getGroupInfo.js";
54
+ import { getGroupLinkDetailFactory } from "./apis/getGroupLinkDetail.js";
55
+ import { getGroupLinkInfoFactory } from "./apis/getGroupLinkInfo.js";
56
+ import { getGroupMembersInfoFactory } from "./apis/getGroupMembersInfo.js";
57
+ import { getHiddenConversationsFactory } from "./apis/getHiddenConversations.js";
58
+ import { getLabelsFactory } from "./apis/getLabels.js";
59
+ import { getListBoardFactory } from "./apis/getListBoard.js";
60
+ import { getListReminderFactory } from "./apis/getListReminder.js";
61
+ import { getMuteFactory } from "./apis/getMute.js";
62
+ import { getOwnIdFactory } from "./apis/getOwnId.js";
63
+ import { getPendingGroupMembersFactory } from "./apis/getPendingGroupMembers.js";
64
+ import { getPinConversationsFactory } from "./apis/getPinConversations.js";
65
+ import { getPollDetailFactory } from "./apis/getPollDetail.js";
66
+ import { getProductCatalogListFactory } from "./apis/getProductCatalogList.js";
67
+ import { getQRFactory } from "./apis/getQR.js";
68
+ import { getQuickMessageFactory } from "./apis/getQuickMessage.js";
69
+ import { getReceivedFriendRequestsFactory } from "./apis/getReceivedFriendRequests.js";
70
+ import { getReminderFactory } from "./apis/getReminder.js";
71
+ import { getReminderResponsesFactory } from "./apis/getReminderResponses.js";
72
+ import { getSentFriendRequestFactory } from "./apis/getSentFriendRequest.js";
73
+ import { getStickersFactory } from "./apis/getStickers.js";
74
+ import { getStickersDetailFactory } from "./apis/getStickersDetail.js";
75
+ import { getUnreadMarkFactory } from "./apis/getUnreadMark.js";
76
+ import { getUserInfoFactory } from "./apis/getUserInfo.js";
77
+ import { inviteUserToGroupsFactory } from "./apis/inviteUserToGroups.js";
78
+ import { joinGroupLinkFactory } from "./apis/joinGroupLink.js";
79
+ import { keepAliveFactory } from "./apis/keepAlive.js";
80
+ import { lastOnlineFactory } from "./apis/lastOnline.js";
81
+ import { leaveGroupFactory } from "./apis/leaveGroup.js";
82
+ import { lockPollFactory } from "./apis/lockPoll.js";
83
+ import { type LoginQRCallback } from "./apis/loginQR.js";
84
+ import { parseLinkFactory } from "./apis/parseLink.js";
85
+ import { removeFriendFactory } from "./apis/removeFriend.js";
86
+ import { removeFriendAliasFactory } from "./apis/removeFriendAlias.js";
87
+ import { removeGroupBlockedMemberFactory } from "./apis/removeGroupBlockedMember.js";
88
+ import { removeGroupDeputyFactory } from "./apis/removeGroupDeputy.js";
89
+ import { removeQuickMessageFactory } from "./apis/removeQuickMessage.js";
90
+ import { removeReminderFactory } from "./apis/removeReminder.js";
91
+ import { removeUnreadMarkFactory } from "./apis/removeUnreadMark.js";
92
+ import { removeUserFromGroupFactory } from "./apis/removeUserFromGroup.js";
93
+ import { resetHiddenConversPinFactory } from "./apis/resetHiddenConversPin.js";
94
+ import { reuseAvatarFactory } from "./apis/reuseAvatar.js";
95
+ import { reviewPendingMemberRequestFactory } from "./apis/reviewPendingMemberRequest.js";
96
+ import { sendBankCardFactory } from "./apis/sendBankCard.js";
97
+ import { sendCardFactory } from "./apis/sendCard.js";
98
+ import { sendDeliveredEventFactory } from "./apis/sendDeliveredEvent.js";
99
+ import { sendFriendRequestFactory } from "./apis/sendFriendRequest.js";
100
+ import { sendLinkFactory } from "./apis/sendLink.js";
101
+ import { sendMessageFactory } from "./apis/sendMessage.js";
102
+ import { sendReportFactory } from "./apis/sendReport.js";
103
+ import { sendSeenEventFactory } from "./apis/sendSeenEvent.js";
104
+ import { sendStickerFactory } from "./apis/sendSticker.js";
105
+ import { sendTypingEventFactory } from "./apis/sendTypingEvent.js";
106
+ import { sendVideoFactory } from "./apis/sendVideo.js";
107
+ import { sendVoiceFactory } from "./apis/sendVoice.js";
108
+ import { setHiddenConversationsFactory } from "./apis/setHiddenConversations.js";
109
+ import { setMuteFactory } from "./apis/setMute.js";
110
+ import { setPinnedConversationsFactory } from "./apis/setPinnedConversations.js";
111
+ import { unblockUserFactory } from "./apis/unblockUser.js";
112
+ import { undoFactory } from "./apis/undo.js";
113
+ import { undoFriendRequestFactory } from "./apis/undoFriendRequest.js";
114
+ import { updateAutoDeleteChatFactory } from "./apis/updateAutoDeleteChat.js";
115
+ import { updateAutoReplyFactory } from "./apis/updateAutoReply.js";
116
+ import { updateCatalogFactory } from "./apis/updateCatalog.js";
117
+ import { updateGroupSettingsFactory } from "./apis/updateGroupSettings.js";
118
+ import { updateHiddenConversPinFactory } from "./apis/updateHiddenConversPin.js";
119
+ import { updateLabelsFactory } from "./apis/updateLabels.js";
120
+ import { updateLangFactory } from "./apis/updateLang.js";
121
+ import { updateProductCatalogFactory } from "./apis/updateProductCatalog.js";
122
+ import { updateProfileFactory } from "./apis/updateProfile.js";
123
+ import { updateQuickMessageFactory } from "./apis/updateQuickMessage.js";
124
+ import { updateSettingsFactory } from "./apis/updateSettings.js";
125
+ import { uploadAttachmentFactory } from "./apis/uploadAttachment.js";
126
+ import { uploadProductPhotoFactory } from "./apis/uploadProductPhoto.js";
127
+ import { customFactory } from "./apis/custom.js";
128
+ export type Cookie = {
129
+ domain: string;
130
+ expirationDate: number;
131
+ hostOnly: boolean;
132
+ httpOnly: boolean;
133
+ name: string;
134
+ path: string;
135
+ sameSite: string;
136
+ secure: boolean;
137
+ session: boolean;
138
+ storeId: string;
139
+ value: string;
140
+ };
141
+ export type Credentials = {
142
+ imei: string;
143
+ cookie: Cookie[] | toughCookie.SerializedCookie[] | {
144
+ url: string;
145
+ cookies: Cookie[];
146
+ };
147
+ userAgent: string;
148
+ language?: string;
149
+ };
150
+ export declare class Zalo {
151
+ private options;
152
+ private enableEncryptParam;
153
+ constructor(options?: Partial<Options>);
154
+ private parseCookies;
155
+ private validateParams;
156
+ login(credentials: Credentials): Promise<API>;
157
+ private loginCookie;
158
+ loginQR(options?: {
159
+ userAgent?: string;
160
+ language?: string;
161
+ qrPath?: string;
162
+ }, callback?: LoginQRCallback): Promise<API>;
163
+ }
164
+ export declare class API {
165
+ zpwServiceMap: ZPWServiceMap;
166
+ listener: Listener;
167
+ acceptFriendRequest: ReturnType<typeof acceptFriendRequestFactory>;
168
+ addGroupBlockedMember: ReturnType<typeof addGroupBlockedMemberFactory>;
169
+ addGroupDeputy: ReturnType<typeof addGroupDeputyFactory>;
170
+ addQuickMessage: ReturnType<typeof addQuickMessageFactory>;
171
+ addReaction: ReturnType<typeof addReactionFactory>;
172
+ addUnreadMark: ReturnType<typeof addUnreadMarkFactory>;
173
+ addUserToGroup: ReturnType<typeof addUserToGroupFactory>;
174
+ blockUser: ReturnType<typeof blockUserFactory>;
175
+ blockViewFeed: ReturnType<typeof blockViewFeedFactory>;
176
+ changeAccountAvatar: ReturnType<typeof changeAccountAvatarFactory>;
177
+ changeFriendAlias: ReturnType<typeof changeFriendAliasFactory>;
178
+ changeGroupAvatar: ReturnType<typeof changeGroupAvatarFactory>;
179
+ changeGroupName: ReturnType<typeof changeGroupNameFactory>;
180
+ changeGroupOwner: ReturnType<typeof changeGroupOwnerFactory>;
181
+ createAutoReply: ReturnType<typeof createAutoReplyFactory>;
182
+ createCatalog: ReturnType<typeof createCatalogFactory>;
183
+ createGroup: ReturnType<typeof createGroupFactory>;
184
+ createNoteGroup: ReturnType<typeof createNoteGroupFactory>;
185
+ createPoll: ReturnType<typeof createPollFactory>;
186
+ createProductCatalog: ReturnType<typeof createProductCatalogFactory>;
187
+ createReminder: ReturnType<typeof createReminderFactory>;
188
+ deleteAutoReply: ReturnType<typeof deleteAutoReplyFactory>;
189
+ deleteAvatarList: ReturnType<typeof deleteAvatarFactory>;
190
+ deleteCatalog: ReturnType<typeof deleteCatalogFactory>;
191
+ deleteChat: ReturnType<typeof deleteChatFactory>;
192
+ deleteMessage: ReturnType<typeof deleteMessageFactory>;
193
+ deleteProductCatalog: ReturnType<typeof deleteProductCatalogFactory>;
194
+ disableGroupLink: ReturnType<typeof disableGroupLinkFactory>;
195
+ disperseGroup: ReturnType<typeof disperseGroupFactory>;
196
+ editNoteGroup: ReturnType<typeof editNoteGroupFactory>;
197
+ editReminder: ReturnType<typeof editReminderFactory>;
198
+ enableGroupLink: ReturnType<typeof enableGroupLinkFactory>;
199
+ fetchAccountInfo: ReturnType<typeof fetchAccountInfoFactory>;
200
+ findUser: ReturnType<typeof findUserFactory>;
201
+ forwardMessage: ReturnType<typeof forwardMessageFactory>;
202
+ getAliasList: ReturnType<typeof getAliasListFactory>;
203
+ getAllFriends: ReturnType<typeof getAllFriendsFactory>;
204
+ getAllGroups: ReturnType<typeof getAllGroupsFactory>;
205
+ getArchivedChatList: ReturnType<typeof getArchivedChatListFactory>;
206
+ getAutoDeleteChat: ReturnType<typeof getAutoDeleteChatFactory>;
207
+ getAutoReplyList: ReturnType<typeof getAutoReplyListFactory>;
208
+ getAvatarList: ReturnType<typeof getAvatarListFactory>;
209
+ getBizAccount: ReturnType<typeof getBizAccountFactory>;
210
+ getCatalogList: ReturnType<typeof getCatalogListFactory>;
211
+ getContext: ReturnType<typeof getContextFactory>;
212
+ getCookie: ReturnType<typeof getCookieFactory>;
213
+ getFriendBoardList: ReturnType<typeof getFriendBoardListFactory>;
214
+ getFriendRequestStatus: ReturnType<typeof getFriendRequestStatusFactory>;
215
+ getGroupBlockedMember: ReturnType<typeof getGroupBlockedMemberFactory>;
216
+ getGroupInfo: ReturnType<typeof getGroupInfoFactory>;
217
+ getGroupLinkDetail: ReturnType<typeof getGroupLinkDetailFactory>;
218
+ getGroupLinkInfo: ReturnType<typeof getGroupLinkInfoFactory>;
219
+ getGroupMembersInfo: ReturnType<typeof getGroupMembersInfoFactory>;
220
+ getHiddenConversations: ReturnType<typeof getHiddenConversationsFactory>;
221
+ getLabels: ReturnType<typeof getLabelsFactory>;
222
+ getListBoard: ReturnType<typeof getListBoardFactory>;
223
+ getListReminder: ReturnType<typeof getListReminderFactory>;
224
+ getMute: ReturnType<typeof getMuteFactory>;
225
+ getOwnId: ReturnType<typeof getOwnIdFactory>;
226
+ getPendingGroupMembers: ReturnType<typeof getPendingGroupMembersFactory>;
227
+ getPinConversations: ReturnType<typeof getPinConversationsFactory>;
228
+ getPollDetail: ReturnType<typeof getPollDetailFactory>;
229
+ getProductCatalogList: ReturnType<typeof getProductCatalogListFactory>;
230
+ getQR: ReturnType<typeof getQRFactory>;
231
+ getQuickMessage: ReturnType<typeof getQuickMessageFactory>;
232
+ getReceivedFriendRequests: ReturnType<typeof getReceivedFriendRequestsFactory>;
233
+ getReminder: ReturnType<typeof getReminderFactory>;
234
+ getReminderResponses: ReturnType<typeof getReminderResponsesFactory>;
235
+ getSentFriendRequest: ReturnType<typeof getSentFriendRequestFactory>;
236
+ getStickers: ReturnType<typeof getStickersFactory>;
237
+ getStickersDetail: ReturnType<typeof getStickersDetailFactory>;
238
+ getUnreadMark: ReturnType<typeof getUnreadMarkFactory>;
239
+ getUserInfo: ReturnType<typeof getUserInfoFactory>;
240
+ inviteUserToGroups: ReturnType<typeof inviteUserToGroupsFactory>;
241
+ joinGroupLink: ReturnType<typeof joinGroupLinkFactory>;
242
+ keepAlive: ReturnType<typeof keepAliveFactory>;
243
+ lastOnline: ReturnType<typeof lastOnlineFactory>;
244
+ leaveGroup: ReturnType<typeof leaveGroupFactory>;
245
+ lockPoll: ReturnType<typeof lockPollFactory>;
246
+ parseLink: ReturnType<typeof parseLinkFactory>;
247
+ removeFriend: ReturnType<typeof removeFriendFactory>;
248
+ removeFriendAlias: ReturnType<typeof removeFriendAliasFactory>;
249
+ removeGroupBlockedMember: ReturnType<typeof removeGroupBlockedMemberFactory>;
250
+ removeGroupDeputy: ReturnType<typeof removeGroupDeputyFactory>;
251
+ removeQuickMessage: ReturnType<typeof removeQuickMessageFactory>;
252
+ removeReminder: ReturnType<typeof removeReminderFactory>;
253
+ removeUnreadMark: ReturnType<typeof removeUnreadMarkFactory>;
254
+ removeUserFromGroup: ReturnType<typeof removeUserFromGroupFactory>;
255
+ resetHiddenConversPin: ReturnType<typeof resetHiddenConversPinFactory>;
256
+ reuseAvatar: ReturnType<typeof reuseAvatarFactory>;
257
+ reviewPendingMemberRequest: ReturnType<typeof reviewPendingMemberRequestFactory>;
258
+ sendBankCard: ReturnType<typeof sendBankCardFactory>;
259
+ sendCard: ReturnType<typeof sendCardFactory>;
260
+ sendDeliveredEvent: ReturnType<typeof sendDeliveredEventFactory>;
261
+ sendFriendRequest: ReturnType<typeof sendFriendRequestFactory>;
262
+ sendLink: ReturnType<typeof sendLinkFactory>;
263
+ sendMessage: ReturnType<typeof sendMessageFactory>;
264
+ sendReport: ReturnType<typeof sendReportFactory>;
265
+ sendSeenEvent: ReturnType<typeof sendSeenEventFactory>;
266
+ sendSticker: ReturnType<typeof sendStickerFactory>;
267
+ sendTypingEvent: ReturnType<typeof sendTypingEventFactory>;
268
+ sendVideo: ReturnType<typeof sendVideoFactory>;
269
+ sendVoice: ReturnType<typeof sendVoiceFactory>;
270
+ setHiddenConversations: ReturnType<typeof setHiddenConversationsFactory>;
271
+ setMute: ReturnType<typeof setMuteFactory>;
272
+ setPinnedConversations: ReturnType<typeof setPinnedConversationsFactory>;
273
+ unblockUser: ReturnType<typeof unblockUserFactory>;
274
+ undo: ReturnType<typeof undoFactory>;
275
+ undoFriendRequest: ReturnType<typeof undoFriendRequestFactory>;
276
+ updateAutoDeleteChat: ReturnType<typeof updateAutoDeleteChatFactory>;
277
+ updateAutoReply: ReturnType<typeof updateAutoReplyFactory>;
278
+ updateCatalog: ReturnType<typeof updateCatalogFactory>;
279
+ updateGroupSettings: ReturnType<typeof updateGroupSettingsFactory>;
280
+ updateHiddenConversPin: ReturnType<typeof updateHiddenConversPinFactory>;
281
+ updateLabels: ReturnType<typeof updateLabelsFactory>;
282
+ updateLang: ReturnType<typeof updateLangFactory>;
283
+ updateProductCatalog: ReturnType<typeof updateProductCatalogFactory>;
284
+ updateProfile: ReturnType<typeof updateProfileFactory>;
285
+ updateQuickMessage: ReturnType<typeof updateQuickMessageFactory>;
286
+ updateSettings: ReturnType<typeof updateSettingsFactory>;
287
+ uploadAttachment: ReturnType<typeof uploadAttachmentFactory>;
288
+ uploadProductPhoto: ReturnType<typeof uploadProductPhotoFactory>;
289
+ custom: ReturnType<typeof customFactory>;
290
+ constructor(ctx: ContextSession, zpwServiceMap: ZPWServiceMap, wsUrls: string[]);
291
+ }
package/dist/zalo.js ADDED
@@ -0,0 +1,354 @@
1
+ import { Listener } from "./apis/listen.js";
2
+ import { getServerInfo, login } from "./apis/login.js";
3
+ import { createContext, isContextSession, } from "./context.js";
4
+ import { generateZaloUUID, logger } from "./utils.js";
5
+ import toughCookie from "tough-cookie";
6
+ import { acceptFriendRequestFactory } from "./apis/acceptFriendRequest.js";
7
+ import { addGroupBlockedMemberFactory } from "./apis/addGroupBlockedMember.js";
8
+ import { addGroupDeputyFactory } from "./apis/addGroupDeputy.js";
9
+ import { addQuickMessageFactory } from "./apis/addQuickMessage.js";
10
+ import { addReactionFactory } from "./apis/addReaction.js";
11
+ import { addUnreadMarkFactory } from "./apis/addUnreadMark.js";
12
+ import { addUserToGroupFactory } from "./apis/addUserToGroup.js";
13
+ import { blockUserFactory } from "./apis/blockUser.js";
14
+ import { blockViewFeedFactory } from "./apis/blockViewFeed.js";
15
+ import { changeAccountAvatarFactory } from "./apis/changeAccountAvatar.js";
16
+ import { changeFriendAliasFactory } from "./apis/changeFriendAlias.js";
17
+ import { changeGroupAvatarFactory } from "./apis/changeGroupAvatar.js";
18
+ import { changeGroupNameFactory } from "./apis/changeGroupName.js";
19
+ import { changeGroupOwnerFactory } from "./apis/changeGroupOwner.js";
20
+ import { createAutoReplyFactory } from "./apis/createAutoReply.js";
21
+ import { createCatalogFactory } from "./apis/createCatalog.js";
22
+ import { createGroupFactory } from "./apis/createGroup.js";
23
+ import { createNoteGroupFactory } from "./apis/createNoteGroup.js";
24
+ import { createPollFactory } from "./apis/createPoll.js";
25
+ import { createProductCatalogFactory } from "./apis/createProductCatalog.js";
26
+ import { createReminderFactory } from "./apis/createReminder.js";
27
+ import { deleteAutoReplyFactory } from "./apis/deleteAutoReply.js";
28
+ import { deleteAvatarFactory } from "./apis/deleteAvatar.js";
29
+ import { deleteCatalogFactory } from "./apis/deleteCatalog.js";
30
+ import { deleteChatFactory } from "./apis/deleteChat.js";
31
+ import { deleteMessageFactory } from "./apis/deleteMessage.js";
32
+ import { deleteProductCatalogFactory } from "./apis/deleteProductCatalog.js";
33
+ import { disableGroupLinkFactory } from "./apis/disableGroupLink.js";
34
+ import { disperseGroupFactory } from "./apis/disperseGroup.js";
35
+ import { editNoteGroupFactory } from "./apis/editNoteGroup.js";
36
+ import { editReminderFactory } from "./apis/editReminder.js";
37
+ import { enableGroupLinkFactory } from "./apis/enableGroupLink.js";
38
+ import { fetchAccountInfoFactory } from "./apis/fetchAccountInfo.js";
39
+ import { findUserFactory } from "./apis/findUser.js";
40
+ import { forwardMessageFactory } from "./apis/forwardMessage.js";
41
+ import { getAliasListFactory } from "./apis/getAliasList.js";
42
+ import { getAllFriendsFactory } from "./apis/getAllFriends.js";
43
+ import { getAllGroupsFactory } from "./apis/getAllGroups.js";
44
+ import { getArchivedChatListFactory } from "./apis/getArchivedChatList.js";
45
+ import { getAutoDeleteChatFactory } from "./apis/getAutoDeleteChat.js";
46
+ import { getAutoReplyListFactory } from "./apis/getAutoReplyList.js";
47
+ import { getAvatarListFactory } from "./apis/getAvatarList.js";
48
+ import { getBizAccountFactory } from "./apis/getBizAccount.js";
49
+ import { getCatalogListFactory } from "./apis/getCatalogList.js";
50
+ import { getContextFactory } from "./apis/getContext.js";
51
+ import { getCookieFactory } from "./apis/getCookie.js";
52
+ import { getFriendBoardListFactory } from "./apis/getFriendBoardList.js";
53
+ import { getFriendRequestStatusFactory } from "./apis/getFriendRequestStatus.js";
54
+ import { getGroupBlockedMemberFactory } from "./apis/getGroupBlockedMember.js";
55
+ import { getGroupInfoFactory } from "./apis/getGroupInfo.js";
56
+ import { getGroupLinkDetailFactory } from "./apis/getGroupLinkDetail.js";
57
+ import { getGroupLinkInfoFactory } from "./apis/getGroupLinkInfo.js";
58
+ import { getGroupMembersInfoFactory } from "./apis/getGroupMembersInfo.js";
59
+ import { getHiddenConversationsFactory } from "./apis/getHiddenConversations.js";
60
+ import { getLabelsFactory } from "./apis/getLabels.js";
61
+ import { getListBoardFactory } from "./apis/getListBoard.js";
62
+ import { getListReminderFactory } from "./apis/getListReminder.js";
63
+ import { getMuteFactory } from "./apis/getMute.js";
64
+ import { getOwnIdFactory } from "./apis/getOwnId.js";
65
+ import { getPendingGroupMembersFactory } from "./apis/getPendingGroupMembers.js";
66
+ import { getPinConversationsFactory } from "./apis/getPinConversations.js";
67
+ import { getPollDetailFactory } from "./apis/getPollDetail.js";
68
+ import { getProductCatalogListFactory } from "./apis/getProductCatalogList.js";
69
+ import { getQRFactory } from "./apis/getQR.js";
70
+ import { getQuickMessageFactory } from "./apis/getQuickMessage.js";
71
+ import { getReceivedFriendRequestsFactory } from "./apis/getReceivedFriendRequests.js";
72
+ import { getReminderFactory } from "./apis/getReminder.js";
73
+ import { getReminderResponsesFactory } from "./apis/getReminderResponses.js";
74
+ import { getSentFriendRequestFactory } from "./apis/getSentFriendRequest.js";
75
+ import { getStickersFactory } from "./apis/getStickers.js";
76
+ import { getStickersDetailFactory } from "./apis/getStickersDetail.js";
77
+ import { getUnreadMarkFactory } from "./apis/getUnreadMark.js";
78
+ import { getUserInfoFactory } from "./apis/getUserInfo.js";
79
+ import { inviteUserToGroupsFactory } from "./apis/inviteUserToGroups.js";
80
+ import { joinGroupLinkFactory } from "./apis/joinGroupLink.js";
81
+ import { keepAliveFactory } from "./apis/keepAlive.js";
82
+ import { lastOnlineFactory } from "./apis/lastOnline.js";
83
+ import { leaveGroupFactory } from "./apis/leaveGroup.js";
84
+ import { lockPollFactory } from "./apis/lockPoll.js";
85
+ import { loginQR, LoginQRCallbackEventType } from "./apis/loginQR.js";
86
+ import { parseLinkFactory } from "./apis/parseLink.js";
87
+ import { removeFriendFactory } from "./apis/removeFriend.js";
88
+ import { removeFriendAliasFactory } from "./apis/removeFriendAlias.js";
89
+ import { removeGroupBlockedMemberFactory } from "./apis/removeGroupBlockedMember.js";
90
+ import { removeGroupDeputyFactory } from "./apis/removeGroupDeputy.js";
91
+ import { removeQuickMessageFactory } from "./apis/removeQuickMessage.js";
92
+ import { removeReminderFactory } from "./apis/removeReminder.js";
93
+ import { removeUnreadMarkFactory } from "./apis/removeUnreadMark.js";
94
+ import { removeUserFromGroupFactory } from "./apis/removeUserFromGroup.js";
95
+ import { resetHiddenConversPinFactory } from "./apis/resetHiddenConversPin.js";
96
+ import { reuseAvatarFactory } from "./apis/reuseAvatar.js";
97
+ import { reviewPendingMemberRequestFactory } from "./apis/reviewPendingMemberRequest.js";
98
+ import { sendBankCardFactory } from "./apis/sendBankCard.js";
99
+ import { sendCardFactory } from "./apis/sendCard.js";
100
+ import { sendDeliveredEventFactory } from "./apis/sendDeliveredEvent.js";
101
+ import { sendFriendRequestFactory } from "./apis/sendFriendRequest.js";
102
+ import { sendLinkFactory } from "./apis/sendLink.js";
103
+ import { sendMessageFactory } from "./apis/sendMessage.js";
104
+ import { sendReportFactory } from "./apis/sendReport.js";
105
+ import { sendSeenEventFactory } from "./apis/sendSeenEvent.js";
106
+ import { sendStickerFactory } from "./apis/sendSticker.js";
107
+ import { sendTypingEventFactory } from "./apis/sendTypingEvent.js";
108
+ import { sendVideoFactory } from "./apis/sendVideo.js";
109
+ import { sendVoiceFactory } from "./apis/sendVoice.js";
110
+ import { setHiddenConversationsFactory } from "./apis/setHiddenConversations.js";
111
+ import { setMuteFactory } from "./apis/setMute.js";
112
+ import { setPinnedConversationsFactory } from "./apis/setPinnedConversations.js";
113
+ import { unblockUserFactory } from "./apis/unblockUser.js";
114
+ import { undoFactory } from "./apis/undo.js";
115
+ import { undoFriendRequestFactory } from "./apis/undoFriendRequest.js";
116
+ import { updateAutoDeleteChatFactory } from "./apis/updateAutoDeleteChat.js";
117
+ import { updateAutoReplyFactory } from "./apis/updateAutoReply.js";
118
+ import { updateCatalogFactory } from "./apis/updateCatalog.js";
119
+ import { updateGroupSettingsFactory } from "./apis/updateGroupSettings.js";
120
+ import { updateHiddenConversPinFactory } from "./apis/updateHiddenConversPin.js";
121
+ import { updateLabelsFactory } from "./apis/updateLabels.js";
122
+ import { updateLangFactory } from "./apis/updateLang.js";
123
+ import { updateProductCatalogFactory } from "./apis/updateProductCatalog.js";
124
+ import { updateProfileFactory } from "./apis/updateProfile.js";
125
+ import { updateQuickMessageFactory } from "./apis/updateQuickMessage.js";
126
+ import { updateSettingsFactory } from "./apis/updateSettings.js";
127
+ import { uploadAttachmentFactory } from "./apis/uploadAttachment.js";
128
+ import { uploadProductPhotoFactory } from "./apis/uploadProductPhoto.js";
129
+ import { ZaloApiError } from "./Errors/ZaloApiError.js";
130
+ import { checkUpdate } from "./update.js";
131
+ import { customFactory } from "./apis/custom.js";
132
+ export class Zalo {
133
+ constructor(options = {}) {
134
+ this.options = options;
135
+ this.enableEncryptParam = true;
136
+ }
137
+ parseCookies(cookie) {
138
+ var _a;
139
+ const cookieArr = Array.isArray(cookie) ? cookie : cookie.cookies;
140
+ cookieArr.forEach((e, i) => {
141
+ if (typeof e.domain == "string" && e.domain.startsWith("."))
142
+ cookieArr[i].domain = e.domain.slice(1);
143
+ });
144
+ const jar = new toughCookie.CookieJar();
145
+ for (const each of cookieArr) {
146
+ try {
147
+ jar.setCookieSync((_a = toughCookie.Cookie.fromJSON(Object.assign(Object.assign({}, each), { key: each.key || each.name }))) !== null && _a !== void 0 ? _a : "", "https://chat.zalo.me");
148
+ }
149
+ catch (error) {
150
+ logger({
151
+ options: {
152
+ logging: this.options.logging,
153
+ },
154
+ }).error("Failed to set cookie:", error);
155
+ }
156
+ }
157
+ return jar;
158
+ }
159
+ validateParams(credentials) {
160
+ if (!credentials.imei || !credentials.cookie || !credentials.userAgent) {
161
+ throw new ZaloApiError("Missing required params");
162
+ }
163
+ }
164
+ async login(credentials) {
165
+ const ctx = createContext(this.options.apiType, this.options.apiVersion);
166
+ Object.assign(ctx.options, this.options);
167
+ return this.loginCookie(ctx, credentials);
168
+ }
169
+ async loginCookie(ctx, credentials) {
170
+ await checkUpdate(ctx);
171
+ this.validateParams(credentials);
172
+ ctx.imei = credentials.imei;
173
+ ctx.cookie = this.parseCookies(credentials.cookie);
174
+ ctx.userAgent = credentials.userAgent;
175
+ ctx.language = credentials.language || "vi";
176
+ const loginData = await login(ctx, this.enableEncryptParam);
177
+ const serverInfo = await getServerInfo(ctx, this.enableEncryptParam);
178
+ const loginInfo = loginData === null || loginData === void 0 ? void 0 : loginData.data;
179
+ if (!loginData || !loginInfo || !serverInfo)
180
+ throw new ZaloApiError("Đăng nhập thất bại");
181
+ ctx.secretKey = loginInfo.zpw_enk;
182
+ ctx.uid = loginInfo.uid;
183
+ // Zalo currently responds with setttings instead of settings
184
+ // they might fix this in the future, so we should have a fallback just in case
185
+ ctx.settings = serverInfo.setttings || serverInfo.settings;
186
+ ctx.extraVer = serverInfo.extra_ver;
187
+ ctx.loginInfo = loginInfo;
188
+ if (!isContextSession(ctx))
189
+ throw new ZaloApiError("Khởi tạo ngữ cảnh thất bại.");
190
+ logger(ctx).info("Logged in as", loginInfo.uid);
191
+ return new API(ctx, loginInfo.zpw_service_map_v3, loginInfo.zpw_ws);
192
+ }
193
+ async loginQR(options, callback) {
194
+ if (!options)
195
+ options = {};
196
+ if (!options.userAgent)
197
+ options.userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0";
198
+ if (!options.language)
199
+ options.language = "vi";
200
+ const ctx = createContext(this.options.apiType, this.options.apiVersion);
201
+ Object.assign(ctx.options, this.options);
202
+ const loginQRResult = await loginQR(ctx, options, callback);
203
+ if (!loginQRResult)
204
+ throw new ZaloApiError("Unable to login with QRCode");
205
+ const imei = generateZaloUUID(options.userAgent);
206
+ if (callback) {
207
+ // Thanks to @YanCastle for this great suggestion!
208
+ callback({
209
+ type: LoginQRCallbackEventType.GotLoginInfo,
210
+ data: {
211
+ cookie: loginQRResult.cookies,
212
+ imei,
213
+ userAgent: options.userAgent,
214
+ },
215
+ actions: null,
216
+ });
217
+ }
218
+ return this.loginCookie(ctx, {
219
+ cookie: loginQRResult.cookies,
220
+ imei,
221
+ userAgent: options.userAgent,
222
+ language: options.language,
223
+ });
224
+ }
225
+ }
226
+ export class API {
227
+ constructor(ctx, zpwServiceMap, wsUrls) {
228
+ this.zpwServiceMap = zpwServiceMap;
229
+ this.listener = new Listener(ctx, wsUrls);
230
+ this.acceptFriendRequest = acceptFriendRequestFactory(ctx, this);
231
+ this.addGroupBlockedMember = addGroupBlockedMemberFactory(ctx, this);
232
+ this.addGroupDeputy = addGroupDeputyFactory(ctx, this);
233
+ this.addQuickMessage = addQuickMessageFactory(ctx, this);
234
+ this.addReaction = addReactionFactory(ctx, this);
235
+ this.addUnreadMark = addUnreadMarkFactory(ctx, this);
236
+ this.addUserToGroup = addUserToGroupFactory(ctx, this);
237
+ this.blockUser = blockUserFactory(ctx, this);
238
+ this.blockViewFeed = blockViewFeedFactory(ctx, this);
239
+ this.changeAccountAvatar = changeAccountAvatarFactory(ctx, this);
240
+ this.changeFriendAlias = changeFriendAliasFactory(ctx, this);
241
+ this.changeGroupAvatar = changeGroupAvatarFactory(ctx, this);
242
+ this.changeGroupName = changeGroupNameFactory(ctx, this);
243
+ this.changeGroupOwner = changeGroupOwnerFactory(ctx, this);
244
+ this.createAutoReply = createAutoReplyFactory(ctx, this);
245
+ this.createCatalog = createCatalogFactory(ctx, this);
246
+ this.createGroup = createGroupFactory(ctx, this);
247
+ this.createNoteGroup = createNoteGroupFactory(ctx, this);
248
+ this.createPoll = createPollFactory(ctx, this);
249
+ this.createProductCatalog = createProductCatalogFactory(ctx, this);
250
+ this.createReminder = createReminderFactory(ctx, this);
251
+ this.deleteAutoReply = deleteAutoReplyFactory(ctx, this);
252
+ this.deleteAvatarList = deleteAvatarFactory(ctx, this);
253
+ this.deleteCatalog = deleteCatalogFactory(ctx, this);
254
+ this.deleteChat = deleteChatFactory(ctx, this);
255
+ this.deleteMessage = deleteMessageFactory(ctx, this);
256
+ this.deleteProductCatalog = deleteProductCatalogFactory(ctx, this);
257
+ this.disableGroupLink = disableGroupLinkFactory(ctx, this);
258
+ this.disperseGroup = disperseGroupFactory(ctx, this);
259
+ this.editNoteGroup = editNoteGroupFactory(ctx, this);
260
+ this.editReminder = editReminderFactory(ctx, this);
261
+ this.enableGroupLink = enableGroupLinkFactory(ctx, this);
262
+ this.fetchAccountInfo = fetchAccountInfoFactory(ctx, this);
263
+ this.findUser = findUserFactory(ctx, this);
264
+ this.forwardMessage = forwardMessageFactory(ctx, this);
265
+ this.getAliasList = getAliasListFactory(ctx, this);
266
+ this.getAllFriends = getAllFriendsFactory(ctx, this);
267
+ this.getAllGroups = getAllGroupsFactory(ctx, this);
268
+ this.getArchivedChatList = getArchivedChatListFactory(ctx, this);
269
+ this.getAutoDeleteChat = getAutoDeleteChatFactory(ctx, this);
270
+ this.getAutoReplyList = getAutoReplyListFactory(ctx, this);
271
+ this.getAvatarList = getAvatarListFactory(ctx, this);
272
+ this.getBizAccount = getBizAccountFactory(ctx, this);
273
+ this.getCatalogList = getCatalogListFactory(ctx, this);
274
+ this.getContext = getContextFactory(ctx, this);
275
+ this.getCookie = getCookieFactory(ctx, this);
276
+ this.getFriendBoardList = getFriendBoardListFactory(ctx, this);
277
+ this.getFriendRequestStatus = getFriendRequestStatusFactory(ctx, this);
278
+ this.getGroupBlockedMember = getGroupBlockedMemberFactory(ctx, this);
279
+ this.getGroupInfo = getGroupInfoFactory(ctx, this);
280
+ this.getGroupLinkDetail = getGroupLinkDetailFactory(ctx, this);
281
+ this.getGroupLinkInfo = getGroupLinkInfoFactory(ctx, this);
282
+ this.getGroupMembersInfo = getGroupMembersInfoFactory(ctx, this);
283
+ this.getHiddenConversations = getHiddenConversationsFactory(ctx, this);
284
+ this.getLabels = getLabelsFactory(ctx, this);
285
+ this.getListBoard = getListBoardFactory(ctx, this);
286
+ this.getListReminder = getListReminderFactory(ctx, this);
287
+ this.getMute = getMuteFactory(ctx, this);
288
+ this.getOwnId = getOwnIdFactory(ctx, this);
289
+ this.getPendingGroupMembers = getPendingGroupMembersFactory(ctx, this);
290
+ this.getPinConversations = getPinConversationsFactory(ctx, this);
291
+ this.getPollDetail = getPollDetailFactory(ctx, this);
292
+ this.getProductCatalogList = getProductCatalogListFactory(ctx, this);
293
+ this.getQR = getQRFactory(ctx, this);
294
+ this.getQuickMessage = getQuickMessageFactory(ctx, this);
295
+ this.getReceivedFriendRequests = getReceivedFriendRequestsFactory(ctx, this);
296
+ this.getReminder = getReminderFactory(ctx, this);
297
+ this.getReminderResponses = getReminderResponsesFactory(ctx, this);
298
+ this.getSentFriendRequest = getSentFriendRequestFactory(ctx, this);
299
+ this.getStickers = getStickersFactory(ctx, this);
300
+ this.getStickersDetail = getStickersDetailFactory(ctx, this);
301
+ this.getUnreadMark = getUnreadMarkFactory(ctx, this);
302
+ this.getUserInfo = getUserInfoFactory(ctx, this);
303
+ this.inviteUserToGroups = inviteUserToGroupsFactory(ctx, this);
304
+ this.joinGroupLink = joinGroupLinkFactory(ctx, this);
305
+ this.keepAlive = keepAliveFactory(ctx, this);
306
+ this.lastOnline = lastOnlineFactory(ctx, this);
307
+ this.leaveGroup = leaveGroupFactory(ctx, this);
308
+ this.lockPoll = lockPollFactory(ctx, this);
309
+ this.parseLink = parseLinkFactory(ctx, this);
310
+ this.removeFriend = removeFriendFactory(ctx, this);
311
+ this.removeFriendAlias = removeFriendAliasFactory(ctx, this);
312
+ this.removeGroupBlockedMember = removeGroupBlockedMemberFactory(ctx, this);
313
+ this.removeGroupDeputy = removeGroupDeputyFactory(ctx, this);
314
+ this.removeQuickMessage = removeQuickMessageFactory(ctx, this);
315
+ this.removeReminder = removeReminderFactory(ctx, this);
316
+ this.removeUnreadMark = removeUnreadMarkFactory(ctx, this);
317
+ this.removeUserFromGroup = removeUserFromGroupFactory(ctx, this);
318
+ this.resetHiddenConversPin = resetHiddenConversPinFactory(ctx, this);
319
+ this.reuseAvatar = reuseAvatarFactory(ctx, this);
320
+ this.reviewPendingMemberRequest = reviewPendingMemberRequestFactory(ctx, this);
321
+ this.sendBankCard = sendBankCardFactory(ctx, this);
322
+ this.sendCard = sendCardFactory(ctx, this);
323
+ this.sendDeliveredEvent = sendDeliveredEventFactory(ctx, this);
324
+ this.sendFriendRequest = sendFriendRequestFactory(ctx, this);
325
+ this.sendLink = sendLinkFactory(ctx, this);
326
+ this.sendMessage = sendMessageFactory(ctx, this);
327
+ this.sendReport = sendReportFactory(ctx, this);
328
+ this.sendSeenEvent = sendSeenEventFactory(ctx, this);
329
+ this.sendSticker = sendStickerFactory(ctx, this);
330
+ this.sendTypingEvent = sendTypingEventFactory(ctx, this);
331
+ this.sendVideo = sendVideoFactory(ctx, this);
332
+ this.sendVoice = sendVoiceFactory(ctx, this);
333
+ this.setHiddenConversations = setHiddenConversationsFactory(ctx, this);
334
+ this.setMute = setMuteFactory(ctx, this);
335
+ this.setPinnedConversations = setPinnedConversationsFactory(ctx, this);
336
+ this.unblockUser = unblockUserFactory(ctx, this);
337
+ this.undo = undoFactory(ctx, this);
338
+ this.undoFriendRequest = undoFriendRequestFactory(ctx, this);
339
+ this.updateAutoDeleteChat = updateAutoDeleteChatFactory(ctx, this);
340
+ this.updateAutoReply = updateAutoReplyFactory(ctx, this);
341
+ this.updateCatalog = updateCatalogFactory(ctx, this);
342
+ this.updateGroupSettings = updateGroupSettingsFactory(ctx, this);
343
+ this.updateHiddenConversPin = updateHiddenConversPinFactory(ctx, this);
344
+ this.updateLabels = updateLabelsFactory(ctx, this);
345
+ this.updateLang = updateLangFactory(ctx, this);
346
+ this.updateProductCatalog = updateProductCatalogFactory(ctx, this);
347
+ this.updateProfile = updateProfileFactory(ctx, this);
348
+ this.updateQuickMessage = updateQuickMessageFactory(ctx, this);
349
+ this.updateSettings = updateSettingsFactory(ctx, this);
350
+ this.uploadAttachment = uploadAttachmentFactory(ctx, this);
351
+ this.uploadProductPhoto = uploadProductPhotoFactory(ctx, this);
352
+ this.custom = customFactory(ctx, this);
353
+ }
354
+ }