public ProductAllPhotoMessage BuildMessage() { db = new MarketBotDbContext(); PhotoListMedia = new List <InputMediaBase>(10); MediaGroupPhoto = new MediaGroup(); MediaGroupPhoto.FsIdTelegramFileId = new Dictionary <int, string>(10); GetPhotoList(); MediaGroupPhoto.ListMedia = PhotoListMedia; BackBtn = new Telegram.Bot.Types.InlineKeyboardButtons.InlineKeyboardCallbackButton("Назад", BuildCallData(Bot.ProductBot.GetProductCmd, ProductBot.ModuleName, ProductId)); base.TextMessage = "Вернуться назад"; base.MessageReplyMarkup = new InlineKeyboardMarkup( new[] { new[] { BackBtn }, }); return(this); }
public PickupPointListMessage() { BackBtn = new Telegram.Bot.Types.InlineKeyboardButtons.InlineKeyboardCallbackButton("Назад", BuildCallData(Bot.OrderBot.MethodOfObtainingListCmd, Bot.OrderBot.ModuleName)); }