imprimir mensaje

This commit is contained in:
2025-03-28 16:53:17 +01:00
parent 0dce6d7606
commit deaee1656b

View File

@ -185,6 +185,7 @@ public class TelegramBot extends TelegramLongPollingBot {
}
StringBuilder mensaje = new StringBuilder("📰 <b>Noticias sobre " + query + ":</b>\n\n");
System.out.println(mensaje);
for (NewsArticle noticia : noticias) {
mensaje.append("🔹 <a href=\"")
.append(noticia.getUrl())