This commit is contained in:
b3yond 2019-06-08 14:51:46 +00:00 committed by GitHub
commit d5b61f20a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,9 @@ class TelegramBot(Bot):
"Send reports here to share them with other users. "
"Use /start and /stop to get reports or not.")
# TODO: /help message should be set in frontend
elif update.message.text.lower() == "/ping":
tb.send_message(
update.message.sender.id, "pong")
else:
# set report.author to "" to avoid mailbot crash
sender_name = update.message.sender.username