@open-wa/schema 5.0.0-alpha.0 → 5.0.0-alpha.3
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.
- package/dist/generated/index.cjs +598 -0
- package/dist/generated/index.cjs.map +1 -0
- package/dist/generated/index.d.cts +3674 -0
- package/dist/generated/index.d.cts.map +1 -0
- package/dist/generated/index.d.mts +3674 -0
- package/dist/generated/index.d.mts.map +1 -0
- package/dist/generated/index.mjs +595 -0
- package/dist/generated/index.mjs.map +1 -0
- package/dist/http-manifest-BlJWPKsp.d.mts +177 -0
- package/dist/http-manifest-BlJWPKsp.d.mts.map +1 -0
- package/dist/http-manifest-DCOVY9QZ.d.cts +177 -0
- package/dist/http-manifest-DCOVY9QZ.d.cts.map +1 -0
- package/dist/http-manifest.cjs +59 -0
- package/dist/http-manifest.cjs.map +1 -0
- package/dist/http-manifest.d.cts +2 -0
- package/dist/http-manifest.d.mts +2 -0
- package/dist/http-manifest.mjs +58 -0
- package/dist/http-manifest.mjs.map +1 -0
- package/dist/implementor-DIBNbQXA.d.cts +8 -0
- package/dist/implementor-DIBNbQXA.d.cts.map +1 -0
- package/dist/implementor-DoN9ga7C.d.mts +8 -0
- package/dist/implementor-DoN9ga7C.d.mts.map +1 -0
- package/dist/implementor.cjs +50 -0
- package/dist/implementor.cjs.map +1 -0
- package/dist/implementor.d.cts +2 -0
- package/dist/implementor.d.mts +2 -0
- package/dist/implementor.mjs +48 -0
- package/dist/implementor.mjs.map +1 -0
- package/dist/index-BB9uyLe8.d.cts +1323 -0
- package/dist/index-BB9uyLe8.d.cts.map +1 -0
- package/dist/index-D77q1gPk.d.mts +1323 -0
- package/dist/index-D77q1gPk.d.mts.map +1 -0
- package/dist/index.cjs +649 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +299 -0
- package/dist/index.mjs.map +1 -0
- package/dist/methods/index.cjs +125 -0
- package/dist/methods/index.d.cts +2 -0
- package/dist/methods/index.d.mts +2 -0
- package/dist/methods/index.mjs +2 -0
- package/dist/methods-BXZrkKjP.mjs +2633 -0
- package/dist/methods-BXZrkKjP.mjs.map +1 -0
- package/dist/methods-CuiwUO7-.cjs +3802 -0
- package/dist/methods-CuiwUO7-.cjs.map +1 -0
- package/dist/registry-CsyR8i6y.mjs +284 -0
- package/dist/registry-CsyR8i6y.mjs.map +1 -0
- package/dist/registry-TbMVoiw5.cjs +355 -0
- package/dist/registry-TbMVoiw5.cjs.map +1 -0
- package/package.json +6 -3
- package/CHANGELOG.md +0 -23
- package/client_migration_doc.md +0 -467
- package/codecs_and_params_plan.md +0 -936
- package/migration_plan_doc.md +0 -223
- package/scripts/gen-client-implementation.ts +0 -129
- package/scripts/gen-client-reference-docs.ts +0 -621
- package/scripts/gen-openapi.ts +0 -96
- package/scripts/gen-types.ts +0 -43
- package/scripts/verify-v5-pipeline.ts +0 -85
- package/src/__tests__/generators.contract.test.ts +0 -181
- package/src/__tests__/registry.contract.test.ts +0 -81
- package/src/client-config.ts +0 -30
- package/src/codecs.test.ts +0 -41
- package/src/codecs.ts +0 -191
- package/src/common-types.ts +0 -280
- package/src/config.ts +0 -47
- package/src/enums.ts +0 -63
- package/src/events/groups.ts +0 -33
- package/src/events/index.ts +0 -4
- package/src/events/messaging.ts +0 -72
- package/src/events/registry.ts +0 -114
- package/src/events/state.ts +0 -59
- package/src/generated/AliasMap.ts +0 -214
- package/src/generated/BaseClient.ts +0 -868
- package/src/generated/BaseNamespacedClient.ts +0 -212
- package/src/generated/index.ts +0 -5
- package/src/generated/openapi.json +0 -7799
- package/src/generated/types.ts +0 -377
- package/src/http-manifest.ts +0 -97
- package/src/implementor.test.ts +0 -88
- package/src/implementor.ts +0 -75
- package/src/index.ts +0 -43
- package/src/methods/business.ts +0 -51
- package/src/methods/chats.ts +0 -263
- package/src/methods/communities.ts +0 -119
- package/src/methods/contacts.ts +0 -158
- package/src/methods/groups.ts +0 -376
- package/src/methods/index.ts +0 -33
- package/src/methods/labels.ts +0 -86
- package/src/methods/media.ts +0 -36
- package/src/methods/messaging.ts +0 -828
- package/src/methods/session.ts +0 -261
- package/src/methods/status.ts +0 -120
- package/src/open-wa-utils.d.ts +0 -4
- package/src/parameters.ts +0 -237
- package/src/registry.test.ts +0 -30
- package/src/registry.ts +0 -601
- package/tsconfig.generated.json +0 -11
- package/tsconfig.json +0 -15
- package/tsdown.config.ts +0 -16
- package/vitest.config.ts +0 -10
|
@@ -0,0 +1,3674 @@
|
|
|
1
|
+
import { $n as pinChat, $t as getStatus, An as setGroupTitle, Ar as sendPoll, At as getFeatures, Bn as getProfilePicture, Br as unstarMessage, Bt as isPlugged, Cn as promoteParticipant, Cr as sendImage, Dn as setGroupDescription, Dr as sendMessageWithThumb, Dt as downloadMedia, En as revokeGroupInviteLink, Er as sendLocation, Et as decryptMedia, Fn as getAllContacts, Fr as sendTextWithMentions, Ft as getProcessStats, Gn as getAllChatIds, Gt as getBusinessProfile, Hn as archiveChat, Ht as setMyStatus, In as getBlockedIds, Ir as sendVCard, It as getSnapshot, Jn as getChatWithNonContacts, Jt as getAllLabels, Kn as getAllChats, Kt as getOrder, Ln as getCommonGroups, Lr as sendVideoAsGif, Lt as getUserAgent, Mn as blockContact, Mr as sendReplyWithMentions, Mt as getLicenseType, Nn as checkNumberStatus, Nr as sendSeen, Nt as getLoadedMessageCount, On as setGroupEditToAdminsOnly, Or as sendMultipleContacts, Ot as getBatteryLevel, Pn as checkReadReceipts, Pr as sendText, Pt as getMe, Qn as muteChat, Qt as deleteStatus, Rn as getContact, Rr as sendYouTubeLink, Rt as getWAVersion, Sn as leaveGroup, Sr as sendFileFromUrl, Tn as removeParticipant, Tr as sendListMessage, Un as clearChat, Ut as setProfilePicture, Vn as unblockContact, Vt as setMyName, Wn as deleteChat, Wt as getBusinessProducts, Xn as markAsRead, Xt as removeLabel, Yn as isChatOnline, Yt as getChatsByLabel, Zn as markAsUnread, Zt as deleteAllStatus, _n as getGroupInviteLink, _r as sendAudio, an as getCommunityAdminIds, ar as forwardMessages, bn as getKickedGroups, br as sendContact, cn as getCommunityParticipantIds, cr as getMessageInfo, dn as approveGroupJoinRequest, dr as getStarredMessages, en as getStories, er as setChatEphemeral, fn as createGroup, fr as getUnsentMessages, gn as getGroupInfo, gr as sendAdvancedButtons, hn as getGroupAdmins, hr as react, in as getAllCommunities, ir as deleteMessage, jn as setGroupToAdminsOnly, jr as sendPtt, jt as getHostNumber, kn as setGroupIcon, kr as sendPaymentRequest, kt as getConnectionState, ln as getCommunityParticipants, lr as getMessagesForLLM, mn as getAllGroups, mr as loadEarlierMessages, nn as postTextStatus, nr as unmuteChat, oi as MessageAck, on as getCommunityAdmins, or as getAllMessages, pn as demoteParticipant, pr as getVCards, qn as getChat, qt as addLabel, rn as postVideoStatus, rr as unpinChat, sn as getCommunityInfo, sr as getMessageById, tn as postImageStatus, tr as unarchiveChat, ui as MessageTypes, un as addParticipant, ur as getMyLastMessage, vn as getGroupMembers, vr as sendBanner, wn as rejectGroupJoinRequest, wr as sendLinkWithAutoPreview, xn as joinGroupViaLink, xr as sendFile, yn as getGroupMembersId, yr as sendButtons, zn as getNumberProfile, zr as starMessage, zt as healthCheck } from "../index-BB9uyLe8.cjs";
|
|
2
|
+
import * as Zod from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/generated/AliasMap.d.ts
|
|
5
|
+
declare const clientMethodAliasMap: {
|
|
6
|
+
readonly "messages.sendText": "sendText";
|
|
7
|
+
readonly "messages.sendTextWithMentions": "sendTextWithMentions";
|
|
8
|
+
readonly "messages.sendReplyWithMentions": "sendReplyWithMentions";
|
|
9
|
+
readonly "messages.sendPaymentRequest": "sendPaymentRequest";
|
|
10
|
+
readonly "messages.sendImage": "sendImage";
|
|
11
|
+
readonly "messages.sendFile": "sendFile";
|
|
12
|
+
readonly "messages.sendAudio": "sendAudio";
|
|
13
|
+
readonly sendVoiceNote: "sendPtt";
|
|
14
|
+
readonly "messages.sendPtt": "sendPtt";
|
|
15
|
+
readonly "messages.sendVoiceNote": "sendPtt";
|
|
16
|
+
readonly "messages.sendVideoAsGif": "sendVideoAsGif";
|
|
17
|
+
readonly "messages.sendLocation": "sendLocation";
|
|
18
|
+
readonly "messages.sendVCard": "sendVCard";
|
|
19
|
+
readonly "messages.sendContact": "sendContact";
|
|
20
|
+
readonly sendContacts: "sendMultipleContacts";
|
|
21
|
+
readonly "messages.sendContacts": "sendMultipleContacts";
|
|
22
|
+
readonly "messages.sendMultipleContacts": "sendMultipleContacts";
|
|
23
|
+
readonly "messages.sendButtons": "sendButtons";
|
|
24
|
+
readonly "messages.sendAdvancedButtons": "sendAdvancedButtons";
|
|
25
|
+
readonly sendList: "sendListMessage";
|
|
26
|
+
readonly "messages.sendList": "sendListMessage";
|
|
27
|
+
readonly "messages.sendPoll": "sendPoll";
|
|
28
|
+
readonly "messages.sendBanner": "sendBanner";
|
|
29
|
+
readonly sendYoutubeLink: "sendYouTubeLink";
|
|
30
|
+
readonly "messages.sendYouTubeLink": "sendYouTubeLink";
|
|
31
|
+
readonly "messages.sendYoutubeLink": "sendYouTubeLink";
|
|
32
|
+
readonly sendLink: "sendLinkWithAutoPreview";
|
|
33
|
+
readonly "messages.sendLinkWithAutoPreview": "sendLinkWithAutoPreview";
|
|
34
|
+
readonly "messages.sendLink": "sendLinkWithAutoPreview";
|
|
35
|
+
readonly sendLinkWithThumbnail: "sendMessageWithThumb";
|
|
36
|
+
readonly "messages.sendLinkWithThumbnail": "sendMessageWithThumb";
|
|
37
|
+
readonly "messages.sendWithThumb": "sendMessageWithThumb";
|
|
38
|
+
readonly "messages.forward": "forwardMessages";
|
|
39
|
+
readonly "messages.delete": "deleteMessage";
|
|
40
|
+
readonly getMessage: "getMessageById";
|
|
41
|
+
readonly "messages.get": "getMessageById";
|
|
42
|
+
readonly "messages.getById": "getMessageById";
|
|
43
|
+
readonly listMessages: "getAllMessages";
|
|
44
|
+
readonly "messages.getAll": "getAllMessages";
|
|
45
|
+
readonly "messages.all": "getAllMessages";
|
|
46
|
+
readonly "messages.list": "getAllMessages";
|
|
47
|
+
readonly "messages.getMyLast": "getMyLastMessage";
|
|
48
|
+
readonly "messages.getStarred": "getStarredMessages";
|
|
49
|
+
readonly "messages.getUnsent": "getUnsentMessages";
|
|
50
|
+
readonly "messages.getInfo": "getMessageInfo";
|
|
51
|
+
readonly "messages.getVCards": "getVCards";
|
|
52
|
+
readonly getGptArray: "getMessagesForLLM";
|
|
53
|
+
readonly "messages.getForLLM": "getMessagesForLLM";
|
|
54
|
+
readonly "messages.getGptArray": "getMessagesForLLM";
|
|
55
|
+
readonly "messages.star": "starMessage";
|
|
56
|
+
readonly "messages.unstar": "unstarMessage";
|
|
57
|
+
readonly "messages.react": "react";
|
|
58
|
+
readonly "messages.sendSeen": "sendSeen";
|
|
59
|
+
readonly loadOlderMessages: "loadEarlierMessages";
|
|
60
|
+
readonly "messages.loadEarlier": "loadEarlierMessages";
|
|
61
|
+
readonly "messages.loadOlder": "loadEarlierMessages";
|
|
62
|
+
readonly "messages.sendFileFromUrl": "sendFileFromUrl";
|
|
63
|
+
readonly listChats: "getAllChats";
|
|
64
|
+
readonly "chats.getAll": "getAllChats";
|
|
65
|
+
readonly "chats.all": "getAllChats";
|
|
66
|
+
readonly "chats.list": "getAllChats";
|
|
67
|
+
readonly "chats.ids": "getAllChatIds";
|
|
68
|
+
readonly listChatIds: "getAllChatIds";
|
|
69
|
+
readonly "chatIds.getAll": "getAllChatIds";
|
|
70
|
+
readonly "chatIds.all": "getAllChatIds";
|
|
71
|
+
readonly "chatIds.list": "getAllChatIds";
|
|
72
|
+
readonly getChatById: "getChat";
|
|
73
|
+
readonly "chats.get": "getChat";
|
|
74
|
+
readonly "chats.getById": "getChat";
|
|
75
|
+
readonly "chats.getWithNonContacts": "getChatWithNonContacts";
|
|
76
|
+
readonly "chats.archive": "archiveChat";
|
|
77
|
+
readonly "chats.unarchive": "unarchiveChat";
|
|
78
|
+
readonly "chats.clear": "clearChat";
|
|
79
|
+
readonly "chats.delete": "deleteChat";
|
|
80
|
+
readonly "chats.pin": "pinChat";
|
|
81
|
+
readonly "chats.unpin": "unpinChat";
|
|
82
|
+
readonly "chats.mute": "muteChat";
|
|
83
|
+
readonly "chats.unmute": "unmuteChat";
|
|
84
|
+
readonly "chats.markAsRead": "markAsRead";
|
|
85
|
+
readonly "chats.markAsUnread": "markAsUnread";
|
|
86
|
+
readonly "chats.setEphemeral": "setChatEphemeral";
|
|
87
|
+
readonly "chats.isOnline": "isChatOnline";
|
|
88
|
+
readonly listContacts: "getAllContacts";
|
|
89
|
+
readonly "contacts.getAll": "getAllContacts";
|
|
90
|
+
readonly "contacts.all": "getAllContacts";
|
|
91
|
+
readonly "contacts.list": "getAllContacts";
|
|
92
|
+
readonly "contacts.get": "getContact";
|
|
93
|
+
readonly "contacts.getCommonGroups": "getCommonGroups";
|
|
94
|
+
readonly "contacts.getNumberProfile": "getNumberProfile";
|
|
95
|
+
readonly "contacts.getBlockedIds": "getBlockedIds";
|
|
96
|
+
readonly contactBlock: "blockContact";
|
|
97
|
+
readonly "contacts.block": "blockContact";
|
|
98
|
+
readonly "contacts.contactBlock": "blockContact";
|
|
99
|
+
readonly contactUnblock: "unblockContact";
|
|
100
|
+
readonly "contacts.unblock": "unblockContact";
|
|
101
|
+
readonly "contacts.contactUnblock": "unblockContact";
|
|
102
|
+
readonly getReadReceipts: "checkReadReceipts";
|
|
103
|
+
readonly "contacts.checkReadReceipts": "checkReadReceipts";
|
|
104
|
+
readonly "contacts.getReadReceipts": "checkReadReceipts";
|
|
105
|
+
readonly "contacts.checkNumberStatus": "checkNumberStatus";
|
|
106
|
+
readonly getProfilePicFromServer: "getProfilePicture";
|
|
107
|
+
readonly "contacts.getProfilePicture": "getProfilePicture";
|
|
108
|
+
readonly "contacts.getProfilePicFromServer": "getProfilePicture";
|
|
109
|
+
readonly "groups.getMembers": "getGroupMembers";
|
|
110
|
+
readonly listGroups: "getAllGroups";
|
|
111
|
+
readonly "groups.getAll": "getAllGroups";
|
|
112
|
+
readonly "groups.all": "getAllGroups";
|
|
113
|
+
readonly "groups.list": "getAllGroups";
|
|
114
|
+
readonly getGroupMemberIds: "getGroupMembersId";
|
|
115
|
+
readonly "groups.getMemberIds": "getGroupMembersId";
|
|
116
|
+
readonly "groups.getMembersId": "getGroupMembersId";
|
|
117
|
+
readonly "groups.getInfo": "getGroupInfo";
|
|
118
|
+
readonly "groups.getAdmins": "getGroupAdmins";
|
|
119
|
+
readonly "groups.getKicked": "getKickedGroups";
|
|
120
|
+
readonly "groups.getInviteLink": "getGroupInviteLink";
|
|
121
|
+
readonly "groups.create": "createGroup";
|
|
122
|
+
readonly "groups.leave": "leaveGroup";
|
|
123
|
+
readonly joinGroup: "joinGroupViaLink";
|
|
124
|
+
readonly "groups.join": "joinGroupViaLink";
|
|
125
|
+
readonly "groups.joinViaLink": "joinGroupViaLink";
|
|
126
|
+
readonly "groups.revokeInviteLink": "revokeGroupInviteLink";
|
|
127
|
+
readonly "groups.setTitle": "setGroupTitle";
|
|
128
|
+
readonly "groups.setDescription": "setGroupDescription";
|
|
129
|
+
readonly "groups.setIcon": "setGroupIcon";
|
|
130
|
+
readonly "groups.setAdminsOnly": "setGroupToAdminsOnly";
|
|
131
|
+
readonly "groups.setToAdminsOnly": "setGroupToAdminsOnly";
|
|
132
|
+
readonly "groups.setEditAdminsOnly": "setGroupEditToAdminsOnly";
|
|
133
|
+
readonly "groups.setEditToAdminsOnly": "setGroupEditToAdminsOnly";
|
|
134
|
+
readonly addGroupParticipant: "addParticipant";
|
|
135
|
+
readonly "groups.addParticipant": "addParticipant";
|
|
136
|
+
readonly removeGroupParticipant: "removeParticipant";
|
|
137
|
+
readonly "groups.removeParticipant": "removeParticipant";
|
|
138
|
+
readonly promoteGroupParticipant: "promoteParticipant";
|
|
139
|
+
readonly "groups.promoteParticipant": "promoteParticipant";
|
|
140
|
+
readonly demoteGroupParticipant: "demoteParticipant";
|
|
141
|
+
readonly "groups.demoteParticipant": "demoteParticipant";
|
|
142
|
+
readonly "groups.approveJoinRequest": "approveGroupJoinRequest";
|
|
143
|
+
readonly "groups.rejectJoinRequest": "rejectGroupJoinRequest";
|
|
144
|
+
readonly listCommunities: "getAllCommunities";
|
|
145
|
+
readonly "communities.getAll": "getAllCommunities";
|
|
146
|
+
readonly "communities.all": "getAllCommunities";
|
|
147
|
+
readonly "communities.list": "getAllCommunities";
|
|
148
|
+
readonly "communities.getInfo": "getCommunityInfo";
|
|
149
|
+
readonly "communities.getParticipantIds": "getCommunityParticipantIds";
|
|
150
|
+
readonly "communities.getAdminIds": "getCommunityAdminIds";
|
|
151
|
+
readonly "communities.getParticipants": "getCommunityParticipants";
|
|
152
|
+
readonly "communities.getAdmins": "getCommunityAdmins";
|
|
153
|
+
readonly "status.postText": "postTextStatus";
|
|
154
|
+
readonly "status.postImage": "postImageStatus";
|
|
155
|
+
readonly "status.postVideo": "postVideoStatus";
|
|
156
|
+
readonly getStatuses: "getStories";
|
|
157
|
+
readonly "status.getAll": "getStories";
|
|
158
|
+
readonly "status.getStories": "getStories";
|
|
159
|
+
readonly "status.get": "getStories";
|
|
160
|
+
readonly "mystatus.getStatus": "getStatus";
|
|
161
|
+
readonly "status.delete": "deleteStatus";
|
|
162
|
+
readonly deleteAllStatuses: "deleteAllStatus";
|
|
163
|
+
readonly "status.deleteAll": "deleteAllStatus";
|
|
164
|
+
readonly listLabels: "getAllLabels";
|
|
165
|
+
readonly "labels.getAll": "getAllLabels";
|
|
166
|
+
readonly "labels.all": "getAllLabels";
|
|
167
|
+
readonly "labels.list": "getAllLabels";
|
|
168
|
+
readonly "labels.getChats": "getChatsByLabel";
|
|
169
|
+
readonly "labels.getChatsBy": "getChatsByLabel";
|
|
170
|
+
readonly "labels.add": "addLabel";
|
|
171
|
+
readonly "labels.remove": "removeLabel";
|
|
172
|
+
readonly "business.getProfile": "getBusinessProfile";
|
|
173
|
+
readonly getBusinessProfilesProducts: "getBusinessProducts";
|
|
174
|
+
readonly "business.getProducts": "getBusinessProducts";
|
|
175
|
+
readonly "business.getProfilesProducts": "getBusinessProducts";
|
|
176
|
+
readonly "business.getOrder": "getOrder";
|
|
177
|
+
readonly "session.getMe": "getMe";
|
|
178
|
+
readonly "session.getHostNumber": "getHostNumber";
|
|
179
|
+
readonly "session.getConnectionState": "getConnectionState";
|
|
180
|
+
readonly getWhatsAppVersion: "getWAVersion";
|
|
181
|
+
readonly "session.getWAVersion": "getWAVersion";
|
|
182
|
+
readonly "session.getWhatsAppVersion": "getWAVersion";
|
|
183
|
+
readonly "session.getBatteryLevel": "getBatteryLevel";
|
|
184
|
+
readonly getIsPlugged: "isPlugged";
|
|
185
|
+
readonly "session.isPlugged": "isPlugged";
|
|
186
|
+
readonly "session.getIsPlugged": "isPlugged";
|
|
187
|
+
readonly "session.getFeatures": "getFeatures";
|
|
188
|
+
readonly "session.getLicenseType": "getLicenseType";
|
|
189
|
+
readonly getGeneratedUserAgent: "getUserAgent";
|
|
190
|
+
readonly "session.getUserAgent": "getUserAgent";
|
|
191
|
+
readonly "session.getGeneratedUserAgent": "getUserAgent";
|
|
192
|
+
readonly "session.getProcessStats": "getProcessStats";
|
|
193
|
+
readonly getAmountOfLoadedMessages: "getLoadedMessageCount";
|
|
194
|
+
readonly "session.getLoadedMessageCount": "getLoadedMessageCount";
|
|
195
|
+
readonly "session.getAmountOfLoadedMessages": "getLoadedMessageCount";
|
|
196
|
+
readonly takeScreenshot: "getSnapshot";
|
|
197
|
+
readonly "session.getSnapshot": "getSnapshot";
|
|
198
|
+
readonly "session.takeScreenshot": "getSnapshot";
|
|
199
|
+
readonly "session.healthCheck": "healthCheck";
|
|
200
|
+
readonly setDisplayName: "setMyName";
|
|
201
|
+
readonly "session.setName": "setMyName";
|
|
202
|
+
readonly "session.setMyName": "setMyName";
|
|
203
|
+
readonly "session.setDisplayName": "setMyName";
|
|
204
|
+
readonly setStatusText: "setMyStatus";
|
|
205
|
+
readonly "session.setStatus": "setMyStatus";
|
|
206
|
+
readonly "session.setMyStatus": "setMyStatus";
|
|
207
|
+
readonly "session.setStatusText": "setMyStatus";
|
|
208
|
+
readonly setProfilePic: "setProfilePicture";
|
|
209
|
+
readonly "session.setProfilePicture": "setProfilePicture";
|
|
210
|
+
readonly "session.setProfilePic": "setProfilePicture";
|
|
211
|
+
readonly "media.decrypt": "decryptMedia";
|
|
212
|
+
readonly "media.download": "downloadMedia";
|
|
213
|
+
};
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/generated/BaseClient.d.ts
|
|
216
|
+
declare abstract class BaseClient {
|
|
217
|
+
protected abstract execute(method: string, args: any): Promise<any>;
|
|
218
|
+
protected pup(_func: any, args: any): Promise<any>;
|
|
219
|
+
sendText: (...args: any[] | unknown[] | [] | [{
|
|
220
|
+
to: string;
|
|
221
|
+
content: string;
|
|
222
|
+
options?: any;
|
|
223
|
+
}] | [{
|
|
224
|
+
to: string;
|
|
225
|
+
content: string;
|
|
226
|
+
options?: any;
|
|
227
|
+
}, ...unknown[]]) => Promise<string | boolean | {
|
|
228
|
+
[x: string]: unknown;
|
|
229
|
+
_serialized: string;
|
|
230
|
+
}>;
|
|
231
|
+
sendTextWithMentions: (...args: any[] | unknown[] | [] | [{
|
|
232
|
+
to: string;
|
|
233
|
+
content: string;
|
|
234
|
+
hideTags?: boolean | undefined;
|
|
235
|
+
mentions?: string[] | undefined;
|
|
236
|
+
}] | [{
|
|
237
|
+
to: string;
|
|
238
|
+
content: string;
|
|
239
|
+
hideTags?: boolean | undefined;
|
|
240
|
+
mentions?: string[] | undefined;
|
|
241
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
242
|
+
[x: string]: unknown;
|
|
243
|
+
_serialized: string;
|
|
244
|
+
}>;
|
|
245
|
+
sendReplyWithMentions: (...args: any[] | unknown[] | [] | [{
|
|
246
|
+
to: string;
|
|
247
|
+
content: string;
|
|
248
|
+
replyMessageId: string;
|
|
249
|
+
hideTags?: boolean | undefined;
|
|
250
|
+
mentions?: string[] | undefined;
|
|
251
|
+
}] | [{
|
|
252
|
+
to: string;
|
|
253
|
+
content: string;
|
|
254
|
+
replyMessageId: string;
|
|
255
|
+
hideTags?: boolean | undefined;
|
|
256
|
+
mentions?: string[] | undefined;
|
|
257
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
258
|
+
[x: string]: unknown;
|
|
259
|
+
_serialized: string;
|
|
260
|
+
}>;
|
|
261
|
+
sendPaymentRequest: (...args: any[] | unknown[] | [] | [{
|
|
262
|
+
to: string;
|
|
263
|
+
amount: number;
|
|
264
|
+
currency: string;
|
|
265
|
+
message?: string | undefined;
|
|
266
|
+
}] | [{
|
|
267
|
+
to: string;
|
|
268
|
+
amount: number;
|
|
269
|
+
currency: string;
|
|
270
|
+
message?: string | undefined;
|
|
271
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
272
|
+
[x: string]: unknown;
|
|
273
|
+
_serialized: string;
|
|
274
|
+
}>;
|
|
275
|
+
sendImage: (...args: any[] | unknown[] | [] | [{
|
|
276
|
+
to: string;
|
|
277
|
+
imgData: any;
|
|
278
|
+
filename?: string | undefined;
|
|
279
|
+
caption?: string | undefined;
|
|
280
|
+
id?: string | undefined;
|
|
281
|
+
waitForId?: boolean | undefined;
|
|
282
|
+
}] | [{
|
|
283
|
+
to: string;
|
|
284
|
+
imgData: any;
|
|
285
|
+
filename?: string | undefined;
|
|
286
|
+
caption?: string | undefined;
|
|
287
|
+
id?: string | undefined;
|
|
288
|
+
waitForId?: boolean | undefined;
|
|
289
|
+
}, ...unknown[]]) => Promise<string | boolean | {
|
|
290
|
+
[x: string]: unknown;
|
|
291
|
+
_serialized: string;
|
|
292
|
+
}>;
|
|
293
|
+
sendFile: (...args: any[] | unknown[] | [] | [{
|
|
294
|
+
to: string;
|
|
295
|
+
file: any;
|
|
296
|
+
filename?: string | undefined;
|
|
297
|
+
caption?: string | undefined;
|
|
298
|
+
}] | [{
|
|
299
|
+
to: string;
|
|
300
|
+
file: any;
|
|
301
|
+
filename?: string | undefined;
|
|
302
|
+
caption?: string | undefined;
|
|
303
|
+
}, ...unknown[]]) => Promise<string | {
|
|
304
|
+
[x: string]: unknown;
|
|
305
|
+
_serialized: string;
|
|
306
|
+
}>;
|
|
307
|
+
sendAudio: (...args: any[] | unknown[] | [] | [{
|
|
308
|
+
to: string;
|
|
309
|
+
file: any;
|
|
310
|
+
filename?: string | undefined;
|
|
311
|
+
quotedMsgId?: string | undefined;
|
|
312
|
+
}] | [{
|
|
313
|
+
to: string;
|
|
314
|
+
file: any;
|
|
315
|
+
filename?: string | undefined;
|
|
316
|
+
quotedMsgId?: string | undefined;
|
|
317
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
318
|
+
[x: string]: unknown;
|
|
319
|
+
_serialized: string;
|
|
320
|
+
}>;
|
|
321
|
+
sendPtt: (...args: any[] | unknown[] | [] | [{
|
|
322
|
+
to: string;
|
|
323
|
+
file: any;
|
|
324
|
+
quotedMsgId?: string | undefined;
|
|
325
|
+
}] | [{
|
|
326
|
+
to: string;
|
|
327
|
+
file: any;
|
|
328
|
+
quotedMsgId?: string | undefined;
|
|
329
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
330
|
+
[x: string]: unknown;
|
|
331
|
+
_serialized: string;
|
|
332
|
+
}>;
|
|
333
|
+
sendVideoAsGif: (...args: any[] | unknown[] | [] | [{
|
|
334
|
+
to: string;
|
|
335
|
+
file: any;
|
|
336
|
+
filename?: string | undefined;
|
|
337
|
+
caption?: string | undefined;
|
|
338
|
+
quotedMsgId?: string | undefined;
|
|
339
|
+
}] | [{
|
|
340
|
+
to: string;
|
|
341
|
+
file: any;
|
|
342
|
+
filename?: string | undefined;
|
|
343
|
+
caption?: string | undefined;
|
|
344
|
+
quotedMsgId?: string | undefined;
|
|
345
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
346
|
+
[x: string]: unknown;
|
|
347
|
+
_serialized: string;
|
|
348
|
+
}>;
|
|
349
|
+
sendLocation: (...args: any[] | unknown[] | [] | [{
|
|
350
|
+
to: string;
|
|
351
|
+
lat: string | number;
|
|
352
|
+
lng: string | number;
|
|
353
|
+
loc?: string | undefined;
|
|
354
|
+
address?: string | undefined;
|
|
355
|
+
url?: string | undefined;
|
|
356
|
+
}] | [{
|
|
357
|
+
to: string;
|
|
358
|
+
lat: string | number;
|
|
359
|
+
lng: string | number;
|
|
360
|
+
loc?: string | undefined;
|
|
361
|
+
address?: string | undefined;
|
|
362
|
+
url?: string | undefined;
|
|
363
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
364
|
+
[x: string]: unknown;
|
|
365
|
+
_serialized: string;
|
|
366
|
+
}>;
|
|
367
|
+
sendVCard: (...args: any[] | unknown[] | [] | [{
|
|
368
|
+
to: string;
|
|
369
|
+
vcard: string;
|
|
370
|
+
contactName?: string | undefined;
|
|
371
|
+
contactNumber?: string | undefined;
|
|
372
|
+
}] | [{
|
|
373
|
+
to: string;
|
|
374
|
+
vcard: string;
|
|
375
|
+
contactName?: string | undefined;
|
|
376
|
+
contactNumber?: string | undefined;
|
|
377
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
378
|
+
sendContact: (...args: any[] | unknown[] | [] | [{
|
|
379
|
+
to: string;
|
|
380
|
+
contactId: string | string[];
|
|
381
|
+
}] | [{
|
|
382
|
+
to: string;
|
|
383
|
+
contactId: string | string[];
|
|
384
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
385
|
+
[x: string]: unknown;
|
|
386
|
+
_serialized: string;
|
|
387
|
+
}>;
|
|
388
|
+
sendMultipleContacts: (...args: any[] | unknown[] | [] | [{
|
|
389
|
+
to: string;
|
|
390
|
+
contactIds: string[];
|
|
391
|
+
}] | [{
|
|
392
|
+
to: string;
|
|
393
|
+
contactIds: string[];
|
|
394
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
395
|
+
[x: string]: unknown;
|
|
396
|
+
_serialized: string;
|
|
397
|
+
}>;
|
|
398
|
+
sendButtons: (...args: any[] | unknown[] | [] | [{
|
|
399
|
+
to: string;
|
|
400
|
+
body: any;
|
|
401
|
+
buttons: any[];
|
|
402
|
+
title?: string | undefined;
|
|
403
|
+
footer?: string | undefined;
|
|
404
|
+
}] | [{
|
|
405
|
+
to: string;
|
|
406
|
+
body: any;
|
|
407
|
+
buttons: any[];
|
|
408
|
+
title?: string | undefined;
|
|
409
|
+
footer?: string | undefined;
|
|
410
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
411
|
+
[x: string]: unknown;
|
|
412
|
+
_serialized: string;
|
|
413
|
+
}>;
|
|
414
|
+
sendAdvancedButtons: (...args: any[] | unknown[] | [] | [{
|
|
415
|
+
to: string;
|
|
416
|
+
body: any;
|
|
417
|
+
buttons: any[];
|
|
418
|
+
text: string;
|
|
419
|
+
footer: string;
|
|
420
|
+
filename: string;
|
|
421
|
+
}] | [{
|
|
422
|
+
to: string;
|
|
423
|
+
body: any;
|
|
424
|
+
buttons: any[];
|
|
425
|
+
text: string;
|
|
426
|
+
footer: string;
|
|
427
|
+
filename: string;
|
|
428
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
429
|
+
[x: string]: unknown;
|
|
430
|
+
_serialized: string;
|
|
431
|
+
}>;
|
|
432
|
+
sendListMessage: (...args: any[] | unknown[] | [] | [{
|
|
433
|
+
to: string;
|
|
434
|
+
sections: any[];
|
|
435
|
+
title: string;
|
|
436
|
+
description: string;
|
|
437
|
+
actionText: string;
|
|
438
|
+
}] | [{
|
|
439
|
+
to: string;
|
|
440
|
+
sections: any[];
|
|
441
|
+
title: string;
|
|
442
|
+
description: string;
|
|
443
|
+
actionText: string;
|
|
444
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
445
|
+
[x: string]: unknown;
|
|
446
|
+
_serialized: string;
|
|
447
|
+
}>;
|
|
448
|
+
sendPoll: (...args: any[] | unknown[] | [] | [{
|
|
449
|
+
to: string;
|
|
450
|
+
name: string;
|
|
451
|
+
options: string[];
|
|
452
|
+
selectableCount?: number | undefined;
|
|
453
|
+
}] | [{
|
|
454
|
+
to: string;
|
|
455
|
+
name: string;
|
|
456
|
+
options: string[];
|
|
457
|
+
selectableCount?: number | undefined;
|
|
458
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
459
|
+
[x: string]: unknown;
|
|
460
|
+
_serialized: string;
|
|
461
|
+
}>;
|
|
462
|
+
sendBanner: (...args: any[] | unknown[] | [] | [{
|
|
463
|
+
to: string;
|
|
464
|
+
base64: string;
|
|
465
|
+
}] | [{
|
|
466
|
+
to: string;
|
|
467
|
+
base64: string;
|
|
468
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
469
|
+
[x: string]: unknown;
|
|
470
|
+
_serialized: string;
|
|
471
|
+
}>;
|
|
472
|
+
sendYouTubeLink: (...args: any[] | unknown[] | [] | [{
|
|
473
|
+
to: string;
|
|
474
|
+
url: string;
|
|
475
|
+
text?: string | undefined;
|
|
476
|
+
thumbnail?: string | undefined;
|
|
477
|
+
quotedMsgId?: string | undefined;
|
|
478
|
+
customSize?: {
|
|
479
|
+
height: number;
|
|
480
|
+
width: number;
|
|
481
|
+
} | undefined;
|
|
482
|
+
}] | [{
|
|
483
|
+
to: string;
|
|
484
|
+
url: string;
|
|
485
|
+
text?: string | undefined;
|
|
486
|
+
thumbnail?: string | undefined;
|
|
487
|
+
quotedMsgId?: string | undefined;
|
|
488
|
+
customSize?: {
|
|
489
|
+
height: number;
|
|
490
|
+
width: number;
|
|
491
|
+
} | undefined;
|
|
492
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
493
|
+
[x: string]: unknown;
|
|
494
|
+
_serialized: string;
|
|
495
|
+
}>;
|
|
496
|
+
sendLinkWithAutoPreview: (...args: any[] | unknown[] | [] | [{
|
|
497
|
+
to: string;
|
|
498
|
+
url: string;
|
|
499
|
+
text?: string | undefined;
|
|
500
|
+
thumbnail?: string | undefined;
|
|
501
|
+
quotedMsgId?: string | undefined;
|
|
502
|
+
customSize?: {
|
|
503
|
+
height: number;
|
|
504
|
+
width: number;
|
|
505
|
+
} | undefined;
|
|
506
|
+
}] | [{
|
|
507
|
+
to: string;
|
|
508
|
+
url: string;
|
|
509
|
+
text?: string | undefined;
|
|
510
|
+
thumbnail?: string | undefined;
|
|
511
|
+
quotedMsgId?: string | undefined;
|
|
512
|
+
customSize?: {
|
|
513
|
+
height: number;
|
|
514
|
+
width: number;
|
|
515
|
+
} | undefined;
|
|
516
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
517
|
+
[x: string]: unknown;
|
|
518
|
+
_serialized: string;
|
|
519
|
+
}>;
|
|
520
|
+
sendMessageWithThumb: (...args: any[] | unknown[] | [] | [{
|
|
521
|
+
thumb: string;
|
|
522
|
+
url: string;
|
|
523
|
+
title: string;
|
|
524
|
+
description: string;
|
|
525
|
+
content: string;
|
|
526
|
+
to: string;
|
|
527
|
+
quotedMsgId?: string | undefined;
|
|
528
|
+
customSize?: {
|
|
529
|
+
height: number;
|
|
530
|
+
width: number;
|
|
531
|
+
} | undefined;
|
|
532
|
+
}] | [{
|
|
533
|
+
thumb: string;
|
|
534
|
+
url: string;
|
|
535
|
+
title: string;
|
|
536
|
+
description: string;
|
|
537
|
+
content: string;
|
|
538
|
+
to: string;
|
|
539
|
+
quotedMsgId?: string | undefined;
|
|
540
|
+
customSize?: {
|
|
541
|
+
height: number;
|
|
542
|
+
width: number;
|
|
543
|
+
} | undefined;
|
|
544
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
545
|
+
[x: string]: unknown;
|
|
546
|
+
_serialized: string;
|
|
547
|
+
}>;
|
|
548
|
+
forwardMessages: (...args: any[] | unknown[] | [] | [{
|
|
549
|
+
to: string;
|
|
550
|
+
messages: string | string[];
|
|
551
|
+
skipMyMessages?: boolean | undefined;
|
|
552
|
+
}] | [{
|
|
553
|
+
to: string;
|
|
554
|
+
messages: string | string[];
|
|
555
|
+
skipMyMessages?: boolean | undefined;
|
|
556
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
557
|
+
[x: string]: unknown;
|
|
558
|
+
_serialized: string;
|
|
559
|
+
}[]>;
|
|
560
|
+
deleteMessage: (...args: any[] | unknown[] | [] | [{
|
|
561
|
+
chatId: string;
|
|
562
|
+
messageId: string | string[];
|
|
563
|
+
onlyLocal?: boolean | undefined;
|
|
564
|
+
}] | [{
|
|
565
|
+
chatId: string;
|
|
566
|
+
messageId: string | string[];
|
|
567
|
+
onlyLocal?: boolean | undefined;
|
|
568
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
569
|
+
getMessageById: (...args: any[] | unknown[] | [] | [{
|
|
570
|
+
messageId: string;
|
|
571
|
+
}] | [{
|
|
572
|
+
messageId: string;
|
|
573
|
+
}, ...unknown[]]) => Promise<any>;
|
|
574
|
+
getAllMessages: (...args: any[] | unknown[] | [] | [{
|
|
575
|
+
chatId?: string | undefined;
|
|
576
|
+
includeMe?: boolean | undefined;
|
|
577
|
+
includeNotifications?: boolean | undefined;
|
|
578
|
+
}] | [{
|
|
579
|
+
chatId?: string | undefined;
|
|
580
|
+
includeMe?: boolean | undefined;
|
|
581
|
+
includeNotifications?: boolean | undefined;
|
|
582
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
583
|
+
getMyLastMessage: (...args: any[] | unknown[] | [] | [{
|
|
584
|
+
chatId?: string | undefined;
|
|
585
|
+
}] | [{
|
|
586
|
+
chatId?: string | undefined;
|
|
587
|
+
}, ...unknown[]]) => Promise<any>;
|
|
588
|
+
getStarredMessages: (...args: any[] | unknown[] | [] | [{
|
|
589
|
+
chatId?: string | undefined;
|
|
590
|
+
}] | [{
|
|
591
|
+
chatId?: string | undefined;
|
|
592
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
593
|
+
getUnsentMessages: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
594
|
+
getMessageInfo: (...args: any[] | unknown[] | [] | [{
|
|
595
|
+
messageId: string;
|
|
596
|
+
}] | [{
|
|
597
|
+
messageId: string;
|
|
598
|
+
}, ...unknown[]]) => Promise<any>;
|
|
599
|
+
getVCards: (...args: any[] | unknown[] | [] | [{
|
|
600
|
+
messageId: string;
|
|
601
|
+
}] | [{
|
|
602
|
+
messageId: string;
|
|
603
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
604
|
+
getMessagesForLLM: (...args: any[] | unknown[] | [] | [{
|
|
605
|
+
chatId: string;
|
|
606
|
+
last?: number | undefined;
|
|
607
|
+
}] | [{
|
|
608
|
+
chatId: string;
|
|
609
|
+
last?: number | undefined;
|
|
610
|
+
}, ...unknown[]]) => Promise<any>;
|
|
611
|
+
starMessage: (...args: any[] | unknown[] | [] | [{
|
|
612
|
+
messageId: string;
|
|
613
|
+
}] | [{
|
|
614
|
+
messageId: string;
|
|
615
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
616
|
+
unstarMessage: (...args: any[] | unknown[] | [] | [{
|
|
617
|
+
messageId: string;
|
|
618
|
+
}] | [{
|
|
619
|
+
messageId: string;
|
|
620
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
621
|
+
react: (...args: any[] | unknown[] | [] | [{
|
|
622
|
+
messageId: string;
|
|
623
|
+
emoji: string;
|
|
624
|
+
}] | [{
|
|
625
|
+
messageId: string;
|
|
626
|
+
emoji: string;
|
|
627
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
628
|
+
sendSeen: (...args: any[] | unknown[] | [] | [{
|
|
629
|
+
chatId: string;
|
|
630
|
+
}] | [{
|
|
631
|
+
chatId: string;
|
|
632
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
633
|
+
loadEarlierMessages: (...args: any[] | unknown[] | [] | [{
|
|
634
|
+
chatId: string;
|
|
635
|
+
count?: number | undefined;
|
|
636
|
+
includeMe?: boolean | undefined;
|
|
637
|
+
}] | [{
|
|
638
|
+
chatId: string;
|
|
639
|
+
count?: number | undefined;
|
|
640
|
+
includeMe?: boolean | undefined;
|
|
641
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
642
|
+
sendFileFromUrl: (...args: any[] | unknown[] | [] | [{
|
|
643
|
+
to: string;
|
|
644
|
+
url: string;
|
|
645
|
+
filename: string;
|
|
646
|
+
caption?: string | undefined;
|
|
647
|
+
headers?: Record<string, string> | undefined;
|
|
648
|
+
}] | [{
|
|
649
|
+
to: string;
|
|
650
|
+
url: string;
|
|
651
|
+
filename: string;
|
|
652
|
+
caption?: string | undefined;
|
|
653
|
+
headers?: Record<string, string> | undefined;
|
|
654
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
655
|
+
getAllChats: (...args: any[] | unknown[] | [] | [{
|
|
656
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
657
|
+
}] | [{
|
|
658
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
659
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
660
|
+
getAllChatIds: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
661
|
+
getChat: (...args: any[] | unknown[] | [] | [{
|
|
662
|
+
chatId: string;
|
|
663
|
+
}] | [{
|
|
664
|
+
chatId: string;
|
|
665
|
+
}, ...unknown[]]) => Promise<any>;
|
|
666
|
+
getChatWithNonContacts: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
667
|
+
archiveChat: (...args: any[] | unknown[] | [] | [{
|
|
668
|
+
chatId: string;
|
|
669
|
+
}] | [{
|
|
670
|
+
chatId: string;
|
|
671
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
672
|
+
unarchiveChat: (...args: any[] | unknown[] | [] | [{
|
|
673
|
+
chatId: string;
|
|
674
|
+
}] | [{
|
|
675
|
+
chatId: string;
|
|
676
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
677
|
+
clearChat: (...args: any[] | unknown[] | [] | [{
|
|
678
|
+
chatId: string;
|
|
679
|
+
}] | [{
|
|
680
|
+
chatId: string;
|
|
681
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
682
|
+
deleteChat: (...args: any[] | unknown[] | [] | [{
|
|
683
|
+
chatId: string;
|
|
684
|
+
}] | [{
|
|
685
|
+
chatId: string;
|
|
686
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
687
|
+
pinChat: (...args: any[] | unknown[] | [] | [{
|
|
688
|
+
chatId: string;
|
|
689
|
+
}] | [{
|
|
690
|
+
chatId: string;
|
|
691
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
692
|
+
unpinChat: (...args: any[] | unknown[] | [] | [{
|
|
693
|
+
chatId: string;
|
|
694
|
+
}] | [{
|
|
695
|
+
chatId: string;
|
|
696
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
697
|
+
muteChat: (...args: any[] | unknown[] | [] | [{
|
|
698
|
+
chatId: string;
|
|
699
|
+
muteDuration: string | number;
|
|
700
|
+
}] | [{
|
|
701
|
+
chatId: string;
|
|
702
|
+
muteDuration: string | number;
|
|
703
|
+
}, ...unknown[]]) => Promise<string | number | boolean>;
|
|
704
|
+
unmuteChat: (...args: any[] | unknown[] | [] | [{
|
|
705
|
+
chatId: string;
|
|
706
|
+
}] | [{
|
|
707
|
+
chatId: string;
|
|
708
|
+
}, ...unknown[]]) => Promise<string | number | boolean>;
|
|
709
|
+
markAsRead: (...args: any[] | unknown[] | [] | [{
|
|
710
|
+
chatId: string;
|
|
711
|
+
}] | [{
|
|
712
|
+
chatId: string;
|
|
713
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
714
|
+
markAsUnread: (...args: any[] | unknown[] | [] | [{
|
|
715
|
+
chatId: string;
|
|
716
|
+
}] | [{
|
|
717
|
+
chatId: string;
|
|
718
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
719
|
+
setChatEphemeral: (...args: any[] | unknown[] | [] | [{
|
|
720
|
+
chatId: string;
|
|
721
|
+
ephemeral: number | boolean;
|
|
722
|
+
}] | [{
|
|
723
|
+
chatId: string;
|
|
724
|
+
ephemeral: number | boolean;
|
|
725
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
726
|
+
isChatOnline: (...args: any[] | unknown[] | [] | [{
|
|
727
|
+
chatId: string;
|
|
728
|
+
}] | [{
|
|
729
|
+
chatId: string;
|
|
730
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
731
|
+
getAllContacts: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
732
|
+
getContact: (...args: any[] | unknown[] | [] | [{
|
|
733
|
+
contactId: string;
|
|
734
|
+
}] | [{
|
|
735
|
+
contactId: string;
|
|
736
|
+
}, ...unknown[]]) => Promise<any>;
|
|
737
|
+
getCommonGroups: (...args: any[] | unknown[] | [] | [{
|
|
738
|
+
contactId: string;
|
|
739
|
+
}] | [{
|
|
740
|
+
contactId: string;
|
|
741
|
+
}, ...unknown[]]) => Promise<any>;
|
|
742
|
+
getNumberProfile: (...args: any[] | unknown[] | [] | [{
|
|
743
|
+
contactId: string;
|
|
744
|
+
}] | [{
|
|
745
|
+
contactId: string;
|
|
746
|
+
}, ...unknown[]]) => Promise<any>;
|
|
747
|
+
getBlockedIds: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
748
|
+
blockContact: (...args: any[] | unknown[] | [] | [{
|
|
749
|
+
contactId: string;
|
|
750
|
+
}] | [{
|
|
751
|
+
contactId: string;
|
|
752
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
753
|
+
unblockContact: (...args: any[] | unknown[] | [] | [{
|
|
754
|
+
contactId: string;
|
|
755
|
+
}] | [{
|
|
756
|
+
contactId: string;
|
|
757
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
758
|
+
checkReadReceipts: (...args: any[] | unknown[] | [] | [{
|
|
759
|
+
contactId: string;
|
|
760
|
+
}] | [{
|
|
761
|
+
contactId: string;
|
|
762
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
763
|
+
checkNumberStatus: (...args: any[] | unknown[] | [] | [{
|
|
764
|
+
contactId: string;
|
|
765
|
+
}] | [{
|
|
766
|
+
contactId: string;
|
|
767
|
+
}, ...unknown[]]) => Promise<any>;
|
|
768
|
+
getProfilePicture: (...args: any[] | unknown[] | [] | [{
|
|
769
|
+
chatId: string;
|
|
770
|
+
}] | [{
|
|
771
|
+
chatId: string;
|
|
772
|
+
}, ...unknown[]]) => Promise<string>;
|
|
773
|
+
getGroupMembers: (...args: any[] | unknown[] | [] | [{
|
|
774
|
+
groupId: string;
|
|
775
|
+
}] | [{
|
|
776
|
+
groupId: string;
|
|
777
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
778
|
+
getAllGroups: (...args: any[] | unknown[] | [] | [{
|
|
779
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
780
|
+
}] | [{
|
|
781
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
782
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
783
|
+
getGroupMembersId: (...args: any[] | unknown[] | [] | [{
|
|
784
|
+
groupId: string;
|
|
785
|
+
}] | [{
|
|
786
|
+
groupId: string;
|
|
787
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
788
|
+
getGroupInfo: (...args: any[] | unknown[] | [] | [{
|
|
789
|
+
groupId: string;
|
|
790
|
+
}] | [{
|
|
791
|
+
groupId: string;
|
|
792
|
+
}, ...unknown[]]) => Promise<any>;
|
|
793
|
+
getGroupAdmins: (...args: any[] | unknown[] | [] | [{
|
|
794
|
+
groupId: string;
|
|
795
|
+
}] | [{
|
|
796
|
+
groupId: string;
|
|
797
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
798
|
+
getKickedGroups: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
799
|
+
getGroupInviteLink: (...args: any[] | unknown[] | [] | [{
|
|
800
|
+
groupId: string;
|
|
801
|
+
}] | [{
|
|
802
|
+
groupId: string;
|
|
803
|
+
}, ...unknown[]]) => Promise<string>;
|
|
804
|
+
createGroup: (...args: any[] | unknown[] | [] | [{
|
|
805
|
+
name: string;
|
|
806
|
+
contacts: string[];
|
|
807
|
+
}] | [{
|
|
808
|
+
name: string;
|
|
809
|
+
contacts: string[];
|
|
810
|
+
}, ...unknown[]]) => Promise<any>;
|
|
811
|
+
leaveGroup: (...args: any[] | unknown[] | [] | [{
|
|
812
|
+
groupId: string;
|
|
813
|
+
}] | [{
|
|
814
|
+
groupId: string;
|
|
815
|
+
}, ...unknown[]]) => Promise<any>;
|
|
816
|
+
joinGroupViaLink: (...args: any[] | unknown[] | [] | [{
|
|
817
|
+
link: string;
|
|
818
|
+
returnChatObj?: boolean | undefined;
|
|
819
|
+
}] | [{
|
|
820
|
+
link: string;
|
|
821
|
+
returnChatObj?: boolean | undefined;
|
|
822
|
+
}, ...unknown[]]) => Promise<any>;
|
|
823
|
+
revokeGroupInviteLink: (...args: any[] | unknown[] | [] | [{
|
|
824
|
+
groupId: string;
|
|
825
|
+
}] | [{
|
|
826
|
+
groupId: string;
|
|
827
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
828
|
+
setGroupTitle: (...args: any[] | unknown[] | [] | [{
|
|
829
|
+
groupId: string;
|
|
830
|
+
title: string;
|
|
831
|
+
}] | [{
|
|
832
|
+
groupId: string;
|
|
833
|
+
title: string;
|
|
834
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
835
|
+
setGroupDescription: (...args: any[] | unknown[] | [] | [{
|
|
836
|
+
groupId: string;
|
|
837
|
+
description: string;
|
|
838
|
+
}] | [{
|
|
839
|
+
groupId: string;
|
|
840
|
+
description: string;
|
|
841
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
842
|
+
setGroupIcon: (...args: any[] | unknown[] | [] | [{
|
|
843
|
+
groupId: string;
|
|
844
|
+
image: string;
|
|
845
|
+
}] | [{
|
|
846
|
+
groupId: string;
|
|
847
|
+
image: string;
|
|
848
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
849
|
+
setGroupToAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
850
|
+
groupId: string;
|
|
851
|
+
onlyAdmins: boolean;
|
|
852
|
+
}] | [{
|
|
853
|
+
groupId: string;
|
|
854
|
+
onlyAdmins: boolean;
|
|
855
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
856
|
+
setGroupEditToAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
857
|
+
groupId: string;
|
|
858
|
+
onlyAdmins: boolean;
|
|
859
|
+
}] | [{
|
|
860
|
+
groupId: string;
|
|
861
|
+
onlyAdmins: boolean;
|
|
862
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
863
|
+
addParticipant: (...args: any[] | unknown[] | [] | [{
|
|
864
|
+
groupId: string;
|
|
865
|
+
contactId: string;
|
|
866
|
+
}] | [{
|
|
867
|
+
groupId: string;
|
|
868
|
+
contactId: string;
|
|
869
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
870
|
+
removeParticipant: (...args: any[] | unknown[] | [] | [{
|
|
871
|
+
groupId: string;
|
|
872
|
+
contactId: string;
|
|
873
|
+
}] | [{
|
|
874
|
+
groupId: string;
|
|
875
|
+
contactId: string;
|
|
876
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
877
|
+
promoteParticipant: (...args: any[] | unknown[] | [] | [{
|
|
878
|
+
groupId: string;
|
|
879
|
+
contactId: string;
|
|
880
|
+
}] | [{
|
|
881
|
+
groupId: string;
|
|
882
|
+
contactId: string;
|
|
883
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
884
|
+
demoteParticipant: (...args: any[] | unknown[] | [] | [{
|
|
885
|
+
groupId: string;
|
|
886
|
+
contactId: string;
|
|
887
|
+
}] | [{
|
|
888
|
+
groupId: string;
|
|
889
|
+
contactId: string;
|
|
890
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
891
|
+
approveGroupJoinRequest: (...args: any[] | unknown[] | [] | [{
|
|
892
|
+
groupId: string;
|
|
893
|
+
contactId: string;
|
|
894
|
+
}] | [{
|
|
895
|
+
groupId: string;
|
|
896
|
+
contactId: string;
|
|
897
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
898
|
+
rejectGroupJoinRequest: (...args: any[] | unknown[] | [] | [{
|
|
899
|
+
groupId: string;
|
|
900
|
+
contactId: string;
|
|
901
|
+
}] | [{
|
|
902
|
+
groupId: string;
|
|
903
|
+
contactId: string;
|
|
904
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
905
|
+
getAllCommunities: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
906
|
+
getCommunityInfo: (...args: any[] | unknown[] | [] | [{
|
|
907
|
+
communityId: string;
|
|
908
|
+
}] | [{
|
|
909
|
+
communityId: string;
|
|
910
|
+
}, ...unknown[]]) => Promise<any>;
|
|
911
|
+
getCommunityParticipantIds: (...args: any[] | unknown[] | [] | [{
|
|
912
|
+
communityId: string;
|
|
913
|
+
}] | [{
|
|
914
|
+
communityId: string;
|
|
915
|
+
}, ...unknown[]]) => Promise<any>;
|
|
916
|
+
getCommunityAdminIds: (...args: any[] | unknown[] | [] | [{
|
|
917
|
+
communityId: string;
|
|
918
|
+
}] | [{
|
|
919
|
+
communityId: string;
|
|
920
|
+
}, ...unknown[]]) => Promise<any>;
|
|
921
|
+
getCommunityParticipants: (...args: any[] | unknown[] | [] | [{
|
|
922
|
+
communityId: string;
|
|
923
|
+
}] | [{
|
|
924
|
+
communityId: string;
|
|
925
|
+
}, ...unknown[]]) => Promise<any>;
|
|
926
|
+
getCommunityAdmins: (...args: any[] | unknown[] | [] | [{
|
|
927
|
+
communityId: string;
|
|
928
|
+
}] | [{
|
|
929
|
+
communityId: string;
|
|
930
|
+
}, ...unknown[]]) => Promise<any>;
|
|
931
|
+
postTextStatus: (...args: any[] | unknown[] | [] | [{
|
|
932
|
+
text: string;
|
|
933
|
+
backgroundColor?: string | undefined;
|
|
934
|
+
font?: number | undefined;
|
|
935
|
+
}] | [{
|
|
936
|
+
text: string;
|
|
937
|
+
backgroundColor?: string | undefined;
|
|
938
|
+
font?: number | undefined;
|
|
939
|
+
}, ...unknown[]]) => Promise<any>;
|
|
940
|
+
postImageStatus: (...args: any[] | unknown[] | [] | [{
|
|
941
|
+
image: string;
|
|
942
|
+
caption?: string | undefined;
|
|
943
|
+
}] | [{
|
|
944
|
+
image: string;
|
|
945
|
+
caption?: string | undefined;
|
|
946
|
+
}, ...unknown[]]) => Promise<any>;
|
|
947
|
+
postVideoStatus: (...args: any[] | unknown[] | [] | [{
|
|
948
|
+
video: string;
|
|
949
|
+
caption?: string | undefined;
|
|
950
|
+
}] | [{
|
|
951
|
+
video: string;
|
|
952
|
+
caption?: string | undefined;
|
|
953
|
+
}, ...unknown[]]) => Promise<any>;
|
|
954
|
+
getStories: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
955
|
+
getStatus: (...args: any[] | unknown[] | [] | [{
|
|
956
|
+
contactId: string;
|
|
957
|
+
}] | [{
|
|
958
|
+
contactId: string;
|
|
959
|
+
}, ...unknown[]]) => Promise<any>;
|
|
960
|
+
deleteStatus: (...args: any[] | unknown[] | [] | [{
|
|
961
|
+
statusesToDelete: string | string[];
|
|
962
|
+
}] | [{
|
|
963
|
+
statusesToDelete: string | string[];
|
|
964
|
+
}, ...unknown[]]) => Promise<any>;
|
|
965
|
+
deleteAllStatus: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
966
|
+
getAllLabels: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
967
|
+
getChatsByLabel: (...args: any[] | unknown[] | [] | [{
|
|
968
|
+
label: string;
|
|
969
|
+
}] | [{
|
|
970
|
+
label: string;
|
|
971
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
972
|
+
addLabel: (...args: any[] | unknown[] | [] | [{
|
|
973
|
+
label: string;
|
|
974
|
+
chatId: string;
|
|
975
|
+
}] | [{
|
|
976
|
+
label: string;
|
|
977
|
+
chatId: string;
|
|
978
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
979
|
+
removeLabel: (...args: any[] | unknown[] | [] | [{
|
|
980
|
+
label: string;
|
|
981
|
+
chatId: string;
|
|
982
|
+
}] | [{
|
|
983
|
+
label: string;
|
|
984
|
+
chatId: string;
|
|
985
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
986
|
+
getBusinessProfile: (...args: any[] | unknown[] | [] | [{
|
|
987
|
+
contactId: string;
|
|
988
|
+
}] | [{
|
|
989
|
+
contactId: string;
|
|
990
|
+
}, ...unknown[]]) => Promise<any>;
|
|
991
|
+
getBusinessProducts: (...args: any[] | unknown[] | [] | [{
|
|
992
|
+
contactId: string;
|
|
993
|
+
}] | [{
|
|
994
|
+
contactId: string;
|
|
995
|
+
}, ...unknown[]]) => Promise<any>;
|
|
996
|
+
getOrder: (...args: any[] | unknown[] | [] | [{
|
|
997
|
+
id: string;
|
|
998
|
+
}] | [{
|
|
999
|
+
id: string;
|
|
1000
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1001
|
+
getMe: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1002
|
+
getHostNumber: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
1003
|
+
getConnectionState: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1004
|
+
getWAVersion: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
1005
|
+
getBatteryLevel: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
1006
|
+
isPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
|
|
1007
|
+
getFeatures: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1008
|
+
getLicenseType: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1009
|
+
getUserAgent: (...args: any[] | unknown[] | [] | [{
|
|
1010
|
+
userAgent?: string | undefined;
|
|
1011
|
+
}] | [{
|
|
1012
|
+
userAgent?: string | undefined;
|
|
1013
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1014
|
+
getProcessStats: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1015
|
+
getLoadedMessageCount: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
1016
|
+
getSnapshot: (...args: any[] | unknown[] | [] | [{
|
|
1017
|
+
chatId?: string | undefined;
|
|
1018
|
+
width?: number | undefined;
|
|
1019
|
+
height?: number | undefined;
|
|
1020
|
+
}] | [{
|
|
1021
|
+
chatId?: string | undefined;
|
|
1022
|
+
width?: number | undefined;
|
|
1023
|
+
height?: number | undefined;
|
|
1024
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1025
|
+
healthCheck: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1026
|
+
setMyName: (...args: any[] | unknown[] | [] | [{
|
|
1027
|
+
name: string;
|
|
1028
|
+
}] | [{
|
|
1029
|
+
name: string;
|
|
1030
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1031
|
+
setMyStatus: (...args: any[] | unknown[] | [] | [{
|
|
1032
|
+
statusText: string;
|
|
1033
|
+
}] | [{
|
|
1034
|
+
statusText: string;
|
|
1035
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1036
|
+
setProfilePicture: (...args: any[] | unknown[] | [] | [{
|
|
1037
|
+
image: any;
|
|
1038
|
+
}] | [{
|
|
1039
|
+
image: any;
|
|
1040
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1041
|
+
decryptMedia: (...args: any[] | unknown[] | [] | [{
|
|
1042
|
+
message: {
|
|
1043
|
+
[x: string]: unknown;
|
|
1044
|
+
id: string;
|
|
1045
|
+
body: string;
|
|
1046
|
+
type: MessageTypes;
|
|
1047
|
+
t: number;
|
|
1048
|
+
from: string;
|
|
1049
|
+
to: string;
|
|
1050
|
+
self: "out" | "in";
|
|
1051
|
+
ack: MessageAck;
|
|
1052
|
+
timestamp: number;
|
|
1053
|
+
content: string;
|
|
1054
|
+
isGroupMsg: boolean;
|
|
1055
|
+
isMedia: boolean;
|
|
1056
|
+
isNotification: boolean;
|
|
1057
|
+
fromMe: boolean;
|
|
1058
|
+
chatId: string;
|
|
1059
|
+
isQuotedMsgAvailable: boolean;
|
|
1060
|
+
sender: {
|
|
1061
|
+
[x: string]: unknown;
|
|
1062
|
+
id: string;
|
|
1063
|
+
name?: string | undefined;
|
|
1064
|
+
shortName?: string | undefined;
|
|
1065
|
+
pushname?: string | undefined;
|
|
1066
|
+
formattedName?: string | undefined;
|
|
1067
|
+
isBusiness?: boolean | undefined;
|
|
1068
|
+
isEnterprise?: boolean | undefined;
|
|
1069
|
+
isMe?: boolean | undefined;
|
|
1070
|
+
isMyContact?: boolean | undefined;
|
|
1071
|
+
isPSA?: boolean | undefined;
|
|
1072
|
+
isUser?: boolean | undefined;
|
|
1073
|
+
isWAContact?: boolean | undefined;
|
|
1074
|
+
labels?: string[] | undefined;
|
|
1075
|
+
msgs?: any[] | undefined;
|
|
1076
|
+
profilePicThumbObj?: {
|
|
1077
|
+
eurl?: string | undefined;
|
|
1078
|
+
id?: {
|
|
1079
|
+
server: string;
|
|
1080
|
+
user: string;
|
|
1081
|
+
_serialized: string;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
img?: string | undefined;
|
|
1084
|
+
imgFull?: string | undefined;
|
|
1085
|
+
tag?: string | undefined;
|
|
1086
|
+
} | undefined;
|
|
1087
|
+
statusMute?: boolean | undefined;
|
|
1088
|
+
type?: string | undefined;
|
|
1089
|
+
verifiedLevel?: number | undefined;
|
|
1090
|
+
verifiedName?: string | undefined;
|
|
1091
|
+
isOnline?: boolean | undefined;
|
|
1092
|
+
lastSeen?: number | undefined;
|
|
1093
|
+
};
|
|
1094
|
+
chat: {
|
|
1095
|
+
[x: string]: unknown;
|
|
1096
|
+
id: string;
|
|
1097
|
+
isGroup: boolean;
|
|
1098
|
+
contact: {
|
|
1099
|
+
[x: string]: unknown;
|
|
1100
|
+
id: string;
|
|
1101
|
+
name?: string | undefined;
|
|
1102
|
+
shortName?: string | undefined;
|
|
1103
|
+
pushname?: string | undefined;
|
|
1104
|
+
formattedName?: string | undefined;
|
|
1105
|
+
isBusiness?: boolean | undefined;
|
|
1106
|
+
isEnterprise?: boolean | undefined;
|
|
1107
|
+
isMe?: boolean | undefined;
|
|
1108
|
+
isMyContact?: boolean | undefined;
|
|
1109
|
+
isPSA?: boolean | undefined;
|
|
1110
|
+
isUser?: boolean | undefined;
|
|
1111
|
+
isWAContact?: boolean | undefined;
|
|
1112
|
+
labels?: string[] | undefined;
|
|
1113
|
+
msgs?: any[] | undefined;
|
|
1114
|
+
profilePicThumbObj?: {
|
|
1115
|
+
eurl?: string | undefined;
|
|
1116
|
+
id?: {
|
|
1117
|
+
server: string;
|
|
1118
|
+
user: string;
|
|
1119
|
+
_serialized: string;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
img?: string | undefined;
|
|
1122
|
+
imgFull?: string | undefined;
|
|
1123
|
+
tag?: string | undefined;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
statusMute?: boolean | undefined;
|
|
1126
|
+
type?: string | undefined;
|
|
1127
|
+
verifiedLevel?: number | undefined;
|
|
1128
|
+
verifiedName?: string | undefined;
|
|
1129
|
+
isOnline?: boolean | undefined;
|
|
1130
|
+
lastSeen?: number | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
name?: string | undefined;
|
|
1133
|
+
formattedTitle?: string | undefined;
|
|
1134
|
+
groupMetadata?: any;
|
|
1135
|
+
presence?: any;
|
|
1136
|
+
t?: number | undefined;
|
|
1137
|
+
unreadCount?: number | undefined;
|
|
1138
|
+
lastReceivedKey?: any;
|
|
1139
|
+
msgs?: any[] | undefined;
|
|
1140
|
+
isReadOnly?: boolean | undefined;
|
|
1141
|
+
muteExpiration?: number | undefined;
|
|
1142
|
+
notSpam?: boolean | undefined;
|
|
1143
|
+
pin?: number | undefined;
|
|
1144
|
+
ack?: any;
|
|
1145
|
+
};
|
|
1146
|
+
notifyName?: string | undefined;
|
|
1147
|
+
invis?: boolean | undefined;
|
|
1148
|
+
isNewMsg?: boolean | undefined;
|
|
1149
|
+
star?: boolean | undefined;
|
|
1150
|
+
recvFresh?: boolean | undefined;
|
|
1151
|
+
broadcast?: boolean | undefined;
|
|
1152
|
+
isForwarded?: boolean | undefined;
|
|
1153
|
+
labels?: string[] | undefined;
|
|
1154
|
+
mentionedJidList?: string[] | undefined;
|
|
1155
|
+
caption?: string | undefined;
|
|
1156
|
+
isMMS?: boolean | undefined;
|
|
1157
|
+
isPSA?: boolean | undefined;
|
|
1158
|
+
author?: string | undefined;
|
|
1159
|
+
clientUrl?: string | undefined;
|
|
1160
|
+
deprecatedMms3Url?: string | undefined;
|
|
1161
|
+
quotedMsg?: any;
|
|
1162
|
+
quotedMsgObj?: any;
|
|
1163
|
+
senderId?: string | undefined;
|
|
1164
|
+
};
|
|
1165
|
+
}] | [{
|
|
1166
|
+
message: {
|
|
1167
|
+
[x: string]: unknown;
|
|
1168
|
+
id: string;
|
|
1169
|
+
body: string;
|
|
1170
|
+
type: MessageTypes;
|
|
1171
|
+
t: number;
|
|
1172
|
+
from: string;
|
|
1173
|
+
to: string;
|
|
1174
|
+
self: "out" | "in";
|
|
1175
|
+
ack: MessageAck;
|
|
1176
|
+
timestamp: number;
|
|
1177
|
+
content: string;
|
|
1178
|
+
isGroupMsg: boolean;
|
|
1179
|
+
isMedia: boolean;
|
|
1180
|
+
isNotification: boolean;
|
|
1181
|
+
fromMe: boolean;
|
|
1182
|
+
chatId: string;
|
|
1183
|
+
isQuotedMsgAvailable: boolean;
|
|
1184
|
+
sender: {
|
|
1185
|
+
[x: string]: unknown;
|
|
1186
|
+
id: string;
|
|
1187
|
+
name?: string | undefined;
|
|
1188
|
+
shortName?: string | undefined;
|
|
1189
|
+
pushname?: string | undefined;
|
|
1190
|
+
formattedName?: string | undefined;
|
|
1191
|
+
isBusiness?: boolean | undefined;
|
|
1192
|
+
isEnterprise?: boolean | undefined;
|
|
1193
|
+
isMe?: boolean | undefined;
|
|
1194
|
+
isMyContact?: boolean | undefined;
|
|
1195
|
+
isPSA?: boolean | undefined;
|
|
1196
|
+
isUser?: boolean | undefined;
|
|
1197
|
+
isWAContact?: boolean | undefined;
|
|
1198
|
+
labels?: string[] | undefined;
|
|
1199
|
+
msgs?: any[] | undefined;
|
|
1200
|
+
profilePicThumbObj?: {
|
|
1201
|
+
eurl?: string | undefined;
|
|
1202
|
+
id?: {
|
|
1203
|
+
server: string;
|
|
1204
|
+
user: string;
|
|
1205
|
+
_serialized: string;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
img?: string | undefined;
|
|
1208
|
+
imgFull?: string | undefined;
|
|
1209
|
+
tag?: string | undefined;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
statusMute?: boolean | undefined;
|
|
1212
|
+
type?: string | undefined;
|
|
1213
|
+
verifiedLevel?: number | undefined;
|
|
1214
|
+
verifiedName?: string | undefined;
|
|
1215
|
+
isOnline?: boolean | undefined;
|
|
1216
|
+
lastSeen?: number | undefined;
|
|
1217
|
+
};
|
|
1218
|
+
chat: {
|
|
1219
|
+
[x: string]: unknown;
|
|
1220
|
+
id: string;
|
|
1221
|
+
isGroup: boolean;
|
|
1222
|
+
contact: {
|
|
1223
|
+
[x: string]: unknown;
|
|
1224
|
+
id: string;
|
|
1225
|
+
name?: string | undefined;
|
|
1226
|
+
shortName?: string | undefined;
|
|
1227
|
+
pushname?: string | undefined;
|
|
1228
|
+
formattedName?: string | undefined;
|
|
1229
|
+
isBusiness?: boolean | undefined;
|
|
1230
|
+
isEnterprise?: boolean | undefined;
|
|
1231
|
+
isMe?: boolean | undefined;
|
|
1232
|
+
isMyContact?: boolean | undefined;
|
|
1233
|
+
isPSA?: boolean | undefined;
|
|
1234
|
+
isUser?: boolean | undefined;
|
|
1235
|
+
isWAContact?: boolean | undefined;
|
|
1236
|
+
labels?: string[] | undefined;
|
|
1237
|
+
msgs?: any[] | undefined;
|
|
1238
|
+
profilePicThumbObj?: {
|
|
1239
|
+
eurl?: string | undefined;
|
|
1240
|
+
id?: {
|
|
1241
|
+
server: string;
|
|
1242
|
+
user: string;
|
|
1243
|
+
_serialized: string;
|
|
1244
|
+
} | undefined;
|
|
1245
|
+
img?: string | undefined;
|
|
1246
|
+
imgFull?: string | undefined;
|
|
1247
|
+
tag?: string | undefined;
|
|
1248
|
+
} | undefined;
|
|
1249
|
+
statusMute?: boolean | undefined;
|
|
1250
|
+
type?: string | undefined;
|
|
1251
|
+
verifiedLevel?: number | undefined;
|
|
1252
|
+
verifiedName?: string | undefined;
|
|
1253
|
+
isOnline?: boolean | undefined;
|
|
1254
|
+
lastSeen?: number | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
name?: string | undefined;
|
|
1257
|
+
formattedTitle?: string | undefined;
|
|
1258
|
+
groupMetadata?: any;
|
|
1259
|
+
presence?: any;
|
|
1260
|
+
t?: number | undefined;
|
|
1261
|
+
unreadCount?: number | undefined;
|
|
1262
|
+
lastReceivedKey?: any;
|
|
1263
|
+
msgs?: any[] | undefined;
|
|
1264
|
+
isReadOnly?: boolean | undefined;
|
|
1265
|
+
muteExpiration?: number | undefined;
|
|
1266
|
+
notSpam?: boolean | undefined;
|
|
1267
|
+
pin?: number | undefined;
|
|
1268
|
+
ack?: any;
|
|
1269
|
+
};
|
|
1270
|
+
notifyName?: string | undefined;
|
|
1271
|
+
invis?: boolean | undefined;
|
|
1272
|
+
isNewMsg?: boolean | undefined;
|
|
1273
|
+
star?: boolean | undefined;
|
|
1274
|
+
recvFresh?: boolean | undefined;
|
|
1275
|
+
broadcast?: boolean | undefined;
|
|
1276
|
+
isForwarded?: boolean | undefined;
|
|
1277
|
+
labels?: string[] | undefined;
|
|
1278
|
+
mentionedJidList?: string[] | undefined;
|
|
1279
|
+
caption?: string | undefined;
|
|
1280
|
+
isMMS?: boolean | undefined;
|
|
1281
|
+
isPSA?: boolean | undefined;
|
|
1282
|
+
author?: string | undefined;
|
|
1283
|
+
clientUrl?: string | undefined;
|
|
1284
|
+
deprecatedMms3Url?: string | undefined;
|
|
1285
|
+
quotedMsg?: any;
|
|
1286
|
+
quotedMsgObj?: any;
|
|
1287
|
+
senderId?: string | undefined;
|
|
1288
|
+
};
|
|
1289
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1290
|
+
downloadMedia: (...args: any[] | unknown[] | [] | [{
|
|
1291
|
+
message: {
|
|
1292
|
+
[x: string]: unknown;
|
|
1293
|
+
id: string;
|
|
1294
|
+
body: string;
|
|
1295
|
+
type: MessageTypes;
|
|
1296
|
+
t: number;
|
|
1297
|
+
from: string;
|
|
1298
|
+
to: string;
|
|
1299
|
+
self: "out" | "in";
|
|
1300
|
+
ack: MessageAck;
|
|
1301
|
+
timestamp: number;
|
|
1302
|
+
content: string;
|
|
1303
|
+
isGroupMsg: boolean;
|
|
1304
|
+
isMedia: boolean;
|
|
1305
|
+
isNotification: boolean;
|
|
1306
|
+
fromMe: boolean;
|
|
1307
|
+
chatId: string;
|
|
1308
|
+
isQuotedMsgAvailable: boolean;
|
|
1309
|
+
sender: {
|
|
1310
|
+
[x: string]: unknown;
|
|
1311
|
+
id: string;
|
|
1312
|
+
name?: string | undefined;
|
|
1313
|
+
shortName?: string | undefined;
|
|
1314
|
+
pushname?: string | undefined;
|
|
1315
|
+
formattedName?: string | undefined;
|
|
1316
|
+
isBusiness?: boolean | undefined;
|
|
1317
|
+
isEnterprise?: boolean | undefined;
|
|
1318
|
+
isMe?: boolean | undefined;
|
|
1319
|
+
isMyContact?: boolean | undefined;
|
|
1320
|
+
isPSA?: boolean | undefined;
|
|
1321
|
+
isUser?: boolean | undefined;
|
|
1322
|
+
isWAContact?: boolean | undefined;
|
|
1323
|
+
labels?: string[] | undefined;
|
|
1324
|
+
msgs?: any[] | undefined;
|
|
1325
|
+
profilePicThumbObj?: {
|
|
1326
|
+
eurl?: string | undefined;
|
|
1327
|
+
id?: {
|
|
1328
|
+
server: string;
|
|
1329
|
+
user: string;
|
|
1330
|
+
_serialized: string;
|
|
1331
|
+
} | undefined;
|
|
1332
|
+
img?: string | undefined;
|
|
1333
|
+
imgFull?: string | undefined;
|
|
1334
|
+
tag?: string | undefined;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
statusMute?: boolean | undefined;
|
|
1337
|
+
type?: string | undefined;
|
|
1338
|
+
verifiedLevel?: number | undefined;
|
|
1339
|
+
verifiedName?: string | undefined;
|
|
1340
|
+
isOnline?: boolean | undefined;
|
|
1341
|
+
lastSeen?: number | undefined;
|
|
1342
|
+
};
|
|
1343
|
+
chat: {
|
|
1344
|
+
[x: string]: unknown;
|
|
1345
|
+
id: string;
|
|
1346
|
+
isGroup: boolean;
|
|
1347
|
+
contact: {
|
|
1348
|
+
[x: string]: unknown;
|
|
1349
|
+
id: string;
|
|
1350
|
+
name?: string | undefined;
|
|
1351
|
+
shortName?: string | undefined;
|
|
1352
|
+
pushname?: string | undefined;
|
|
1353
|
+
formattedName?: string | undefined;
|
|
1354
|
+
isBusiness?: boolean | undefined;
|
|
1355
|
+
isEnterprise?: boolean | undefined;
|
|
1356
|
+
isMe?: boolean | undefined;
|
|
1357
|
+
isMyContact?: boolean | undefined;
|
|
1358
|
+
isPSA?: boolean | undefined;
|
|
1359
|
+
isUser?: boolean | undefined;
|
|
1360
|
+
isWAContact?: boolean | undefined;
|
|
1361
|
+
labels?: string[] | undefined;
|
|
1362
|
+
msgs?: any[] | undefined;
|
|
1363
|
+
profilePicThumbObj?: {
|
|
1364
|
+
eurl?: string | undefined;
|
|
1365
|
+
id?: {
|
|
1366
|
+
server: string;
|
|
1367
|
+
user: string;
|
|
1368
|
+
_serialized: string;
|
|
1369
|
+
} | undefined;
|
|
1370
|
+
img?: string | undefined;
|
|
1371
|
+
imgFull?: string | undefined;
|
|
1372
|
+
tag?: string | undefined;
|
|
1373
|
+
} | undefined;
|
|
1374
|
+
statusMute?: boolean | undefined;
|
|
1375
|
+
type?: string | undefined;
|
|
1376
|
+
verifiedLevel?: number | undefined;
|
|
1377
|
+
verifiedName?: string | undefined;
|
|
1378
|
+
isOnline?: boolean | undefined;
|
|
1379
|
+
lastSeen?: number | undefined;
|
|
1380
|
+
};
|
|
1381
|
+
name?: string | undefined;
|
|
1382
|
+
formattedTitle?: string | undefined;
|
|
1383
|
+
groupMetadata?: any;
|
|
1384
|
+
presence?: any;
|
|
1385
|
+
t?: number | undefined;
|
|
1386
|
+
unreadCount?: number | undefined;
|
|
1387
|
+
lastReceivedKey?: any;
|
|
1388
|
+
msgs?: any[] | undefined;
|
|
1389
|
+
isReadOnly?: boolean | undefined;
|
|
1390
|
+
muteExpiration?: number | undefined;
|
|
1391
|
+
notSpam?: boolean | undefined;
|
|
1392
|
+
pin?: number | undefined;
|
|
1393
|
+
ack?: any;
|
|
1394
|
+
};
|
|
1395
|
+
notifyName?: string | undefined;
|
|
1396
|
+
invis?: boolean | undefined;
|
|
1397
|
+
isNewMsg?: boolean | undefined;
|
|
1398
|
+
star?: boolean | undefined;
|
|
1399
|
+
recvFresh?: boolean | undefined;
|
|
1400
|
+
broadcast?: boolean | undefined;
|
|
1401
|
+
isForwarded?: boolean | undefined;
|
|
1402
|
+
labels?: string[] | undefined;
|
|
1403
|
+
mentionedJidList?: string[] | undefined;
|
|
1404
|
+
caption?: string | undefined;
|
|
1405
|
+
isMMS?: boolean | undefined;
|
|
1406
|
+
isPSA?: boolean | undefined;
|
|
1407
|
+
author?: string | undefined;
|
|
1408
|
+
clientUrl?: string | undefined;
|
|
1409
|
+
deprecatedMms3Url?: string | undefined;
|
|
1410
|
+
quotedMsg?: any;
|
|
1411
|
+
quotedMsgObj?: any;
|
|
1412
|
+
senderId?: string | undefined;
|
|
1413
|
+
};
|
|
1414
|
+
path: string;
|
|
1415
|
+
}] | [{
|
|
1416
|
+
message: {
|
|
1417
|
+
[x: string]: unknown;
|
|
1418
|
+
id: string;
|
|
1419
|
+
body: string;
|
|
1420
|
+
type: MessageTypes;
|
|
1421
|
+
t: number;
|
|
1422
|
+
from: string;
|
|
1423
|
+
to: string;
|
|
1424
|
+
self: "out" | "in";
|
|
1425
|
+
ack: MessageAck;
|
|
1426
|
+
timestamp: number;
|
|
1427
|
+
content: string;
|
|
1428
|
+
isGroupMsg: boolean;
|
|
1429
|
+
isMedia: boolean;
|
|
1430
|
+
isNotification: boolean;
|
|
1431
|
+
fromMe: boolean;
|
|
1432
|
+
chatId: string;
|
|
1433
|
+
isQuotedMsgAvailable: boolean;
|
|
1434
|
+
sender: {
|
|
1435
|
+
[x: string]: unknown;
|
|
1436
|
+
id: string;
|
|
1437
|
+
name?: string | undefined;
|
|
1438
|
+
shortName?: string | undefined;
|
|
1439
|
+
pushname?: string | undefined;
|
|
1440
|
+
formattedName?: string | undefined;
|
|
1441
|
+
isBusiness?: boolean | undefined;
|
|
1442
|
+
isEnterprise?: boolean | undefined;
|
|
1443
|
+
isMe?: boolean | undefined;
|
|
1444
|
+
isMyContact?: boolean | undefined;
|
|
1445
|
+
isPSA?: boolean | undefined;
|
|
1446
|
+
isUser?: boolean | undefined;
|
|
1447
|
+
isWAContact?: boolean | undefined;
|
|
1448
|
+
labels?: string[] | undefined;
|
|
1449
|
+
msgs?: any[] | undefined;
|
|
1450
|
+
profilePicThumbObj?: {
|
|
1451
|
+
eurl?: string | undefined;
|
|
1452
|
+
id?: {
|
|
1453
|
+
server: string;
|
|
1454
|
+
user: string;
|
|
1455
|
+
_serialized: string;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
img?: string | undefined;
|
|
1458
|
+
imgFull?: string | undefined;
|
|
1459
|
+
tag?: string | undefined;
|
|
1460
|
+
} | undefined;
|
|
1461
|
+
statusMute?: boolean | undefined;
|
|
1462
|
+
type?: string | undefined;
|
|
1463
|
+
verifiedLevel?: number | undefined;
|
|
1464
|
+
verifiedName?: string | undefined;
|
|
1465
|
+
isOnline?: boolean | undefined;
|
|
1466
|
+
lastSeen?: number | undefined;
|
|
1467
|
+
};
|
|
1468
|
+
chat: {
|
|
1469
|
+
[x: string]: unknown;
|
|
1470
|
+
id: string;
|
|
1471
|
+
isGroup: boolean;
|
|
1472
|
+
contact: {
|
|
1473
|
+
[x: string]: unknown;
|
|
1474
|
+
id: string;
|
|
1475
|
+
name?: string | undefined;
|
|
1476
|
+
shortName?: string | undefined;
|
|
1477
|
+
pushname?: string | undefined;
|
|
1478
|
+
formattedName?: string | undefined;
|
|
1479
|
+
isBusiness?: boolean | undefined;
|
|
1480
|
+
isEnterprise?: boolean | undefined;
|
|
1481
|
+
isMe?: boolean | undefined;
|
|
1482
|
+
isMyContact?: boolean | undefined;
|
|
1483
|
+
isPSA?: boolean | undefined;
|
|
1484
|
+
isUser?: boolean | undefined;
|
|
1485
|
+
isWAContact?: boolean | undefined;
|
|
1486
|
+
labels?: string[] | undefined;
|
|
1487
|
+
msgs?: any[] | undefined;
|
|
1488
|
+
profilePicThumbObj?: {
|
|
1489
|
+
eurl?: string | undefined;
|
|
1490
|
+
id?: {
|
|
1491
|
+
server: string;
|
|
1492
|
+
user: string;
|
|
1493
|
+
_serialized: string;
|
|
1494
|
+
} | undefined;
|
|
1495
|
+
img?: string | undefined;
|
|
1496
|
+
imgFull?: string | undefined;
|
|
1497
|
+
tag?: string | undefined;
|
|
1498
|
+
} | undefined;
|
|
1499
|
+
statusMute?: boolean | undefined;
|
|
1500
|
+
type?: string | undefined;
|
|
1501
|
+
verifiedLevel?: number | undefined;
|
|
1502
|
+
verifiedName?: string | undefined;
|
|
1503
|
+
isOnline?: boolean | undefined;
|
|
1504
|
+
lastSeen?: number | undefined;
|
|
1505
|
+
};
|
|
1506
|
+
name?: string | undefined;
|
|
1507
|
+
formattedTitle?: string | undefined;
|
|
1508
|
+
groupMetadata?: any;
|
|
1509
|
+
presence?: any;
|
|
1510
|
+
t?: number | undefined;
|
|
1511
|
+
unreadCount?: number | undefined;
|
|
1512
|
+
lastReceivedKey?: any;
|
|
1513
|
+
msgs?: any[] | undefined;
|
|
1514
|
+
isReadOnly?: boolean | undefined;
|
|
1515
|
+
muteExpiration?: number | undefined;
|
|
1516
|
+
notSpam?: boolean | undefined;
|
|
1517
|
+
pin?: number | undefined;
|
|
1518
|
+
ack?: any;
|
|
1519
|
+
};
|
|
1520
|
+
notifyName?: string | undefined;
|
|
1521
|
+
invis?: boolean | undefined;
|
|
1522
|
+
isNewMsg?: boolean | undefined;
|
|
1523
|
+
star?: boolean | undefined;
|
|
1524
|
+
recvFresh?: boolean | undefined;
|
|
1525
|
+
broadcast?: boolean | undefined;
|
|
1526
|
+
isForwarded?: boolean | undefined;
|
|
1527
|
+
labels?: string[] | undefined;
|
|
1528
|
+
mentionedJidList?: string[] | undefined;
|
|
1529
|
+
caption?: string | undefined;
|
|
1530
|
+
isMMS?: boolean | undefined;
|
|
1531
|
+
isPSA?: boolean | undefined;
|
|
1532
|
+
author?: string | undefined;
|
|
1533
|
+
clientUrl?: string | undefined;
|
|
1534
|
+
deprecatedMms3Url?: string | undefined;
|
|
1535
|
+
quotedMsg?: any;
|
|
1536
|
+
quotedMsgObj?: any;
|
|
1537
|
+
senderId?: string | undefined;
|
|
1538
|
+
};
|
|
1539
|
+
path: string;
|
|
1540
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1541
|
+
sendVoiceNote: (...args: any[] | unknown[] | [] | [{
|
|
1542
|
+
to: string;
|
|
1543
|
+
file: any;
|
|
1544
|
+
quotedMsgId?: string | undefined;
|
|
1545
|
+
}] | [{
|
|
1546
|
+
to: string;
|
|
1547
|
+
file: any;
|
|
1548
|
+
quotedMsgId?: string | undefined;
|
|
1549
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1550
|
+
[x: string]: unknown;
|
|
1551
|
+
_serialized: string;
|
|
1552
|
+
}>;
|
|
1553
|
+
sendContacts: (...args: any[] | unknown[] | [] | [{
|
|
1554
|
+
to: string;
|
|
1555
|
+
contactIds: string[];
|
|
1556
|
+
}] | [{
|
|
1557
|
+
to: string;
|
|
1558
|
+
contactIds: string[];
|
|
1559
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1560
|
+
[x: string]: unknown;
|
|
1561
|
+
_serialized: string;
|
|
1562
|
+
}>;
|
|
1563
|
+
sendList: (...args: any[] | unknown[] | [] | [{
|
|
1564
|
+
to: string;
|
|
1565
|
+
sections: any[];
|
|
1566
|
+
title: string;
|
|
1567
|
+
description: string;
|
|
1568
|
+
actionText: string;
|
|
1569
|
+
}] | [{
|
|
1570
|
+
to: string;
|
|
1571
|
+
sections: any[];
|
|
1572
|
+
title: string;
|
|
1573
|
+
description: string;
|
|
1574
|
+
actionText: string;
|
|
1575
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1576
|
+
[x: string]: unknown;
|
|
1577
|
+
_serialized: string;
|
|
1578
|
+
}>;
|
|
1579
|
+
sendYoutubeLink: (...args: any[] | unknown[] | [] | [{
|
|
1580
|
+
to: string;
|
|
1581
|
+
url: string;
|
|
1582
|
+
text?: string | undefined;
|
|
1583
|
+
thumbnail?: string | undefined;
|
|
1584
|
+
quotedMsgId?: string | undefined;
|
|
1585
|
+
customSize?: {
|
|
1586
|
+
height: number;
|
|
1587
|
+
width: number;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
}] | [{
|
|
1590
|
+
to: string;
|
|
1591
|
+
url: string;
|
|
1592
|
+
text?: string | undefined;
|
|
1593
|
+
thumbnail?: string | undefined;
|
|
1594
|
+
quotedMsgId?: string | undefined;
|
|
1595
|
+
customSize?: {
|
|
1596
|
+
height: number;
|
|
1597
|
+
width: number;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1600
|
+
[x: string]: unknown;
|
|
1601
|
+
_serialized: string;
|
|
1602
|
+
}>;
|
|
1603
|
+
sendLink: (...args: any[] | unknown[] | [] | [{
|
|
1604
|
+
to: string;
|
|
1605
|
+
url: string;
|
|
1606
|
+
text?: string | undefined;
|
|
1607
|
+
thumbnail?: string | undefined;
|
|
1608
|
+
quotedMsgId?: string | undefined;
|
|
1609
|
+
customSize?: {
|
|
1610
|
+
height: number;
|
|
1611
|
+
width: number;
|
|
1612
|
+
} | undefined;
|
|
1613
|
+
}] | [{
|
|
1614
|
+
to: string;
|
|
1615
|
+
url: string;
|
|
1616
|
+
text?: string | undefined;
|
|
1617
|
+
thumbnail?: string | undefined;
|
|
1618
|
+
quotedMsgId?: string | undefined;
|
|
1619
|
+
customSize?: {
|
|
1620
|
+
height: number;
|
|
1621
|
+
width: number;
|
|
1622
|
+
} | undefined;
|
|
1623
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1624
|
+
[x: string]: unknown;
|
|
1625
|
+
_serialized: string;
|
|
1626
|
+
}>;
|
|
1627
|
+
sendLinkWithThumbnail: (...args: any[] | unknown[] | [] | [{
|
|
1628
|
+
thumb: string;
|
|
1629
|
+
url: string;
|
|
1630
|
+
title: string;
|
|
1631
|
+
description: string;
|
|
1632
|
+
content: string;
|
|
1633
|
+
to: string;
|
|
1634
|
+
quotedMsgId?: string | undefined;
|
|
1635
|
+
customSize?: {
|
|
1636
|
+
height: number;
|
|
1637
|
+
width: number;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
}] | [{
|
|
1640
|
+
thumb: string;
|
|
1641
|
+
url: string;
|
|
1642
|
+
title: string;
|
|
1643
|
+
description: string;
|
|
1644
|
+
content: string;
|
|
1645
|
+
to: string;
|
|
1646
|
+
quotedMsgId?: string | undefined;
|
|
1647
|
+
customSize?: {
|
|
1648
|
+
height: number;
|
|
1649
|
+
width: number;
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
1652
|
+
[x: string]: unknown;
|
|
1653
|
+
_serialized: string;
|
|
1654
|
+
}>;
|
|
1655
|
+
getMessage: (...args: any[] | unknown[] | [] | [{
|
|
1656
|
+
messageId: string;
|
|
1657
|
+
}] | [{
|
|
1658
|
+
messageId: string;
|
|
1659
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1660
|
+
listMessages: (...args: any[] | unknown[] | [] | [{
|
|
1661
|
+
chatId?: string | undefined;
|
|
1662
|
+
includeMe?: boolean | undefined;
|
|
1663
|
+
includeNotifications?: boolean | undefined;
|
|
1664
|
+
}] | [{
|
|
1665
|
+
chatId?: string | undefined;
|
|
1666
|
+
includeMe?: boolean | undefined;
|
|
1667
|
+
includeNotifications?: boolean | undefined;
|
|
1668
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1669
|
+
getGptArray: (...args: any[] | unknown[] | [] | [{
|
|
1670
|
+
chatId: string;
|
|
1671
|
+
last?: number | undefined;
|
|
1672
|
+
}] | [{
|
|
1673
|
+
chatId: string;
|
|
1674
|
+
last?: number | undefined;
|
|
1675
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1676
|
+
loadOlderMessages: (...args: any[] | unknown[] | [] | [{
|
|
1677
|
+
chatId: string;
|
|
1678
|
+
count?: number | undefined;
|
|
1679
|
+
includeMe?: boolean | undefined;
|
|
1680
|
+
}] | [{
|
|
1681
|
+
chatId: string;
|
|
1682
|
+
count?: number | undefined;
|
|
1683
|
+
includeMe?: boolean | undefined;
|
|
1684
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1685
|
+
listChats: (...args: any[] | unknown[] | [] | [{
|
|
1686
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1687
|
+
}] | [{
|
|
1688
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1689
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1690
|
+
listChatIds: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1691
|
+
getChatById: (...args: any[] | unknown[] | [] | [{
|
|
1692
|
+
chatId: string;
|
|
1693
|
+
}] | [{
|
|
1694
|
+
chatId: string;
|
|
1695
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1696
|
+
listContacts: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1697
|
+
contactBlock: (...args: any[] | unknown[] | [] | [{
|
|
1698
|
+
contactId: string;
|
|
1699
|
+
}] | [{
|
|
1700
|
+
contactId: string;
|
|
1701
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1702
|
+
contactUnblock: (...args: any[] | unknown[] | [] | [{
|
|
1703
|
+
contactId: string;
|
|
1704
|
+
}] | [{
|
|
1705
|
+
contactId: string;
|
|
1706
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1707
|
+
getReadReceipts: (...args: any[] | unknown[] | [] | [{
|
|
1708
|
+
contactId: string;
|
|
1709
|
+
}] | [{
|
|
1710
|
+
contactId: string;
|
|
1711
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
1712
|
+
getProfilePicFromServer: (...args: any[] | unknown[] | [] | [{
|
|
1713
|
+
chatId: string;
|
|
1714
|
+
}] | [{
|
|
1715
|
+
chatId: string;
|
|
1716
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1717
|
+
listGroups: (...args: any[] | unknown[] | [] | [{
|
|
1718
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1719
|
+
}] | [{
|
|
1720
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1721
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1722
|
+
getGroupMemberIds: (...args: any[] | unknown[] | [] | [{
|
|
1723
|
+
groupId: string;
|
|
1724
|
+
}] | [{
|
|
1725
|
+
groupId: string;
|
|
1726
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
1727
|
+
joinGroup: (...args: any[] | unknown[] | [] | [{
|
|
1728
|
+
link: string;
|
|
1729
|
+
returnChatObj?: boolean | undefined;
|
|
1730
|
+
}] | [{
|
|
1731
|
+
link: string;
|
|
1732
|
+
returnChatObj?: boolean | undefined;
|
|
1733
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1734
|
+
addGroupParticipant: (...args: any[] | unknown[] | [] | [{
|
|
1735
|
+
groupId: string;
|
|
1736
|
+
contactId: string;
|
|
1737
|
+
}] | [{
|
|
1738
|
+
groupId: string;
|
|
1739
|
+
contactId: string;
|
|
1740
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1741
|
+
removeGroupParticipant: (...args: any[] | unknown[] | [] | [{
|
|
1742
|
+
groupId: string;
|
|
1743
|
+
contactId: string;
|
|
1744
|
+
}] | [{
|
|
1745
|
+
groupId: string;
|
|
1746
|
+
contactId: string;
|
|
1747
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1748
|
+
promoteGroupParticipant: (...args: any[] | unknown[] | [] | [{
|
|
1749
|
+
groupId: string;
|
|
1750
|
+
contactId: string;
|
|
1751
|
+
}] | [{
|
|
1752
|
+
groupId: string;
|
|
1753
|
+
contactId: string;
|
|
1754
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
1755
|
+
demoteGroupParticipant: (...args: any[] | unknown[] | [] | [{
|
|
1756
|
+
groupId: string;
|
|
1757
|
+
contactId: string;
|
|
1758
|
+
}] | [{
|
|
1759
|
+
groupId: string;
|
|
1760
|
+
contactId: string;
|
|
1761
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
1762
|
+
listCommunities: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1763
|
+
getStatuses: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1764
|
+
deleteAllStatuses: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
1765
|
+
listLabels: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1766
|
+
getBusinessProfilesProducts: (...args: any[] | unknown[] | [] | [{
|
|
1767
|
+
contactId: string;
|
|
1768
|
+
}] | [{
|
|
1769
|
+
contactId: string;
|
|
1770
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1771
|
+
getWhatsAppVersion: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
1772
|
+
getIsPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
|
|
1773
|
+
getGeneratedUserAgent: (...args: any[] | unknown[] | [] | [{
|
|
1774
|
+
userAgent?: string | undefined;
|
|
1775
|
+
}] | [{
|
|
1776
|
+
userAgent?: string | undefined;
|
|
1777
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1778
|
+
getAmountOfLoadedMessages: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
1779
|
+
takeScreenshot: (...args: any[] | unknown[] | [] | [{
|
|
1780
|
+
chatId?: string | undefined;
|
|
1781
|
+
width?: number | undefined;
|
|
1782
|
+
height?: number | undefined;
|
|
1783
|
+
}] | [{
|
|
1784
|
+
chatId?: string | undefined;
|
|
1785
|
+
width?: number | undefined;
|
|
1786
|
+
height?: number | undefined;
|
|
1787
|
+
}, ...unknown[]]) => Promise<string>;
|
|
1788
|
+
setDisplayName: (...args: any[] | unknown[] | [] | [{
|
|
1789
|
+
name: string;
|
|
1790
|
+
}] | [{
|
|
1791
|
+
name: string;
|
|
1792
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1793
|
+
setStatusText: (...args: any[] | unknown[] | [] | [{
|
|
1794
|
+
statusText: string;
|
|
1795
|
+
}] | [{
|
|
1796
|
+
statusText: string;
|
|
1797
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1798
|
+
setProfilePic: (...args: any[] | unknown[] | [] | [{
|
|
1799
|
+
image: any;
|
|
1800
|
+
}] | [{
|
|
1801
|
+
image: any;
|
|
1802
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1803
|
+
}
|
|
1804
|
+
//#endregion
|
|
1805
|
+
//#region src/generated/BaseNamespacedClient.d.ts
|
|
1806
|
+
declare abstract class BaseNamespacedClient extends BaseClient {
|
|
1807
|
+
business: {
|
|
1808
|
+
getOrder: (...args: any[] | unknown[] | [] | [{
|
|
1809
|
+
id: string;
|
|
1810
|
+
}] | [{
|
|
1811
|
+
id: string;
|
|
1812
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1813
|
+
getProducts: (...args: any[] | unknown[] | [] | [{
|
|
1814
|
+
contactId: string;
|
|
1815
|
+
}] | [{
|
|
1816
|
+
contactId: string;
|
|
1817
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1818
|
+
getProfile: (...args: any[] | unknown[] | [] | [{
|
|
1819
|
+
contactId: string;
|
|
1820
|
+
}] | [{
|
|
1821
|
+
contactId: string;
|
|
1822
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1823
|
+
getProfilesProducts: (...args: any[] | unknown[] | [] | [{
|
|
1824
|
+
contactId: string;
|
|
1825
|
+
}] | [{
|
|
1826
|
+
contactId: string;
|
|
1827
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1828
|
+
};
|
|
1829
|
+
chatIds: {
|
|
1830
|
+
all: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1831
|
+
getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1832
|
+
list: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1833
|
+
};
|
|
1834
|
+
chats: {
|
|
1835
|
+
all: (...args: any[] | unknown[] | [] | [{
|
|
1836
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1837
|
+
}] | [{
|
|
1838
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1839
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1840
|
+
archive: (...args: any[] | unknown[] | [] | [{
|
|
1841
|
+
chatId: string;
|
|
1842
|
+
}] | [{
|
|
1843
|
+
chatId: string;
|
|
1844
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1845
|
+
clear: (...args: any[] | unknown[] | [] | [{
|
|
1846
|
+
chatId: string;
|
|
1847
|
+
}] | [{
|
|
1848
|
+
chatId: string;
|
|
1849
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1850
|
+
delete: (...args: any[] | unknown[] | [] | [{
|
|
1851
|
+
chatId: string;
|
|
1852
|
+
}] | [{
|
|
1853
|
+
chatId: string;
|
|
1854
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1855
|
+
get: (...args: any[] | unknown[] | [] | [{
|
|
1856
|
+
chatId: string;
|
|
1857
|
+
}] | [{
|
|
1858
|
+
chatId: string;
|
|
1859
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1860
|
+
getAll: (...args: any[] | unknown[] | [] | [{
|
|
1861
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1862
|
+
}] | [{
|
|
1863
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1864
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1865
|
+
getById: (...args: any[] | unknown[] | [] | [{
|
|
1866
|
+
chatId: string;
|
|
1867
|
+
}] | [{
|
|
1868
|
+
chatId: string;
|
|
1869
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1870
|
+
getWithNonContacts: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1871
|
+
isOnline: (...args: any[] | unknown[] | [] | [{
|
|
1872
|
+
chatId: string;
|
|
1873
|
+
}] | [{
|
|
1874
|
+
chatId: string;
|
|
1875
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
1876
|
+
list: (...args: any[] | unknown[] | [] | [{
|
|
1877
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1878
|
+
}] | [{
|
|
1879
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
1880
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
1881
|
+
markAsRead: (...args: any[] | unknown[] | [] | [{
|
|
1882
|
+
chatId: string;
|
|
1883
|
+
}] | [{
|
|
1884
|
+
chatId: string;
|
|
1885
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1886
|
+
markAsUnread: (...args: any[] | unknown[] | [] | [{
|
|
1887
|
+
chatId: string;
|
|
1888
|
+
}] | [{
|
|
1889
|
+
chatId: string;
|
|
1890
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1891
|
+
mute: (...args: any[] | unknown[] | [] | [{
|
|
1892
|
+
chatId: string;
|
|
1893
|
+
muteDuration: string | number;
|
|
1894
|
+
}] | [{
|
|
1895
|
+
chatId: string;
|
|
1896
|
+
muteDuration: string | number;
|
|
1897
|
+
}, ...unknown[]]) => Promise<string | number | boolean>;
|
|
1898
|
+
pin: (...args: any[] | unknown[] | [] | [{
|
|
1899
|
+
chatId: string;
|
|
1900
|
+
}] | [{
|
|
1901
|
+
chatId: string;
|
|
1902
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1903
|
+
setEphemeral: (...args: any[] | unknown[] | [] | [{
|
|
1904
|
+
chatId: string;
|
|
1905
|
+
ephemeral: number | boolean;
|
|
1906
|
+
}] | [{
|
|
1907
|
+
chatId: string;
|
|
1908
|
+
ephemeral: number | boolean;
|
|
1909
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1910
|
+
unarchive: (...args: any[] | unknown[] | [] | [{
|
|
1911
|
+
chatId: string;
|
|
1912
|
+
}] | [{
|
|
1913
|
+
chatId: string;
|
|
1914
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1915
|
+
unmute: (...args: any[] | unknown[] | [] | [{
|
|
1916
|
+
chatId: string;
|
|
1917
|
+
}] | [{
|
|
1918
|
+
chatId: string;
|
|
1919
|
+
}, ...unknown[]]) => Promise<string | number | boolean>;
|
|
1920
|
+
unpin: (...args: any[] | unknown[] | [] | [{
|
|
1921
|
+
chatId: string;
|
|
1922
|
+
}] | [{
|
|
1923
|
+
chatId: string;
|
|
1924
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1925
|
+
};
|
|
1926
|
+
communities: {
|
|
1927
|
+
all: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1928
|
+
getAdminIds: (...args: any[] | unknown[] | [] | [{
|
|
1929
|
+
communityId: string;
|
|
1930
|
+
}] | [{
|
|
1931
|
+
communityId: string;
|
|
1932
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1933
|
+
getAdmins: (...args: any[] | unknown[] | [] | [{
|
|
1934
|
+
communityId: string;
|
|
1935
|
+
}] | [{
|
|
1936
|
+
communityId: string;
|
|
1937
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1938
|
+
getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1939
|
+
getInfo: (...args: any[] | unknown[] | [] | [{
|
|
1940
|
+
communityId: string;
|
|
1941
|
+
}] | [{
|
|
1942
|
+
communityId: string;
|
|
1943
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1944
|
+
getParticipantIds: (...args: any[] | unknown[] | [] | [{
|
|
1945
|
+
communityId: string;
|
|
1946
|
+
}] | [{
|
|
1947
|
+
communityId: string;
|
|
1948
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1949
|
+
getParticipants: (...args: any[] | unknown[] | [] | [{
|
|
1950
|
+
communityId: string;
|
|
1951
|
+
}] | [{
|
|
1952
|
+
communityId: string;
|
|
1953
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1954
|
+
list: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1955
|
+
};
|
|
1956
|
+
contacts: {
|
|
1957
|
+
all: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1958
|
+
block: (...args: any[] | unknown[] | [] | [{
|
|
1959
|
+
contactId: string;
|
|
1960
|
+
}] | [{
|
|
1961
|
+
contactId: string;
|
|
1962
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1963
|
+
checkNumberStatus: (...args: any[] | unknown[] | [] | [{
|
|
1964
|
+
contactId: string;
|
|
1965
|
+
}] | [{
|
|
1966
|
+
contactId: string;
|
|
1967
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1968
|
+
checkReadReceipts: (...args: any[] | unknown[] | [] | [{
|
|
1969
|
+
contactId: string;
|
|
1970
|
+
}] | [{
|
|
1971
|
+
contactId: string;
|
|
1972
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
1973
|
+
contactBlock: (...args: any[] | unknown[] | [] | [{
|
|
1974
|
+
contactId: string;
|
|
1975
|
+
}] | [{
|
|
1976
|
+
contactId: string;
|
|
1977
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1978
|
+
contactUnblock: (...args: any[] | unknown[] | [] | [{
|
|
1979
|
+
contactId: string;
|
|
1980
|
+
}] | [{
|
|
1981
|
+
contactId: string;
|
|
1982
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
1983
|
+
get: (...args: any[] | unknown[] | [] | [{
|
|
1984
|
+
contactId: string;
|
|
1985
|
+
}] | [{
|
|
1986
|
+
contactId: string;
|
|
1987
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1988
|
+
getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
1989
|
+
getBlockedIds: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
1990
|
+
getCommonGroups: (...args: any[] | unknown[] | [] | [{
|
|
1991
|
+
contactId: string;
|
|
1992
|
+
}] | [{
|
|
1993
|
+
contactId: string;
|
|
1994
|
+
}, ...unknown[]]) => Promise<any>;
|
|
1995
|
+
getNumberProfile: (...args: any[] | unknown[] | [] | [{
|
|
1996
|
+
contactId: string;
|
|
1997
|
+
}] | [{
|
|
1998
|
+
contactId: string;
|
|
1999
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2000
|
+
getProfilePicFromServer: (...args: any[] | unknown[] | [] | [{
|
|
2001
|
+
chatId: string;
|
|
2002
|
+
}] | [{
|
|
2003
|
+
chatId: string;
|
|
2004
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2005
|
+
getProfilePicture: (...args: any[] | unknown[] | [] | [{
|
|
2006
|
+
chatId: string;
|
|
2007
|
+
}] | [{
|
|
2008
|
+
chatId: string;
|
|
2009
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2010
|
+
getReadReceipts: (...args: any[] | unknown[] | [] | [{
|
|
2011
|
+
contactId: string;
|
|
2012
|
+
}] | [{
|
|
2013
|
+
contactId: string;
|
|
2014
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2015
|
+
list: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
2016
|
+
unblock: (...args: any[] | unknown[] | [] | [{
|
|
2017
|
+
contactId: string;
|
|
2018
|
+
}] | [{
|
|
2019
|
+
contactId: string;
|
|
2020
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2021
|
+
};
|
|
2022
|
+
groups: {
|
|
2023
|
+
addParticipant: (...args: any[] | unknown[] | [] | [{
|
|
2024
|
+
groupId: string;
|
|
2025
|
+
contactId: string;
|
|
2026
|
+
}] | [{
|
|
2027
|
+
groupId: string;
|
|
2028
|
+
contactId: string;
|
|
2029
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2030
|
+
all: (...args: any[] | unknown[] | [] | [{
|
|
2031
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2032
|
+
}] | [{
|
|
2033
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2034
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2035
|
+
approveJoinRequest: (...args: any[] | unknown[] | [] | [{
|
|
2036
|
+
groupId: string;
|
|
2037
|
+
contactId: string;
|
|
2038
|
+
}] | [{
|
|
2039
|
+
groupId: string;
|
|
2040
|
+
contactId: string;
|
|
2041
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2042
|
+
create: (...args: any[] | unknown[] | [] | [{
|
|
2043
|
+
name: string;
|
|
2044
|
+
contacts: string[];
|
|
2045
|
+
}] | [{
|
|
2046
|
+
name: string;
|
|
2047
|
+
contacts: string[];
|
|
2048
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2049
|
+
demoteParticipant: (...args: any[] | unknown[] | [] | [{
|
|
2050
|
+
groupId: string;
|
|
2051
|
+
contactId: string;
|
|
2052
|
+
}] | [{
|
|
2053
|
+
groupId: string;
|
|
2054
|
+
contactId: string;
|
|
2055
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2056
|
+
getAdmins: (...args: any[] | unknown[] | [] | [{
|
|
2057
|
+
groupId: string;
|
|
2058
|
+
}] | [{
|
|
2059
|
+
groupId: string;
|
|
2060
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2061
|
+
getAll: (...args: any[] | unknown[] | [] | [{
|
|
2062
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2063
|
+
}] | [{
|
|
2064
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2065
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2066
|
+
getInfo: (...args: any[] | unknown[] | [] | [{
|
|
2067
|
+
groupId: string;
|
|
2068
|
+
}] | [{
|
|
2069
|
+
groupId: string;
|
|
2070
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2071
|
+
getInviteLink: (...args: any[] | unknown[] | [] | [{
|
|
2072
|
+
groupId: string;
|
|
2073
|
+
}] | [{
|
|
2074
|
+
groupId: string;
|
|
2075
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2076
|
+
getKicked: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string[]>;
|
|
2077
|
+
getMemberIds: (...args: any[] | unknown[] | [] | [{
|
|
2078
|
+
groupId: string;
|
|
2079
|
+
}] | [{
|
|
2080
|
+
groupId: string;
|
|
2081
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
2082
|
+
getMembers: (...args: any[] | unknown[] | [] | [{
|
|
2083
|
+
groupId: string;
|
|
2084
|
+
}] | [{
|
|
2085
|
+
groupId: string;
|
|
2086
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2087
|
+
getMembersId: (...args: any[] | unknown[] | [] | [{
|
|
2088
|
+
groupId: string;
|
|
2089
|
+
}] | [{
|
|
2090
|
+
groupId: string;
|
|
2091
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
2092
|
+
join: (...args: any[] | unknown[] | [] | [{
|
|
2093
|
+
link: string;
|
|
2094
|
+
returnChatObj?: boolean | undefined;
|
|
2095
|
+
}] | [{
|
|
2096
|
+
link: string;
|
|
2097
|
+
returnChatObj?: boolean | undefined;
|
|
2098
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2099
|
+
joinViaLink: (...args: any[] | unknown[] | [] | [{
|
|
2100
|
+
link: string;
|
|
2101
|
+
returnChatObj?: boolean | undefined;
|
|
2102
|
+
}] | [{
|
|
2103
|
+
link: string;
|
|
2104
|
+
returnChatObj?: boolean | undefined;
|
|
2105
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2106
|
+
leave: (...args: any[] | unknown[] | [] | [{
|
|
2107
|
+
groupId: string;
|
|
2108
|
+
}] | [{
|
|
2109
|
+
groupId: string;
|
|
2110
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2111
|
+
list: (...args: any[] | unknown[] | [] | [{
|
|
2112
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2113
|
+
}] | [{
|
|
2114
|
+
withNewMessagesOnly?: boolean | undefined;
|
|
2115
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2116
|
+
promoteParticipant: (...args: any[] | unknown[] | [] | [{
|
|
2117
|
+
groupId: string;
|
|
2118
|
+
contactId: string;
|
|
2119
|
+
}] | [{
|
|
2120
|
+
groupId: string;
|
|
2121
|
+
contactId: string;
|
|
2122
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2123
|
+
rejectJoinRequest: (...args: any[] | unknown[] | [] | [{
|
|
2124
|
+
groupId: string;
|
|
2125
|
+
contactId: string;
|
|
2126
|
+
}] | [{
|
|
2127
|
+
groupId: string;
|
|
2128
|
+
contactId: string;
|
|
2129
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2130
|
+
removeParticipant: (...args: any[] | unknown[] | [] | [{
|
|
2131
|
+
groupId: string;
|
|
2132
|
+
contactId: string;
|
|
2133
|
+
}] | [{
|
|
2134
|
+
groupId: string;
|
|
2135
|
+
contactId: string;
|
|
2136
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2137
|
+
revokeInviteLink: (...args: any[] | unknown[] | [] | [{
|
|
2138
|
+
groupId: string;
|
|
2139
|
+
}] | [{
|
|
2140
|
+
groupId: string;
|
|
2141
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2142
|
+
setAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
2143
|
+
groupId: string;
|
|
2144
|
+
onlyAdmins: boolean;
|
|
2145
|
+
}] | [{
|
|
2146
|
+
groupId: string;
|
|
2147
|
+
onlyAdmins: boolean;
|
|
2148
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2149
|
+
setDescription: (...args: any[] | unknown[] | [] | [{
|
|
2150
|
+
groupId: string;
|
|
2151
|
+
description: string;
|
|
2152
|
+
}] | [{
|
|
2153
|
+
groupId: string;
|
|
2154
|
+
description: string;
|
|
2155
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2156
|
+
setEditAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
2157
|
+
groupId: string;
|
|
2158
|
+
onlyAdmins: boolean;
|
|
2159
|
+
}] | [{
|
|
2160
|
+
groupId: string;
|
|
2161
|
+
onlyAdmins: boolean;
|
|
2162
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2163
|
+
setEditToAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
2164
|
+
groupId: string;
|
|
2165
|
+
onlyAdmins: boolean;
|
|
2166
|
+
}] | [{
|
|
2167
|
+
groupId: string;
|
|
2168
|
+
onlyAdmins: boolean;
|
|
2169
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2170
|
+
setIcon: (...args: any[] | unknown[] | [] | [{
|
|
2171
|
+
groupId: string;
|
|
2172
|
+
image: string;
|
|
2173
|
+
}] | [{
|
|
2174
|
+
groupId: string;
|
|
2175
|
+
image: string;
|
|
2176
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2177
|
+
setTitle: (...args: any[] | unknown[] | [] | [{
|
|
2178
|
+
groupId: string;
|
|
2179
|
+
title: string;
|
|
2180
|
+
}] | [{
|
|
2181
|
+
groupId: string;
|
|
2182
|
+
title: string;
|
|
2183
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2184
|
+
setToAdminsOnly: (...args: any[] | unknown[] | [] | [{
|
|
2185
|
+
groupId: string;
|
|
2186
|
+
onlyAdmins: boolean;
|
|
2187
|
+
}] | [{
|
|
2188
|
+
groupId: string;
|
|
2189
|
+
onlyAdmins: boolean;
|
|
2190
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2191
|
+
};
|
|
2192
|
+
labels: {
|
|
2193
|
+
add: (...args: any[] | unknown[] | [] | [{
|
|
2194
|
+
label: string;
|
|
2195
|
+
chatId: string;
|
|
2196
|
+
}] | [{
|
|
2197
|
+
label: string;
|
|
2198
|
+
chatId: string;
|
|
2199
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2200
|
+
all: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
2201
|
+
getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
2202
|
+
getChats: (...args: any[] | unknown[] | [] | [{
|
|
2203
|
+
label: string;
|
|
2204
|
+
}] | [{
|
|
2205
|
+
label: string;
|
|
2206
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2207
|
+
getChatsBy: (...args: any[] | unknown[] | [] | [{
|
|
2208
|
+
label: string;
|
|
2209
|
+
}] | [{
|
|
2210
|
+
label: string;
|
|
2211
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2212
|
+
list: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
2213
|
+
remove: (...args: any[] | unknown[] | [] | [{
|
|
2214
|
+
label: string;
|
|
2215
|
+
chatId: string;
|
|
2216
|
+
}] | [{
|
|
2217
|
+
label: string;
|
|
2218
|
+
chatId: string;
|
|
2219
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2220
|
+
};
|
|
2221
|
+
media: {
|
|
2222
|
+
decrypt: (...args: any[] | unknown[] | [] | [{
|
|
2223
|
+
message: {
|
|
2224
|
+
[x: string]: unknown;
|
|
2225
|
+
id: string;
|
|
2226
|
+
body: string;
|
|
2227
|
+
type: MessageTypes;
|
|
2228
|
+
t: number;
|
|
2229
|
+
from: string;
|
|
2230
|
+
to: string;
|
|
2231
|
+
self: "out" | "in";
|
|
2232
|
+
ack: MessageAck;
|
|
2233
|
+
timestamp: number;
|
|
2234
|
+
content: string;
|
|
2235
|
+
isGroupMsg: boolean;
|
|
2236
|
+
isMedia: boolean;
|
|
2237
|
+
isNotification: boolean;
|
|
2238
|
+
fromMe: boolean;
|
|
2239
|
+
chatId: string;
|
|
2240
|
+
isQuotedMsgAvailable: boolean;
|
|
2241
|
+
sender: {
|
|
2242
|
+
[x: string]: unknown;
|
|
2243
|
+
id: string;
|
|
2244
|
+
name?: string | undefined;
|
|
2245
|
+
shortName?: string | undefined;
|
|
2246
|
+
pushname?: string | undefined;
|
|
2247
|
+
formattedName?: string | undefined;
|
|
2248
|
+
isBusiness?: boolean | undefined;
|
|
2249
|
+
isEnterprise?: boolean | undefined;
|
|
2250
|
+
isMe?: boolean | undefined;
|
|
2251
|
+
isMyContact?: boolean | undefined;
|
|
2252
|
+
isPSA?: boolean | undefined;
|
|
2253
|
+
isUser?: boolean | undefined;
|
|
2254
|
+
isWAContact?: boolean | undefined;
|
|
2255
|
+
labels?: string[] | undefined;
|
|
2256
|
+
msgs?: any[] | undefined;
|
|
2257
|
+
profilePicThumbObj?: {
|
|
2258
|
+
eurl?: string | undefined;
|
|
2259
|
+
id?: {
|
|
2260
|
+
server: string;
|
|
2261
|
+
user: string;
|
|
2262
|
+
_serialized: string;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
img?: string | undefined;
|
|
2265
|
+
imgFull?: string | undefined;
|
|
2266
|
+
tag?: string | undefined;
|
|
2267
|
+
} | undefined;
|
|
2268
|
+
statusMute?: boolean | undefined;
|
|
2269
|
+
type?: string | undefined;
|
|
2270
|
+
verifiedLevel?: number | undefined;
|
|
2271
|
+
verifiedName?: string | undefined;
|
|
2272
|
+
isOnline?: boolean | undefined;
|
|
2273
|
+
lastSeen?: number | undefined;
|
|
2274
|
+
};
|
|
2275
|
+
chat: {
|
|
2276
|
+
[x: string]: unknown;
|
|
2277
|
+
id: string;
|
|
2278
|
+
isGroup: boolean;
|
|
2279
|
+
contact: {
|
|
2280
|
+
[x: string]: unknown;
|
|
2281
|
+
id: string;
|
|
2282
|
+
name?: string | undefined;
|
|
2283
|
+
shortName?: string | undefined;
|
|
2284
|
+
pushname?: string | undefined;
|
|
2285
|
+
formattedName?: string | undefined;
|
|
2286
|
+
isBusiness?: boolean | undefined;
|
|
2287
|
+
isEnterprise?: boolean | undefined;
|
|
2288
|
+
isMe?: boolean | undefined;
|
|
2289
|
+
isMyContact?: boolean | undefined;
|
|
2290
|
+
isPSA?: boolean | undefined;
|
|
2291
|
+
isUser?: boolean | undefined;
|
|
2292
|
+
isWAContact?: boolean | undefined;
|
|
2293
|
+
labels?: string[] | undefined;
|
|
2294
|
+
msgs?: any[] | undefined;
|
|
2295
|
+
profilePicThumbObj?: {
|
|
2296
|
+
eurl?: string | undefined;
|
|
2297
|
+
id?: {
|
|
2298
|
+
server: string;
|
|
2299
|
+
user: string;
|
|
2300
|
+
_serialized: string;
|
|
2301
|
+
} | undefined;
|
|
2302
|
+
img?: string | undefined;
|
|
2303
|
+
imgFull?: string | undefined;
|
|
2304
|
+
tag?: string | undefined;
|
|
2305
|
+
} | undefined;
|
|
2306
|
+
statusMute?: boolean | undefined;
|
|
2307
|
+
type?: string | undefined;
|
|
2308
|
+
verifiedLevel?: number | undefined;
|
|
2309
|
+
verifiedName?: string | undefined;
|
|
2310
|
+
isOnline?: boolean | undefined;
|
|
2311
|
+
lastSeen?: number | undefined;
|
|
2312
|
+
};
|
|
2313
|
+
name?: string | undefined;
|
|
2314
|
+
formattedTitle?: string | undefined;
|
|
2315
|
+
groupMetadata?: any;
|
|
2316
|
+
presence?: any;
|
|
2317
|
+
t?: number | undefined;
|
|
2318
|
+
unreadCount?: number | undefined;
|
|
2319
|
+
lastReceivedKey?: any;
|
|
2320
|
+
msgs?: any[] | undefined;
|
|
2321
|
+
isReadOnly?: boolean | undefined;
|
|
2322
|
+
muteExpiration?: number | undefined;
|
|
2323
|
+
notSpam?: boolean | undefined;
|
|
2324
|
+
pin?: number | undefined;
|
|
2325
|
+
ack?: any;
|
|
2326
|
+
};
|
|
2327
|
+
notifyName?: string | undefined;
|
|
2328
|
+
invis?: boolean | undefined;
|
|
2329
|
+
isNewMsg?: boolean | undefined;
|
|
2330
|
+
star?: boolean | undefined;
|
|
2331
|
+
recvFresh?: boolean | undefined;
|
|
2332
|
+
broadcast?: boolean | undefined;
|
|
2333
|
+
isForwarded?: boolean | undefined;
|
|
2334
|
+
labels?: string[] | undefined;
|
|
2335
|
+
mentionedJidList?: string[] | undefined;
|
|
2336
|
+
caption?: string | undefined;
|
|
2337
|
+
isMMS?: boolean | undefined;
|
|
2338
|
+
isPSA?: boolean | undefined;
|
|
2339
|
+
author?: string | undefined;
|
|
2340
|
+
clientUrl?: string | undefined;
|
|
2341
|
+
deprecatedMms3Url?: string | undefined;
|
|
2342
|
+
quotedMsg?: any;
|
|
2343
|
+
quotedMsgObj?: any;
|
|
2344
|
+
senderId?: string | undefined;
|
|
2345
|
+
};
|
|
2346
|
+
}] | [{
|
|
2347
|
+
message: {
|
|
2348
|
+
[x: string]: unknown;
|
|
2349
|
+
id: string;
|
|
2350
|
+
body: string;
|
|
2351
|
+
type: MessageTypes;
|
|
2352
|
+
t: number;
|
|
2353
|
+
from: string;
|
|
2354
|
+
to: string;
|
|
2355
|
+
self: "out" | "in";
|
|
2356
|
+
ack: MessageAck;
|
|
2357
|
+
timestamp: number;
|
|
2358
|
+
content: string;
|
|
2359
|
+
isGroupMsg: boolean;
|
|
2360
|
+
isMedia: boolean;
|
|
2361
|
+
isNotification: boolean;
|
|
2362
|
+
fromMe: boolean;
|
|
2363
|
+
chatId: string;
|
|
2364
|
+
isQuotedMsgAvailable: boolean;
|
|
2365
|
+
sender: {
|
|
2366
|
+
[x: string]: unknown;
|
|
2367
|
+
id: string;
|
|
2368
|
+
name?: string | undefined;
|
|
2369
|
+
shortName?: string | undefined;
|
|
2370
|
+
pushname?: string | undefined;
|
|
2371
|
+
formattedName?: string | undefined;
|
|
2372
|
+
isBusiness?: boolean | undefined;
|
|
2373
|
+
isEnterprise?: boolean | undefined;
|
|
2374
|
+
isMe?: boolean | undefined;
|
|
2375
|
+
isMyContact?: boolean | undefined;
|
|
2376
|
+
isPSA?: boolean | undefined;
|
|
2377
|
+
isUser?: boolean | undefined;
|
|
2378
|
+
isWAContact?: boolean | undefined;
|
|
2379
|
+
labels?: string[] | undefined;
|
|
2380
|
+
msgs?: any[] | undefined;
|
|
2381
|
+
profilePicThumbObj?: {
|
|
2382
|
+
eurl?: string | undefined;
|
|
2383
|
+
id?: {
|
|
2384
|
+
server: string;
|
|
2385
|
+
user: string;
|
|
2386
|
+
_serialized: string;
|
|
2387
|
+
} | undefined;
|
|
2388
|
+
img?: string | undefined;
|
|
2389
|
+
imgFull?: string | undefined;
|
|
2390
|
+
tag?: string | undefined;
|
|
2391
|
+
} | undefined;
|
|
2392
|
+
statusMute?: boolean | undefined;
|
|
2393
|
+
type?: string | undefined;
|
|
2394
|
+
verifiedLevel?: number | undefined;
|
|
2395
|
+
verifiedName?: string | undefined;
|
|
2396
|
+
isOnline?: boolean | undefined;
|
|
2397
|
+
lastSeen?: number | undefined;
|
|
2398
|
+
};
|
|
2399
|
+
chat: {
|
|
2400
|
+
[x: string]: unknown;
|
|
2401
|
+
id: string;
|
|
2402
|
+
isGroup: boolean;
|
|
2403
|
+
contact: {
|
|
2404
|
+
[x: string]: unknown;
|
|
2405
|
+
id: string;
|
|
2406
|
+
name?: string | undefined;
|
|
2407
|
+
shortName?: string | undefined;
|
|
2408
|
+
pushname?: string | undefined;
|
|
2409
|
+
formattedName?: string | undefined;
|
|
2410
|
+
isBusiness?: boolean | undefined;
|
|
2411
|
+
isEnterprise?: boolean | undefined;
|
|
2412
|
+
isMe?: boolean | undefined;
|
|
2413
|
+
isMyContact?: boolean | undefined;
|
|
2414
|
+
isPSA?: boolean | undefined;
|
|
2415
|
+
isUser?: boolean | undefined;
|
|
2416
|
+
isWAContact?: boolean | undefined;
|
|
2417
|
+
labels?: string[] | undefined;
|
|
2418
|
+
msgs?: any[] | undefined;
|
|
2419
|
+
profilePicThumbObj?: {
|
|
2420
|
+
eurl?: string | undefined;
|
|
2421
|
+
id?: {
|
|
2422
|
+
server: string;
|
|
2423
|
+
user: string;
|
|
2424
|
+
_serialized: string;
|
|
2425
|
+
} | undefined;
|
|
2426
|
+
img?: string | undefined;
|
|
2427
|
+
imgFull?: string | undefined;
|
|
2428
|
+
tag?: string | undefined;
|
|
2429
|
+
} | undefined;
|
|
2430
|
+
statusMute?: boolean | undefined;
|
|
2431
|
+
type?: string | undefined;
|
|
2432
|
+
verifiedLevel?: number | undefined;
|
|
2433
|
+
verifiedName?: string | undefined;
|
|
2434
|
+
isOnline?: boolean | undefined;
|
|
2435
|
+
lastSeen?: number | undefined;
|
|
2436
|
+
};
|
|
2437
|
+
name?: string | undefined;
|
|
2438
|
+
formattedTitle?: string | undefined;
|
|
2439
|
+
groupMetadata?: any;
|
|
2440
|
+
presence?: any;
|
|
2441
|
+
t?: number | undefined;
|
|
2442
|
+
unreadCount?: number | undefined;
|
|
2443
|
+
lastReceivedKey?: any;
|
|
2444
|
+
msgs?: any[] | undefined;
|
|
2445
|
+
isReadOnly?: boolean | undefined;
|
|
2446
|
+
muteExpiration?: number | undefined;
|
|
2447
|
+
notSpam?: boolean | undefined;
|
|
2448
|
+
pin?: number | undefined;
|
|
2449
|
+
ack?: any;
|
|
2450
|
+
};
|
|
2451
|
+
notifyName?: string | undefined;
|
|
2452
|
+
invis?: boolean | undefined;
|
|
2453
|
+
isNewMsg?: boolean | undefined;
|
|
2454
|
+
star?: boolean | undefined;
|
|
2455
|
+
recvFresh?: boolean | undefined;
|
|
2456
|
+
broadcast?: boolean | undefined;
|
|
2457
|
+
isForwarded?: boolean | undefined;
|
|
2458
|
+
labels?: string[] | undefined;
|
|
2459
|
+
mentionedJidList?: string[] | undefined;
|
|
2460
|
+
caption?: string | undefined;
|
|
2461
|
+
isMMS?: boolean | undefined;
|
|
2462
|
+
isPSA?: boolean | undefined;
|
|
2463
|
+
author?: string | undefined;
|
|
2464
|
+
clientUrl?: string | undefined;
|
|
2465
|
+
deprecatedMms3Url?: string | undefined;
|
|
2466
|
+
quotedMsg?: any;
|
|
2467
|
+
quotedMsgObj?: any;
|
|
2468
|
+
senderId?: string | undefined;
|
|
2469
|
+
};
|
|
2470
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2471
|
+
download: (...args: any[] | unknown[] | [] | [{
|
|
2472
|
+
message: {
|
|
2473
|
+
[x: string]: unknown;
|
|
2474
|
+
id: string;
|
|
2475
|
+
body: string;
|
|
2476
|
+
type: MessageTypes;
|
|
2477
|
+
t: number;
|
|
2478
|
+
from: string;
|
|
2479
|
+
to: string;
|
|
2480
|
+
self: "out" | "in";
|
|
2481
|
+
ack: MessageAck;
|
|
2482
|
+
timestamp: number;
|
|
2483
|
+
content: string;
|
|
2484
|
+
isGroupMsg: boolean;
|
|
2485
|
+
isMedia: boolean;
|
|
2486
|
+
isNotification: boolean;
|
|
2487
|
+
fromMe: boolean;
|
|
2488
|
+
chatId: string;
|
|
2489
|
+
isQuotedMsgAvailable: boolean;
|
|
2490
|
+
sender: {
|
|
2491
|
+
[x: string]: unknown;
|
|
2492
|
+
id: string;
|
|
2493
|
+
name?: string | undefined;
|
|
2494
|
+
shortName?: string | undefined;
|
|
2495
|
+
pushname?: string | undefined;
|
|
2496
|
+
formattedName?: string | undefined;
|
|
2497
|
+
isBusiness?: boolean | undefined;
|
|
2498
|
+
isEnterprise?: boolean | undefined;
|
|
2499
|
+
isMe?: boolean | undefined;
|
|
2500
|
+
isMyContact?: boolean | undefined;
|
|
2501
|
+
isPSA?: boolean | undefined;
|
|
2502
|
+
isUser?: boolean | undefined;
|
|
2503
|
+
isWAContact?: boolean | undefined;
|
|
2504
|
+
labels?: string[] | undefined;
|
|
2505
|
+
msgs?: any[] | undefined;
|
|
2506
|
+
profilePicThumbObj?: {
|
|
2507
|
+
eurl?: string | undefined;
|
|
2508
|
+
id?: {
|
|
2509
|
+
server: string;
|
|
2510
|
+
user: string;
|
|
2511
|
+
_serialized: string;
|
|
2512
|
+
} | undefined;
|
|
2513
|
+
img?: string | undefined;
|
|
2514
|
+
imgFull?: string | undefined;
|
|
2515
|
+
tag?: string | undefined;
|
|
2516
|
+
} | undefined;
|
|
2517
|
+
statusMute?: boolean | undefined;
|
|
2518
|
+
type?: string | undefined;
|
|
2519
|
+
verifiedLevel?: number | undefined;
|
|
2520
|
+
verifiedName?: string | undefined;
|
|
2521
|
+
isOnline?: boolean | undefined;
|
|
2522
|
+
lastSeen?: number | undefined;
|
|
2523
|
+
};
|
|
2524
|
+
chat: {
|
|
2525
|
+
[x: string]: unknown;
|
|
2526
|
+
id: string;
|
|
2527
|
+
isGroup: boolean;
|
|
2528
|
+
contact: {
|
|
2529
|
+
[x: string]: unknown;
|
|
2530
|
+
id: string;
|
|
2531
|
+
name?: string | undefined;
|
|
2532
|
+
shortName?: string | undefined;
|
|
2533
|
+
pushname?: string | undefined;
|
|
2534
|
+
formattedName?: string | undefined;
|
|
2535
|
+
isBusiness?: boolean | undefined;
|
|
2536
|
+
isEnterprise?: boolean | undefined;
|
|
2537
|
+
isMe?: boolean | undefined;
|
|
2538
|
+
isMyContact?: boolean | undefined;
|
|
2539
|
+
isPSA?: boolean | undefined;
|
|
2540
|
+
isUser?: boolean | undefined;
|
|
2541
|
+
isWAContact?: boolean | undefined;
|
|
2542
|
+
labels?: string[] | undefined;
|
|
2543
|
+
msgs?: any[] | undefined;
|
|
2544
|
+
profilePicThumbObj?: {
|
|
2545
|
+
eurl?: string | undefined;
|
|
2546
|
+
id?: {
|
|
2547
|
+
server: string;
|
|
2548
|
+
user: string;
|
|
2549
|
+
_serialized: string;
|
|
2550
|
+
} | undefined;
|
|
2551
|
+
img?: string | undefined;
|
|
2552
|
+
imgFull?: string | undefined;
|
|
2553
|
+
tag?: string | undefined;
|
|
2554
|
+
} | undefined;
|
|
2555
|
+
statusMute?: boolean | undefined;
|
|
2556
|
+
type?: string | undefined;
|
|
2557
|
+
verifiedLevel?: number | undefined;
|
|
2558
|
+
verifiedName?: string | undefined;
|
|
2559
|
+
isOnline?: boolean | undefined;
|
|
2560
|
+
lastSeen?: number | undefined;
|
|
2561
|
+
};
|
|
2562
|
+
name?: string | undefined;
|
|
2563
|
+
formattedTitle?: string | undefined;
|
|
2564
|
+
groupMetadata?: any;
|
|
2565
|
+
presence?: any;
|
|
2566
|
+
t?: number | undefined;
|
|
2567
|
+
unreadCount?: number | undefined;
|
|
2568
|
+
lastReceivedKey?: any;
|
|
2569
|
+
msgs?: any[] | undefined;
|
|
2570
|
+
isReadOnly?: boolean | undefined;
|
|
2571
|
+
muteExpiration?: number | undefined;
|
|
2572
|
+
notSpam?: boolean | undefined;
|
|
2573
|
+
pin?: number | undefined;
|
|
2574
|
+
ack?: any;
|
|
2575
|
+
};
|
|
2576
|
+
notifyName?: string | undefined;
|
|
2577
|
+
invis?: boolean | undefined;
|
|
2578
|
+
isNewMsg?: boolean | undefined;
|
|
2579
|
+
star?: boolean | undefined;
|
|
2580
|
+
recvFresh?: boolean | undefined;
|
|
2581
|
+
broadcast?: boolean | undefined;
|
|
2582
|
+
isForwarded?: boolean | undefined;
|
|
2583
|
+
labels?: string[] | undefined;
|
|
2584
|
+
mentionedJidList?: string[] | undefined;
|
|
2585
|
+
caption?: string | undefined;
|
|
2586
|
+
isMMS?: boolean | undefined;
|
|
2587
|
+
isPSA?: boolean | undefined;
|
|
2588
|
+
author?: string | undefined;
|
|
2589
|
+
clientUrl?: string | undefined;
|
|
2590
|
+
deprecatedMms3Url?: string | undefined;
|
|
2591
|
+
quotedMsg?: any;
|
|
2592
|
+
quotedMsgObj?: any;
|
|
2593
|
+
senderId?: string | undefined;
|
|
2594
|
+
};
|
|
2595
|
+
path: string;
|
|
2596
|
+
}] | [{
|
|
2597
|
+
message: {
|
|
2598
|
+
[x: string]: unknown;
|
|
2599
|
+
id: string;
|
|
2600
|
+
body: string;
|
|
2601
|
+
type: MessageTypes;
|
|
2602
|
+
t: number;
|
|
2603
|
+
from: string;
|
|
2604
|
+
to: string;
|
|
2605
|
+
self: "out" | "in";
|
|
2606
|
+
ack: MessageAck;
|
|
2607
|
+
timestamp: number;
|
|
2608
|
+
content: string;
|
|
2609
|
+
isGroupMsg: boolean;
|
|
2610
|
+
isMedia: boolean;
|
|
2611
|
+
isNotification: boolean;
|
|
2612
|
+
fromMe: boolean;
|
|
2613
|
+
chatId: string;
|
|
2614
|
+
isQuotedMsgAvailable: boolean;
|
|
2615
|
+
sender: {
|
|
2616
|
+
[x: string]: unknown;
|
|
2617
|
+
id: string;
|
|
2618
|
+
name?: string | undefined;
|
|
2619
|
+
shortName?: string | undefined;
|
|
2620
|
+
pushname?: string | undefined;
|
|
2621
|
+
formattedName?: string | undefined;
|
|
2622
|
+
isBusiness?: boolean | undefined;
|
|
2623
|
+
isEnterprise?: boolean | undefined;
|
|
2624
|
+
isMe?: boolean | undefined;
|
|
2625
|
+
isMyContact?: boolean | undefined;
|
|
2626
|
+
isPSA?: boolean | undefined;
|
|
2627
|
+
isUser?: boolean | undefined;
|
|
2628
|
+
isWAContact?: boolean | undefined;
|
|
2629
|
+
labels?: string[] | undefined;
|
|
2630
|
+
msgs?: any[] | undefined;
|
|
2631
|
+
profilePicThumbObj?: {
|
|
2632
|
+
eurl?: string | undefined;
|
|
2633
|
+
id?: {
|
|
2634
|
+
server: string;
|
|
2635
|
+
user: string;
|
|
2636
|
+
_serialized: string;
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
img?: string | undefined;
|
|
2639
|
+
imgFull?: string | undefined;
|
|
2640
|
+
tag?: string | undefined;
|
|
2641
|
+
} | undefined;
|
|
2642
|
+
statusMute?: boolean | undefined;
|
|
2643
|
+
type?: string | undefined;
|
|
2644
|
+
verifiedLevel?: number | undefined;
|
|
2645
|
+
verifiedName?: string | undefined;
|
|
2646
|
+
isOnline?: boolean | undefined;
|
|
2647
|
+
lastSeen?: number | undefined;
|
|
2648
|
+
};
|
|
2649
|
+
chat: {
|
|
2650
|
+
[x: string]: unknown;
|
|
2651
|
+
id: string;
|
|
2652
|
+
isGroup: boolean;
|
|
2653
|
+
contact: {
|
|
2654
|
+
[x: string]: unknown;
|
|
2655
|
+
id: string;
|
|
2656
|
+
name?: string | undefined;
|
|
2657
|
+
shortName?: string | undefined;
|
|
2658
|
+
pushname?: string | undefined;
|
|
2659
|
+
formattedName?: string | undefined;
|
|
2660
|
+
isBusiness?: boolean | undefined;
|
|
2661
|
+
isEnterprise?: boolean | undefined;
|
|
2662
|
+
isMe?: boolean | undefined;
|
|
2663
|
+
isMyContact?: boolean | undefined;
|
|
2664
|
+
isPSA?: boolean | undefined;
|
|
2665
|
+
isUser?: boolean | undefined;
|
|
2666
|
+
isWAContact?: boolean | undefined;
|
|
2667
|
+
labels?: string[] | undefined;
|
|
2668
|
+
msgs?: any[] | undefined;
|
|
2669
|
+
profilePicThumbObj?: {
|
|
2670
|
+
eurl?: string | undefined;
|
|
2671
|
+
id?: {
|
|
2672
|
+
server: string;
|
|
2673
|
+
user: string;
|
|
2674
|
+
_serialized: string;
|
|
2675
|
+
} | undefined;
|
|
2676
|
+
img?: string | undefined;
|
|
2677
|
+
imgFull?: string | undefined;
|
|
2678
|
+
tag?: string | undefined;
|
|
2679
|
+
} | undefined;
|
|
2680
|
+
statusMute?: boolean | undefined;
|
|
2681
|
+
type?: string | undefined;
|
|
2682
|
+
verifiedLevel?: number | undefined;
|
|
2683
|
+
verifiedName?: string | undefined;
|
|
2684
|
+
isOnline?: boolean | undefined;
|
|
2685
|
+
lastSeen?: number | undefined;
|
|
2686
|
+
};
|
|
2687
|
+
name?: string | undefined;
|
|
2688
|
+
formattedTitle?: string | undefined;
|
|
2689
|
+
groupMetadata?: any;
|
|
2690
|
+
presence?: any;
|
|
2691
|
+
t?: number | undefined;
|
|
2692
|
+
unreadCount?: number | undefined;
|
|
2693
|
+
lastReceivedKey?: any;
|
|
2694
|
+
msgs?: any[] | undefined;
|
|
2695
|
+
isReadOnly?: boolean | undefined;
|
|
2696
|
+
muteExpiration?: number | undefined;
|
|
2697
|
+
notSpam?: boolean | undefined;
|
|
2698
|
+
pin?: number | undefined;
|
|
2699
|
+
ack?: any;
|
|
2700
|
+
};
|
|
2701
|
+
notifyName?: string | undefined;
|
|
2702
|
+
invis?: boolean | undefined;
|
|
2703
|
+
isNewMsg?: boolean | undefined;
|
|
2704
|
+
star?: boolean | undefined;
|
|
2705
|
+
recvFresh?: boolean | undefined;
|
|
2706
|
+
broadcast?: boolean | undefined;
|
|
2707
|
+
isForwarded?: boolean | undefined;
|
|
2708
|
+
labels?: string[] | undefined;
|
|
2709
|
+
mentionedJidList?: string[] | undefined;
|
|
2710
|
+
caption?: string | undefined;
|
|
2711
|
+
isMMS?: boolean | undefined;
|
|
2712
|
+
isPSA?: boolean | undefined;
|
|
2713
|
+
author?: string | undefined;
|
|
2714
|
+
clientUrl?: string | undefined;
|
|
2715
|
+
deprecatedMms3Url?: string | undefined;
|
|
2716
|
+
quotedMsg?: any;
|
|
2717
|
+
quotedMsgObj?: any;
|
|
2718
|
+
senderId?: string | undefined;
|
|
2719
|
+
};
|
|
2720
|
+
path: string;
|
|
2721
|
+
}, ...unknown[]]) => Promise<string>;
|
|
2722
|
+
};
|
|
2723
|
+
messages: {
|
|
2724
|
+
all: (...args: any[] | unknown[] | [] | [{
|
|
2725
|
+
chatId?: string | undefined;
|
|
2726
|
+
includeMe?: boolean | undefined;
|
|
2727
|
+
includeNotifications?: boolean | undefined;
|
|
2728
|
+
}] | [{
|
|
2729
|
+
chatId?: string | undefined;
|
|
2730
|
+
includeMe?: boolean | undefined;
|
|
2731
|
+
includeNotifications?: boolean | undefined;
|
|
2732
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2733
|
+
delete: (...args: any[] | unknown[] | [] | [{
|
|
2734
|
+
chatId: string;
|
|
2735
|
+
messageId: string | string[];
|
|
2736
|
+
onlyLocal?: boolean | undefined;
|
|
2737
|
+
}] | [{
|
|
2738
|
+
chatId: string;
|
|
2739
|
+
messageId: string | string[];
|
|
2740
|
+
onlyLocal?: boolean | undefined;
|
|
2741
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2742
|
+
forward: (...args: any[] | unknown[] | [] | [{
|
|
2743
|
+
to: string;
|
|
2744
|
+
messages: string | string[];
|
|
2745
|
+
skipMyMessages?: boolean | undefined;
|
|
2746
|
+
}] | [{
|
|
2747
|
+
to: string;
|
|
2748
|
+
messages: string | string[];
|
|
2749
|
+
skipMyMessages?: boolean | undefined;
|
|
2750
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2751
|
+
[x: string]: unknown;
|
|
2752
|
+
_serialized: string;
|
|
2753
|
+
}[]>;
|
|
2754
|
+
get: (...args: any[] | unknown[] | [] | [{
|
|
2755
|
+
messageId: string;
|
|
2756
|
+
}] | [{
|
|
2757
|
+
messageId: string;
|
|
2758
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2759
|
+
getAll: (...args: any[] | unknown[] | [] | [{
|
|
2760
|
+
chatId?: string | undefined;
|
|
2761
|
+
includeMe?: boolean | undefined;
|
|
2762
|
+
includeNotifications?: boolean | undefined;
|
|
2763
|
+
}] | [{
|
|
2764
|
+
chatId?: string | undefined;
|
|
2765
|
+
includeMe?: boolean | undefined;
|
|
2766
|
+
includeNotifications?: boolean | undefined;
|
|
2767
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2768
|
+
getById: (...args: any[] | unknown[] | [] | [{
|
|
2769
|
+
messageId: string;
|
|
2770
|
+
}] | [{
|
|
2771
|
+
messageId: string;
|
|
2772
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2773
|
+
getForLLM: (...args: any[] | unknown[] | [] | [{
|
|
2774
|
+
chatId: string;
|
|
2775
|
+
last?: number | undefined;
|
|
2776
|
+
}] | [{
|
|
2777
|
+
chatId: string;
|
|
2778
|
+
last?: number | undefined;
|
|
2779
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2780
|
+
getGptArray: (...args: any[] | unknown[] | [] | [{
|
|
2781
|
+
chatId: string;
|
|
2782
|
+
last?: number | undefined;
|
|
2783
|
+
}] | [{
|
|
2784
|
+
chatId: string;
|
|
2785
|
+
last?: number | undefined;
|
|
2786
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2787
|
+
getInfo: (...args: any[] | unknown[] | [] | [{
|
|
2788
|
+
messageId: string;
|
|
2789
|
+
}] | [{
|
|
2790
|
+
messageId: string;
|
|
2791
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2792
|
+
getMyLast: (...args: any[] | unknown[] | [] | [{
|
|
2793
|
+
chatId?: string | undefined;
|
|
2794
|
+
}] | [{
|
|
2795
|
+
chatId?: string | undefined;
|
|
2796
|
+
}, ...unknown[]]) => Promise<any>;
|
|
2797
|
+
getStarred: (...args: any[] | unknown[] | [] | [{
|
|
2798
|
+
chatId?: string | undefined;
|
|
2799
|
+
}] | [{
|
|
2800
|
+
chatId?: string | undefined;
|
|
2801
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2802
|
+
getUnsent: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
2803
|
+
getVCards: (...args: any[] | unknown[] | [] | [{
|
|
2804
|
+
messageId: string;
|
|
2805
|
+
}] | [{
|
|
2806
|
+
messageId: string;
|
|
2807
|
+
}, ...unknown[]]) => Promise<string[]>;
|
|
2808
|
+
list: (...args: any[] | unknown[] | [] | [{
|
|
2809
|
+
chatId?: string | undefined;
|
|
2810
|
+
includeMe?: boolean | undefined;
|
|
2811
|
+
includeNotifications?: boolean | undefined;
|
|
2812
|
+
}] | [{
|
|
2813
|
+
chatId?: string | undefined;
|
|
2814
|
+
includeMe?: boolean | undefined;
|
|
2815
|
+
includeNotifications?: boolean | undefined;
|
|
2816
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2817
|
+
loadEarlier: (...args: any[] | unknown[] | [] | [{
|
|
2818
|
+
chatId: string;
|
|
2819
|
+
count?: number | undefined;
|
|
2820
|
+
includeMe?: boolean | undefined;
|
|
2821
|
+
}] | [{
|
|
2822
|
+
chatId: string;
|
|
2823
|
+
count?: number | undefined;
|
|
2824
|
+
includeMe?: boolean | undefined;
|
|
2825
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2826
|
+
loadOlder: (...args: any[] | unknown[] | [] | [{
|
|
2827
|
+
chatId: string;
|
|
2828
|
+
count?: number | undefined;
|
|
2829
|
+
includeMe?: boolean | undefined;
|
|
2830
|
+
}] | [{
|
|
2831
|
+
chatId: string;
|
|
2832
|
+
count?: number | undefined;
|
|
2833
|
+
includeMe?: boolean | undefined;
|
|
2834
|
+
}, ...unknown[]]) => Promise<any[]>;
|
|
2835
|
+
react: (...args: any[] | unknown[] | [] | [{
|
|
2836
|
+
messageId: string;
|
|
2837
|
+
emoji: string;
|
|
2838
|
+
}] | [{
|
|
2839
|
+
messageId: string;
|
|
2840
|
+
emoji: string;
|
|
2841
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
2842
|
+
sendAdvancedButtons: (...args: any[] | unknown[] | [] | [{
|
|
2843
|
+
to: string;
|
|
2844
|
+
body: any;
|
|
2845
|
+
buttons: any[];
|
|
2846
|
+
text: string;
|
|
2847
|
+
footer: string;
|
|
2848
|
+
filename: string;
|
|
2849
|
+
}] | [{
|
|
2850
|
+
to: string;
|
|
2851
|
+
body: any;
|
|
2852
|
+
buttons: any[];
|
|
2853
|
+
text: string;
|
|
2854
|
+
footer: string;
|
|
2855
|
+
filename: string;
|
|
2856
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2857
|
+
[x: string]: unknown;
|
|
2858
|
+
_serialized: string;
|
|
2859
|
+
}>;
|
|
2860
|
+
sendAudio: (...args: any[] | unknown[] | [] | [{
|
|
2861
|
+
to: string;
|
|
2862
|
+
file: any;
|
|
2863
|
+
filename?: string | undefined;
|
|
2864
|
+
quotedMsgId?: string | undefined;
|
|
2865
|
+
}] | [{
|
|
2866
|
+
to: string;
|
|
2867
|
+
file: any;
|
|
2868
|
+
filename?: string | undefined;
|
|
2869
|
+
quotedMsgId?: string | undefined;
|
|
2870
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2871
|
+
[x: string]: unknown;
|
|
2872
|
+
_serialized: string;
|
|
2873
|
+
}>;
|
|
2874
|
+
sendBanner: (...args: any[] | unknown[] | [] | [{
|
|
2875
|
+
to: string;
|
|
2876
|
+
base64: string;
|
|
2877
|
+
}] | [{
|
|
2878
|
+
to: string;
|
|
2879
|
+
base64: string;
|
|
2880
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2881
|
+
[x: string]: unknown;
|
|
2882
|
+
_serialized: string;
|
|
2883
|
+
}>;
|
|
2884
|
+
sendButtons: (...args: any[] | unknown[] | [] | [{
|
|
2885
|
+
to: string;
|
|
2886
|
+
body: any;
|
|
2887
|
+
buttons: any[];
|
|
2888
|
+
title?: string | undefined;
|
|
2889
|
+
footer?: string | undefined;
|
|
2890
|
+
}] | [{
|
|
2891
|
+
to: string;
|
|
2892
|
+
body: any;
|
|
2893
|
+
buttons: any[];
|
|
2894
|
+
title?: string | undefined;
|
|
2895
|
+
footer?: string | undefined;
|
|
2896
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2897
|
+
[x: string]: unknown;
|
|
2898
|
+
_serialized: string;
|
|
2899
|
+
}>;
|
|
2900
|
+
sendContact: (...args: any[] | unknown[] | [] | [{
|
|
2901
|
+
to: string;
|
|
2902
|
+
contactId: string | string[];
|
|
2903
|
+
}] | [{
|
|
2904
|
+
to: string;
|
|
2905
|
+
contactId: string | string[];
|
|
2906
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2907
|
+
[x: string]: unknown;
|
|
2908
|
+
_serialized: string;
|
|
2909
|
+
}>;
|
|
2910
|
+
sendContacts: (...args: any[] | unknown[] | [] | [{
|
|
2911
|
+
to: string;
|
|
2912
|
+
contactIds: string[];
|
|
2913
|
+
}] | [{
|
|
2914
|
+
to: string;
|
|
2915
|
+
contactIds: string[];
|
|
2916
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2917
|
+
[x: string]: unknown;
|
|
2918
|
+
_serialized: string;
|
|
2919
|
+
}>;
|
|
2920
|
+
sendFile: (...args: any[] | unknown[] | [] | [{
|
|
2921
|
+
to: string;
|
|
2922
|
+
file: any;
|
|
2923
|
+
filename?: string | undefined;
|
|
2924
|
+
caption?: string | undefined;
|
|
2925
|
+
}] | [{
|
|
2926
|
+
to: string;
|
|
2927
|
+
file: any;
|
|
2928
|
+
filename?: string | undefined;
|
|
2929
|
+
caption?: string | undefined;
|
|
2930
|
+
}, ...unknown[]]) => Promise<string | {
|
|
2931
|
+
[x: string]: unknown;
|
|
2932
|
+
_serialized: string;
|
|
2933
|
+
}>;
|
|
2934
|
+
sendFileFromUrl: (...args: any[] | unknown[] | [] | [{
|
|
2935
|
+
to: string;
|
|
2936
|
+
url: string;
|
|
2937
|
+
filename: string;
|
|
2938
|
+
caption?: string | undefined;
|
|
2939
|
+
headers?: Record<string, string> | undefined;
|
|
2940
|
+
}] | [{
|
|
2941
|
+
to: string;
|
|
2942
|
+
url: string;
|
|
2943
|
+
filename: string;
|
|
2944
|
+
caption?: string | undefined;
|
|
2945
|
+
headers?: Record<string, string> | undefined;
|
|
2946
|
+
}, ...unknown[]]) => Promise<string | boolean>;
|
|
2947
|
+
sendImage: (...args: any[] | unknown[] | [] | [{
|
|
2948
|
+
to: string;
|
|
2949
|
+
imgData: any;
|
|
2950
|
+
filename?: string | undefined;
|
|
2951
|
+
caption?: string | undefined;
|
|
2952
|
+
id?: string | undefined;
|
|
2953
|
+
waitForId?: boolean | undefined;
|
|
2954
|
+
}] | [{
|
|
2955
|
+
to: string;
|
|
2956
|
+
imgData: any;
|
|
2957
|
+
filename?: string | undefined;
|
|
2958
|
+
caption?: string | undefined;
|
|
2959
|
+
id?: string | undefined;
|
|
2960
|
+
waitForId?: boolean | undefined;
|
|
2961
|
+
}, ...unknown[]]) => Promise<string | boolean | {
|
|
2962
|
+
[x: string]: unknown;
|
|
2963
|
+
_serialized: string;
|
|
2964
|
+
}>;
|
|
2965
|
+
sendLink: (...args: any[] | unknown[] | [] | [{
|
|
2966
|
+
to: string;
|
|
2967
|
+
url: string;
|
|
2968
|
+
text?: string | undefined;
|
|
2969
|
+
thumbnail?: string | undefined;
|
|
2970
|
+
quotedMsgId?: string | undefined;
|
|
2971
|
+
customSize?: {
|
|
2972
|
+
height: number;
|
|
2973
|
+
width: number;
|
|
2974
|
+
} | undefined;
|
|
2975
|
+
}] | [{
|
|
2976
|
+
to: string;
|
|
2977
|
+
url: string;
|
|
2978
|
+
text?: string | undefined;
|
|
2979
|
+
thumbnail?: string | undefined;
|
|
2980
|
+
quotedMsgId?: string | undefined;
|
|
2981
|
+
customSize?: {
|
|
2982
|
+
height: number;
|
|
2983
|
+
width: number;
|
|
2984
|
+
} | undefined;
|
|
2985
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
2986
|
+
[x: string]: unknown;
|
|
2987
|
+
_serialized: string;
|
|
2988
|
+
}>;
|
|
2989
|
+
sendLinkWithAutoPreview: (...args: any[] | unknown[] | [] | [{
|
|
2990
|
+
to: string;
|
|
2991
|
+
url: string;
|
|
2992
|
+
text?: string | undefined;
|
|
2993
|
+
thumbnail?: string | undefined;
|
|
2994
|
+
quotedMsgId?: string | undefined;
|
|
2995
|
+
customSize?: {
|
|
2996
|
+
height: number;
|
|
2997
|
+
width: number;
|
|
2998
|
+
} | undefined;
|
|
2999
|
+
}] | [{
|
|
3000
|
+
to: string;
|
|
3001
|
+
url: string;
|
|
3002
|
+
text?: string | undefined;
|
|
3003
|
+
thumbnail?: string | undefined;
|
|
3004
|
+
quotedMsgId?: string | undefined;
|
|
3005
|
+
customSize?: {
|
|
3006
|
+
height: number;
|
|
3007
|
+
width: number;
|
|
3008
|
+
} | undefined;
|
|
3009
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3010
|
+
[x: string]: unknown;
|
|
3011
|
+
_serialized: string;
|
|
3012
|
+
}>;
|
|
3013
|
+
sendLinkWithThumbnail: (...args: any[] | unknown[] | [] | [{
|
|
3014
|
+
thumb: string;
|
|
3015
|
+
url: string;
|
|
3016
|
+
title: string;
|
|
3017
|
+
description: string;
|
|
3018
|
+
content: string;
|
|
3019
|
+
to: string;
|
|
3020
|
+
quotedMsgId?: string | undefined;
|
|
3021
|
+
customSize?: {
|
|
3022
|
+
height: number;
|
|
3023
|
+
width: number;
|
|
3024
|
+
} | undefined;
|
|
3025
|
+
}] | [{
|
|
3026
|
+
thumb: string;
|
|
3027
|
+
url: string;
|
|
3028
|
+
title: string;
|
|
3029
|
+
description: string;
|
|
3030
|
+
content: string;
|
|
3031
|
+
to: string;
|
|
3032
|
+
quotedMsgId?: string | undefined;
|
|
3033
|
+
customSize?: {
|
|
3034
|
+
height: number;
|
|
3035
|
+
width: number;
|
|
3036
|
+
} | undefined;
|
|
3037
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3038
|
+
[x: string]: unknown;
|
|
3039
|
+
_serialized: string;
|
|
3040
|
+
}>;
|
|
3041
|
+
sendList: (...args: any[] | unknown[] | [] | [{
|
|
3042
|
+
to: string;
|
|
3043
|
+
sections: any[];
|
|
3044
|
+
title: string;
|
|
3045
|
+
description: string;
|
|
3046
|
+
actionText: string;
|
|
3047
|
+
}] | [{
|
|
3048
|
+
to: string;
|
|
3049
|
+
sections: any[];
|
|
3050
|
+
title: string;
|
|
3051
|
+
description: string;
|
|
3052
|
+
actionText: string;
|
|
3053
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3054
|
+
[x: string]: unknown;
|
|
3055
|
+
_serialized: string;
|
|
3056
|
+
}>;
|
|
3057
|
+
sendLocation: (...args: any[] | unknown[] | [] | [{
|
|
3058
|
+
to: string;
|
|
3059
|
+
lat: string | number;
|
|
3060
|
+
lng: string | number;
|
|
3061
|
+
loc?: string | undefined;
|
|
3062
|
+
address?: string | undefined;
|
|
3063
|
+
url?: string | undefined;
|
|
3064
|
+
}] | [{
|
|
3065
|
+
to: string;
|
|
3066
|
+
lat: string | number;
|
|
3067
|
+
lng: string | number;
|
|
3068
|
+
loc?: string | undefined;
|
|
3069
|
+
address?: string | undefined;
|
|
3070
|
+
url?: string | undefined;
|
|
3071
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3072
|
+
[x: string]: unknown;
|
|
3073
|
+
_serialized: string;
|
|
3074
|
+
}>;
|
|
3075
|
+
sendMultipleContacts: (...args: any[] | unknown[] | [] | [{
|
|
3076
|
+
to: string;
|
|
3077
|
+
contactIds: string[];
|
|
3078
|
+
}] | [{
|
|
3079
|
+
to: string;
|
|
3080
|
+
contactIds: string[];
|
|
3081
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3082
|
+
[x: string]: unknown;
|
|
3083
|
+
_serialized: string;
|
|
3084
|
+
}>;
|
|
3085
|
+
sendPaymentRequest: (...args: any[] | unknown[] | [] | [{
|
|
3086
|
+
to: string;
|
|
3087
|
+
amount: number;
|
|
3088
|
+
currency: string;
|
|
3089
|
+
message?: string | undefined;
|
|
3090
|
+
}] | [{
|
|
3091
|
+
to: string;
|
|
3092
|
+
amount: number;
|
|
3093
|
+
currency: string;
|
|
3094
|
+
message?: string | undefined;
|
|
3095
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3096
|
+
[x: string]: unknown;
|
|
3097
|
+
_serialized: string;
|
|
3098
|
+
}>;
|
|
3099
|
+
sendPoll: (...args: any[] | unknown[] | [] | [{
|
|
3100
|
+
to: string;
|
|
3101
|
+
name: string;
|
|
3102
|
+
options: string[];
|
|
3103
|
+
selectableCount?: number | undefined;
|
|
3104
|
+
}] | [{
|
|
3105
|
+
to: string;
|
|
3106
|
+
name: string;
|
|
3107
|
+
options: string[];
|
|
3108
|
+
selectableCount?: number | undefined;
|
|
3109
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3110
|
+
[x: string]: unknown;
|
|
3111
|
+
_serialized: string;
|
|
3112
|
+
}>;
|
|
3113
|
+
sendPtt: (...args: any[] | unknown[] | [] | [{
|
|
3114
|
+
to: string;
|
|
3115
|
+
file: any;
|
|
3116
|
+
quotedMsgId?: string | undefined;
|
|
3117
|
+
}] | [{
|
|
3118
|
+
to: string;
|
|
3119
|
+
file: any;
|
|
3120
|
+
quotedMsgId?: string | undefined;
|
|
3121
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3122
|
+
[x: string]: unknown;
|
|
3123
|
+
_serialized: string;
|
|
3124
|
+
}>;
|
|
3125
|
+
sendReplyWithMentions: (...args: any[] | unknown[] | [] | [{
|
|
3126
|
+
to: string;
|
|
3127
|
+
content: string;
|
|
3128
|
+
replyMessageId: string;
|
|
3129
|
+
hideTags?: boolean | undefined;
|
|
3130
|
+
mentions?: string[] | undefined;
|
|
3131
|
+
}] | [{
|
|
3132
|
+
to: string;
|
|
3133
|
+
content: string;
|
|
3134
|
+
replyMessageId: string;
|
|
3135
|
+
hideTags?: boolean | undefined;
|
|
3136
|
+
mentions?: string[] | undefined;
|
|
3137
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3138
|
+
[x: string]: unknown;
|
|
3139
|
+
_serialized: string;
|
|
3140
|
+
}>;
|
|
3141
|
+
sendSeen: (...args: any[] | unknown[] | [] | [{
|
|
3142
|
+
chatId: string;
|
|
3143
|
+
}] | [{
|
|
3144
|
+
chatId: string;
|
|
3145
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3146
|
+
sendText: (...args: any[] | unknown[] | [] | [{
|
|
3147
|
+
to: string;
|
|
3148
|
+
content: string;
|
|
3149
|
+
options?: any;
|
|
3150
|
+
}] | [{
|
|
3151
|
+
to: string;
|
|
3152
|
+
content: string;
|
|
3153
|
+
options?: any;
|
|
3154
|
+
}, ...unknown[]]) => Promise<string | boolean | {
|
|
3155
|
+
[x: string]: unknown;
|
|
3156
|
+
_serialized: string;
|
|
3157
|
+
}>;
|
|
3158
|
+
sendTextWithMentions: (...args: any[] | unknown[] | [] | [{
|
|
3159
|
+
to: string;
|
|
3160
|
+
content: string;
|
|
3161
|
+
hideTags?: boolean | undefined;
|
|
3162
|
+
mentions?: string[] | undefined;
|
|
3163
|
+
}] | [{
|
|
3164
|
+
to: string;
|
|
3165
|
+
content: string;
|
|
3166
|
+
hideTags?: boolean | undefined;
|
|
3167
|
+
mentions?: string[] | undefined;
|
|
3168
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3169
|
+
[x: string]: unknown;
|
|
3170
|
+
_serialized: string;
|
|
3171
|
+
}>;
|
|
3172
|
+
sendVCard: (...args: any[] | unknown[] | [] | [{
|
|
3173
|
+
to: string;
|
|
3174
|
+
vcard: string;
|
|
3175
|
+
contactName?: string | undefined;
|
|
3176
|
+
contactNumber?: string | undefined;
|
|
3177
|
+
}] | [{
|
|
3178
|
+
to: string;
|
|
3179
|
+
vcard: string;
|
|
3180
|
+
contactName?: string | undefined;
|
|
3181
|
+
contactNumber?: string | undefined;
|
|
3182
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3183
|
+
sendVideoAsGif: (...args: any[] | unknown[] | [] | [{
|
|
3184
|
+
to: string;
|
|
3185
|
+
file: any;
|
|
3186
|
+
filename?: string | undefined;
|
|
3187
|
+
caption?: string | undefined;
|
|
3188
|
+
quotedMsgId?: string | undefined;
|
|
3189
|
+
}] | [{
|
|
3190
|
+
to: string;
|
|
3191
|
+
file: any;
|
|
3192
|
+
filename?: string | undefined;
|
|
3193
|
+
caption?: string | undefined;
|
|
3194
|
+
quotedMsgId?: string | undefined;
|
|
3195
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3196
|
+
[x: string]: unknown;
|
|
3197
|
+
_serialized: string;
|
|
3198
|
+
}>;
|
|
3199
|
+
sendVoiceNote: (...args: any[] | unknown[] | [] | [{
|
|
3200
|
+
to: string;
|
|
3201
|
+
file: any;
|
|
3202
|
+
quotedMsgId?: string | undefined;
|
|
3203
|
+
}] | [{
|
|
3204
|
+
to: string;
|
|
3205
|
+
file: any;
|
|
3206
|
+
quotedMsgId?: string | undefined;
|
|
3207
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3208
|
+
[x: string]: unknown;
|
|
3209
|
+
_serialized: string;
|
|
3210
|
+
}>;
|
|
3211
|
+
sendWithThumb: (...args: any[] | unknown[] | [] | [{
|
|
3212
|
+
thumb: string;
|
|
3213
|
+
url: string;
|
|
3214
|
+
title: string;
|
|
3215
|
+
description: string;
|
|
3216
|
+
content: string;
|
|
3217
|
+
to: string;
|
|
3218
|
+
quotedMsgId?: string | undefined;
|
|
3219
|
+
customSize?: {
|
|
3220
|
+
height: number;
|
|
3221
|
+
width: number;
|
|
3222
|
+
} | undefined;
|
|
3223
|
+
}] | [{
|
|
3224
|
+
thumb: string;
|
|
3225
|
+
url: string;
|
|
3226
|
+
title: string;
|
|
3227
|
+
description: string;
|
|
3228
|
+
content: string;
|
|
3229
|
+
to: string;
|
|
3230
|
+
quotedMsgId?: string | undefined;
|
|
3231
|
+
customSize?: {
|
|
3232
|
+
height: number;
|
|
3233
|
+
width: number;
|
|
3234
|
+
} | undefined;
|
|
3235
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3236
|
+
[x: string]: unknown;
|
|
3237
|
+
_serialized: string;
|
|
3238
|
+
}>;
|
|
3239
|
+
sendYoutubeLink: (...args: any[] | unknown[] | [] | [{
|
|
3240
|
+
to: string;
|
|
3241
|
+
url: string;
|
|
3242
|
+
text?: string | undefined;
|
|
3243
|
+
thumbnail?: string | undefined;
|
|
3244
|
+
quotedMsgId?: string | undefined;
|
|
3245
|
+
customSize?: {
|
|
3246
|
+
height: number;
|
|
3247
|
+
width: number;
|
|
3248
|
+
} | undefined;
|
|
3249
|
+
}] | [{
|
|
3250
|
+
to: string;
|
|
3251
|
+
url: string;
|
|
3252
|
+
text?: string | undefined;
|
|
3253
|
+
thumbnail?: string | undefined;
|
|
3254
|
+
quotedMsgId?: string | undefined;
|
|
3255
|
+
customSize?: {
|
|
3256
|
+
height: number;
|
|
3257
|
+
width: number;
|
|
3258
|
+
} | undefined;
|
|
3259
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3260
|
+
[x: string]: unknown;
|
|
3261
|
+
_serialized: string;
|
|
3262
|
+
}>;
|
|
3263
|
+
sendYouTubeLink: (...args: any[] | unknown[] | [] | [{
|
|
3264
|
+
to: string;
|
|
3265
|
+
url: string;
|
|
3266
|
+
text?: string | undefined;
|
|
3267
|
+
thumbnail?: string | undefined;
|
|
3268
|
+
quotedMsgId?: string | undefined;
|
|
3269
|
+
customSize?: {
|
|
3270
|
+
height: number;
|
|
3271
|
+
width: number;
|
|
3272
|
+
} | undefined;
|
|
3273
|
+
}] | [{
|
|
3274
|
+
to: string;
|
|
3275
|
+
url: string;
|
|
3276
|
+
text?: string | undefined;
|
|
3277
|
+
thumbnail?: string | undefined;
|
|
3278
|
+
quotedMsgId?: string | undefined;
|
|
3279
|
+
customSize?: {
|
|
3280
|
+
height: number;
|
|
3281
|
+
width: number;
|
|
3282
|
+
} | undefined;
|
|
3283
|
+
}, ...unknown[]]) => Promise<boolean | {
|
|
3284
|
+
[x: string]: unknown;
|
|
3285
|
+
_serialized: string;
|
|
3286
|
+
}>;
|
|
3287
|
+
star: (...args: any[] | unknown[] | [] | [{
|
|
3288
|
+
messageId: string;
|
|
3289
|
+
}] | [{
|
|
3290
|
+
messageId: string;
|
|
3291
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3292
|
+
unstar: (...args: any[] | unknown[] | [] | [{
|
|
3293
|
+
messageId: string;
|
|
3294
|
+
}] | [{
|
|
3295
|
+
messageId: string;
|
|
3296
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3297
|
+
};
|
|
3298
|
+
mystatus: {
|
|
3299
|
+
getStatus: (...args: any[] | unknown[] | [] | [{
|
|
3300
|
+
contactId: string;
|
|
3301
|
+
}] | [{
|
|
3302
|
+
contactId: string;
|
|
3303
|
+
}, ...unknown[]]) => Promise<any>;
|
|
3304
|
+
};
|
|
3305
|
+
session: {
|
|
3306
|
+
getAmountOfLoadedMessages: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
3307
|
+
getBatteryLevel: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
3308
|
+
getConnectionState: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3309
|
+
getFeatures: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3310
|
+
getGeneratedUserAgent: (...args: any[] | unknown[] | [] | [{
|
|
3311
|
+
userAgent?: string | undefined;
|
|
3312
|
+
}] | [{
|
|
3313
|
+
userAgent?: string | undefined;
|
|
3314
|
+
}, ...unknown[]]) => Promise<string>;
|
|
3315
|
+
getHostNumber: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
3316
|
+
getIsPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
|
|
3317
|
+
getLicenseType: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3318
|
+
getLoadedMessageCount: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<number>;
|
|
3319
|
+
getMe: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3320
|
+
getProcessStats: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3321
|
+
getSnapshot: (...args: any[] | unknown[] | [] | [{
|
|
3322
|
+
chatId?: string | undefined;
|
|
3323
|
+
width?: number | undefined;
|
|
3324
|
+
height?: number | undefined;
|
|
3325
|
+
}] | [{
|
|
3326
|
+
chatId?: string | undefined;
|
|
3327
|
+
width?: number | undefined;
|
|
3328
|
+
height?: number | undefined;
|
|
3329
|
+
}, ...unknown[]]) => Promise<string>;
|
|
3330
|
+
getUserAgent: (...args: any[] | unknown[] | [] | [{
|
|
3331
|
+
userAgent?: string | undefined;
|
|
3332
|
+
}] | [{
|
|
3333
|
+
userAgent?: string | undefined;
|
|
3334
|
+
}, ...unknown[]]) => Promise<string>;
|
|
3335
|
+
getWAVersion: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
3336
|
+
getWhatsAppVersion: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<string>;
|
|
3337
|
+
healthCheck: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3338
|
+
isPlugged: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<boolean>;
|
|
3339
|
+
setDisplayName: (...args: any[] | unknown[] | [] | [{
|
|
3340
|
+
name: string;
|
|
3341
|
+
}] | [{
|
|
3342
|
+
name: string;
|
|
3343
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3344
|
+
setMyName: (...args: any[] | unknown[] | [] | [{
|
|
3345
|
+
name: string;
|
|
3346
|
+
}] | [{
|
|
3347
|
+
name: string;
|
|
3348
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3349
|
+
setMyStatus: (...args: any[] | unknown[] | [] | [{
|
|
3350
|
+
statusText: string;
|
|
3351
|
+
}] | [{
|
|
3352
|
+
statusText: string;
|
|
3353
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3354
|
+
setName: (...args: any[] | unknown[] | [] | [{
|
|
3355
|
+
name: string;
|
|
3356
|
+
}] | [{
|
|
3357
|
+
name: string;
|
|
3358
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3359
|
+
setProfilePic: (...args: any[] | unknown[] | [] | [{
|
|
3360
|
+
image: any;
|
|
3361
|
+
}] | [{
|
|
3362
|
+
image: any;
|
|
3363
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3364
|
+
setProfilePicture: (...args: any[] | unknown[] | [] | [{
|
|
3365
|
+
image: any;
|
|
3366
|
+
}] | [{
|
|
3367
|
+
image: any;
|
|
3368
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3369
|
+
setStatus: (...args: any[] | unknown[] | [] | [{
|
|
3370
|
+
statusText: string;
|
|
3371
|
+
}] | [{
|
|
3372
|
+
statusText: string;
|
|
3373
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3374
|
+
setStatusText: (...args: any[] | unknown[] | [] | [{
|
|
3375
|
+
statusText: string;
|
|
3376
|
+
}] | [{
|
|
3377
|
+
statusText: string;
|
|
3378
|
+
}, ...unknown[]]) => Promise<boolean>;
|
|
3379
|
+
takeScreenshot: (...args: any[] | unknown[] | [] | [{
|
|
3380
|
+
chatId?: string | undefined;
|
|
3381
|
+
width?: number | undefined;
|
|
3382
|
+
height?: number | undefined;
|
|
3383
|
+
}] | [{
|
|
3384
|
+
chatId?: string | undefined;
|
|
3385
|
+
width?: number | undefined;
|
|
3386
|
+
height?: number | undefined;
|
|
3387
|
+
}, ...unknown[]]) => Promise<string>;
|
|
3388
|
+
};
|
|
3389
|
+
status: {
|
|
3390
|
+
delete: (...args: any[] | unknown[] | [] | [{
|
|
3391
|
+
statusesToDelete: string | string[];
|
|
3392
|
+
}] | [{
|
|
3393
|
+
statusesToDelete: string | string[];
|
|
3394
|
+
}, ...unknown[]]) => Promise<any>;
|
|
3395
|
+
deleteAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any>;
|
|
3396
|
+
get: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
3397
|
+
getAll: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
3398
|
+
getStories: (...args: any[] | unknown[] | [] | [Record<string, never>] | [Record<string, never>, ...unknown[]]) => Promise<any[]>;
|
|
3399
|
+
postImage: (...args: any[] | unknown[] | [] | [{
|
|
3400
|
+
image: string;
|
|
3401
|
+
caption?: string | undefined;
|
|
3402
|
+
}] | [{
|
|
3403
|
+
image: string;
|
|
3404
|
+
caption?: string | undefined;
|
|
3405
|
+
}, ...unknown[]]) => Promise<any>;
|
|
3406
|
+
postText: (...args: any[] | unknown[] | [] | [{
|
|
3407
|
+
text: string;
|
|
3408
|
+
backgroundColor?: string | undefined;
|
|
3409
|
+
font?: number | undefined;
|
|
3410
|
+
}] | [{
|
|
3411
|
+
text: string;
|
|
3412
|
+
backgroundColor?: string | undefined;
|
|
3413
|
+
font?: number | undefined;
|
|
3414
|
+
}, ...unknown[]]) => Promise<any>;
|
|
3415
|
+
postVideo: (...args: any[] | unknown[] | [] | [{
|
|
3416
|
+
video: string;
|
|
3417
|
+
caption?: string | undefined;
|
|
3418
|
+
}] | [{
|
|
3419
|
+
video: string;
|
|
3420
|
+
caption?: string | undefined;
|
|
3421
|
+
}, ...unknown[]]) => Promise<any>;
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
//#endregion
|
|
3425
|
+
//#region src/generated/types.d.ts
|
|
3426
|
+
type SendTextInput = Zod.input<typeof sendText.openWAInput>;
|
|
3427
|
+
type SendTextOutput = Zod.output<typeof sendText.openWAOutput>;
|
|
3428
|
+
type SendTextWithMentionsInput = Zod.input<typeof sendTextWithMentions.openWAInput>;
|
|
3429
|
+
type SendTextWithMentionsOutput = Zod.output<typeof sendTextWithMentions.openWAOutput>;
|
|
3430
|
+
type SendReplyWithMentionsInput = Zod.input<typeof sendReplyWithMentions.openWAInput>;
|
|
3431
|
+
type SendReplyWithMentionsOutput = Zod.output<typeof sendReplyWithMentions.openWAOutput>;
|
|
3432
|
+
type SendPaymentRequestInput = Zod.input<typeof sendPaymentRequest.openWAInput>;
|
|
3433
|
+
type SendPaymentRequestOutput = Zod.output<typeof sendPaymentRequest.openWAOutput>;
|
|
3434
|
+
type SendImageInput = Zod.input<typeof sendImage.openWAInput>;
|
|
3435
|
+
type SendImageOutput = Zod.output<typeof sendImage.openWAOutput>;
|
|
3436
|
+
type SendFileInput = Zod.input<typeof sendFile.openWAInput>;
|
|
3437
|
+
type SendFileOutput = Zod.output<typeof sendFile.openWAOutput>;
|
|
3438
|
+
type SendAudioInput = Zod.input<typeof sendAudio.openWAInput>;
|
|
3439
|
+
type SendAudioOutput = Zod.output<typeof sendAudio.openWAOutput>;
|
|
3440
|
+
type SendPttInput = Zod.input<typeof sendPtt.openWAInput>;
|
|
3441
|
+
type SendPttOutput = Zod.output<typeof sendPtt.openWAOutput>;
|
|
3442
|
+
type SendVideoAsGifInput = Zod.input<typeof sendVideoAsGif.openWAInput>;
|
|
3443
|
+
type SendVideoAsGifOutput = Zod.output<typeof sendVideoAsGif.openWAOutput>;
|
|
3444
|
+
type SendLocationInput = Zod.input<typeof sendLocation.openWAInput>;
|
|
3445
|
+
type SendLocationOutput = Zod.output<typeof sendLocation.openWAOutput>;
|
|
3446
|
+
type SendVCardInput = Zod.input<typeof sendVCard.openWAInput>;
|
|
3447
|
+
type SendVCardOutput = Zod.output<typeof sendVCard.openWAOutput>;
|
|
3448
|
+
type SendContactInput = Zod.input<typeof sendContact.openWAInput>;
|
|
3449
|
+
type SendContactOutput = Zod.output<typeof sendContact.openWAOutput>;
|
|
3450
|
+
type SendMultipleContactsInput = Zod.input<typeof sendMultipleContacts.openWAInput>;
|
|
3451
|
+
type SendMultipleContactsOutput = Zod.output<typeof sendMultipleContacts.openWAOutput>;
|
|
3452
|
+
type SendButtonsInput = Zod.input<typeof sendButtons.openWAInput>;
|
|
3453
|
+
type SendButtonsOutput = Zod.output<typeof sendButtons.openWAOutput>;
|
|
3454
|
+
type SendAdvancedButtonsInput = Zod.input<typeof sendAdvancedButtons.openWAInput>;
|
|
3455
|
+
type SendAdvancedButtonsOutput = Zod.output<typeof sendAdvancedButtons.openWAOutput>;
|
|
3456
|
+
type SendListMessageInput = Zod.input<typeof sendListMessage.openWAInput>;
|
|
3457
|
+
type SendListMessageOutput = Zod.output<typeof sendListMessage.openWAOutput>;
|
|
3458
|
+
type SendPollInput = Zod.input<typeof sendPoll.openWAInput>;
|
|
3459
|
+
type SendPollOutput = Zod.output<typeof sendPoll.openWAOutput>;
|
|
3460
|
+
type SendBannerInput = Zod.input<typeof sendBanner.openWAInput>;
|
|
3461
|
+
type SendBannerOutput = Zod.output<typeof sendBanner.openWAOutput>;
|
|
3462
|
+
type SendYouTubeLinkInput = Zod.input<typeof sendYouTubeLink.openWAInput>;
|
|
3463
|
+
type SendYouTubeLinkOutput = Zod.output<typeof sendYouTubeLink.openWAOutput>;
|
|
3464
|
+
type SendLinkWithAutoPreviewInput = Zod.input<typeof sendLinkWithAutoPreview.openWAInput>;
|
|
3465
|
+
type SendLinkWithAutoPreviewOutput = Zod.output<typeof sendLinkWithAutoPreview.openWAOutput>;
|
|
3466
|
+
type SendMessageWithThumbInput = Zod.input<typeof sendMessageWithThumb.openWAInput>;
|
|
3467
|
+
type SendMessageWithThumbOutput = Zod.output<typeof sendMessageWithThumb.openWAOutput>;
|
|
3468
|
+
type ForwardMessagesInput = Zod.input<typeof forwardMessages.openWAInput>;
|
|
3469
|
+
type ForwardMessagesOutput = Zod.output<typeof forwardMessages.openWAOutput>;
|
|
3470
|
+
type DeleteMessageInput = Zod.input<typeof deleteMessage.openWAInput>;
|
|
3471
|
+
type DeleteMessageOutput = Zod.output<typeof deleteMessage.openWAOutput>;
|
|
3472
|
+
type GetMessageByIdInput = Zod.input<typeof getMessageById.openWAInput>;
|
|
3473
|
+
type GetMessageByIdOutput = Zod.output<typeof getMessageById.openWAOutput>;
|
|
3474
|
+
type GetAllMessagesInput = Zod.input<typeof getAllMessages.openWAInput>;
|
|
3475
|
+
type GetAllMessagesOutput = Zod.output<typeof getAllMessages.openWAOutput>;
|
|
3476
|
+
type GetMyLastMessageInput = Zod.input<typeof getMyLastMessage.openWAInput>;
|
|
3477
|
+
type GetMyLastMessageOutput = Zod.output<typeof getMyLastMessage.openWAOutput>;
|
|
3478
|
+
type GetStarredMessagesInput = Zod.input<typeof getStarredMessages.openWAInput>;
|
|
3479
|
+
type GetStarredMessagesOutput = Zod.output<typeof getStarredMessages.openWAOutput>;
|
|
3480
|
+
type GetUnsentMessagesInput = Zod.input<typeof getUnsentMessages.openWAInput>;
|
|
3481
|
+
type GetUnsentMessagesOutput = Zod.output<typeof getUnsentMessages.openWAOutput>;
|
|
3482
|
+
type GetMessageInfoInput = Zod.input<typeof getMessageInfo.openWAInput>;
|
|
3483
|
+
type GetMessageInfoOutput = Zod.output<typeof getMessageInfo.openWAOutput>;
|
|
3484
|
+
type GetVCardsInput = Zod.input<typeof getVCards.openWAInput>;
|
|
3485
|
+
type GetVCardsOutput = Zod.output<typeof getVCards.openWAOutput>;
|
|
3486
|
+
type GetMessagesForLLMInput = Zod.input<typeof getMessagesForLLM.openWAInput>;
|
|
3487
|
+
type GetMessagesForLLMOutput = Zod.output<typeof getMessagesForLLM.openWAOutput>;
|
|
3488
|
+
type StarMessageInput = Zod.input<typeof starMessage.openWAInput>;
|
|
3489
|
+
type StarMessageOutput = Zod.output<typeof starMessage.openWAOutput>;
|
|
3490
|
+
type UnstarMessageInput = Zod.input<typeof unstarMessage.openWAInput>;
|
|
3491
|
+
type UnstarMessageOutput = Zod.output<typeof unstarMessage.openWAOutput>;
|
|
3492
|
+
type ReactInput = Zod.input<typeof react.openWAInput>;
|
|
3493
|
+
type ReactOutput = Zod.output<typeof react.openWAOutput>;
|
|
3494
|
+
type SendSeenInput = Zod.input<typeof sendSeen.openWAInput>;
|
|
3495
|
+
type SendSeenOutput = Zod.output<typeof sendSeen.openWAOutput>;
|
|
3496
|
+
type LoadEarlierMessagesInput = Zod.input<typeof loadEarlierMessages.openWAInput>;
|
|
3497
|
+
type LoadEarlierMessagesOutput = Zod.output<typeof loadEarlierMessages.openWAOutput>;
|
|
3498
|
+
type SendFileFromUrlInput = Zod.input<typeof sendFileFromUrl.openWAInput>;
|
|
3499
|
+
type SendFileFromUrlOutput = Zod.output<typeof sendFileFromUrl.openWAOutput>;
|
|
3500
|
+
type GetAllChatsInput = Zod.input<typeof getAllChats.openWAInput>;
|
|
3501
|
+
type GetAllChatsOutput = Zod.output<typeof getAllChats.openWAOutput>;
|
|
3502
|
+
type GetAllChatIdsInput = Zod.input<typeof getAllChatIds.openWAInput>;
|
|
3503
|
+
type GetAllChatIdsOutput = Zod.output<typeof getAllChatIds.openWAOutput>;
|
|
3504
|
+
type GetChatInput = Zod.input<typeof getChat.openWAInput>;
|
|
3505
|
+
type GetChatOutput = Zod.output<typeof getChat.openWAOutput>;
|
|
3506
|
+
type GetChatWithNonContactsInput = Zod.input<typeof getChatWithNonContacts.openWAInput>;
|
|
3507
|
+
type GetChatWithNonContactsOutput = Zod.output<typeof getChatWithNonContacts.openWAOutput>;
|
|
3508
|
+
type ArchiveChatInput = Zod.input<typeof archiveChat.openWAInput>;
|
|
3509
|
+
type ArchiveChatOutput = Zod.output<typeof archiveChat.openWAOutput>;
|
|
3510
|
+
type UnarchiveChatInput = Zod.input<typeof unarchiveChat.openWAInput>;
|
|
3511
|
+
type UnarchiveChatOutput = Zod.output<typeof unarchiveChat.openWAOutput>;
|
|
3512
|
+
type ClearChatInput = Zod.input<typeof clearChat.openWAInput>;
|
|
3513
|
+
type ClearChatOutput = Zod.output<typeof clearChat.openWAOutput>;
|
|
3514
|
+
type DeleteChatInput = Zod.input<typeof deleteChat.openWAInput>;
|
|
3515
|
+
type DeleteChatOutput = Zod.output<typeof deleteChat.openWAOutput>;
|
|
3516
|
+
type PinChatInput = Zod.input<typeof pinChat.openWAInput>;
|
|
3517
|
+
type PinChatOutput = Zod.output<typeof pinChat.openWAOutput>;
|
|
3518
|
+
type UnpinChatInput = Zod.input<typeof unpinChat.openWAInput>;
|
|
3519
|
+
type UnpinChatOutput = Zod.output<typeof unpinChat.openWAOutput>;
|
|
3520
|
+
type MuteChatInput = Zod.input<typeof muteChat.openWAInput>;
|
|
3521
|
+
type MuteChatOutput = Zod.output<typeof muteChat.openWAOutput>;
|
|
3522
|
+
type UnmuteChatInput = Zod.input<typeof unmuteChat.openWAInput>;
|
|
3523
|
+
type UnmuteChatOutput = Zod.output<typeof unmuteChat.openWAOutput>;
|
|
3524
|
+
type MarkAsReadInput = Zod.input<typeof markAsRead.openWAInput>;
|
|
3525
|
+
type MarkAsReadOutput = Zod.output<typeof markAsRead.openWAOutput>;
|
|
3526
|
+
type MarkAsUnreadInput = Zod.input<typeof markAsUnread.openWAInput>;
|
|
3527
|
+
type MarkAsUnreadOutput = Zod.output<typeof markAsUnread.openWAOutput>;
|
|
3528
|
+
type SetChatEphemeralInput = Zod.input<typeof setChatEphemeral.openWAInput>;
|
|
3529
|
+
type SetChatEphemeralOutput = Zod.output<typeof setChatEphemeral.openWAOutput>;
|
|
3530
|
+
type IsChatOnlineInput = Zod.input<typeof isChatOnline.openWAInput>;
|
|
3531
|
+
type IsChatOnlineOutput = Zod.output<typeof isChatOnline.openWAOutput>;
|
|
3532
|
+
type GetAllContactsInput = Zod.input<typeof getAllContacts.openWAInput>;
|
|
3533
|
+
type GetAllContactsOutput = Zod.output<typeof getAllContacts.openWAOutput>;
|
|
3534
|
+
type GetContactInput = Zod.input<typeof getContact.openWAInput>;
|
|
3535
|
+
type GetContactOutput = Zod.output<typeof getContact.openWAOutput>;
|
|
3536
|
+
type GetCommonGroupsInput = Zod.input<typeof getCommonGroups.openWAInput>;
|
|
3537
|
+
type GetCommonGroupsOutput = Zod.output<typeof getCommonGroups.openWAOutput>;
|
|
3538
|
+
type GetNumberProfileInput = Zod.input<typeof getNumberProfile.openWAInput>;
|
|
3539
|
+
type GetNumberProfileOutput = Zod.output<typeof getNumberProfile.openWAOutput>;
|
|
3540
|
+
type GetBlockedIdsInput = Zod.input<typeof getBlockedIds.openWAInput>;
|
|
3541
|
+
type GetBlockedIdsOutput = Zod.output<typeof getBlockedIds.openWAOutput>;
|
|
3542
|
+
type BlockContactInput = Zod.input<typeof blockContact.openWAInput>;
|
|
3543
|
+
type BlockContactOutput = Zod.output<typeof blockContact.openWAOutput>;
|
|
3544
|
+
type UnblockContactInput = Zod.input<typeof unblockContact.openWAInput>;
|
|
3545
|
+
type UnblockContactOutput = Zod.output<typeof unblockContact.openWAOutput>;
|
|
3546
|
+
type CheckReadReceiptsInput = Zod.input<typeof checkReadReceipts.openWAInput>;
|
|
3547
|
+
type CheckReadReceiptsOutput = Zod.output<typeof checkReadReceipts.openWAOutput>;
|
|
3548
|
+
type CheckNumberStatusInput = Zod.input<typeof checkNumberStatus.openWAInput>;
|
|
3549
|
+
type CheckNumberStatusOutput = Zod.output<typeof checkNumberStatus.openWAOutput>;
|
|
3550
|
+
type GetProfilePictureInput = Zod.input<typeof getProfilePicture.openWAInput>;
|
|
3551
|
+
type GetProfilePictureOutput = Zod.output<typeof getProfilePicture.openWAOutput>;
|
|
3552
|
+
type GetGroupMembersInput = Zod.input<typeof getGroupMembers.openWAInput>;
|
|
3553
|
+
type GetGroupMembersOutput = Zod.output<typeof getGroupMembers.openWAOutput>;
|
|
3554
|
+
type GetAllGroupsInput = Zod.input<typeof getAllGroups.openWAInput>;
|
|
3555
|
+
type GetAllGroupsOutput = Zod.output<typeof getAllGroups.openWAOutput>;
|
|
3556
|
+
type GetGroupMembersIdInput = Zod.input<typeof getGroupMembersId.openWAInput>;
|
|
3557
|
+
type GetGroupMembersIdOutput = Zod.output<typeof getGroupMembersId.openWAOutput>;
|
|
3558
|
+
type GetGroupInfoInput = Zod.input<typeof getGroupInfo.openWAInput>;
|
|
3559
|
+
type GetGroupInfoOutput = Zod.output<typeof getGroupInfo.openWAOutput>;
|
|
3560
|
+
type GetGroupAdminsInput = Zod.input<typeof getGroupAdmins.openWAInput>;
|
|
3561
|
+
type GetGroupAdminsOutput = Zod.output<typeof getGroupAdmins.openWAOutput>;
|
|
3562
|
+
type GetKickedGroupsInput = Zod.input<typeof getKickedGroups.openWAInput>;
|
|
3563
|
+
type GetKickedGroupsOutput = Zod.output<typeof getKickedGroups.openWAOutput>;
|
|
3564
|
+
type GetGroupInviteLinkInput = Zod.input<typeof getGroupInviteLink.openWAInput>;
|
|
3565
|
+
type GetGroupInviteLinkOutput = Zod.output<typeof getGroupInviteLink.openWAOutput>;
|
|
3566
|
+
type CreateGroupInput = Zod.input<typeof createGroup.openWAInput>;
|
|
3567
|
+
type CreateGroupOutput = Zod.output<typeof createGroup.openWAOutput>;
|
|
3568
|
+
type LeaveGroupInput = Zod.input<typeof leaveGroup.openWAInput>;
|
|
3569
|
+
type LeaveGroupOutput = Zod.output<typeof leaveGroup.openWAOutput>;
|
|
3570
|
+
type JoinGroupViaLinkInput = Zod.input<typeof joinGroupViaLink.openWAInput>;
|
|
3571
|
+
type JoinGroupViaLinkOutput = Zod.output<typeof joinGroupViaLink.openWAOutput>;
|
|
3572
|
+
type RevokeGroupInviteLinkInput = Zod.input<typeof revokeGroupInviteLink.openWAInput>;
|
|
3573
|
+
type RevokeGroupInviteLinkOutput = Zod.output<typeof revokeGroupInviteLink.openWAOutput>;
|
|
3574
|
+
type SetGroupTitleInput = Zod.input<typeof setGroupTitle.openWAInput>;
|
|
3575
|
+
type SetGroupTitleOutput = Zod.output<typeof setGroupTitle.openWAOutput>;
|
|
3576
|
+
type SetGroupDescriptionInput = Zod.input<typeof setGroupDescription.openWAInput>;
|
|
3577
|
+
type SetGroupDescriptionOutput = Zod.output<typeof setGroupDescription.openWAOutput>;
|
|
3578
|
+
type SetGroupIconInput = Zod.input<typeof setGroupIcon.openWAInput>;
|
|
3579
|
+
type SetGroupIconOutput = Zod.output<typeof setGroupIcon.openWAOutput>;
|
|
3580
|
+
type SetGroupToAdminsOnlyInput = Zod.input<typeof setGroupToAdminsOnly.openWAInput>;
|
|
3581
|
+
type SetGroupToAdminsOnlyOutput = Zod.output<typeof setGroupToAdminsOnly.openWAOutput>;
|
|
3582
|
+
type SetGroupEditToAdminsOnlyInput = Zod.input<typeof setGroupEditToAdminsOnly.openWAInput>;
|
|
3583
|
+
type SetGroupEditToAdminsOnlyOutput = Zod.output<typeof setGroupEditToAdminsOnly.openWAOutput>;
|
|
3584
|
+
type AddParticipantInput = Zod.input<typeof addParticipant.openWAInput>;
|
|
3585
|
+
type AddParticipantOutput = Zod.output<typeof addParticipant.openWAOutput>;
|
|
3586
|
+
type RemoveParticipantInput = Zod.input<typeof removeParticipant.openWAInput>;
|
|
3587
|
+
type RemoveParticipantOutput = Zod.output<typeof removeParticipant.openWAOutput>;
|
|
3588
|
+
type PromoteParticipantInput = Zod.input<typeof promoteParticipant.openWAInput>;
|
|
3589
|
+
type PromoteParticipantOutput = Zod.output<typeof promoteParticipant.openWAOutput>;
|
|
3590
|
+
type DemoteParticipantInput = Zod.input<typeof demoteParticipant.openWAInput>;
|
|
3591
|
+
type DemoteParticipantOutput = Zod.output<typeof demoteParticipant.openWAOutput>;
|
|
3592
|
+
type ApproveGroupJoinRequestInput = Zod.input<typeof approveGroupJoinRequest.openWAInput>;
|
|
3593
|
+
type ApproveGroupJoinRequestOutput = Zod.output<typeof approveGroupJoinRequest.openWAOutput>;
|
|
3594
|
+
type RejectGroupJoinRequestInput = Zod.input<typeof rejectGroupJoinRequest.openWAInput>;
|
|
3595
|
+
type RejectGroupJoinRequestOutput = Zod.output<typeof rejectGroupJoinRequest.openWAOutput>;
|
|
3596
|
+
type GetAllCommunitiesInput = Zod.input<typeof getAllCommunities.openWAInput>;
|
|
3597
|
+
type GetAllCommunitiesOutput = Zod.output<typeof getAllCommunities.openWAOutput>;
|
|
3598
|
+
type GetCommunityInfoInput = Zod.input<typeof getCommunityInfo.openWAInput>;
|
|
3599
|
+
type GetCommunityInfoOutput = Zod.output<typeof getCommunityInfo.openWAOutput>;
|
|
3600
|
+
type GetCommunityParticipantIdsInput = Zod.input<typeof getCommunityParticipantIds.openWAInput>;
|
|
3601
|
+
type GetCommunityParticipantIdsOutput = Zod.output<typeof getCommunityParticipantIds.openWAOutput>;
|
|
3602
|
+
type GetCommunityAdminIdsInput = Zod.input<typeof getCommunityAdminIds.openWAInput>;
|
|
3603
|
+
type GetCommunityAdminIdsOutput = Zod.output<typeof getCommunityAdminIds.openWAOutput>;
|
|
3604
|
+
type GetCommunityParticipantsInput = Zod.input<typeof getCommunityParticipants.openWAInput>;
|
|
3605
|
+
type GetCommunityParticipantsOutput = Zod.output<typeof getCommunityParticipants.openWAOutput>;
|
|
3606
|
+
type GetCommunityAdminsInput = Zod.input<typeof getCommunityAdmins.openWAInput>;
|
|
3607
|
+
type GetCommunityAdminsOutput = Zod.output<typeof getCommunityAdmins.openWAOutput>;
|
|
3608
|
+
type PostTextStatusInput = Zod.input<typeof postTextStatus.openWAInput>;
|
|
3609
|
+
type PostTextStatusOutput = Zod.output<typeof postTextStatus.openWAOutput>;
|
|
3610
|
+
type PostImageStatusInput = Zod.input<typeof postImageStatus.openWAInput>;
|
|
3611
|
+
type PostImageStatusOutput = Zod.output<typeof postImageStatus.openWAOutput>;
|
|
3612
|
+
type PostVideoStatusInput = Zod.input<typeof postVideoStatus.openWAInput>;
|
|
3613
|
+
type PostVideoStatusOutput = Zod.output<typeof postVideoStatus.openWAOutput>;
|
|
3614
|
+
type GetStoriesInput = Zod.input<typeof getStories.openWAInput>;
|
|
3615
|
+
type GetStoriesOutput = Zod.output<typeof getStories.openWAOutput>;
|
|
3616
|
+
type GetStatusInput = Zod.input<typeof getStatus.openWAInput>;
|
|
3617
|
+
type GetStatusOutput = Zod.output<typeof getStatus.openWAOutput>;
|
|
3618
|
+
type DeleteStatusInput = Zod.input<typeof deleteStatus.openWAInput>;
|
|
3619
|
+
type DeleteStatusOutput = Zod.output<typeof deleteStatus.openWAOutput>;
|
|
3620
|
+
type DeleteAllStatusInput = Zod.input<typeof deleteAllStatus.openWAInput>;
|
|
3621
|
+
type DeleteAllStatusOutput = Zod.output<typeof deleteAllStatus.openWAOutput>;
|
|
3622
|
+
type GetAllLabelsInput = Zod.input<typeof getAllLabels.openWAInput>;
|
|
3623
|
+
type GetAllLabelsOutput = Zod.output<typeof getAllLabels.openWAOutput>;
|
|
3624
|
+
type GetChatsByLabelInput = Zod.input<typeof getChatsByLabel.openWAInput>;
|
|
3625
|
+
type GetChatsByLabelOutput = Zod.output<typeof getChatsByLabel.openWAOutput>;
|
|
3626
|
+
type AddLabelInput = Zod.input<typeof addLabel.openWAInput>;
|
|
3627
|
+
type AddLabelOutput = Zod.output<typeof addLabel.openWAOutput>;
|
|
3628
|
+
type RemoveLabelInput = Zod.input<typeof removeLabel.openWAInput>;
|
|
3629
|
+
type RemoveLabelOutput = Zod.output<typeof removeLabel.openWAOutput>;
|
|
3630
|
+
type GetBusinessProfileInput = Zod.input<typeof getBusinessProfile.openWAInput>;
|
|
3631
|
+
type GetBusinessProfileOutput = Zod.output<typeof getBusinessProfile.openWAOutput>;
|
|
3632
|
+
type GetBusinessProductsInput = Zod.input<typeof getBusinessProducts.openWAInput>;
|
|
3633
|
+
type GetBusinessProductsOutput = Zod.output<typeof getBusinessProducts.openWAOutput>;
|
|
3634
|
+
type GetOrderInput = Zod.input<typeof getOrder.openWAInput>;
|
|
3635
|
+
type GetOrderOutput = Zod.output<typeof getOrder.openWAOutput>;
|
|
3636
|
+
type GetMeInput = Zod.input<typeof getMe.openWAInput>;
|
|
3637
|
+
type GetMeOutput = Zod.output<typeof getMe.openWAOutput>;
|
|
3638
|
+
type GetHostNumberInput = Zod.input<typeof getHostNumber.openWAInput>;
|
|
3639
|
+
type GetHostNumberOutput = Zod.output<typeof getHostNumber.openWAOutput>;
|
|
3640
|
+
type GetConnectionStateInput = Zod.input<typeof getConnectionState.openWAInput>;
|
|
3641
|
+
type GetConnectionStateOutput = Zod.output<typeof getConnectionState.openWAOutput>;
|
|
3642
|
+
type GetWAVersionInput = Zod.input<typeof getWAVersion.openWAInput>;
|
|
3643
|
+
type GetWAVersionOutput = Zod.output<typeof getWAVersion.openWAOutput>;
|
|
3644
|
+
type GetBatteryLevelInput = Zod.input<typeof getBatteryLevel.openWAInput>;
|
|
3645
|
+
type GetBatteryLevelOutput = Zod.output<typeof getBatteryLevel.openWAOutput>;
|
|
3646
|
+
type IsPluggedInput = Zod.input<typeof isPlugged.openWAInput>;
|
|
3647
|
+
type IsPluggedOutput = Zod.output<typeof isPlugged.openWAOutput>;
|
|
3648
|
+
type GetFeaturesInput = Zod.input<typeof getFeatures.openWAInput>;
|
|
3649
|
+
type GetFeaturesOutput = Zod.output<typeof getFeatures.openWAOutput>;
|
|
3650
|
+
type GetLicenseTypeInput = Zod.input<typeof getLicenseType.openWAInput>;
|
|
3651
|
+
type GetLicenseTypeOutput = Zod.output<typeof getLicenseType.openWAOutput>;
|
|
3652
|
+
type GetUserAgentInput = Zod.input<typeof getUserAgent.openWAInput>;
|
|
3653
|
+
type GetUserAgentOutput = Zod.output<typeof getUserAgent.openWAOutput>;
|
|
3654
|
+
type GetProcessStatsInput = Zod.input<typeof getProcessStats.openWAInput>;
|
|
3655
|
+
type GetProcessStatsOutput = Zod.output<typeof getProcessStats.openWAOutput>;
|
|
3656
|
+
type GetLoadedMessageCountInput = Zod.input<typeof getLoadedMessageCount.openWAInput>;
|
|
3657
|
+
type GetLoadedMessageCountOutput = Zod.output<typeof getLoadedMessageCount.openWAOutput>;
|
|
3658
|
+
type GetSnapshotInput = Zod.input<typeof getSnapshot.openWAInput>;
|
|
3659
|
+
type GetSnapshotOutput = Zod.output<typeof getSnapshot.openWAOutput>;
|
|
3660
|
+
type HealthCheckInput = Zod.input<typeof healthCheck.openWAInput>;
|
|
3661
|
+
type HealthCheckOutput = Zod.output<typeof healthCheck.openWAOutput>;
|
|
3662
|
+
type SetMyNameInput = Zod.input<typeof setMyName.openWAInput>;
|
|
3663
|
+
type SetMyNameOutput = Zod.output<typeof setMyName.openWAOutput>;
|
|
3664
|
+
type SetMyStatusInput = Zod.input<typeof setMyStatus.openWAInput>;
|
|
3665
|
+
type SetMyStatusOutput = Zod.output<typeof setMyStatus.openWAOutput>;
|
|
3666
|
+
type SetProfilePictureInput = Zod.input<typeof setProfilePicture.openWAInput>;
|
|
3667
|
+
type SetProfilePictureOutput = Zod.output<typeof setProfilePicture.openWAOutput>;
|
|
3668
|
+
type DecryptMediaInput = Zod.input<typeof decryptMedia.openWAInput>;
|
|
3669
|
+
type DecryptMediaOutput = Zod.output<typeof decryptMedia.openWAOutput>;
|
|
3670
|
+
type DownloadMediaInput = Zod.input<typeof downloadMedia.openWAInput>;
|
|
3671
|
+
type DownloadMediaOutput = Zod.output<typeof downloadMedia.openWAOutput>;
|
|
3672
|
+
//#endregion
|
|
3673
|
+
export { AddLabelInput, AddLabelOutput, AddParticipantInput, AddParticipantOutput, ApproveGroupJoinRequestInput, ApproveGroupJoinRequestOutput, ArchiveChatInput, ArchiveChatOutput, BaseClient, BaseNamespacedClient, BlockContactInput, BlockContactOutput, CheckNumberStatusInput, CheckNumberStatusOutput, CheckReadReceiptsInput, CheckReadReceiptsOutput, ClearChatInput, ClearChatOutput, CreateGroupInput, CreateGroupOutput, DecryptMediaInput, DecryptMediaOutput, DeleteAllStatusInput, DeleteAllStatusOutput, DeleteChatInput, DeleteChatOutput, DeleteMessageInput, DeleteMessageOutput, DeleteStatusInput, DeleteStatusOutput, DemoteParticipantInput, DemoteParticipantOutput, DownloadMediaInput, DownloadMediaOutput, ForwardMessagesInput, ForwardMessagesOutput, GetAllChatIdsInput, GetAllChatIdsOutput, GetAllChatsInput, GetAllChatsOutput, GetAllCommunitiesInput, GetAllCommunitiesOutput, GetAllContactsInput, GetAllContactsOutput, GetAllGroupsInput, GetAllGroupsOutput, GetAllLabelsInput, GetAllLabelsOutput, GetAllMessagesInput, GetAllMessagesOutput, GetBatteryLevelInput, GetBatteryLevelOutput, GetBlockedIdsInput, GetBlockedIdsOutput, GetBusinessProductsInput, GetBusinessProductsOutput, GetBusinessProfileInput, GetBusinessProfileOutput, GetChatInput, GetChatOutput, GetChatWithNonContactsInput, GetChatWithNonContactsOutput, GetChatsByLabelInput, GetChatsByLabelOutput, GetCommonGroupsInput, GetCommonGroupsOutput, GetCommunityAdminIdsInput, GetCommunityAdminIdsOutput, GetCommunityAdminsInput, GetCommunityAdminsOutput, GetCommunityInfoInput, GetCommunityInfoOutput, GetCommunityParticipantIdsInput, GetCommunityParticipantIdsOutput, GetCommunityParticipantsInput, GetCommunityParticipantsOutput, GetConnectionStateInput, GetConnectionStateOutput, GetContactInput, GetContactOutput, GetFeaturesInput, GetFeaturesOutput, GetGroupAdminsInput, GetGroupAdminsOutput, GetGroupInfoInput, GetGroupInfoOutput, GetGroupInviteLinkInput, GetGroupInviteLinkOutput, GetGroupMembersIdInput, GetGroupMembersIdOutput, GetGroupMembersInput, GetGroupMembersOutput, GetHostNumberInput, GetHostNumberOutput, GetKickedGroupsInput, GetKickedGroupsOutput, GetLicenseTypeInput, GetLicenseTypeOutput, GetLoadedMessageCountInput, GetLoadedMessageCountOutput, GetMeInput, GetMeOutput, GetMessageByIdInput, GetMessageByIdOutput, GetMessageInfoInput, GetMessageInfoOutput, GetMessagesForLLMInput, GetMessagesForLLMOutput, GetMyLastMessageInput, GetMyLastMessageOutput, GetNumberProfileInput, GetNumberProfileOutput, GetOrderInput, GetOrderOutput, GetProcessStatsInput, GetProcessStatsOutput, GetProfilePictureInput, GetProfilePictureOutput, GetSnapshotInput, GetSnapshotOutput, GetStarredMessagesInput, GetStarredMessagesOutput, GetStatusInput, GetStatusOutput, GetStoriesInput, GetStoriesOutput, GetUnsentMessagesInput, GetUnsentMessagesOutput, GetUserAgentInput, GetUserAgentOutput, GetVCardsInput, GetVCardsOutput, GetWAVersionInput, GetWAVersionOutput, HealthCheckInput, HealthCheckOutput, IsChatOnlineInput, IsChatOnlineOutput, IsPluggedInput, IsPluggedOutput, JoinGroupViaLinkInput, JoinGroupViaLinkOutput, LeaveGroupInput, LeaveGroupOutput, LoadEarlierMessagesInput, LoadEarlierMessagesOutput, MarkAsReadInput, MarkAsReadOutput, MarkAsUnreadInput, MarkAsUnreadOutput, MuteChatInput, MuteChatOutput, PinChatInput, PinChatOutput, PostImageStatusInput, PostImageStatusOutput, PostTextStatusInput, PostTextStatusOutput, PostVideoStatusInput, PostVideoStatusOutput, PromoteParticipantInput, PromoteParticipantOutput, ReactInput, ReactOutput, RejectGroupJoinRequestInput, RejectGroupJoinRequestOutput, RemoveLabelInput, RemoveLabelOutput, RemoveParticipantInput, RemoveParticipantOutput, RevokeGroupInviteLinkInput, RevokeGroupInviteLinkOutput, SendAdvancedButtonsInput, SendAdvancedButtonsOutput, SendAudioInput, SendAudioOutput, SendBannerInput, SendBannerOutput, SendButtonsInput, SendButtonsOutput, SendContactInput, SendContactOutput, SendFileFromUrlInput, SendFileFromUrlOutput, SendFileInput, SendFileOutput, SendImageInput, SendImageOutput, SendLinkWithAutoPreviewInput, SendLinkWithAutoPreviewOutput, SendListMessageInput, SendListMessageOutput, SendLocationInput, SendLocationOutput, SendMessageWithThumbInput, SendMessageWithThumbOutput, SendMultipleContactsInput, SendMultipleContactsOutput, SendPaymentRequestInput, SendPaymentRequestOutput, SendPollInput, SendPollOutput, SendPttInput, SendPttOutput, SendReplyWithMentionsInput, SendReplyWithMentionsOutput, SendSeenInput, SendSeenOutput, SendTextInput, SendTextOutput, SendTextWithMentionsInput, SendTextWithMentionsOutput, SendVCardInput, SendVCardOutput, SendVideoAsGifInput, SendVideoAsGifOutput, SendYouTubeLinkInput, SendYouTubeLinkOutput, SetChatEphemeralInput, SetChatEphemeralOutput, SetGroupDescriptionInput, SetGroupDescriptionOutput, SetGroupEditToAdminsOnlyInput, SetGroupEditToAdminsOnlyOutput, SetGroupIconInput, SetGroupIconOutput, SetGroupTitleInput, SetGroupTitleOutput, SetGroupToAdminsOnlyInput, SetGroupToAdminsOnlyOutput, SetMyNameInput, SetMyNameOutput, SetMyStatusInput, SetMyStatusOutput, SetProfilePictureInput, SetProfilePictureOutput, StarMessageInput, StarMessageOutput, UnarchiveChatInput, UnarchiveChatOutput, UnblockContactInput, UnblockContactOutput, UnmuteChatInput, UnmuteChatOutput, UnpinChatInput, UnpinChatOutput, UnstarMessageInput, UnstarMessageOutput, clientMethodAliasMap };
|
|
3674
|
+
//# sourceMappingURL=index.d.cts.map
|