From 9e871b3bbc1ebab730e8168d3016abb73f5c3e41 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:46:20 +0200 Subject: [PATCH] telethon config fixes --- configs/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/config.py b/configs/config.py index 8bc6ad0..0370020 100644 --- a/configs/config.py +++ b/configs/config.py @@ -131,7 +131,7 @@ class Config: self.telegram_config = TelethonConfig( api_id=secrets["telegram"]["api_id"], api_hash=secrets["telegram"]["api_hash"], - bot_token=getattr_or(secrets["telegram"], "bot_token") + bot_token=secrets["telegram"].get("bot_token", None) ) else: logger.debug(f"'telegram' key not present in the {self.config_file=}")