private async Task <bool> FourthStep() { if (int.TryParse(message.Text, out int interval)) { advert.Interval = interval; advert.GroupId = groupForAdvert.GroupId; dbManager.AddAdvert(advert); Worker.StartNewAdvert(advert); await bot.SendTextMessageAsync(message.From.Id, $"The advert was added for {groupForAdvert.Title} with {advert.Interval} minutes"); return(true); } await bot.SendTextMessageAsync(message.From.Id, $"Incorrect interval, try again"); return(false); }