mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Send typing notification while preparing the command
This commit is contained in:
parent
80a2a7642b
commit
223e2f5296
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue