Use sqlite3 instead JSON for the session files

This commit is contained in:
Lonami Exo
2017-12-26 16:45:47 +01:00
parent b11c2e885b
commit 664417b409
2 changed files with 162 additions and 72 deletions

View File

@@ -92,7 +92,7 @@ class TelegramBareClient:
# Determine what session object we have
if isinstance(session, str) or session is None:
session = Session.try_load_or_create_new(session)
session = Session(session)
elif not isinstance(session, Session):
raise ValueError(
'The given session must be a str or a Session instance.'