From 7a7e8f0a302f03a68cf7d83f53962e98d9f23893 Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 3 May 2019 12:06:11 +0200 Subject: [PATCH] Notify that telegram image reports are not supported. #90 --- active_bots/telegrambot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py index 9fdbd66..a1aa9ef 100644 --- a/active_bots/telegrambot.py +++ b/active_bots/telegrambot.py @@ -32,6 +32,12 @@ class TelegramBot(Bot): logger.error("Unknown Telegram error code: " + str(update)) return reports user.save_seen_tg(update.update_id) + if update.message.photo: + tb.send_message( + update.message.sender.id, + "Sending Photos is not supported for privacy reasons. Can " + "you describe it in a report instead?") + continue if update.message.text.lower() == "/start": user.add_telegram_subscribers(update.message.sender.id) tb.send_message(