Merge pull request #93 from ticketfrei/images

Notify that telegram image reports are not supported. #90
master
b3yond 2019-05-04 10:23:34 +02:00 committed by GitHub
commit 39dbfacf28
1 changed files with 6 additions and 0 deletions

View File

@ -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 as text instead?")
continue
if update.message.text.lower() == "/start":
user.add_telegram_subscribers(update.message.sender.id)
tb.send_message(