feat: send messages with attachments

close #3
This commit is contained in:
Pedro Lopez
2020-02-03 23:40:49 -04:00
parent e717915f94
commit a098d61b03
7 changed files with 161 additions and 26 deletions

View File

@@ -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);
}
}