telethon config fixes

This commit is contained in:
msramalho
2022-06-08 13:46:20 +02:00
parent 562d2f51ad
commit 9e871b3bbc

View File

@@ -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=}")