diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index d6676662..b6996d7c 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -779,7 +779,7 @@ class Client(Methods, BaseClient): def log_out(self): """Log out from Telegram and delete the *\\*.session* file. - When you log out, the current client is stopped and the storage session destroyed. + When you log out, the current client is stopped and the storage session deleted. No more API calls can be made until you start the client and re-authorize again. Returns: @@ -793,7 +793,7 @@ class Client(Methods, BaseClient): """ self.send(functions.auth.LogOut()) self.stop() - self.storage.destroy() + self.storage.delete() return True diff --git a/pyrogram/client/storage/file_storage.py b/pyrogram/client/storage/file_storage.py index b9529504..4ee81b5b 100644 --- a/pyrogram/client/storage/file_storage.py +++ b/pyrogram/client/storage/file_storage.py @@ -113,5 +113,5 @@ class FileStorage(MemoryStorage): except sqlite3.OperationalError: pass - def destroy(self): + def delete(self): os.remove(self.database)