fixing attributeError, hopefully for good

master
missytake 2021-04-04 01:06:13 +02:00
parent 27b79354e7
commit 7b0d33a457
1 changed files with 1 additions and 1 deletions

View File

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