From 4de494d1d2d31e2f6c50b9a8cb6af7e14d6ad688 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Wed, 27 Jan 2021 12:17:07 -0700 Subject: [PATCH] Close #32 --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7558e37..8049c68 100644 --- a/bot.py +++ b/bot.py @@ -152,6 +152,8 @@ def intra(update, context): chat_id=chat_id, action=telegram.ChatAction.UPLOAD_PHOTO ) + price = s.price_reply([symbol]) + buf = io.BytesIO() mpf.plot( df, @@ -166,7 +168,7 @@ def intra(update, context): update.message.reply_photo( photo=buf, - caption=f"\nIntraday chart for ${symbol.upper()} on {datetime.date.today().strftime('%d, %b %Y')}", + caption=f"\nIntraday chart for ${symbol.upper()} on {datetime.date.today().strftime('%d, %b %Y')}\n\n{price[symbol]}", parse_mode=telegram.ParseMode.MARKDOWN, )