... sending text reports should of course be allowed.

master
b3yond 2019-08-09 12:24:09 +02:00
parent b2acc15400
commit 6686833ab5
1 changed files with 3 additions and 3 deletions

View File

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