1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 06:56:46 +00:00
This commit is contained in:
Anson Biggs 2021-01-27 12:17:07 -07:00
parent bce583fcf6
commit 4de494d1d2

4
bot.py
View File

@ -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,
)