1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix hasattr.

This commit is contained in:
eternnoir 2015-12-22 14:26:08 +08:00
parent eeff4e7bf8
commit 3a08111f10

View File

@ -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