From 7b64da789781744d25b023fd49f61df9ee79e2f3 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:42:15 +0000 Subject: [PATCH] fix: -link with any value sets link regardless of URL format Previously, /update 2 -link s would clear the link and then parse 's' as a date. Now, any value after -link is used as the link, regardless of whether it looks like a URL. --- apps/telegram-bot/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/telegram-bot/commands.py b/apps/telegram-bot/commands.py index 23f8bef..7152e44 100644 --- a/apps/telegram-bot/commands.py +++ b/apps/telegram-bot/commands.py @@ -80,7 +80,7 @@ def parse_args( arg = args[i] if arg == "-link": - if i + 1 < len(args) and is_url(args[i + 1]): + if i + 1 < len(args): link = args[i + 1] i += 2 else: