pub struct InternalLinkTypeWebApp {
pub bot_username: String,
pub web_app_short_name: String,
pub start_parameter: String,
pub mode: WebAppOpenMode,
}Expand description
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot. If the bot is restricted for the current user, then show an error message. Otherwise, call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot can be added to attachment or side menu, but isn’t added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App
Fields§
§bot_username: StringUsername of the bot that owns the Web App
web_app_short_name: StringShort name of the Web App
start_parameter: StringStart parameter to be passed to getWebAppLinkUrl
mode: WebAppOpenModeThe mode in which the Web App must be opened
Trait Implementations§
Source§impl Clone for InternalLinkTypeWebApp
impl Clone for InternalLinkTypeWebApp
Source§fn clone(&self) -> InternalLinkTypeWebApp
fn clone(&self) -> InternalLinkTypeWebApp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more