BotContextMapImpl

Constructors

Link copied to clipboard
constructor()

Functions

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): T?

Get value

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

Shortcut operator function for getting value.

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

Asynchronously get value

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

Set new value.

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

Shortcut operator function for value setting.

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

Asynchronously set new value