forked from ticketfrei/ticketfrei
Notify that telegram image reports are not supported. #90
This commit is contained in:
parent
02f117a864
commit
7a7e8f0a30
|
@ -32,6 +32,12 @@ class TelegramBot(Bot):
|
||||||
logger.error("Unknown Telegram error code: " + str(update))
|
logger.error("Unknown Telegram error code: " + str(update))
|
||||||
return reports
|
return reports
|
||||||
user.save_seen_tg(update.update_id)
|
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":
|
if update.message.text.lower() == "/start":
|
||||||
user.add_telegram_subscribers(update.message.sender.id)
|
user.add_telegram_subscribers(update.message.sender.id)
|
||||||
tb.send_message(
|
tb.send_message(
|
||||||
|
|
Loading…
Reference in a new issue