diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index 6fcc30d..d66c138 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -35,7 +35,7 @@ class TelegramBot(Bot): # save the last message, so it doesn't get crawled again user.save_seen_tg(update.update_id) # complain if message is a photo - if update.message.photo is not None: + if update.message and update.message.photo: tb.send_message( update.message.sender.id, "Sending Photos is not supported for privacy reasons. Can "