public InitialCatalogueStep(long chatId, IBotClient client) : base(chatId, client) { CallbackActions.Add("Back", BackAction); KeyboardMarkup = new KeyboardMarkup(KeyboardTools.GetCategoriesButtonRow(CommandName)); NextStep = new ShowCatalogueProductsStep(ChatId, BotClient); }
public override async Task MainAction(BotUpdate update, IBotClient clien) { NextStep = new SpecifyOrderProductsStep(ChatId, BotClient, Data); var keyboard = new KeyboardMarkup(KeyboardTools.GetCategoriesButtonRow(CommandName)); await SendMessageAsync(Message, keyboardMarkup : keyboard); }