mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 23:26:52 +00:00
Update to ask for donations
This commit is contained in:
parent
0eab043e09
commit
5ec26f48a1
4
bot.py
4
bot.py
@ -210,6 +210,8 @@ def news(update: Update, context: CallbackContext):
|
|||||||
message = update.message.text
|
message = update.message.text
|
||||||
chat_id = update.message.chat_id
|
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":
|
if message.strip().split("@")[0] == "/news":
|
||||||
update.message.reply_text(
|
update.message.reply_text(
|
||||||
"This command gives the most recent english news for a symbol.\nExample: /news $tsla"
|
"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)
|
warning(tb_string)
|
||||||
|
|
||||||
update.message.reply_text(
|
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,
|
parse_mode=telegram.ParseMode.MARKDOWN,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user