package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.response.BaseResponse;

/**
 * Stas Parshin
 * 07 May 2016
 */
public class AnswerCallbackQuery extends BaseRequest<AnswerCallbackQuery, BaseResponse> {

    public AnswerCallbackQuery(String callbackQueryId) {
        super(BaseResponse.class);
        add("callback_query_id", callbackQueryId);
    }

    public AnswerCallbackQuery text(String text) {
        return add("text", text);
    }

    public AnswerCallbackQuery showAlert(boolean showAlert) {
        return add("show_alert", showAlert);
    }

}

@@ -576,10 +576,97 @@
 %0A    %7D%0A%0A
+    public AnswerCallbackQuery url(String url) %7B%0A        return add(%22url%22, url);%0A    %7D%0A
 %7D%0A

Use the new url parameter in answerCallbackQuery to create buttons that open your bot with user-specific parameters