예제 #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);
        }
예제 #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);
        }
예제 #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);
        }