mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
Fix TelegramClient not actually supporting temp sessions (#78)
This commit is contained in:
parent
048bc81b74
commit
f64244eb44
|
@ -63,7 +63,7 @@ class TelegramClient:
|
||||||
self.api_hash = api_hash
|
self.api_hash = api_hash
|
||||||
|
|
||||||
# Determine what session object we have
|
# Determine what session object we have
|
||||||
if isinstance(session, str):
|
if isinstance(session, str) or session is None:
|
||||||
self.session = Session.try_load_or_create_new(session)
|
self.session = Session.try_load_or_create_new(session)
|
||||||
elif isinstance(session, Session):
|
elif isinstance(session, Session):
|
||||||
self.session = session
|
self.session = session
|
||||||
|
|
Loading…
Reference in New Issue
Block a user