𝙰𝙺
Size: a a a
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
tasks = [client.send_file(chat_id, file) for file in list_files]
for response in as_completed(tasks):
await response
𝙰𝙺
𝙰𝙺
𝙰𝙺
as_completed(tasks)
это вроде из aiogram функция𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
tasks = [client.send_file(chat_id, file) for file in list_files]
await asyncio.as_completed(tasks)
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
⟁ᴡ
⟁ᴡ
await client.send_file(
event.chat_id,
["text.png", "out.png"],
caption="test multiple files"
)
return
None