Package org.drinkless.tdlib
Class TdApi.InternalLinkTypeWebApp
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InternalLinkType
org.drinkless.tdlib.TdApi.InternalLinkTypeWebApp
- Enclosing class:
- TdApi
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. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being a third-party apps instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.InternalLinkType
TdApi.InternalLinkType.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionUsername of the bot that owns the Web App.static final intIdentifier uniquely determining type of the object.booleanTrue, if the Web App must be opened in a compact mode instead of a full-size mode.Start parameter to be passed to getWebAppLinkUrl.Short name of the Web App. -
Constructor Summary
ConstructorsConstructorDescriptionThe link is a link to a Web App.InternalLinkTypeWebApp(String botUsername, String webAppShortName, String startParameter, boolean isCompact) The link is a link to a Web App. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
botUsername
Username of the bot that owns the Web App. -
webAppShortName
Short name of the Web App. -
startParameter
Start parameter to be passed to getWebAppLinkUrl. -
isCompact
public boolean isCompactTrue, if the Web App must be opened in a compact mode instead of a full-size mode. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being a third-party apps instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App. -
InternalLinkTypeWebApp
public InternalLinkTypeWebApp(String botUsername, String webAppShortName, String startParameter, boolean isCompact) 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. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being a third-party apps instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App.- Parameters:
botUsername- Username of the bot that owns the Web App.webAppShortName- Short name of the Web App.startParameter- Start parameter to be passed to getWebAppLinkUrl.isCompact- True, if the Web App must be opened in a compact mode instead of a full-size mode.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.InternalLinkType- Returns:
- this.CONSTRUCTOR
-