public async ValueTask <ReplyKeyboardMarkup> GenerateKeyBoards() { List <string> regions = await provider.regionService.GetAllRegions(); List <IEnumerable <KeyboardButton> > buttRegions = new List <IEnumerable <KeyboardButton> >(); regions.ForEach((item) => { KeyboardButton button = new KeyboardButton() { Text = item }; buttRegions.Add(button.TransformToList()); }); KeyboardButton butt = new KeyboardButton("Back"); IEnumerable <KeyboardButton> backButton = butt.TransformToList(); buttRegions.Add(backButton); IEnumerable <IEnumerable <KeyboardButton> > resButt = buttRegions; return(new ReplyKeyboardMarkup { Keyboard = resButt, ResizeKeyboard = true }); }