Module tdlight.api

Class TdApi.GetWebAppUrl

Enclosing class:
TdApi

public static final class TdApi.GetWebAppUrl extends TdApi.Function<TdApi.HttpUrl>
Returns an HTTPS URL of a web app to open after keyboardButtonTypeWebApp button is pressed. Returns HttpUrl
  • Field Details

    • botUserId

      public long botUserId
      Identifier of the target bot.
    • url

      public String url
      The URL from the keyboardButtonTypeWebApp button.
    • theme

      public TdApi.ThemeParameters theme
      Preferred web app theme; pass null to use the default theme.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetWebAppUrl

      public GetWebAppUrl()
      Returns an HTTPS URL of a web app to open after keyboardButtonTypeWebApp button is pressed. Returns HttpUrl
    • GetWebAppUrl

      public GetWebAppUrl(long botUserId, String url, TdApi.ThemeParameters theme)
      Returns an HTTPS URL of a web app to open after keyboardButtonTypeWebApp button is pressed. Returns HttpUrl
      Parameters:
      botUserId - long Identifier of the target bot.
      url - String The URL from the keyboardButtonTypeWebApp button.
      theme - ThemeParameters Preferred web app theme; pass null to use the default theme.
    • GetWebAppUrl

      public GetWebAppUrl(DataInput input) throws IOException
      Returns an HTTPS URL of a web app to open after keyboardButtonTypeWebApp button is pressed. Returns HttpUrl
      Throws:
      IOException
  • Method Details