Class TdApi.GetMainWebApp

Enclosing class:
TdApi

public static class TdApi.GetMainWebApp extends TdApi.Function<TdApi.MainWebApp>
Returns information needed to open the main Web App of a bot.

Returns MainWebApp

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Short name of the current application; 0-64 English letters, digits, and underscores.
    long
    Identifier of the target bot.
    long
    Identifier of the chat in which the Web App is opened; pass 0 if none.
    static final int
    Identifier uniquely determining type of the object.
    Start parameter from internalLinkTypeMainWebApp.
    Preferred Web App theme; pass null to use the default theme.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns information needed to open the main Web App of a bot.
    GetMainWebApp(long chatId, long botUserId, String startParameter, TdApi.ThemeParameters theme, String applicationName)
    Creates a function, which returns information needed to open the main Web App of a bot.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat in which the Web App is opened; pass 0 if none.
    • botUserId

      public long botUserId
      Identifier of the target bot.
    • startParameter

      public String startParameter
      Start parameter from internalLinkTypeMainWebApp.
    • theme

      public TdApi.ThemeParameters theme
      Preferred Web App theme; pass null to use the default theme.
    • applicationName

      public String applicationName
      Short name of the current application; 0-64 English letters, digits, and underscores.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetMainWebApp

      public GetMainWebApp()
      Default constructor for a function, which returns information needed to open the main Web App of a bot.

      Returns MainWebApp

    • GetMainWebApp

      public GetMainWebApp(long chatId, long botUserId, String startParameter, TdApi.ThemeParameters theme, String applicationName)
      Creates a function, which returns information needed to open the main Web App of a bot.

      Returns MainWebApp

      Parameters:
      chatId - Identifier of the chat in which the Web App is opened; pass 0 if none.
      botUserId - Identifier of the target bot.
      startParameter - Start parameter from internalLinkTypeMainWebApp.
      theme - Preferred Web App theme; pass null to use the default theme.
      applicationName - Short name of the current application; 0-64 English letters, digits, and underscores.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR