... sending text reports should of course be allowed.
parent
b2acc15400
commit
6686833ab5
|
@ -38,11 +38,11 @@ class TelegramBot(Bot):
|
||||||
"Sending Photos is not supported for privacy reasons. Can "
|
"Sending Photos is not supported for privacy reasons. Can "
|
||||||
"you describe it as text instead?")
|
"you describe it as text instead?")
|
||||||
continue
|
continue
|
||||||
if hasattr(update.message, 'text'):
|
if not hasattr(update.message, 'text'):
|
||||||
tb.send_message(
|
tb.send_message(
|
||||||
update.message.sender.id,
|
update.message.sender.id,
|
||||||
"We only support text only reporting for privacy reasons."
|
"We only support text reporting for privacy reasons. Can "
|
||||||
"Can you describe it as text instead?")
|
"you describe it as text instead?")
|
||||||
continue
|
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)
|
||||||
|
|
Loading…
Reference in New Issue