Function open_web_app

Source
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 chats
  • bot_user_id - 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
  • theme - Preferred Web App theme; pass null to use the default theme
  • application_name - Short name of the application; 0-64 English letters, digits, and underscores
  • message_thread_id - If not 0, the message thread identifier in which the message will be sent
  • reply_to - Information about the message or story to be replied in the message sent by the Web App; pass null if none
  • client_id - The client id to send the request to