Persist session state and usage fixes

Catching up is now an option when creating the client.
This commit is contained in:
Lonami Exo
2022-01-23 19:46:37 +01:00
parent 015acf20c6
commit f547a00da3
4 changed files with 33 additions and 25 deletions

View File

@@ -245,7 +245,7 @@ class SQLiteSession(Session):
try:
c.executemany(
'insert or replace into entity values (?,?,?)',
[(e.id, e.access_hash, e.ty) for e in entities]
[(e.id, e.access_hash, e.ty.value) for e in entities]
)
finally:
c.close()