public static class TdApi.GetWebAppLinkUrl extends TdApi.Function<TdApi.HttpUrl>
Returns HttpUrl
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowWriteAccess
Pass true if the current user allowed the bot to send them messages.
|
long |
botUserId
Identifier of the target bot.
|
long |
chatId
Identifier of the chat in which the link was clicked; pass 0 if none.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.WebAppOpenParameters |
parameters
Parameters to use to open the Web App.
|
java.lang.String |
startParameter
Start parameter from internalLinkTypeWebApp.
|
java.lang.String |
webAppShortName
Short name of the Web App.
|
| Constructor and Description |
|---|
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.
|
GetWebAppLinkUrl(long chatId,
long botUserId,
java.lang.String webAppShortName,
java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long botUserId
public java.lang.String webAppShortName
public java.lang.String startParameter
public boolean allowWriteAccess
public TdApi.WebAppOpenParameters parameters
public static final int CONSTRUCTOR
public GetWebAppLinkUrl()
Returns HttpUrl
public GetWebAppLinkUrl(long chatId,
long botUserId,
java.lang.String webAppShortName,
java.lang.String startParameter,
boolean allowWriteAccess,
TdApi.WebAppOpenParameters parameters)
Returns HttpUrl
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object