Class TdApi.InternalLinkTypeMainWebApp
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InternalLinkType
dev.voroby.springframework.telegram.client.TdApi.InternalLinkTypeMainWebApp
- Enclosing class:
- TdApi
The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, show a disclaimer about Mini Apps being third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. Then, use getMainWebApp with the given start parameter and open the returned URL as a Web App.
-
Field Summary
Modifier and TypeFieldDescriptionUsername of the bot.static final int
Identifier uniquely determining type of the object.boolean
True, if the Web App must be opened in the compact mode instead of the full-size mode.Start parameter to be passed to getMainWebApp. -
Constructor Summary
ConstructorDescriptionThe link is a link to the main Web App of a bot.InternalLinkTypeMainWebApp
(String botUsername, String startParameter, boolean isCompact) The link is a link to 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.Object
toString
-
Field Details
-
botUsername
Username of the bot. -
startParameter
Start parameter to be passed to getMainWebApp. -
isCompact
public boolean isCompactTrue, if the Web App must be opened in the compact mode instead of the full-size mode. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InternalLinkTypeMainWebApp
public InternalLinkTypeMainWebApp()The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, show a disclaimer about Mini Apps being third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. Then, use getMainWebApp with the given start parameter and open the returned URL as a Web App. -
InternalLinkTypeMainWebApp
The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, show a disclaimer about Mini Apps being third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. Then, use getMainWebApp with the given start parameter and open the returned URL as a Web App.- Parameters:
botUsername
- Username of the bot.startParameter
- Start parameter to be passed to getMainWebApp.isCompact
- True, if the Web App must be opened in the compact mode instead of the full-size mode.
-
-
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
-