Package org.drinkless.tdlib
Class TdApi.InternalLinkTypeSideMenuBot
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InternalLinkType
org.drinkless.tdlib.TdApi.InternalLinkTypeSideMenuBot
- Enclosing class:
- TdApi
The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL 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.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.URL to be passed to getWebAppUrl. -
Constructor Summary
ConstructorsConstructorDescriptionThe link is a link to a bot, which can be installed to the side menu.InternalLinkTypeSideMenuBot(String botUsername, String url, boolean isCompact) The link is a link to a bot, which can be installed to the side menu. -
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. -
url
URL to be passed to getWebAppUrl. -
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
-
InternalLinkTypeSideMenuBot
public InternalLinkTypeSideMenuBot()The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL and open the returned URL as a Web App. -
InternalLinkTypeSideMenuBot
The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL and open the returned URL as a Web App.- Parameters:
botUsername- Username of the bot.url- URL to be passed to getWebAppUrl.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
-