mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 19:49:16 +00:00
Return new message after sending
This commit is contained in:
@@ -25,7 +25,11 @@ class Chat extends Base {
|
||||
return super._patch(data);
|
||||
}
|
||||
|
||||
sendMessage(message) {
|
||||
/**
|
||||
* Sends a message to this chat.
|
||||
* @param {string} message
|
||||
*/
|
||||
async sendMessage(message) {
|
||||
return this.client.sendMessage(this.id._serialized, message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user