From 33c33d08e2ba82df48ba91b80dd2d0c0edd0751f Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 26 Jul 2023 14:12:05 +0200 Subject: [PATCH] Allowed passing kwargs --- libbot/pyrogram/classes/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbot/pyrogram/classes/client.py b/libbot/pyrogram/classes/client.py index 4f29eff..7961253 100644 --- a/libbot/pyrogram/classes/client.py +++ b/libbot/pyrogram/classes/client.py @@ -59,6 +59,7 @@ class PyroClient(Client): max_concurrent_transmissions: int = 1, commands_source: Union[Dict[str, dict], None] = None, scheduler: Union[AsyncIOScheduler, BackgroundScheduler, None] = None, + **kwargs, ): if config is None: with open(config_path, "r", encoding="utf-8") as f: @@ -90,6 +91,7 @@ class PyroClient(Client): ] if "max_concurrent_transmissions" in self.config["bot"] else max_concurrent_transmissions, + **kwargs, ) self.owner: int = self.config["bot"]["owner"] self.commands: List[PyroCommand] = []