Check if the text property is inside the message object.

pull/1/head
SchoolGuy 2019-07-14 15:58:22 +02:00
parent adea5004f4
commit 06d5568a03
No known key found for this signature in database
GPG Key ID: E1402A43C854A672
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ class TelegramBot(Bot):
"Sending Photos is not supported for privacy reasons. Can "
"you describe it as text instead?")
continue
if "text" in update.message:
tb.send_message(
update.message.sender.id,
"We only support text only 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)
tb.send_message(