mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 11:39:14 +00:00
@@ -26,11 +26,12 @@ class Chat extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a message to this chat.
|
||||
* @param {string} message
|
||||
* Send a message to this chat
|
||||
* @param {string|MessageMedia} content
|
||||
* @param {object} options
|
||||
*/
|
||||
async sendMessage(message) {
|
||||
return this.client.sendMessage(this.id._serialized, message);
|
||||
async sendMessage(content, options) {
|
||||
return this.client.sendMessage(this.id._serialized, content, options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user