Fix: Make VariantSelectionMenu an instance method to access _mapper
This commit is contained in:
parent
f1d8bfc317
commit
a4678c919c
@ -337,7 +337,7 @@ namespace TeleBot.UI
|
|||||||
return new InlineKeyboardMarkup(buttons);
|
return new InlineKeyboardMarkup(buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static InlineKeyboardMarkup VariantSelectionMenu(Product product, int quantity, string? multiBuyId = null, List<string>? selectedVariants = null)
|
public InlineKeyboardMarkup VariantSelectionMenu(Product product, int quantity, string? multiBuyId = null, List<string>? selectedVariants = null)
|
||||||
{
|
{
|
||||||
var buttons = new List<InlineKeyboardButton[]>();
|
var buttons = new List<InlineKeyboardButton[]>();
|
||||||
selectedVariants ??= new List<string>();
|
selectedVariants ??= new List<string>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user