Function clear
Source pub fn clear() -> Result<Promise, JsValue>
Expand description
Calls Telegram.WebApp.CloudStorage.clear()
.
§Errors
Returns Err(JsValue)
if CloudStorage or the method is unavailable, or if
the call fails.
§Examples
use telegram_webapp_sdk::api::cloud_storage::clear;
use wasm_bindgen_futures::JsFuture;
JsFuture::from(clear()?).await?;