DeviceStorage
This object is used to access the device's local storage.
See https://core.telegram.org/bots/webapps#devicestorage for more information.
Functions
Clears all key-value pairs from the storage.
Clears all key-value pairs from the storage. This function suspends until the result is available and returns the result directly or throws an exception if an error occurred.
Clears all key-value pairs from the storage. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.
Retrieves the value associated with a key.
Retrieves the value associated with a key. This function suspends until the result is available and returns the result directly or throws an exception if an error occurred.
Retrieves the value associated with a key. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.
Removes the key-value pair associated with a key.
Removes the key-value pair associated with a key. This function suspends until the result is available and returns the result directly or throws an exception if an error occurred.
Removes the key-value pair associated with a key. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.
Stores a key-value pair.
Stores a key-value pair. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.