Skip to content

Commit c5498c3

Browse files
committed
Rename Storage .destroy to .delete
1 parent a7c10bf commit c5498c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyrogram/client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def authorize(self) -> User:
779779
def log_out(self):
780780
"""Log out from Telegram and delete the *\\*.session* file.
781781
782-
When you log out, the current client is stopped and the storage session destroyed.
782+
When you log out, the current client is stopped and the storage session deleted.
783783
No more API calls can be made until you start the client and re-authorize again.
784784
785785
Returns:
@@ -793,7 +793,7 @@ def log_out(self):
793793
"""
794794
self.send(functions.auth.LogOut())
795795
self.stop()
796-
self.storage.destroy()
796+
self.storage.delete()
797797

798798
return True
799799

pyrogram/client/storage/file_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ def open(self):
113113
except sqlite3.OperationalError:
114114
pass
115115

116-
def destroy(self):
116+
def delete(self):
117117
os.remove(self.database)

0 commit comments

Comments
 (0)