pub struct OpenLinkOptions {
pub try_instant_view: Option<bool>,
}Expand description
Options supported by crate::webapp::TelegramWebApp::open_link.
§Examples
use telegram_webapp_sdk::webapp::{OpenLinkOptions, TelegramWebApp};
if let Some(app) = TelegramWebApp::instance() {
let options = OpenLinkOptions {
try_instant_view: Some(true)
};
let _ = app.open_link("https://example.com", Some(&options));
}Fields§
§try_instant_view: Option<bool>Trait Implementations§
Source§impl Debug for OpenLinkOptions
impl Debug for OpenLinkOptions
Source§impl Default for OpenLinkOptions
impl Default for OpenLinkOptions
Source§fn default() -> OpenLinkOptions
fn default() -> OpenLinkOptions
Returns the “default value” for a type. Read more