From a735501d847f63aba5e22c56435924baa3e39dd8 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Sun, 29 Dec 2024 15:15:07 +0000 Subject: [PATCH] Auto-format code [skip actions] --- bot/core/handlers.py | 2 +- bot/helper/aeon_utils/access_check.py | 4 +++- bot/modules/mirror_leech.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bot/core/handlers.py b/bot/core/handlers.py index ab457f068..9b5e6abba 100644 --- a/bot/core/handlers.py +++ b/bot/core/handlers.py @@ -141,7 +141,7 @@ def add_handlers(): for regex_filter, handler_func in regex_filters.items(): TgClient.bot.add_handler( - CallbackQueryHandler(handler_func, filters=regex(regex_filter)) + CallbackQueryHandler(handler_func, filters=regex(regex_filter)), ) TgClient.bot.add_handler( diff --git a/bot/helper/aeon_utils/access_check.py b/bot/helper/aeon_utils/access_check.py index cbe3338d3..b4c03af21 100644 --- a/bot/helper/aeon_utils/access_check.py +++ b/bot/helper/aeon_utils/access_check.py @@ -182,7 +182,9 @@ async def token_check(user_id, button=None): time_str = get_readable_time(token_timeout, True) button = button or ButtonMaker() - short_link = await short(f"https://telegram.me/{TgClient.NAME}?start={token}") + short_link = await short( + f"https://telegram.me/{TgClient.NAME}?start={token}" + ) button.url_button("Collect token", short_link) msg = "Your token has expired, please collect a new token" if Config.PAID_CHAT_ID and Config.PAID_CHAT_LINK: diff --git a/bot/modules/mirror_leech.py b/bot/modules/mirror_leech.py index 0561cbb00..c1aed0eb7 100644 --- a/bot/modules/mirror_leech.py +++ b/bot/modules/mirror_leech.py @@ -358,7 +358,7 @@ async def new_event(self): reply_to, f"{path}/", session, - ) + ), ) return None if isinstance(self.link, dict):