feat: add send file function
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type {
|
||||
GetMessagesParams,
|
||||
ListChatsParams,
|
||||
SendFileParams,
|
||||
SendTextParams,
|
||||
} from "../shared/protocol";
|
||||
import type {
|
||||
@@ -158,6 +159,10 @@ export class WhatsAppClient {
|
||||
return this.request<any>("sendText", params);
|
||||
}
|
||||
|
||||
sendFile(params: SendFileParams) {
|
||||
return this.request<any>("sendFile", params);
|
||||
}
|
||||
|
||||
getMedia(msgId: string) {
|
||||
return this.request<string>("getMedia", msgId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user