fixing attributeError, hopefully for good
parent
27b79354e7
commit
7b0d33a457
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue