Fix edge case when message object is undefined #37

Merged
laurynas-karvelis merged 1 commits from master into master 2018-02-01 15:49:58 +00:00

View File

@ -57,7 +57,7 @@ export default class Base extends EventEmitter {
&& message.reply_to_message.message_id === messageId;
}
return message.chat.id === chat;
return message && message.chat.id === chat;
});
if (update) {