From 327b161b41bb2587af51c7467a5b2f616baa48dd Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 3 Jan 2024 22:45:39 +0100 Subject: [PATCH 01/50] Added a few JSON examples --- examples/commands.json | 21 +++++++++++++++++++++ examples/config.json | 38 ++++++++++++++++++++++++++++++++++++++ examples/locale.json | 23 +++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 examples/commands.json create mode 100644 examples/config.json create mode 100644 examples/locale.json diff --git a/examples/commands.json b/examples/commands.json new file mode 100644 index 0000000..8634ffa --- /dev/null +++ b/examples/commands.json @@ -0,0 +1,21 @@ +{ + "help": { + "scopes": [ + { + "name": "BotCommandScopeDefault" + }, + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + }, + "shutdown": { + "scopes": [ + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + } +} \ No newline at end of file diff --git a/examples/config.json b/examples/config.json new file mode 100644 index 0000000..7919804 --- /dev/null +++ b/examples/config.json @@ -0,0 +1,38 @@ +{ + "locale": "en", + "bot": { + "owner": 0, + "api_id": 0, + "api_hash": "", + "bot_token": "", + "workers": 1, + "max_concurrent_transmissions": 1, + "scoped_commands": true + }, + "reports": { + "chat_id": "owner" + }, + "disabled_plugins": [], + "commands": { + "help": { + "scopes": [ + { + "name": "BotCommandScopeDefault" + }, + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + }, + "shutdown": { + "scopes": [ + { + "name": "BotCommandScopeChat", + "chat_id": "owner" + } + ] + } + } +} + diff --git a/examples/locale.json b/examples/locale.json new file mode 100644 index 0000000..78e4c60 --- /dev/null +++ b/examples/locale.json @@ -0,0 +1,23 @@ +{ + "metadata": { + "flag": "🇬🇧", + "name": "English", + "codes": [ + "en" + ] + }, + "bot": { + "name": "Your Bot", + "about": "I'm a your bot. Nice to meet you!", + "description": "I'm just your bot. Yet nice to meet you!" + }, + "commands": { + "help": "Show help message" + }, + "messages": { + "help": "Sample Text" + }, + "callbacks": { + "sample": "This button is working!" + } +} \ No newline at end of file From fc14cad3ff6f8c07f326cb5c453ede316c952624 Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 3 Jan 2024 23:16:26 +0100 Subject: [PATCH 02/50] owner, scoped_commands and i18n_bot_info can be provided in Client's kwargs now --- src/libbot/pyrogram/classes/client.py | 95 +++++++++++++++------------ 1 file changed, 53 insertions(+), 42 deletions(-) diff --git a/src/libbot/pyrogram/classes/client.py b/src/libbot/pyrogram/classes/client.py index 90422f6..be5808f 100644 --- a/src/libbot/pyrogram/classes/client.py +++ b/src/libbot/pyrogram/classes/client.py @@ -46,6 +46,7 @@ class PyroClient(Client): def __init__( self, name: str = "bot_client", + owner: Union[int, None] = None, config: Union[Dict[str, Any], None] = None, config_path: Union[str, Path] = Path("config.json"), api_id: Union[int, None] = None, @@ -58,6 +59,8 @@ class PyroClient(Client): sleep_threshold: int = 120, max_concurrent_transmissions: int = 1, commands_source: Union[Dict[str, dict], None] = None, + scoped_commands: Union[bool, None] = None, + i18n_bot_info: bool = False, scheduler: Union[AsyncIOScheduler, BackgroundScheduler, None] = None, **kwargs, ): @@ -93,12 +96,16 @@ class PyroClient(Client): else max_concurrent_transmissions, **kwargs, ) - self.owner: int = self.config["bot"]["owner"] + self.owner: int = self.config["bot"]["owner"] if owner is None else owner self.commands: List[PyroCommand] = [] self.commands_source: Dict[str, dict] = ( self.config["commands"] if commands_source is None else commands_source ) - self.scoped_commands: bool = self.config["bot"]["scoped_commands"] + self.scoped_commands: bool = ( + self.config["bot"]["scoped_commands"] + if scoped_commands is None + else scoped_commands + ) self.start_time: float = 0 self.bot_locale: BotLocale = BotLocale( @@ -116,6 +123,8 @@ class PyroClient(Client): self.scopes_placeholders: Dict[str, int] = {"owner": self.owner} + self.i18n_bot_info: bool = i18n_bot_info + async def start(self, register_commands: bool = True) -> None: await super().start() @@ -129,51 +138,53 @@ class PyroClient(Client): getpid(), ) - # Register default bot's info - try: - await self.set_bot_info( - name=self._("name", "bot"), - about=self._("about", "bot"), - description=self._("description", "bot"), - lang_code="", - ) - logger.info( - "Bot's info for the default locale %s has been updated", - self.default_locale, - ) - except KeyError: - logger.warning( - "Default locale %s has incorrect keys or values in bot section", - self.default_locale, - ) - - # Register bot's info for each available locale - for locale_code in self.locales: - locale = self.locales[locale_code] - - if "metadata" not in locale or ("codes" not in locale["metadata"]): - logger.warning( - "Locale %s is missing metadata or metadata.codes key", locale_code + if self.i18n_bot_info: + # Register default bot's info + try: + await self.set_bot_info( + name=self._("name", "bot"), + about=self._("about", "bot"), + description=self._("description", "bot"), + lang_code="", + ) + logger.info( + "Bot's info for the default locale %s has been updated", + self.default_locale, + ) + except KeyError: + logger.warning( + "Default locale %s has incorrect keys or values in bot section", + self.default_locale, ) - continue - for code in locale["metadata"]["codes"]: - try: - await self.set_bot_info( - name=locale["bot"]["name"], - about=locale["bot"]["about"], - description=locale["bot"]["description"], - lang_code=code, - ) - logger.info( - "Bot's info for the locale %s has been updated", - self.default_locale, - ) - except KeyError: + # Register bot's info for each available locale + for locale_code in self.locales: + locale = self.locales[locale_code] + + if "metadata" not in locale or ("codes" not in locale["metadata"]): logger.warning( - "Locale %s has incorrect keys or values in bot section", + "Locale %s is missing metadata or metadata.codes key", locale_code, ) + continue + + for code in locale["metadata"]["codes"]: + try: + await self.set_bot_info( + name=locale["bot"]["name"], + about=locale["bot"]["about"], + description=locale["bot"]["description"], + lang_code=code, + ) + logger.info( + "Bot's info for the locale %s has been updated", + self.default_locale, + ) + except KeyError: + logger.warning( + "Locale %s has incorrect keys or values in bot section", + locale_code, + ) # Send a message to the bot's reports chat about the startup try: From 20cc754a2af3fed59fa0c5f68e9fe523c32a3bcf Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 3 Jan 2024 23:56:34 +0100 Subject: [PATCH 03/50] Fixed wrong variable being used in PyroClient.start() --- src/libbot/pyrogram/classes/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libbot/pyrogram/classes/client.py b/src/libbot/pyrogram/classes/client.py index be5808f..c246434 100644 --- a/src/libbot/pyrogram/classes/client.py +++ b/src/libbot/pyrogram/classes/client.py @@ -178,7 +178,7 @@ class PyroClient(Client): ) logger.info( "Bot's info for the locale %s has been updated", - self.default_locale, + self.code, ) except KeyError: logger.warning( From d3a423a56079fa7ba8cdf665930aea864bb2ecc6 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 6 Jan 2024 04:22:14 +0200 Subject: [PATCH 04/50] Update dependency types-aiofiles to v23.2.0.20240106 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 165d741..3650b8d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,5 +7,5 @@ pytest-asyncio==0.23.3 pytest-cov==4.1.0 pytest==7.4.4 tox==4.11.4 -types-aiofiles==23.2.0.0 +types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From eb0a43e3604fddc141ecb057883de844a45046dd Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 12 Jan 2024 04:32:16 +0200 Subject: [PATCH 05/50] Update dependency tox to v4.12.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 3650b8d..2dd1770 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.0.3 pytest-asyncio==0.23.3 pytest-cov==4.1.0 pytest==7.4.4 -tox==4.11.4 +tox==4.12.0 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 16658efb17bb039f2982ece670029cb15c2f064f Mon Sep 17 00:00:00 2001 From: Profitroll Date: Mon, 15 Jan 2024 00:54:05 +0100 Subject: [PATCH 06/50] Bump pyrofork to 2.3.16.post4 --- requirements/pyrogram.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index 13119ee..c9ccbfb 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -pyrofork~=2.3.16.post1 \ No newline at end of file +pyrofork~=2.3.16.post4 \ No newline at end of file From bd3c62fed884000067e9cd2627465a0aba007939 Mon Sep 17 00:00:00 2001 From: Profitroll Date: Mon, 15 Jan 2024 22:40:45 +0100 Subject: [PATCH 07/50] Bump pyrofork to 2.3.16.post5 --- requirements/pyrogram.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index c9ccbfb..e746306 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -pyrofork~=2.3.16.post4 \ No newline at end of file +pyrofork~=2.3.16.post5 \ No newline at end of file From f950eaa339a13cad35f5be80ef9344b6c764e889 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 17 Jan 2024 06:57:41 +0200 Subject: [PATCH 08/50] Update dependency tox to v4.12.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 2dd1770..70d793f 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.0.3 pytest-asyncio==0.23.3 pytest-cov==4.1.0 pytest==7.4.4 -tox==4.12.0 +tox==4.12.1 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 451b0c5135dbb8dd9dbafdb6bfde16fc46f0ce3c Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 26 Jan 2024 08:05:08 +0200 Subject: [PATCH 09/50] Update dependency black to v24 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 70d793f..b1d0264 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==23.12.1 +black==24.1.0 build==1.0.3 isort==5.13.2 mypy==1.8.0 From 48d1d9291adbdc72a1352b58e5ce6e8527e2ebc2 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 27 Jan 2024 23:58:41 +0200 Subject: [PATCH 10/50] Update dependency pytest to v8 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index b1d0264..bf96c3b 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.8.0 pylint==3.0.3 pytest-asyncio==0.23.3 pytest-cov==4.1.0 -pytest==7.4.4 +pytest==8.0.0 tox==4.12.1 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From dc9c83dc687764c5658192c3418a875a5a4083b2 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 28 Jan 2024 08:24:05 +0200 Subject: [PATCH 11/50] Update dependency black to v24.1.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index bf96c3b..f37d652 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.1.0 +black==24.1.1 build==1.0.3 isort==5.13.2 mypy==1.8.0 From 458c2ef6150b8520093146a77f10363ffbc606d4 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 6 Feb 2024 21:01:19 +0200 Subject: [PATCH 12/50] Update dependency pyrofork to ~=2.4.0 --- requirements/pyrogram.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index e746306..bf9622c 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -pyrofork~=2.3.16.post5 \ No newline at end of file +pyrofork~=2.4.0 \ No newline at end of file From 6e7d3c5e6f0f20cc1ad392b8cb58c184a761a3ed Mon Sep 17 00:00:00 2001 From: Profitroll Date: Sat, 17 Feb 2024 14:30:20 +0200 Subject: [PATCH 13/50] Update requirements/pyrogram.txt --- requirements/pyrogram.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index bf9622c..0d36e8c 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -pyrofork~=2.4.0 \ No newline at end of file +pyrofork~=2.3.18 \ No newline at end of file From b1c61f0a5baaebca4f9aca0347b8681a492aa638 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 17 Feb 2024 14:32:14 +0200 Subject: [PATCH 14/50] Update dependency pytest to v8.0.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index f37d652..a7e54ee 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.8.0 pylint==3.0.3 pytest-asyncio==0.23.3 pytest-cov==4.1.0 -pytest==8.0.0 +pytest==8.0.1 tox==4.12.1 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 0408cd676feb41a87971695bd35c169177957525 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 17 Feb 2024 15:35:45 +0200 Subject: [PATCH 15/50] Update dependency pytest-asyncio to v0.23.5 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index a7e54ee..858d62e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.0.3 isort==5.13.2 mypy==1.8.0 pylint==3.0.3 -pytest-asyncio==0.23.3 +pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.0.1 tox==4.12.1 From abd4f035ad54f3dd74837fae986e72cbfd9cf1d8 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 17 Feb 2024 16:39:21 +0200 Subject: [PATCH 16/50] Update dependency black to v24.2.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 858d62e..095f434 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.1.1 +black==24.2.0 build==1.0.3 isort==5.13.2 mypy==1.8.0 From 1e6b2ccaca633f5d035a7ed0ef4ddacd43a34073 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 17 Feb 2024 16:39:25 +0200 Subject: [PATCH 17/50] Update dependency tox to v4.13.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 858d62e..b0742b1 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.0.3 pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.0.1 -tox==4.12.1 +tox==4.13.0 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From cde0393baf81971c634b764d755fb77166c3a729 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 23 Feb 2024 23:53:57 +0200 Subject: [PATCH 18/50] Update dependency pylint to v3.0.4 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 5b6ec4a..8c928f7 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.2.0 build==1.0.3 isort==5.13.2 mypy==1.8.0 -pylint==3.0.3 +pylint==3.0.4 pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.0.1 From de7a9ef181406290e685e26aad271f68cc201ff7 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 25 Feb 2024 01:11:12 +0200 Subject: [PATCH 19/50] Update dependency pytest to v8.0.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 8c928f7..a31ce77 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.8.0 pylint==3.0.4 pytest-asyncio==0.23.5 pytest-cov==4.1.0 -pytest==8.0.1 +pytest==8.0.2 tox==4.13.0 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From fd113f861bfe747e107283007fcf9f75cc83569c Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 25 Feb 2024 19:04:33 +0200 Subject: [PATCH 20/50] Update dependency pylint to v3.1.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index a31ce77..7f9afbc 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.2.0 build==1.0.3 isort==5.13.2 mypy==1.8.0 -pylint==3.0.4 +pylint==3.1.0 pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.0.2 From 874892924f797099bc5269517b1cd1260d67a86a Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 29 Feb 2024 19:19:45 +0200 Subject: [PATCH 21/50] Update dependency build to v1.1.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 7f9afbc..5f2ad63 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ black==24.2.0 -build==1.0.3 +build==1.1.0 isort==5.13.2 mypy==1.8.0 pylint==3.1.0 From 80e861800c28a349fee82462f564fa4bc0d1ab51 Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 29 Feb 2024 23:31:18 +0200 Subject: [PATCH 22/50] Update dependency build to v1.1.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 5f2ad63..0d431a0 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ black==24.2.0 -build==1.1.0 +build==1.1.1 isort==5.13.2 mypy==1.8.0 pylint==3.1.0 From 52f2630fdafaef741cf2e5a54d09aa9f179b0fab Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 2 Mar 2024 11:02:32 +0200 Subject: [PATCH 23/50] Update dependency py-cord to ~=2.5.0 --- requirements/pycord.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pycord.txt b/requirements/pycord.txt index 5c3fd69..e7a7c44 100644 --- a/requirements/pycord.txt +++ b/requirements/pycord.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -py-cord~=2.4.1 \ No newline at end of file +py-cord~=2.5.0 \ No newline at end of file From c5c07bd75dd2a9696b776b208909fbcbdb892c2d Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 3 Mar 2024 23:26:11 +0200 Subject: [PATCH 24/50] Update dependency pytest to v8.1.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 0d431a0..1ca2d60 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.8.0 pylint==3.1.0 pytest-asyncio==0.23.5 pytest-cov==4.1.0 -pytest==8.0.2 +pytest==8.1.0 tox==4.13.0 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 4349dcf4d79254882b65d9145af06481fa18b859 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 6 Mar 2024 02:10:43 +0200 Subject: [PATCH 25/50] Update dependency tox to v4.14.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 1ca2d60..447b238 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.1.0 pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.1.0 -tox==4.13.0 +tox==4.14.0 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 00a835442cf0867436c8d2e2f961cff36af76596 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 6 Mar 2024 21:50:35 +0200 Subject: [PATCH 26/50] Update dependency tox to v4.14.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 447b238..c8654c3 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.1.0 pytest-asyncio==0.23.5 pytest-cov==4.1.0 pytest==8.1.0 -tox==4.14.0 +tox==4.14.1 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 06c4b9f845187371632b8dd9f7697ac8b7e7c04f Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 8 Mar 2024 17:23:39 +0200 Subject: [PATCH 27/50] Update dependency pytest-asyncio to v0.23.5.post1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index c8654c3..9a0d8df 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.1.1 isort==5.13.2 mypy==1.8.0 pylint==3.1.0 -pytest-asyncio==0.23.5 +pytest-asyncio==0.23.5.post1 pytest-cov==4.1.0 pytest==8.1.0 tox==4.14.1 From 3a718caacfcb5151262217a74f5f54e04633225a Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 8 Mar 2024 18:26:10 +0200 Subject: [PATCH 28/50] Update dependency mypy to v1.9.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 9a0d8df..2d9a9bb 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.2.0 build==1.1.1 isort==5.13.2 -mypy==1.8.0 +mypy==1.9.0 pylint==3.1.0 pytest-asyncio==0.23.5.post1 pytest-cov==4.1.0 From 1d22188bfc5b4a4d93af57a8f42d8234a04302b4 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sat, 9 Mar 2024 14:08:36 +0200 Subject: [PATCH 29/50] Update dependency pytest to v8.1.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 2d9a9bb..c40b7ef 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.9.0 pylint==3.1.0 pytest-asyncio==0.23.5.post1 pytest-cov==4.1.0 -pytest==8.1.0 +pytest==8.1.1 tox==4.14.1 types-aiofiles==23.2.0.20240106 types-ujson==5.9.0.0 \ No newline at end of file From 6521a9a51026c4e3d5a53bdec376fa8db43fad23 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 10 Mar 2024 04:39:55 +0200 Subject: [PATCH 30/50] Update dependency types-aiofiles to v23.2.0.20240310 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index c40b7ef..516ef99 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,5 +7,5 @@ pytest-asyncio==0.23.5.post1 pytest-cov==4.1.0 pytest==8.1.1 tox==4.14.1 -types-aiofiles==23.2.0.20240106 +types-aiofiles==23.2.0.20240310 types-ujson==5.9.0.0 \ No newline at end of file From 63a654229399c031287bdda66cb594c0293dee4f Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 11 Mar 2024 04:32:55 +0200 Subject: [PATCH 31/50] Update dependency types-aiofiles to v23.2.0.20240311 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 516ef99..f75a208 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,5 +7,5 @@ pytest-asyncio==0.23.5.post1 pytest-cov==4.1.0 pytest==8.1.1 tox==4.14.1 -types-aiofiles==23.2.0.20240310 +types-aiofiles==23.2.0.20240311 types-ujson==5.9.0.0 \ No newline at end of file From 6284d6e631fc80ce5d9a39af7cf5a48521361358 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 15 Mar 2024 22:19:32 +0200 Subject: [PATCH 32/50] Update dependency black to v24.3.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index f75a208..020cc65 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.2.0 +black==24.3.0 build==1.1.1 isort==5.13.2 mypy==1.9.0 From bf9f19321a82b1706a7b046a27ce9d139dc8679c Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 19 Mar 2024 09:21:03 +0200 Subject: [PATCH 33/50] Update dependency pytest-asyncio to v0.23.6 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 020cc65..319cad4 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -3,7 +3,7 @@ build==1.1.1 isort==5.13.2 mypy==1.9.0 pylint==3.1.0 -pytest-asyncio==0.23.5.post1 +pytest-asyncio==0.23.6 pytest-cov==4.1.0 pytest==8.1.1 tox==4.14.1 From 8308ed0c9d3f92fc0076027ca5c314876104bbb8 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 22 Mar 2024 18:15:34 +0200 Subject: [PATCH 34/50] Update dependency tox to v4.14.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 319cad4..a1ee0b8 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.1.0 pytest-asyncio==0.23.6 pytest-cov==4.1.0 pytest==8.1.1 -tox==4.14.1 +tox==4.14.2 types-aiofiles==23.2.0.20240311 types-ujson==5.9.0.0 \ No newline at end of file From af825459809e65ec3b9ae0bfcb1e1dd2cdc2edae Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 24 Mar 2024 23:11:11 +0200 Subject: [PATCH 35/50] Update dependency pytest-cov to v5 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index a1ee0b8..4ce6859 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,7 +4,7 @@ isort==5.13.2 mypy==1.9.0 pylint==3.1.0 pytest-asyncio==0.23.6 -pytest-cov==4.1.0 +pytest-cov==5.0.0 pytest==8.1.1 tox==4.14.2 types-aiofiles==23.2.0.20240311 From 28001f32885fbe1140b24a7a4e0cc49dfa15cbdb Mon Sep 17 00:00:00 2001 From: Renovate Date: Thu, 28 Mar 2024 17:33:39 +0200 Subject: [PATCH 36/50] Update dependency build to v1.2.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4ce6859..4c744cf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ black==24.3.0 -build==1.1.1 +build==1.2.1 isort==5.13.2 mypy==1.9.0 pylint==3.1.0 From de2524921ece47662ee3be589ce2b04e1ca8d100 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 31 Mar 2024 06:10:03 +0300 Subject: [PATCH 37/50] Update dependency types-aiofiles to v23.2.0.20240331 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 4c744cf..8c708f0 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,5 +7,5 @@ pytest-asyncio==0.23.6 pytest-cov==5.0.0 pytest==8.1.1 tox==4.14.2 -types-aiofiles==23.2.0.20240311 +types-aiofiles==23.2.0.20240331 types-ujson==5.9.0.0 \ No newline at end of file From 5de6fac3ddd768a28417a8e2824c2489c416d424 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 3 Apr 2024 05:59:16 +0300 Subject: [PATCH 38/50] Update dependency types-aiofiles to v23.2.0.20240403 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 8c708f0..833f8ce 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -7,5 +7,5 @@ pytest-asyncio==0.23.6 pytest-cov==5.0.0 pytest==8.1.1 tox==4.14.2 -types-aiofiles==23.2.0.20240331 +types-aiofiles==23.2.0.20240403 types-ujson==5.9.0.0 \ No newline at end of file From 9e957b7533afd206ca5c3f9c21a899d46abf1a8c Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 12 Apr 2024 23:30:09 +0300 Subject: [PATCH 39/50] Update dependency black to v24.4.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 833f8ce..bd734f0 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.3.0 +black==24.4.0 build==1.2.1 isort==5.13.2 mypy==1.9.0 From 19f8383fb4129bb93612f424b772936a7a71ca15 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 24 Apr 2024 17:17:08 +0300 Subject: [PATCH 40/50] Update dependency mypy to v1.10.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index bd734f0..8702b00 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ black==24.4.0 build==1.2.1 isort==5.13.2 -mypy==1.9.0 +mypy==1.10.0 pylint==3.1.0 pytest-asyncio==0.23.6 pytest-cov==5.0.0 From de3183d4ed1a6e867345547a456cb6612d6227d3 Mon Sep 17 00:00:00 2001 From: Renovate Date: Wed, 24 Apr 2024 18:20:20 +0300 Subject: [PATCH 41/50] Update dependency black to v24.4.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 8702b00..3404095 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.4.0 +black==24.4.1 build==1.2.1 isort==5.13.2 mypy==1.10.0 From d3502bd9356feb62d80b5b935ca3ba694372fdd2 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 26 Apr 2024 03:37:21 +0300 Subject: [PATCH 42/50] Update dependency black to v24.4.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 3404095..38ae764 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -black==24.4.1 +black==24.4.2 build==1.2.1 isort==5.13.2 mypy==1.10.0 From 2fa65e7c76af9959ad09354a8a23a326d91269a8 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 26 Apr 2024 21:17:23 +0300 Subject: [PATCH 43/50] Update dependency pytest to v8.1.2 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 38ae764..e49722d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.10.0 pylint==3.1.0 pytest-asyncio==0.23.6 pytest-cov==5.0.0 -pytest==8.1.1 +pytest==8.1.2 tox==4.14.2 types-aiofiles==23.2.0.20240403 types-ujson==5.9.0.0 \ No newline at end of file From 8719a4472070c41bc7cdb4228cd2e63553325274 Mon Sep 17 00:00:00 2001 From: Renovate Date: Fri, 26 Apr 2024 22:20:26 +0300 Subject: [PATCH 44/50] Update dependency tox to v4.15.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index e49722d..f140b88 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -6,6 +6,6 @@ pylint==3.1.0 pytest-asyncio==0.23.6 pytest-cov==5.0.0 pytest==8.1.2 -tox==4.14.2 +tox==4.15.0 types-aiofiles==23.2.0.20240403 types-ujson==5.9.0.0 \ No newline at end of file From b690725a47cf1f04320df697e96d1fc0c901bad0 Mon Sep 17 00:00:00 2001 From: Renovate Date: Sun, 28 Apr 2024 03:27:28 +0300 Subject: [PATCH 45/50] Update dependency pytest to v8.2.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index f140b88..226cc94 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -5,7 +5,7 @@ mypy==1.10.0 pylint==3.1.0 pytest-asyncio==0.23.6 pytest-cov==5.0.0 -pytest==8.1.2 +pytest==8.2.0 tox==4.15.0 types-aiofiles==23.2.0.20240403 types-ujson==5.9.0.0 \ No newline at end of file From 787fc8c590c319294888fb05d23f456f13fa71ea Mon Sep 17 00:00:00 2001 From: Renovate Date: Mon, 13 May 2024 18:08:25 +0300 Subject: [PATCH 46/50] Update dependency pylint to v3.1.1 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 226cc94..25dd638 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.4.2 build==1.2.1 isort==5.13.2 mypy==1.10.0 -pylint==3.1.0 +pylint==3.1.1 pytest-asyncio==0.23.6 pytest-cov==5.0.0 pytest==8.2.0 From d1da6a1d8b392557d803b0e3c02485ae3d837795 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 14 May 2024 05:38:09 +0300 Subject: [PATCH 47/50] Update dependency ujson to ~=5.10.0 --- requirements/speed.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/speed.txt b/requirements/speed.txt index 934e0b8..5393963 100644 --- a/requirements/speed.txt +++ b/requirements/speed.txt @@ -1 +1 @@ -ujson~=5.9.0 \ No newline at end of file +ujson~=5.10.0 \ No newline at end of file From cb09910123d5ac1de9330db2b0ff043fcf24c285 Mon Sep 17 00:00:00 2001 From: Renovate Date: Tue, 14 May 2024 15:03:36 +0300 Subject: [PATCH 48/50] Update dependency pylint to v3.2.0 --- requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 25dd638..2b24a25 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -2,7 +2,7 @@ black==24.4.2 build==1.2.1 isort==5.13.2 mypy==1.10.0 -pylint==3.1.1 +pylint==3.2.0 pytest-asyncio==0.23.6 pytest-cov==5.0.0 pytest==8.2.0 From 7af4ad965532289b111cca46b134dc07d9b9540c Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 14 May 2024 23:04:16 +0200 Subject: [PATCH 49/50] Bump pyrofork to ~=2.3.21.post3 --- requirements/pyrogram.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/pyrogram.txt b/requirements/pyrogram.txt index 0d36e8c..c24b74c 100644 --- a/requirements/pyrogram.txt +++ b/requirements/pyrogram.txt @@ -1,2 +1,2 @@ apscheduler~=3.10.4 -pyrofork~=2.3.18 \ No newline at end of file +pyrofork~=2.3.21.post3 \ No newline at end of file From 6b44a5852e984ead10f8034949a6800a9dfea31d Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 14 May 2024 23:07:55 +0200 Subject: [PATCH 50/50] Bump own version to 3.0.1 --- src/libbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libbot/__init__.py b/src/libbot/__init__.py index 3bd8739..74b0290 100644 --- a/src/libbot/__init__.py +++ b/src/libbot/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.0.0" +__version__ = "3.0.1" __license__ = "GPL3" __author__ = "Profitroll"