2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-25 19:38:31 +00:00

Rename Storage .destroy to .delete

This commit is contained in:
Dan 2019-09-14 19:22:08 +02:00
parent a7c10bfb28
commit c5498c3b4e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -113,5 +113,5 @@ class FileStorage(MemoryStorage):
except sqlite3.OperationalError:
pass
def destroy(self):
def delete(self):
os.remove(self.database)