diff --git a/src/structures/GroupNotification.js b/src/structures/GroupNotification.js index d022b70..6552116 100644 --- a/src/structures/GroupNotification.js +++ b/src/structures/GroupNotification.js @@ -43,7 +43,7 @@ class GroupNotification extends Base { * * @type {string} */ - this.chatId = typeof (data.to) === 'object' ? data.to._serialized : data.to; + this.chatId = typeof (data.id.remote) === 'object' ? data.id.remote._serialized : data.id.remote; /** * ContactId for the user that produced the GroupNotification.