Как сделать InlineKeyboardMarkup?

Впервые делаю InlineKeyboard для Telegram и InlineKeyboard не выводится, где у меня ошибка?

SendMessage

public SendMessage sendMsg(Message message, String text) {
        SendMessage sendMessage = new SendMessage();
        sendMessage.enableMarkdown(true);
        sendMessage.setChatId(message.getChatId().toString());
        sendMessage.setText(text);
        try {
            execute(sendMessage);
        } catch (TelegramApiException e) {
            e.printStackTrace();
        }
        return sendMessage;
    }

ReplyKeyboard

public ReplyKeyboard getinlineKeyboardMarkup()  {
        InlineKeyboardMarkup inlineKeyboardMarkup = new InlineKeyboardMarkup();
        InlineKeyboardButton inlineKeyboardButton = new InlineKeyboardButton();
        inlineKeyboardButton.setText("Смотреть");
        inlineKeyboardButton.setUrl(url);
        List<InlineKeyboardButton> keyboardButtonsRow = new ArrayList<>();
        keyboardButtonsRow.add(inlineKeyboardButton);
        List<List<InlineKeyboardButton>> rowList = new ArrayList<>();
        rowList.add(keyboardButtonsRow);
        inlineKeyboardMarkup.setKeyboard(rowList);

        return inlineKeyboardMarkup;
    }

kino

public void kino(Update update) {
        CloseableHttpClient httpclient = HttpClients.createDefault();
        HttpGet httpget = new HttpGet("https://videocdn.tv/api/short?api_token=&id=6089");
        HttpResponse response = httpclient.execute(httpget);
        String json = EntityUtils.toString(response.getEntity());


        JsonNode jsonNode = new JsonMapper().readTree(json);
        for (JsonNode data : jsonNode.get("data")) {
            String url = String.valueOf(data.get("iframe_src"));
            this.url = url;
            String per = String.valueOf(data.get("title"));
            this.per = per;
        }
        try {
            SendMessage sms = sendMsg(update.getMessage(), per);
            sms.setReplyMarkup(getinlineKeyboardMarkup());
        } catch (Exception e) {
            System.out.println("Can't send");
        }
    }

Ответы (0 шт):