Class TdApi.GetMainWebApp
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.MainWebApp>
dev.voroby.springframework.telegram.client.TdApi.GetMainWebApp
- Enclosing class:
- TdApi
Returns information needed to open the main Web App of a bot.
Returns MainWebApp
-
Field Summary
Modifier and TypeFieldDescriptionShort 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
ConstructorDescriptionDefault 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 TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which the Web App is opened; pass 0 if none. -
botUserId
public long botUserIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-