wppconnect-team / wppconnect

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination

Home Page:https://wppconnect.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does startTyping with a given time actually wait?

gekkedev opened this issue · comments

When using startTyping you can hand in a timeout:

await client.startTyping('[number]@c.us', 5000);

When you prefix await, I wonder if the returned promise will actually wait for the specified time or if the timeout only affects the lifetime of the "typing..." state in the background.
To me this seemed to be the case, but during debugging I started to question it. I'm willing to amend the documentation based on the reply.