Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun clearAll(telegramId: Long)

Clear all class data entries. Used to remove previous context data.

Link copied to clipboard
open override fun del(telegramId: Long, key: String)

Delete value

Link copied to clipboard
open suspend override fun delAsync(telegramId: Long, key: String): Deferred<Boolean>

Asynchronously delete value

Link copied to clipboard
open operator override fun get(telegramId: Long, key: String): String?

Get value

open operator fun get(user: User, key: String): String?

Shortcut operator function for getting value.

Link copied to clipboard
open suspend override fun getAsync(telegramId: Long, key: String): Deferred<String?>

Asynchronously get value

Link copied to clipboard
open operator override fun set(telegramId: Long, key: String, value: String?)

Set new value.

open operator fun set(user: User, key: String, value: String?)

Shortcut operator function for value setting.

Link copied to clipboard
open suspend override fun setAsync(telegramId: Long, key: String, value: String?): Deferred<Boolean>

Asynchronously set new value