mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-18 04:20:57 +03:00
Add missing async when downloading from URL (#3222)
This commit is contained in:
parent
bda4259815
commit
f9643bf737
|
@ -962,7 +962,7 @@ class DownloadMethods:
|
||||||
f = file
|
f = file
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
# TODO Use progress_callback; get content length from response
|
# TODO Use progress_callback; get content length from response
|
||||||
# https://github.com/telegramdesktop/tdesktop/blob/c7e773dd9aeba94e2be48c032edc9a78bb50234e/Telegram/SourceFiles/ui/images.cpp#L1318-L1319
|
# https://github.com/telegramdesktop/tdesktop/blob/c7e773dd9aeba94e2be48c032edc9a78bb50234e/Telegram/SourceFiles/ui/images.cpp#L1318-L1319
|
||||||
async with session.get(web.url) as response:
|
async with session.get(web.url) as response:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user