1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 23:06:40 +00:00

Update to ask for donations

This commit is contained in:
Anson Biggs 2021-08-26 14:39:41 +00:00
parent 0eab043e09
commit 5ec26f48a1

4
bot.py
View File

@ -210,6 +210,8 @@ 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 the `/donate` command to see ways that you can help.")
if message.strip().split("@")[0] == "/news":
update.message.reply_text(
"This command gives the most recent english news for a symbol.\nExample: /news $tsla"
@ -530,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}`",
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 `/donate` if you would like to help.",
parse_mode=telegram.ParseMode.MARKDOWN,
)