mirror of
https://github.com/alfem/telegram-download-daemon.git
synced 2025-03-01 16:43:06 +08:00
Python 3.6 compatibility fix
This commit is contained in:
parent
81009e61d4
commit
560abdfa8c
1 changed files with 2 additions and 1 deletions
|
@ -122,8 +122,9 @@ with TelegramClient(getSession(), api_id, api_hash,
|
|||
|
||||
async def start():
|
||||
tasks = []
|
||||
loop = asyncio.get_event_loop()
|
||||
for i in range(worker_count):
|
||||
task = asyncio.create_task(worker())
|
||||
task = loop.create_task(worker())
|
||||
tasks.append(task)
|
||||
await sendHelloMessage(client, peerChannel)
|
||||
await client.run_until_disconnected()
|
||||
|
|
Loading…
Reference in a new issue