fix: correctly get message contact in group chats

This commit is contained in:
Pedro Lopez
2020-02-08 03:18:32 -04:00
parent edc2c7022d
commit ef80f966ea

View File

@@ -128,7 +128,7 @@ class Message extends Base {
* @returns {Promise<Contact>}
*/
getContact() {
return this.client.getContactById(this._getChatId());
return this.client.getContactById(this.author || this.from);
}
/**