pub async fn open_web_app(
chat_id: i64,
bot_user_id: i64,
url: String,
theme: Option<ThemeParameters>,
application_name: String,
message_thread_id: i64,
reply_to: Option<InputMessageReplyTo>,
client_id: i32,
) -> Result<WebAppInfo, Error>Expand description
Informs TDLib that a Web App is being opened from the 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
§Arguments
chat_id- Identifier of the chat in which the Web App is opened. The Web App can’t be opened in secret chatsbot_user_id- Identifier of the bot, providing the Web Appurl- The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwisetheme- Preferred Web App theme; pass null to use the default themeapplication_name- Short name of the application; 0-64 English letters, digits, and underscoresmessage_thread_id- If not 0, the message thread identifier in which the message will be sentreply_to- Information about the message or story to be replied in the message sent by the Web App; pass null if noneclient_id- The client id to send the request to