mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-07-25 07:31:48 +00:00
revert donation stuff
This commit is contained in:
16
bot.py
16
bot.py
@@ -212,10 +212,6 @@ def news(update: Update, context: CallbackContext):
|
||||
message = update.message.text
|
||||
chat_id = update.message.chat_id
|
||||
|
||||
update.message.reply_text(
|
||||
"The bot is currently running on a free plan which does not include news information. Please see https://t.me/simplestockbotnews/19"
|
||||
)
|
||||
|
||||
if message.strip().split("@")[0] == "/news":
|
||||
update.message.reply_text(
|
||||
"This command gives the most recent english news for a symbol.\nExample: /news $tsla"
|
||||
@@ -310,11 +306,6 @@ 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(
|
||||
@@ -370,11 +361,6 @@ 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(
|
||||
@@ -546,7 +532,7 @@ def error(update: Update, context: CallbackContext):
|
||||
warning(tb_string)
|
||||
|
||||
update.message.reply_text(
|
||||
text=f"An error has occured. Please inform @MisterBiggs if the error persists. Error Code: `{err_code}`\nThe bot is currently running on a free plan for stock market data so not all information is currently available. Please see https://t.me/simplestockbotnews/19",
|
||||
text=f"An error has occured. Please inform @MisterBiggs if the error persists. Error Code: `{err_code}`",
|
||||
parse_mode=telegram.ParseMode.MARKDOWN,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user