From 1c1c71d40bed08ae925bac43b0a36c9d3d2e9080 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 6 Aug 2023 21:59:48 +0200 Subject: [PATCH] Fixed PyroClient.bot_locale --- src/libbot/pyrogram/classes/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libbot/pyrogram/classes/client.py b/src/libbot/pyrogram/classes/client.py index 6026fdf..c232280 100644 --- a/src/libbot/pyrogram/classes/client.py +++ b/src/libbot/pyrogram/classes/client.py @@ -102,7 +102,8 @@ class PyroClient(Client): self.start_time: float = 0 self.bot_locale: BotLocale = BotLocale( - (Path("locale") if locales_root is None else locales_root) + default_locale=self.config["locale"], + locales_root=(Path("locale") if locales_root is None else locales_root) ) self.default_locale: str = self.bot_locale.default self.locales: dict = self.bot_locale.locales