public static class TdApi.OpenWebApp extends TdApi.Function<TdApi.WebAppInfo>
Returns WebAppInfo
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the bot, providing the Web App.
|
long |
chatId
Identifier of the chat in which the Web App is opened.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageThreadId
If not 0, the message thread identifier in which the message will be sent.
|
TdApi.WebAppOpenParameters |
parameters
Parameters to use to open the Web App.
|
TdApi.InputMessageReplyTo |
replyTo
Information about the message or story to be replied in the message sent by the Web App; pass null if none.
|
java.lang.String |
url
The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.
|
| Constructor and Description |
|---|
OpenWebApp()
Default constructor for a function, which informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
|
OpenWebApp(long chatId,
long botUserId,
java.lang.String url,
long messageThreadId,
TdApi.InputMessageReplyTo replyTo,
TdApi.WebAppOpenParameters parameters)
Creates a function, which informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
|
| 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 url
public long messageThreadId
public TdApi.InputMessageReplyTo replyTo
public TdApi.WebAppOpenParameters parameters
public static final int CONSTRUCTOR
public OpenWebApp()
Returns WebAppInfo
public OpenWebApp(long chatId,
long botUserId,
java.lang.String url,
long messageThreadId,
TdApi.InputMessageReplyTo replyTo,
TdApi.WebAppOpenParameters parameters)
Returns WebAppInfo
chatId - Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats.botUserId - Identifier of the bot, providing the Web App.url - The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.messageThreadId - If not 0, the message thread identifier in which the message will be sent.replyTo - Information about the message or story to be replied in the message sent by the Web App; pass null if none.parameters - Parameters to use to open the Web App.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object