From 0c251d27a7f09f02f9eda1afa152e65b4381fef1 Mon Sep 17 00:00:00 2001 From: ovchynnikov Date: Wed, 29 Jan 2025 09:57:33 +0100 Subject: [PATCH] fix: linter --- src/main.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index 597f78a..f83256e 100644 --- a/src/main.py +++ b/src/main.py @@ -129,11 +129,17 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE): # message_text = message_text.replace("** ", "**") # Check if URL is from a supported site - if not any(site in message_text for site in supported_sites) and update.effective_chat.type == "private" and "http" in message_text: + if (not any(site in message_text for site in supported_sites) and + update.effective_chat.type == "private" and "http" in message_text): if language == "ua": - await update.message.reply_text("Цей сайт не підтримується. Спробуйте додати ** перед URL") + await update.message.reply_text( + "Цей сайт не підтримується. Спробуйте додати ** перед https://" + ) else: - await update.message.reply_text("This site is not supported. Try adding ** before the URL") + + await update.message.reply_text( + "This site is not supported. Try adding ** before the https://" + ) return try: # Remove '**' prefix and any spaces if present