Module tdlight.api

Class TdApi.InternalLinkTypeWebApp

Enclosing class:
TdApi

public static final class TdApi.InternalLinkTypeWebApp extends TdApi.InternalLinkType
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given webAppShortName. Process received foundWebApp by showing a confirmation dialog if needed, then calling getWebAppLinkUrl and opening the returned URL.
  • Field Details

    • botUsername

      public String botUsername
      Username of the bot that owns the Web App.
    • webAppShortName

      public String webAppShortName
      Short name of the Web App.
    • startParameter

      public String startParameter
      Start parameter to be passed to getWebAppLinkUrl.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • InternalLinkTypeWebApp

      public InternalLinkTypeWebApp()
      The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given webAppShortName. Process received foundWebApp by showing a confirmation dialog if needed, then calling getWebAppLinkUrl and opening the returned URL.
    • InternalLinkTypeWebApp

      public InternalLinkTypeWebApp(String botUsername, String webAppShortName, String startParameter)
      The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given webAppShortName. Process received foundWebApp by showing a confirmation dialog if needed, then calling getWebAppLinkUrl and opening the returned URL.
      Parameters:
      botUsername - String Username of the bot that owns the Web App.
      webAppShortName - String Short name of the Web App.
      startParameter - String Start parameter to be passed to getWebAppLinkUrl.
    • InternalLinkTypeWebApp

      public InternalLinkTypeWebApp(DataInput input) throws IOException
      The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given webAppShortName. Process received foundWebApp by showing a confirmation dialog if needed, then calling getWebAppLinkUrl and opening the returned URL.
      Throws:
      IOException
  • Method Details