From db1369c004470a2c381aabd02c8e26b73e9d172a Mon Sep 17 00:00:00 2001
From: shokollm <270575765+shokollm@users.noreply.github.com>
Date: Sun, 5 Apr 2026 01:28:07 +0000
Subject: [PATCH] feat: use HTML parse mode for user link in /show
Now using User with HTML parse mode
for clickable user link without pinging.
---
apps/telegram-bot/commands.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/apps/telegram-bot/commands.py b/apps/telegram-bot/commands.py
index 3c39fe1..e429e50 100644
--- a/apps/telegram-bot/commands.py
+++ b/apps/telegram-bot/commands.py
@@ -10,6 +10,7 @@ import dateparser
from telegram import Update
from telegram.ext import ContextTypes
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
+from telegram.constants import ParseMode
from adapters.storage.json_file import JsonFileRoomStorage, JsonFileTrackingStorage
from core.services import BountyService, TrackingService
@@ -661,13 +662,15 @@ 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})")
- lines.append(f"👤 [User](tg://user?id={bounty.created_by_user_id})")
+ lines.append(f'👤 User')
dt_created = datetime.fromtimestamp(bounty.created_at, tz=tz)
created_str = dt_created.strftime("%Y-%m-%d %H:%M")
lines.append(f"📌 Created: {created_str}")
- await update.message.reply_text("\n".join(lines), disable_web_page_preview=True)
+ await update.message.reply_text(
+ "\n".join(lines), disable_web_page_preview=True, parse_mode=ParseMode.HTML
+ )
async def cmd_timezone(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> None: