Added Contact Model (#34)

This commit is contained in:
Aliyss Snow
2020-02-03 00:08:36 +01:00
committed by GitHub
parent b597e4a504
commit e2351db722
7 changed files with 134 additions and 0 deletions

View File

@@ -41,6 +41,13 @@ class Message extends Base {
return this.client.getChatById(this._getChatId());
}
/**
* Returns the Contact this message was sent from
*/
getContact() {
return this.client.getContactById(this._getChatId());
}
/**
* Returns the quoted message, if any
*/