Skip to main content

get_items

Function get_items 

Source
pub fn get_items(keys: &[&str]) -> Result<Promise, JsValue>
Expand description

Calls Telegram.WebApp.CloudStorage.getItems().

§Errors

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

§Examples

use telegram_webapp_sdk::api::cloud_storage::get_items;
use wasm_bindgen_futures::JsFuture;
let _ = JsFuture::from(get_items(&["a", "b"])?).await?;