Change to hasattr
parent
b6b3aa5bfc
commit
86af9e9a9f
|
@ -38,7 +38,7 @@ class TelegramBot(Bot):
|
||||||
"Sending Photos is not supported for privacy reasons. Can "
|
"Sending Photos is not supported for privacy reasons. Can "
|
||||||
"you describe it as text instead?")
|
"you describe it as text instead?")
|
||||||
continue
|
continue
|
||||||
if "text" in update.message:
|
if hasattr(update.message, 'text'):
|
||||||
tb.send_message(
|
tb.send_message(
|
||||||
update.message.sender.id,
|
update.message.sender.id,
|
||||||
"We only support text only reporting for privacy reasons."
|
"We only support text only reporting for privacy reasons."
|
||||||
|
|
Loading…
Reference in New Issue