Skip to main content

remove_item

Function remove_item 

Source
pub fn remove_item(key: &str) -> Result<Promise, JsValue>
Expand description

Calls Telegram.WebApp.CloudStorage.removeItem().

§Errors

Returns Err(JsValue) if CloudStorage or the method is unavailable, or if the call fails.

§Examples

use telegram_webapp_sdk::api::cloud_storage::remove_item;
use wasm_bindgen_futures::JsFuture;
JsFuture::from(remove_item("key")?).await?;