mirror of
https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git
synced 2026-11-15 08:03:00 +00:00
update build scripts
This commit is contained in:
1 parent
15c0f9979a
commit
fbbd8e640c
3 files changed
+14
-2
No files matched your search
+2
@@ -52,6 +52,8 @@ val chatIdToMessageIdentifierSerializer = PairSerializer(
|
||||
|
||||
val messageContentSerializer = PolymorphicSerializer<MessageContent>(MessageContent::class)
|
||||
|
||||
inline fun <K> KeyValueRepo<K, MessageContent>.asMessageContentCache() = SimpleKeyValueMessageContentCache(this)
|
||||
|
||||
inline fun KeyValueRepo<String, String>.asMessageContentCache(
|
||||
serialFormatCreator: (SerializersModule) -> StringFormat = { Json { serializersModule = it } }
|
||||
): StandardKeyValueRepo<Pair<ChatId, MessageIdentifier>, MessageContent> {
|
||||
|
||||
Reference in new issue
Block a user