mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix hasattr.
This commit is contained in:
parent
eeff4e7bf8
commit
3a08111f10
@ -416,7 +416,7 @@ class TeleBot:
|
|||||||
|
|
||||||
def _notify_message_subscribers(self, new_messages):
|
def _notify_message_subscribers(self, new_messages):
|
||||||
for message in new_messages:
|
for message in new_messages:
|
||||||
if not hasattr(message, 'reply_to_message'):
|
if not message.reply_to_message:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
reply_msg_id = message.reply_to_message.message_id
|
reply_msg_id = message.reply_to_message.message_id
|
||||||
|
Loading…
Reference in New Issue
Block a user