From 17b022fc6c916c0867406b4bf68b9fa8aa746288 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Sun, 5 Apr 2026 00:53:25 +0000 Subject: [PATCH] fix: show creator as clickable user link without pinging Changed from @user#1663194938 to using tg://user?id=XXX link format. This creates a clickable link to the user's DM without sending a ping. --- apps/telegram-bot/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/telegram-bot/commands.py b/apps/telegram-bot/commands.py index ad8f0ad..3c39fe1 100644 --- a/apps/telegram-bot/commands.py +++ b/apps/telegram-bot/commands.py @@ -661,8 +661,7 @@ async def cmd_show(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> None: due_str = dt_due.strftime("%d %B %Y %H:%M") lines.append(f"📅 {due_str} ({timezone_str})") - username = bounty.created_by_username or f"user#{bounty.created_by_user_id}" - lines.append(f"👤 @{username}") + lines.append(f"👤 [User](tg://user?id={bounty.created_by_user_id})") dt_created = datetime.fromtimestamp(bounty.created_at, tz=tz) created_str = dt_created.strftime("%Y-%m-%d %H:%M")