From 6686833ab59591084094d09e0ddf0475b104bcd1 Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 9 Aug 2019 12:24:09 +0200 Subject: [PATCH] ... sending text reports should of course be allowed. --- active_bots/telegrambot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index 90bf906..6b1fd5b 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -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)