diff --git a/telethon/sessions/__init__.py b/telethon/_sessions/__init__.py similarity index 100% rename from telethon/sessions/__init__.py rename to telethon/_sessions/__init__.py diff --git a/telethon/sessions/abstract.py b/telethon/_sessions/abstract.py similarity index 100% rename from telethon/sessions/abstract.py rename to telethon/_sessions/abstract.py diff --git a/telethon/sessions/memory.py b/telethon/_sessions/memory.py similarity index 100% rename from telethon/sessions/memory.py rename to telethon/_sessions/memory.py diff --git a/telethon/sessions/sqlite.py b/telethon/_sessions/sqlite.py similarity index 100% rename from telethon/sessions/sqlite.py rename to telethon/_sessions/sqlite.py diff --git a/telethon/sessions/string.py b/telethon/_sessions/string.py similarity index 100% rename from telethon/sessions/string.py rename to telethon/_sessions/string.py diff --git a/telethon/sessions/types.py b/telethon/_sessions/types.py similarity index 100% rename from telethon/sessions/types.py rename to telethon/_sessions/types.py diff --git a/telethon/sessions.py b/telethon/sessions.py new file mode 100644 index 00000000..b4c9bf4f --- /dev/null +++ b/telethon/sessions.py @@ -0,0 +1,12 @@ +from ._sessions.types import ( + DataCenter, + SessionState, + ChannelState, + Entity, +) +from ._sessions import ( + Session, + MemorySession, + SQLiteSession, + StringSession, +)