mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Remove custom enum parsing
Python enums can already be parsed out-of-the-box.
This commit is contained in:
@@ -199,7 +199,7 @@ def init(
|
||||
enums.ConnectionMode.FULL: transports.Full(),
|
||||
enums.ConnectionMode.INTERMEDIATE: transports.Intermediate(),
|
||||
enums.ConnectionMode.ABRIDGED: transports.Abridged(),
|
||||
}[enums.parse_conn_mode(connection)]
|
||||
}[enums.ConnectionMode(connection)]
|
||||
init_proxy = None
|
||||
|
||||
# Used on connection. Capture the variables in a lambda since
|
||||
|
Reference in New Issue
Block a user