Skip to main content

Save to Bot Data

Category: Processing

Description: Allows your bot to save and remember information. You can save a piece of data (like text or a number) with a unique "key" (a name for the data). You can also choose to associate this data with a specific user or chat.

Text​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
DatatexttrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next

Number​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
DatanumbertrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next

Boolean​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
DatabooleantrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next

Text Array​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
Datatext-arraytrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next

Number Array​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
Datanumber-arraytrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next

JSON​

Inputs​

NameTypeRequiredDescription
KeytexttrueThe unique identifier or variable name to save the data under
DatajsontrueThe data to save
User IDnumberfalseThe user identifier to scope the data
Chat IDnumberfalseThe chat identifier to scope the data

Output Event Triggers​

Name
Next