mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-06 18:24:12 +03:00
Add PathLike
support to SQLiteSession
(#3737)
This commit is contained in:
parent
0bc598c121
commit
e80371b6d0
|
@ -39,7 +39,7 @@ class SQLiteSession(Session):
|
|||
self.save_entities = True
|
||||
|
||||
if session_id:
|
||||
self.filename = session_id
|
||||
self.filename = os.fspath(session_id)
|
||||
if not self.filename.endswith(EXTENSION):
|
||||
self.filename += EXTENSION
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user