Skip to content

Commit 9c2c3cc

Browse files
committed
Use the new url parameter in answerCallbackQuery to create buttons that open your bot with user-specific parameters
1 parent 6d01548 commit 9c2c3cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/pengrad/telegrambot/request/AnswerCallbackQuery.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ public AnswerCallbackQuery showAlert(boolean showAlert) {
2121
return add("show_alert", showAlert);
2222
}
2323

24+
public AnswerCallbackQuery url(String url) {
25+
return add("url", url);
26+
}
2427
}

0 commit comments

Comments
 (0)