Combine DataCenter ip and port into a single field

This commit is contained in:
Lonami Exo 2023-09-01 11:47:23 +02:00
parent fb4503338d
commit 77b49a1c88

View File

@ -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