2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-10 11:15:27 +00:00

Add session migrating from json; add some indexes to sqlite sessions

This commit is contained in:
bakatrouble
2019-02-26 21:43:23 +03:00
parent 03b92b3302
commit 10fc340eff
3 changed files with 28 additions and 6 deletions

View File

@@ -214,7 +214,7 @@ class Client(Methods, BaseClient):
elif session_name.startswith(':'):
session_storage = StringSessionStorage(self, session_name)
else:
session_storage = JsonSessionStorage(self, session_name)
session_storage = SQLiteSessionStorage(self, session_name)
elif isinstance(session_name, SessionStorage):
session_storage = session_name
else: