init

Function init 

Source
pub fn init() -> Result<(), JsValue>
Expand description

Initializes Telegram.WebApp.locationManager.

§Errors

Returns Err(JsValue) if the JavaScript call fails or locationManager is missing.

§Examples

use telegram_webapp_sdk::api::location_manager::init;
init()?;