From 8302fce45b95159b174a14c197e10e995f42d055 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 20 Dec 2018 21:34:27 +0800 Subject: [PATCH] remove unnecessary set_typing calls --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 493f896..ffc3db4 100755 --- a/bot.py +++ b/bot.py @@ -110,10 +110,9 @@ async def inline_query(fail=None): INTERVAL = 5 seconds = int(seconds) if seconds <= 0: - await set_typing() + pass else: if seconds <= INTERVAL: - await set_typing() await asyncio.sleep(INTERVAL) else: rounds = int(seconds/INTERVAL)