mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
close #48
This commit is contained in:
parent
b2c325bddb
commit
621de911cd
15
bot.py
15
bot.py
@ -244,6 +244,13 @@ def intra(update: Update, context: CallbackContext):
|
|||||||
|
|
||||||
symbols = s.find_symbols(message)
|
symbols = s.find_symbols(message)
|
||||||
symbol = symbols[0]
|
symbol = symbols[0]
|
||||||
|
|
||||||
|
if len(symbols):
|
||||||
|
symbol = symbols[0]
|
||||||
|
else:
|
||||||
|
update.message.reply_text("No symbols or coins found.")
|
||||||
|
return
|
||||||
|
|
||||||
df = s.intra_reply(symbol)
|
df = s.intra_reply(symbol)
|
||||||
if df.empty:
|
if df.empty:
|
||||||
update.message.reply_text(
|
update.message.reply_text(
|
||||||
@ -290,7 +297,13 @@ def chart(update: Update, context: CallbackContext):
|
|||||||
return
|
return
|
||||||
|
|
||||||
symbols = s.find_symbols(message)
|
symbols = s.find_symbols(message)
|
||||||
symbol = symbols[0]
|
|
||||||
|
if len(symbols):
|
||||||
|
symbol = symbols[0]
|
||||||
|
else:
|
||||||
|
update.message.reply_text("No symbols or coins found.")
|
||||||
|
return
|
||||||
|
|
||||||
df = s.chart_reply(symbol)
|
df = s.chart_reply(symbol)
|
||||||
if df.empty:
|
if df.empty:
|
||||||
update.message.reply_text(
|
update.message.reply_text(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user