1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-25 07:31:48 +00:00

The unfortunate im broke update

This commit is contained in:
2021-08-26 08:06:27 -07:00
parent 1bbbaa5f4e
commit edb9dad961
4 changed files with 538 additions and 488 deletions

10
bot.py
View File

@@ -306,6 +306,11 @@ def intra(update: Update, context: CallbackContext):
update.message.reply_text("No symbols or coins found.")
return
from Symbol import Stock
if isinstance(symbol, Stock):
return "Stock market data is currently unavailable see: https://t.me/simplestockbotnews \nCryptocurrency data is still available."
df = s.intra_reply(symbol)
if df.empty:
update.message.reply_text(
@@ -361,6 +366,11 @@ def chart(update: Update, context: CallbackContext):
update.message.reply_text("No symbols or coins found.")
return
from Symbol import Stock
if isinstance(symbol, Stock):
return "Stock market data is currently unavailable see: https://t.me/simplestockbotnews \nCryptocurrency data is still available."
df = s.chart_reply(symbol)
if df.empty:
update.message.reply_text(