Class WebAppData

java.lang.Object
io.micronaut.chatbots.telegram.api.WebAppData

public class WebAppData extends Object
Describes data sent from a Web App to the bot. WebAppData
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • WebAppData

      public WebAppData()
  • Method Details

    • getData

      @NonNull public @NonNull String getData()
      Returns:
      The data. Be aware that a bad client can send arbitrary data in this field.
    • setData

      public void setData(@NonNull @NonNull String data)
      Parameters:
      data - The data. Be aware that a bad client can send arbitrary data in this field.
    • getButtonText

      @NonNull public @NonNull String 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

      public void setButtonText(@NonNull @NonNull String buttonText)
      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.