Added Contact Model (#34)

This commit is contained in:
Aliyss Snow 2020-02-03 00:08:36 +01:00 • committed by GitHub
commit e2351db722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
*/