imprimir mensaje
This commit is contained in:
@ -185,6 +185,7 @@ public class TelegramBot extends TelegramLongPollingBot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder mensaje = new StringBuilder("📰 <b>Noticias sobre " + query + ":</b>\n\n");
|
StringBuilder mensaje = new StringBuilder("📰 <b>Noticias sobre " + query + ":</b>\n\n");
|
||||||
|
System.out.println(mensaje);
|
||||||
for (NewsArticle noticia : noticias) {
|
for (NewsArticle noticia : noticias) {
|
||||||
mensaje.append("🔹 <a href=\"")
|
mensaje.append("🔹 <a href=\"")
|
||||||
.append(noticia.getUrl())
|
.append(noticia.getUrl())
|
||||||
|
Reference in New Issue
Block a user