fix: correctly get message contact in group chats
This commit is contained in:
parent
edc2c7022d
commit
ef80f966ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue