public static InlineKeyboardItem Simple(string text, string callbackData, string description = null) { InlineKeyboardItem keyboard = new InlineKeyboardItem() { Text = text, CbData = callbackData, Desc = description }; return(keyboard); }
public static InlineKeyboardItem OpenUrl(string buttonText, string url, OpenMode openMode = OpenMode.Webview, string description = null, string callbackDataTrigger = null) { InlineKeyboardItem keyboard = new InlineKeyboardItem { Url = url, OpenIn = openMode, Desc = description, Text = buttonText, CbData = callbackDataTrigger }; return(keyboard); }
public static InlineKeyboardItem Payment(string buttonText, int amount, string refId, string description, Currency currency = Model.Currency.IRR) { InlineKeyboardItem keyboard = new InlineKeyboardItem { Amount = amount, Currency = currency, RefId = refId, Desc = description, Text = buttonText, }; return(keyboard); }