Package org.drinkless.tdlib
Class TdApi.GetWebAppLinkUrl
- Enclosing class:
- TdApi
Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.
Returns HttpUrl
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Pass true if the current user allowed the bot to send them messages.long
Identifier of the target bot.long
Identifier of the chat in which the link was clicked; 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 internalLinkTypeWebApp.Short name of the Web App. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.GetWebAppLinkUrl
(long chatId, long botUserId, String webAppShortName, String startParameter, boolean allowWriteAccess, TdApi.WebAppOpenParameters parameters) Creates a function, which returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked. -
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 link was clicked; pass 0 if none. -
botUserId
public long botUserIdIdentifier of the target bot. -
webAppShortName
Short name of the Web App. -
startParameter
Start parameter from internalLinkTypeWebApp. -
allowWriteAccess
public boolean allowWriteAccessPass true if the current user allowed the bot to send them messages. -
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
-
GetWebAppLinkUrl
public GetWebAppLinkUrl()Default constructor for a function, which returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.Returns
HttpUrl
-
GetWebAppLinkUrl
public GetWebAppLinkUrl(long chatId, long botUserId, String webAppShortName, String startParameter, boolean allowWriteAccess, TdApi.WebAppOpenParameters parameters) Creates a function, which returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.Returns
HttpUrl
- Parameters:
chatId
- Identifier of the chat in which the link was clicked; pass 0 if none.botUserId
- Identifier of the target bot.webAppShortName
- Short name of the Web App.startParameter
- Start parameter from internalLinkTypeWebApp.allowWriteAccess
- Pass true if the current user allowed the bot to send them messages.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
-