Module tdlight.api

Class TdApi.SendWebAppData

Enclosing class:
TdApi

public static final class TdApi.SendWebAppData extends TdApi.Function<TdApi.Ok>
Sends data received from a keyboardButtonTypeWebApp web app to a bot. Returns Ok
  • Field Details

    • botUserId

      public long botUserId
      Identifier of the target bot.
    • buttonText

      public String buttonText
      Text of the keyboardButtonTypeWebApp button, which opened the web app.
    • data

      public String data
      Received data.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SendWebAppData

      public SendWebAppData()
      Sends data received from a keyboardButtonTypeWebApp web app to a bot. Returns Ok
    • SendWebAppData

      public SendWebAppData(long botUserId, String buttonText, String data)
      Sends data received from a keyboardButtonTypeWebApp web app to a bot. Returns Ok
      Parameters:
      botUserId - long Identifier of the target bot.
      buttonText - String Text of the keyboardButtonTypeWebApp button, which opened the web app.
      data - String Received data.
    • SendWebAppData

      public SendWebAppData(DataInput input) throws IOException
      Sends data received from a keyboardButtonTypeWebApp web app to a bot. Returns Ok
      Throws:
      IOException
  • Method Details