initial commit

This commit is contained in:
2026-09-14 17:15:00 +08:00
commit c78b75297f
19 changed files with 2421 additions and 0 deletions
+62
View File
@@ -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[]>;
};
};