BotMate
Search…
🏬
Storage
Store user data using our Storage API

Set

You can store a specific value using .set function from Storage API. Here is an example:
await Storage.set(`key`, `value`);
Value could be either string or json.

Get

You can get the value from bot storage using .get function. Here is an example:
const value = await Storage.get(`key`);
If the value is stored in JSON it will be parsed automaticaly.

Delete

You can delete a specific value using .del function from Storage API. Here is an example:
await Storage.del(`key`);
Copy link
Outline
Set
Get
Delete