From 9f87a86bdef8508a000b4285c0bb675cb67db828 Mon Sep 17 00:00:00 2001 From: Anson Date: Sat, 11 May 2019 19:45:28 -0700 Subject: [PATCH] bot now types in chat while its working. --- bot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.py b/bot.py index 16af4ed..7ab7238 100644 --- a/bot.py +++ b/bot.py @@ -39,6 +39,9 @@ def tickerDetect(bot, update): message = update.message.text chat_id = update.message.chat_id + # Let user know bot is working + bot.send_chat_action(chat_id=chat_id, action=telegram.ChatAction.TYPING) + tickers = getTickers(message) data = tickerData(tickers) if tickers else {} @@ -68,6 +71,9 @@ def news(bot, update): message = update.message.text chat_id = update.message.chat_id + # Let user know bot is working + bot.send_chat_action(chat_id=chat_id, action=telegram.ChatAction.TYPING) + tickers = getTickers(message) news = tickerNews(tickers) if tickers else {}