public Task <bool> Handle(UnknownCommand command, CancellationToken cancellationToken) { Destination destination = new Destination { ChannelId = command.ChannelId, UserId = command.UserId, Messenger = command.Messenger, }; var text = $"Команду '{command.Text}' я не знаю. Я молод и пока только учусь. Попроси меня о другом: \r\n" + string.Join("\r\n", CommandUtil.GetAllCommands().Select(c => c.GetCommandDescription()).Select(cd => $"\t* '{cd.Command}': {cd.Hint ?? string.Empty}")); var botResponse = new BotResponse { Text = text }; _messageSender.SendAsync(destination, botResponse); return(Task.FromResult(true)); }