From b7f8e0217f80d3f0a1b6a47ee2848aa651eee100 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 11 Mar 2021 20:52:24 +0600 Subject: [PATCH] update --- tgbotapi.core/src/jvmTest/kotlin/Temporal.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt b/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt index 2592673efe..bdd90212f7 100644 --- a/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt +++ b/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt @@ -11,6 +11,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup import dev.inmo.tgbotapi.types.chat.abstracts.Chat import dev.inmo.tgbotapi.types.dice.DiceAnimationType import dev.inmo.tgbotapi.types.files.abstracts.TelegramMediaFile +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.message.content.abstracts.ResendableContent import dev.inmo.tgbotapi.types.passport.PassportElementError @@ -41,7 +42,8 @@ val result = mutableMapOf, Set>>() fun main() { - result[DiceAnimationType::class] = KlassIndex.getSubclasses(DiceAnimationType::class).toSet() + result[Update::class] = KlassIndex.getSubclasses(Update::class).toSet() + result[ChatEvent::class] = KlassIndex.getSubclasses(ChatEvent::class).toSet() println("import dev.inmo.tgbotapi.utils.PreviewFeature") val importsToFuns = result.keys.flatMap { println("import ${it.qualifiedName}")