initial commit
This commit is contained in:
Vendored
+62
@@ -0,0 +1,62 @@
|
||||
declare const WPP: {
|
||||
isReady: boolean;
|
||||
|
||||
loader: {
|
||||
onReady(callback: () => void): void;
|
||||
};
|
||||
|
||||
conn: {
|
||||
isAuthenticated(): boolean;
|
||||
};
|
||||
|
||||
chat: {
|
||||
list(options?: {
|
||||
count?: number;
|
||||
onlyUsers?: boolean;
|
||||
onlyGroups?: boolean;
|
||||
onlyCommunities?: boolean;
|
||||
onlyNewsletter?: boolean;
|
||||
onlyArchived?: boolean;
|
||||
}): Promise<any[]>;
|
||||
|
||||
get(chatId: string): any | undefined;
|
||||
|
||||
getMessages(
|
||||
chatId: string,
|
||||
options?: {
|
||||
count?: number;
|
||||
direction?: "before" | "after";
|
||||
id?: string;
|
||||
includeCallMessages?: boolean;
|
||||
media?: "image" | "document" | "url" | "all";
|
||||
onlyUnread?: boolean;
|
||||
},
|
||||
): Promise<any[]>;
|
||||
|
||||
sendTextMessage(
|
||||
chatId: string,
|
||||
text: string,
|
||||
options?: {
|
||||
delay?: number;
|
||||
detectMentioned?: boolean;
|
||||
markIsRead?: boolean;
|
||||
mentionedList?: string[];
|
||||
messageId?: string;
|
||||
quotedMsg?: string;
|
||||
quotedMsgPayload?: string;
|
||||
waitForAck?: boolean;
|
||||
},
|
||||
): Promise<any>;
|
||||
|
||||
on(event: string, callback: (...args: any[]) => void): void;
|
||||
};
|
||||
|
||||
contact: {
|
||||
getAllContacts(): Promise<any[]>;
|
||||
get(contactId: string): any | undefined;
|
||||
};
|
||||
|
||||
group: {
|
||||
getAllGroups(): Promise<any[]>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user