Beispiel #1
0
        public static InlineKeyboardItem Simple(string text, string callbackData, string description = null)
        {
            InlineKeyboardItem keyboard = new InlineKeyboardItem()
            {
                Text   = text,
                CbData = callbackData,
                Desc   = description
            };


            return(keyboard);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }