From 3a08111f107b0c28ea82b8b19aff7dc608964a32 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Tue, 22 Dec 2015 14:26:08 +0800 Subject: [PATCH] Fix hasattr. --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 5f0110f..e831426 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -416,7 +416,7 @@ class TeleBot: def _notify_message_subscribers(self, new_messages): for message in new_messages: - if not hasattr(message, 'reply_to_message'): + if not message.reply_to_message: continue reply_msg_id = message.reply_to_message.message_id