public static class CallbackQueryResponse.CallbackQueryResponseBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
CallbackQueryResponse |
build()
Builds the CallbackQueryResponse object
|
CallbackQueryResponse.CallbackQueryResponseBuilder |
cacheTime(Integer cacheTime)
*Optional*
Sets the maximum amount of time in seconds that the result of the callback query may be cached client-side.
|
CallbackQueryResponse.CallbackQueryResponseBuilder |
showAlert(boolean showAlert)
*Optional*
Sets whether an alert will be shown by the client instead of a notification at the top of the chat screen.
|
CallbackQueryResponse.CallbackQueryResponseBuilder |
text(String text)
*Optional*
Sets the text of the notification.
|
CallbackQueryResponse.CallbackQueryResponseBuilder |
url(URL url)
*Optional*
Sets the URL that will be opened by the user's client.
|
public CallbackQueryResponse.CallbackQueryResponseBuilder text(String text)
text - The text of the notification to be sentpublic CallbackQueryResponse.CallbackQueryResponseBuilder showAlert(boolean showAlert)
showAlert - True if an alert will be shown, false if a notification will be shownpublic CallbackQueryResponse.CallbackQueryResponseBuilder url(URL url)
url - The URL you want to open when this CallbackQueryResponse is sentpublic CallbackQueryResponse.CallbackQueryResponseBuilder cacheTime(Integer cacheTime)
cacheTime - The cache time for this responsepublic CallbackQueryResponse build()
Copyright © 2017. All rights reserved.