markdown
This commit is contained in:
@ -99,12 +99,12 @@ public class TelegramBot extends TelegramLongPollingBot {
|
|||||||
List<String> titles = ApiService.getTitlesByKeyword(keyword, fechaInicio, fechaFin);
|
List<String> titles = ApiService.getTitlesByKeyword(keyword, fechaInicio, fechaFin);
|
||||||
|
|
||||||
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) {
|
||||||
mensaje.append(" - ").append(title).append("\n");
|
mensaje.append(" \\- ").append(title).append("\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mensaje.append("🔹 **").append(keyword).append("**: No hay noticias disponibles.\n");
|
mensaje.append("🔹 \\*\\*").append(keyword).append("**: No hay noticias disponibles.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enviar el mensaje para la palabra clave
|
// Enviar el mensaje para la palabra clave
|
||||||
|
Reference in New Issue
Block a user