From d5c2ca2e1df511eac7c1f67216b70df595deb649 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 8 Oct 2018 20:18:20 +0200 Subject: [PATCH] Use TCPAbridged (async) connection mode --- pyrogram/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index 17ed9495..58bf4fdc 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -36,7 +36,7 @@ class Connection: 4: TCPIntermediateO } - def __init__(self, dc_id: int, test_mode: bool, ipv6: bool, proxy: dict, mode: int = 2): + def __init__(self, dc_id: int, test_mode: bool, ipv6: bool, proxy: dict, mode: int = 1): self.dc_id = dc_id self.ipv6 = ipv6 self.proxy = proxy