mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
use http2 in httpx
This commit is contained in:
@@ -19,7 +19,7 @@ message_raw_text = """{url}
|
|||||||
|
|
||||||
|
|
||||||
def create_client() -> 'AsyncClient':
|
def create_client() -> 'AsyncClient':
|
||||||
return AsyncClient()
|
return AsyncClient(http2=True)
|
||||||
|
|
||||||
|
|
||||||
async def close_client(_client: 'AsyncClient') -> None:
|
async def close_client(_client: 'AsyncClient') -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user