2
0
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:
Dan 2019-06-30 20:53:35 +02:00
parent 83c386cbec
commit 40b0c57b54

View File

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