From bf4560a8c17d09c2ca0021faa2d312b8b0f64c09 Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov Date: Sun, 1 Jun 2025 20:28:41 +0500 Subject: [PATCH] Remove unused __slots__ declaration from TooLongMsgError class --- client/src/telethon/_impl/mtproto/mtp/types.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/src/telethon/_impl/mtproto/mtp/types.py b/client/src/telethon/_impl/mtproto/mtp/types.py index 7fe4b209..5594b7bb 100644 --- a/client/src/telethon/_impl/mtproto/mtp/types.py +++ b/client/src/telethon/_impl/mtproto/mtp/types.py @@ -234,8 +234,6 @@ class NegativeLengthError(DeserializationError): class TooLongMsgError(DeserializationError): - __slots__ = ("expected", "got") - def __init__(self, *args: object, got: int, max_length: int) -> None: super().__init__( f"Bad server message length (got {got}, when at most it should be {max_length})",