fix: send message properly (#3692)
* fix: remove high cpu consumption by adding waiting for message logic Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com> * refactor: use already defined msg id * refactor: use optional arg for waiting for msg ack
This commit is contained in:
parent
ecb50450b7
commit
bd677a8a66
3 changed files with 12 additions and 4 deletions
5
index.d.ts
vendored
5
index.d.ts
vendored
|
|
@ -1382,6 +1382,11 @@ declare namespace WAWebJS {
|
|||
/** Should the bot send a quoted message without the quoted message if it fails to get the quote?
|
||||
* @default true (enabled) */
|
||||
ignoreQuoteErrors?: boolean
|
||||
/**
|
||||
* Should the bot wait for the message send result?
|
||||
* @default false
|
||||
*/
|
||||
waitUntilMsgSent?: boolean
|
||||
}
|
||||
|
||||
/** Options for editing a message */
|
||||
|
|
|
|||
Loading…
Reference in a new issue