From a83fe46bafb207518bcaeeba0c4dd973dc4ed284 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 21 Sep 2022 12:00:55 +0200 Subject: [PATCH] Document the client instance cannot be used after logout Closes #3780. --- telethon/client/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telethon/client/auth.py b/telethon/client/auth.py index 8d7d68d3a..711b6fdbd 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -595,6 +595,8 @@ async def log_out(self: 'TelegramClient') -> bool: """ Logs out Telegram and deletes the current ``*.session`` file. + The client is unusable after logging out and a new instance should be created. + Returns `True` if the operation was successful.