Browse Source

remove unnecessary set_typing calls

master
JerryXiao 4 years ago
parent
commit
8302fce45b
Signed by: Jerry
GPG Key ID: 9D9CE43650FF2BAA
  1. 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…
Cancel
Save