mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
Bot now says typing in chat when its working on an answer
This commit is contained in:
parent
6247bc2fb3
commit
5440f3b601
@ -34,9 +34,12 @@ def help(bot, update):
|
||||
|
||||
def stockInfo(bot, update):
|
||||
message = update.message.text
|
||||
chat_id = update.message.chat_id
|
||||
|
||||
try:
|
||||
# regex to find tickers in messages, looks for up to 4 word characters following a dollar sign and captures the 4 word characters
|
||||
tickers = re.findall("[$](\w{1,4})", message)
|
||||
bot.send_chat_action(chat_id=chat_id, action=telegram.ChatAction.TYPING)
|
||||
|
||||
# Checks if !news is called, and prints news embed if it is
|
||||
if message.startswith("!news"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user