forked from ticketfrei/ticketfrei
Change to hasattr
This commit is contained in:
parent
06d5568a03
commit
5bb5f9f05b
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue