MCPcopy
hub / github.com/vynect/venom / WAPI

Interface WAPI

src/types/WAPI.d.ts:14–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12} from '../api/model';
13
14interface WAPI {
15 addParticipant: (groupId: string, contactId: string | string[]) => boolean;
16 onAnyMessage: (callback: Function) => void;
17 onMessageEdit: (callback: Function) => void;
18 onMessageDelete: (callback: Function) => void;
19 onMessageReaction: (callback: Function) => void;
20 archiveChat: (chatId: string, option: boolean) => boolean;
21 arrayBufferToBase64: (buffer: ArrayBuffer) => string;
22 blockContact: (messageId: string) => boolean;
23 checkNumberStatus: (contactId: string) => Promise<WhatsappProfile>;
24 clearChatMessages: (chatId: string) => void;
25 createGroup: (
26 groupName: string,
27 contactId: string | string[]
28 ) => GroupCreation;
29 deleteConversation: (chatId: string) => boolean;
30 deleteMessages: (contactId: string, messageId: string[]) => Promise<object>;
31 demoteParticipant: (groupId: string, contactId: string | string[]) => void;
32 downloadFile: (data: string) => Promise<string | boolean>;
33 downloadMedia: (messageId: string) => Promise<string>;
34 forwardMessages: (
35 to: string,
36 messages: string | string[],
37 skipMyMessages: boolean
38 ) => Promise<object>;
39 getAllChats: () => Promise<Chat[] | object[]>;
40 getAllChatIds: () => Promise<string[]>;
41 getAllChatsWithMessages: (withNewMessageOnly?: boolean) => Chat[];
42 getAllChatsWithNewMsg: () => Chat[];
43 getAllContacts: () => Contact[];
44 getAllMessagesInChat: (
45 chatId: string,
46 includeMe: boolean,
47 includeNotifications: boolean
48 ) => Message[];
49 getAllMessagesDate: (
50 chatId: string,
51 type: string,
52 idateStart: string,
53 time: string,
54 limit: number
55 ) => Message[];
56
57 getBatteryLevel: () => number;
58 getBlockList: () => Contact[];
59 getBusinessProfilesProducts: (to: string) => any;
60 getChat: (contactId: string) => Chat;
61 getChatById: (contactId: string) => Chat;
62 getChatIsOnline: (chatId: string) => Promise<boolean>;
63 getLastSeen: (chatId: string) => Promise<number | boolean>;
64 getContact: (contactId: string) => Contact;
65 getGroupAdmins: (groupId: string) => Object;
66 getGroupInfoFromInviteLink: (inviteCode: string) => Promise<string | boolean>;
67 getGroupInviteLink: (chatId: string) => Promise<string>;
68 revokeGroupInviteLink: (chatId: string) => Promise<boolean>;
69 getGroupParticipant: (groupId: string, time: string) => Object;
70 getHost: () => any; //HostDevice;
71 getListMute: (type?: string) => object;

Callers 1

sendTypeButtonsMethod · 0.65

Implementers 1

SenderLayersrc/api/layers/sender.layer.ts

Calls

no outgoing calls

Tested by

no test coverage detected