From 27b79354e7da19312c47a8c6443086246a105390 Mon Sep 17 00:00:00 2001 From: missytake Date: Fri, 2 Apr 2021 17:33:26 +0200 Subject: [PATCH] fix AttributeError --- active_bots/telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index c690b29..6fcc30d 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: + if update.message.photo is not None: tb.send_message( update.message.sender.id, "Sending Photos is not supported for privacy reasons. Can "