mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-07 02:34:12 +03:00
Combine DataCenter ip and port into a single field
This commit is contained in:
parent
fb4503338d
commit
77b49a1c88
|
@ -6,12 +6,11 @@ from ...tl import abcs
|
|||
|
||||
|
||||
class DataCenter:
|
||||
__slots__ = ("id", "ip", "port", "auth")
|
||||
__slots__ = ("id", "addr", "auth")
|
||||
|
||||
def __init__(self, *, id: int, ip: str, port: int, auth: Optional[bytes]) -> None:
|
||||
def __init__(self, *, id: int, addr: str, auth: Optional[bytes]) -> None:
|
||||
self.id = id
|
||||
self.ip = ip
|
||||
self.port = port
|
||||
self.addr = addr
|
||||
self.auth = auth
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user