From 223e2f52960061c11550cd581cc018c9520d5af1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 9 Feb 2019 20:13:57 +0100 Subject: [PATCH] Send typing notification while preparing the command --- telegrambot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telegrambot.py b/telegrambot.py index 1d6db384..e56b34a1 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -80,6 +80,7 @@ def command(func: "function"): def new_func(bot: telegram.Bot, update: telegram.Update): # noinspection PyBroadException try: + bot.send_chat_action(update.message.chat.id, telegram.ChatAction.TYPING) session = db.Session() return func(bot, update, session) except TimedOut: