1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-25 07:31:48 +00:00

fixed status command

This commit is contained in:
2021-03-27 19:10:51 -07:00
parent 621de911cd
commit f65704b0be
4 changed files with 31 additions and 32 deletions

9
bot.py
View File

@@ -64,7 +64,14 @@ def license(update: Update, context: CallbackContext):
def status(update: Update, context: CallbackContext):
update.message.reply_text(text=s.status(), parse_mode=telegram.ParseMode.MARKDOWN)
bot_resp = datetime.datetime.now(update.message.date.tzinfo) - update.message.date
update.message.reply_text(
text=s.status(
f"It took {bot_resp.total_seconds()} seconds for the bot to get your message."
),
parse_mode=telegram.ParseMode.MARKDOWN,
)
def donate(update: Update, context: CallbackContext):