add searchMessages method (#586)
* add searchMessages method * fix typing * fix typing * remove unused statement Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
This commit is contained in:
parent
0a061f982c
commit
b895437458
2 changed files with 21 additions and 0 deletions
3
index.d.ts
vendored
3
index.d.ts
vendored
|
|
@ -99,6 +99,9 @@ declare namespace WAWebJS {
|
|||
/** Send a message to a specific chatId */
|
||||
sendMessage(chatId: string, content: MessageContent, options?: MessageSendOptions): Promise<Message>
|
||||
|
||||
/** Searches for messages */
|
||||
searchMessages(query: string, options?: { chatId?: string, page?: number, limit?: number }): Promise<Message[]>
|
||||
|
||||
/** Marks the client as online */
|
||||
sendPresenceAvailable(): Promise<void>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue