diff --git a/aggregator/client.py b/aggregator/client.py index 429fcd3..b02dec8 100644 --- a/aggregator/client.py +++ b/aggregator/client.py @@ -15,10 +15,10 @@ Session.notice_displayed = True def get_client(): config._reload_maybe() - pyrogram_sesssion = config.pyrogram_session.replace('.session', '') - if not pyrogram_sesssion or not config.pyrogram_app_id or config.pyrogram_app_hash: + pyrogram_session = config.pyrogram_session.replace('.session', '') + if not pyrogram_session or not config.pyrogram_app_id or not config.pyrogram_app_hash: raise RuntimeError('Pyrogram is not configured') - session_path = os.path.relpath(default_storage.path(pyrogram_sesssion)) + session_path = os.path.relpath(default_storage.path(pyrogram_session)) return Client(session_path, config.pyrogram_app_id, config.pyrogram_app_hash)