From 5ec26f48a1c8e8f8b1613a6473f18ba740904418 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 26 Aug 2021 14:39:41 +0000 Subject: [PATCH] Update to ask for donations --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 9b20481..9768d0f 100644 --- a/bot.py +++ b/bot.py @@ -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, )