Class WebAppData
java.lang.Object
io.micronaut.chatbots.telegram.api.WebAppData
Describes data sent from a Web App to the bot.
WebAppData
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
getData()
void
setButtonText
(@NonNull String buttonText) void
-
Constructor Details
-
WebAppData
public WebAppData()
-
-
Method Details
-
getData
- Returns:
- The data. Be aware that a bad client can send arbitrary data in this field.
-
setData
- Parameters:
data
- The data. Be aware that a bad client can send arbitrary data in this field.
-
getButtonText
- Returns:
- Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.
-
setButtonText
- Parameters:
buttonText
- Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.
-