Package org.drinkless.tdlib
Class TdApi.GetMainWebApp
- Enclosing class:
- TdApi
Returns information needed to open the main Web App of a bot.
Returns MainWebApp
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
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.Parameters to use to open the Web App.Start parameter from internalLinkTypeMainWebApp. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.WebAppOpenParameters parameters) 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 org.drinkless.tdlib.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. If the bot is restricted for the current user, then show an error instead of calling the method. -
startParameter
Start parameter from internalLinkTypeMainWebApp. -
parameters
Parameters to use to open the Web App. -
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.WebAppOpenParameters parameters) 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. If the bot is restricted for the current user, then show an error instead of calling the method.startParameter
- Start parameter from internalLinkTypeMainWebApp.parameters
- Parameters to use to open the Web App.
-
-
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
-