mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Don't rename the in-memory sessions
This commit is contained in:
parent
83c386cbec
commit
40b0c57b54
@ -86,8 +86,6 @@ class MemoryStorage(Storage):
|
|||||||
self.dc_id, self.test_mode, self.auth_key, self.user_id, self.is_bot = imported_session_string
|
self.dc_id, self.test_mode, self.auth_key, self.user_id, self.is_bot = imported_session_string
|
||||||
self.date = 0
|
self.date = 0
|
||||||
|
|
||||||
self.name = ":memory:" + str(self.user_id or "<unknown>")
|
|
||||||
|
|
||||||
# noinspection PyAttributeOutsideInit
|
# noinspection PyAttributeOutsideInit
|
||||||
def save(self):
|
def save(self):
|
||||||
self.date = int(time.time())
|
self.date = int(time.time())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user