mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-07-25 23:51:32 +00:00
fix #16
This commit is contained in:
5
bot.py
5
bot.py
@@ -1,6 +1,5 @@
|
||||
# Work with Python 3.7
|
||||
import logging
|
||||
import re
|
||||
import os
|
||||
|
||||
import telegram
|
||||
@@ -40,7 +39,7 @@ def tickerDetect(bot, update):
|
||||
message = update.message.text
|
||||
chat_id = update.message.chat_id
|
||||
|
||||
tickers = re.findall(TICKER_REGEX, message)
|
||||
tickers = getTickers(message)
|
||||
|
||||
data = tickerData(tickers) if tickers else {}
|
||||
|
||||
@@ -69,7 +68,7 @@ def news(bot, update):
|
||||
message = update.message.text
|
||||
chat_id = update.message.chat_id
|
||||
|
||||
tickers = re.findall(TICKER_REGEX, message)
|
||||
tickers = getTickers(message)
|
||||
|
||||
news = tickerNews(tickers) if tickers else {}
|
||||
|
||||
|
Reference in New Issue
Block a user