Change to hasattr

master
Enno G 2019-07-22 20:51:49 +02:00
parent b6b3aa5bfc
commit 86af9e9a9f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class TelegramBot(Bot):
"Sending Photos is not supported for privacy reasons. Can "
"you describe it as text instead?")
continue
if "text" in update.message:
if hasattr(update.message, 'text'):
tb.send_message(
update.message.sender.id,
"We only support text only reporting for privacy reasons."