remove unnecessary set_typing calls
This commit is contained in:
parent
b4b6b9786f
commit
8302fce45b
1 changed files with 1 additions and 2 deletions
3
bot.py
3
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)
|
||||
|
|
Loading…
Reference in a new issue