From ae44426a78d553cd1a3ea9f536c0f2c90751d657 Mon Sep 17 00:00:00 2001
From: Lonami Exo <totufals@hotmail.com>
Date: Tue, 7 Nov 2023 12:37:30 +0100
Subject: [PATCH] Remove some slots from custom types for consistency

#4239.
---
 client/src/telethon/_impl/client/types/chat/channel.py  | 2 --
 client/src/telethon/_impl/client/types/chat/chat.py     | 2 --
 client/src/telethon/_impl/client/types/chat/group.py    | 2 --
 client/src/telethon/_impl/client/types/chat/user.py     | 2 --
 client/src/telethon/_impl/client/types/forward_info.py  | 2 --
 client/src/telethon/_impl/client/types/link_preview.py  | 2 --
 client/src/telethon/_impl/client/types/message.py       | 2 --
 client/src/telethon/_impl/client/types/recent_action.py | 2 --
 8 files changed, 16 deletions(-)

diff --git a/client/src/telethon/_impl/client/types/chat/channel.py b/client/src/telethon/_impl/client/types/chat/channel.py
index b3e723e0..b498f4c5 100644
--- a/client/src/telethon/_impl/client/types/chat/channel.py
+++ b/client/src/telethon/_impl/client/types/chat/channel.py
@@ -14,8 +14,6 @@ class Channel(Chat, metaclass=NoPublicConstructor):
     or from methods such as :meth:`telethon.Client.resolve_username`.
     """
 
-    __slots__ = ("_raw",)
-
     def __init__(
         self,
         raw: Union[types.Channel, types.ChannelForbidden],
diff --git a/client/src/telethon/_impl/client/types/chat/chat.py b/client/src/telethon/_impl/client/types/chat/chat.py
index 35fcaed7..bf12ca6d 100644
--- a/client/src/telethon/_impl/client/types/chat/chat.py
+++ b/client/src/telethon/_impl/client/types/chat/chat.py
@@ -11,8 +11,6 @@ class Chat(abc.ABC):
     This will either be a :class:`User`, :class:`Group` or :class:`Channel`.
     """
 
-    __slots__ = ()
-
     @property
     @abc.abstractmethod
     def id(self) -> int:
diff --git a/client/src/telethon/_impl/client/types/chat/group.py b/client/src/telethon/_impl/client/types/chat/group.py
index 5999bc15..031e18af 100644
--- a/client/src/telethon/_impl/client/types/chat/group.py
+++ b/client/src/telethon/_impl/client/types/chat/group.py
@@ -21,8 +21,6 @@ class Group(Chat, metaclass=NoPublicConstructor):
     or from methods such as :meth:`telethon.Client.resolve_username`.
     """
 
-    __slots__ = ("_raw",)
-
     def __init__(
         self,
         client: Client,
diff --git a/client/src/telethon/_impl/client/types/chat/user.py b/client/src/telethon/_impl/client/types/chat/user.py
index df43b7f3..ca74c967 100644
--- a/client/src/telethon/_impl/client/types/chat/user.py
+++ b/client/src/telethon/_impl/client/types/chat/user.py
@@ -14,8 +14,6 @@ class User(Chat, metaclass=NoPublicConstructor):
     or from methods such as :meth:`telethon.Client.resolve_username`.
     """
 
-    __slots__ = ("_raw",)
-
     def __init__(self, raw: types.User) -> None:
         self._raw = raw
 
diff --git a/client/src/telethon/_impl/client/types/forward_info.py b/client/src/telethon/_impl/client/types/forward_info.py
index b9976b1c..5a2976e1 100644
--- a/client/src/telethon/_impl/client/types/forward_info.py
+++ b/client/src/telethon/_impl/client/types/forward_info.py
@@ -11,8 +11,6 @@ class ForwardInfo(metaclass=NoPublicConstructor):
     This is also known as the forward header, as it's often displayed at the top of messages.
     """
 
-    __slots__ = ("_code", "_phone")
-
     def __init__(self, code: types.auth.SentCode, phone: str) -> None:
         self._code = code
         self._phone = phone
diff --git a/client/src/telethon/_impl/client/types/link_preview.py b/client/src/telethon/_impl/client/types/link_preview.py
index 83229d19..2b9b3684 100644
--- a/client/src/telethon/_impl/client/types/link_preview.py
+++ b/client/src/telethon/_impl/client/types/link_preview.py
@@ -11,8 +11,6 @@ class LinkPreview(metaclass=NoPublicConstructor):
     This comes from media attached to a message, and is automatically generated by Telegram.
     """
 
-    __slots__ = ("_code", "_phone")
-
     def __init__(self, code: types.auth.SentCode, phone: str) -> None:
         self._code = code
         self._phone = phone
diff --git a/client/src/telethon/_impl/client/types/message.py b/client/src/telethon/_impl/client/types/message.py
index 7c700c45..57c358b3 100644
--- a/client/src/telethon/_impl/client/types/message.py
+++ b/client/src/telethon/_impl/client/types/message.py
@@ -42,8 +42,6 @@ class Message(metaclass=NoPublicConstructor):
     or from methods such as :meth:`telethon.Client.get_messages`.
     """
 
-    __slots__ = ("_client", "_raw", "_chat_map")
-
     def __init__(
         self, client: Client, message: abcs.Message, chat_map: Dict[int, Chat]
     ) -> None:
diff --git a/client/src/telethon/_impl/client/types/recent_action.py b/client/src/telethon/_impl/client/types/recent_action.py
index 14bb443b..47ef8edc 100644
--- a/client/src/telethon/_impl/client/types/recent_action.py
+++ b/client/src/telethon/_impl/client/types/recent_action.py
@@ -14,8 +14,6 @@ class RecentAction(metaclass=NoPublicConstructor):
     You can obtain recent actions with methods such as :meth:`telethon.Client.get_admin_log`.
     """
 
-    __slots__ = ("_raw", "_chat_map")
-
     def __init__(
         self,
         event: abcs.ChannelAdminLogEvent,