Deletes chat data for a specific chat ID from memory.
Telegram chat ID.
Deletes conversation state for the given key from memory.
Conversation composite key.
Deletes user data for a specific user ID from memory.
Telegram user ID.
Retrieves bot data from memory.
Global bot data record.
Retrieves chat data from memory.
Telegram chat ID.
The chat data record for chatId.
Retrieves a snapshot copy of all active conversation states.
A Map clone of conversation states.
Retrieves a copy of scheduled persisted jobs from memory.
An array copy of persisted jobs.
Retrieves user data from memory.
Telegram user ID.
The user data record for userId.
Stores bot data in memory.
Global bot data record to store.
Resolves when saved in memory.
Stores chat data in memory.
Telegram chat ID.
Chat data record to store.
Resolves when saved in memory.
Overwrites the persisted jobs in memory.
Array of persisted jobs.
Resolves when updated.
Stores user data in memory.
Telegram user ID.
User data record to store.
Resolves when saved in memory.
Updates conversation state for the given key in memory.
Conversation composite key.
Current conversation state.
Resolves when updated in memory.
Default in-memory persistence implementation.
Stores user, chat, bot data, and conversation states in memory Maps. Data is reset when the process terminates.
Example