mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-09 02:35:21 +00:00
Rename Storage .destroy to .delete
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user