Check if the text property is inside the message object.
parent
adea5004f4
commit
06d5568a03
|
@ -38,6 +38,12 @@ class TelegramBot(Bot):
|
|||
"Sending Photos is not supported for privacy reasons. Can "
|
||||
"you describe it as text instead?")
|
||||
continue
|
||||
if "text" in update.message:
|
||||
tb.send_message(
|
||||
update.message.sender.id,
|
||||
"We only support text only reporting for privacy reasons."
|
||||
"Can you describe it as text instead?")
|
||||
continue
|
||||
if update.message.text.lower() == "/start":
|
||||
user.add_telegram_subscribers(update.message.sender.id)
|
||||
tb.send_message(
|
||||
|
|
Loading…
Reference in New Issue