Remove escapeHTML

This commit is contained in:
Astra 2026-03-01 09:47:11 +00:00
parent 3085c36718
commit fdd1484c48

2
bot.go
View file

@ -419,7 +419,7 @@ func handleNewMessage(ctx context.Context, api *tg.Client, alertPeer *tg.InputPe
// Build alert message with HTML formatting for markdown v2 // Build alert message with HTML formatting for markdown v2
matchMessageHTML := fmt.Sprintf("🚨 Matched\n<b>Score</b>: %.2f\n<b>Chat</b>: %s (ID: %d)\n<b>User</b>: %s (ID: %d)\n", matchMessageHTML := fmt.Sprintf("🚨 Matched\n<b>Score</b>: %.2f\n<b>Chat</b>: %s (ID: %d)\n<b>User</b>: %s (ID: %d)\n",
result.score, escapeMarkdown(chatName), chatID, escapeMarkdown(displayName+" ("+username+")"), senderID) result.score, escapeMarkdown(chatName), chatID, displayName+" ("+username+")", senderID)
// Send ntfy notification if config set (use plain text for ntfy) // Send ntfy notification if config set (use plain text for ntfy)
if cfg.NtfyToken != "" || cfg.NtfyTopic != "" { if cfg.NtfyToken != "" || cfg.NtfyTopic != "" {