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:
10
bot.py
10
bot.py
@@ -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(
|
||||
|
Reference in New Issue
Block a user