otro más

This commit is contained in:
2025-03-14 17:34:32 +01:00
parent 8f1bfe5dda
commit 313badec04

View File

@ -101,6 +101,8 @@ public class TelegramBot extends TelegramLongPollingBot {
if (!titles.isEmpty()) { if (!titles.isEmpty()) {
mensaje.append("🔹 **").append(keyword).append("**:\n"); mensaje.append("🔹 **").append(keyword).append("**:\n");
for (String title : titles) { for (String title : titles) {
title = title.replaceAll("([_*\\[\\]()~`>#+\\-=|{}.!])", "\\\\$1");
mensaje.append(" 🔹🔹 ").append(title).append("\n"); mensaje.append(" 🔹🔹 ").append(title).append("\n");
} }
} else { } else {