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
      The 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 The 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