mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +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)
|
||||
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)
|
||||
if df.empty:
|
||||
update.message.reply_text(
|
||||
@ -290,7 +297,13 @@ def chart(update: Update, context: CallbackContext):
|
||||
return
|
||||
|
||||
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)
|
||||
if df.empty:
|
||||
update.message.reply_text(
|
||||
|
Loading…
x
Reference in New Issue
Block a user