-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to whatsapp-web.js offical documentation [1], reply method can be used by specifying: 1. `content`: can be string, MessageMedia, or Location 2. `chatId`: ID of target chat 3. `options`: Additional message options However, current `reply` route implementation doesn't support content type other than string content, so replying with MessageMedia or similar won't work. Since these parameters are very similar with `Client.sendMessage()` method, we can add switch-case to check the specified `contentType`, just like we did in `sendMessage` API route. This way, we can reply with another content type. [1] https://docs.wwebjs.dev/Message.html#reply
- Loading branch information
1 parent
e18e8b7
commit b8a5703
Showing
1 changed file
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters