ajuste de fechas
This commit is contained in:
@ -60,14 +60,14 @@ public class TelegramBot extends TelegramLongPollingBot {
|
||||
|
||||
private void construirResumenNoticias(String chatid) {
|
||||
LocalDate today = LocalDate.now();
|
||||
String fechaInicio = today.format(DateTimeFormatter.ISO_DATE);
|
||||
String fechaInicio = today.minusDays(1).format(DateTimeFormatter.ISO_DATE);
|
||||
String fechaFin = today.plusDays(1).format(DateTimeFormatter.ISO_DATE);
|
||||
|
||||
// Obtener las palabras clave de la API
|
||||
List<String> keywords = ApiService.getAllKeywords();
|
||||
|
||||
// Mensaje base para el encabezado
|
||||
String encabezado = "📢 **Resumen de noticias del día:**\n\n";
|
||||
String encabezado = "📢 **Resumen de noticias relevantes de ayer y hoy:**\n\n";
|
||||
|
||||
// Mensaje base para el pie
|
||||
String pie = "\n📢 ¡Mañana volveremos con más información!";
|
||||
|
Reference in New Issue
Block a user