- Enclosing class:
- TdApi
Informs TDLib that a Web App is being
opened from attachment menu, a
botMenuButton button, an
internalLinkTypeAttachmentMenuBot
link, or an inlineKeyboardButtonTypeWebApp
button. For each bot, a confirmation
alert about data sent to the bot must
be shown once.
Returns
WebAppInfo
-
Field Summary
Modifier and TypeFieldDescriptionShort name of the application; 0-64 English letters, digits, and underscores.long
Identifier of the bot, providing the Web App.long
Identifier of the chat in which the Web App is opened.static final int
long
If not 0, a message thread identifier in which the message will be sent.long
Identifier of the replied message for the message sent by the Web App; 0 if none.Preferred Web App theme; pass null to use the default theme.The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise. -
Constructor Summary
ConstructorDescriptionInforms TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.OpenWebApp
(long chatId, long botUserId, String url, TdApi.ThemeParameters theme, String applicationName, long messageThreadId, long replyToMessageId) Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.OpenWebApp
(DataInput input) Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which the Web App is opened. -
botUserId
public long botUserIdIdentifier of the bot, providing the Web App. -
url
The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise. -
theme
Preferred Web App theme; pass null to use the default theme. -
applicationName
Short name of the application; 0-64 English letters, digits, and underscores. -
messageThreadId
public long messageThreadIdIf not 0, a message thread identifier in which the message will be sent. -
replyToMessageId
public long replyToMessageIdIdentifier of the replied message for the message sent by the Web App; 0 if none. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
OpenWebApp
public OpenWebApp()Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. ReturnsWebAppInfo
-
OpenWebApp
public OpenWebApp(long chatId, long botUserId, String url, TdApi.ThemeParameters theme, String applicationName, long messageThreadId, long replyToMessageId) Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. ReturnsWebAppInfo
- Parameters:
chatId
- long Identifier of the chat in which the Web App is opened.botUserId
- long Identifier of the bot, providing the Web App.url
- String The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise.theme
- ThemeParameters Preferred Web App theme; pass null to use the default theme.applicationName
- String Short name of the application; 0-64 English letters, digits, and underscores.messageThreadId
- long If not 0, a message thread identifier in which the message will be sent.replyToMessageId
- long Identifier of the replied message for the message sent by the Web App; 0 if none.
-
OpenWebApp
Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. ReturnsWebAppInfo
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-