public override async void OnStateChange(Chat chat) { DateTime firstDate = DateTime.Now.AddDays(1); DateTime secondDate = firstDate.AddDays(6); List <string> dates = DbServices.GetIntermediateDates(firstDate, secondDate); await ServicesMessageController.SendMessageAsync( chat, "Введіть дату прибуття", Keyboards.NextDates(dates)); }
public override async void OnStateChange(Chat chat) { responder.userTempData.TryGetValue("DateOfArrival", out string firstDateString); DateTime firstDate = DateTime.Parse(firstDateString).AddDays(1); DateTime secondDate = firstDate.AddDays(6); List <string> dates = DbServices.GetIntermediateDates(firstDate, secondDate); await ServicesMessageController.SendMessageAsync( chat, "Введіть дату відбуття", Keyboards.NextDates(dates)); }