1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-27 20:48:44 +00:00
This commit is contained in:
InsanusMokrassar 2021-01-06 18:59:26 +06:00
parent 0c1c7d1aa7
commit 8fa5b09de9
3 changed files with 203 additions and 196 deletions

View File

@ -18,6 +18,12 @@ plugins {
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" apply false id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version" apply false
} }
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
private String getCurrentVersionChangelog() { private String getCurrentVersionChangelog() {
OutputStream changelogDataOS = new ByteArrayOutputStream() OutputStream changelogDataOS = new ByteArrayOutputStream()
exec { exec {

View File

@ -28,7 +28,6 @@ repositories {
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" } maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://jitpack.io' }
} }
kotlin { kotlin {
@ -104,7 +103,7 @@ kapt {
arguments { arguments {
arg( arg(
"com.github.matfax.klassindex.IndexSubclasses", "com.github.matfax.klassindex.IndexSubclasses",
"dev.inmo.tgbotapi.types.chat.abstracts.Chat", "dev.inmo.tgbotapi.types.message.content.abstracts.ResendableContent",
// "dev.inmo.tgbotapi.types.message.abstracts.Message", // "dev.inmo.tgbotapi.types.message.abstracts.Message",
// "dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery", // "dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery",
// "dev.inmo.tgbotapi.types.buttons.KeyboardMarkup", // "dev.inmo.tgbotapi.types.buttons.KeyboardMarkup",

View File

@ -11,6 +11,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.Chat import dev.inmo.tgbotapi.types.chat.abstracts.Chat
import dev.inmo.tgbotapi.types.files.abstracts.TelegramMediaFile import dev.inmo.tgbotapi.types.files.abstracts.TelegramMediaFile
import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.message.abstracts.Message
import dev.inmo.tgbotapi.types.message.content.abstracts.ResendableContent
import dev.inmo.tgbotapi.types.polls.Poll import dev.inmo.tgbotapi.types.polls.Poll
import dev.inmo.tgbotapi.types.update.abstracts.Update import dev.inmo.tgbotapi.types.update.abstracts.Update
import dev.inmo.tgbotapi.utils.PreviewFeature import dev.inmo.tgbotapi.utils.PreviewFeature
@ -37,200 +38,201 @@ val result = mutableMapOf<KClass<*>, Set<KClass<*>>>()
fun main() { fun main() {
result[dev.inmo.tgbotapi.types.chat.abstracts.Chat::class] = result[ResendableContent::class] = KlassIndex.getSubclasses(ResendableContent::class).toSet()
setOf(dev.inmo.tgbotapi.types.Bot::class, // result[dev.inmo.tgbotapi.types.chat.abstracts.Chat::class] =
dev.inmo.tgbotapi.types.CommonBot::class, // setOf(dev.inmo.tgbotapi.types.Bot::class,
dev.inmo.tgbotapi.types.CommonUser::class, // dev.inmo.tgbotapi.types.CommonBot::class,
dev.inmo.tgbotapi.types.ExtendedBot::class, // dev.inmo.tgbotapi.types.CommonUser::class,
dev.inmo.tgbotapi.types.User::class, // dev.inmo.tgbotapi.types.ExtendedBot::class,
dev.inmo.tgbotapi.types.chat.abstracts.ChannelChat::class, // dev.inmo.tgbotapi.types.User::class,
dev.inmo.tgbotapi.types.chat.abstracts.GroupChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.ChannelChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.GroupChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.PublicChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.SuperPublicChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.PublicChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.SuperPublicChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.UnknownChatType::class, // dev.inmo.tgbotapi.types.chat.abstracts.SupergroupChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.UsernameChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.UnknownChatType::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChannelChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.UsernameChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChannelChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedGroupChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedPrivateChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedGroupChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedPublicChat::class, // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedPrivateChat::class,
dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedSupergroupChat::class,) // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedPublicChat::class,
result[dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery::class] = // dev.inmo.tgbotapi.types.chat.abstracts.extended.ExtendedSupergroupChat::class,)
setOf(dev.inmo.tgbotapi.types.CallbackQuery.DataCallbackQuery::class, // result[dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery::class] =
dev.inmo.tgbotapi.types.CallbackQuery.GameShortNameCallbackQuery::class, // setOf(dev.inmo.tgbotapi.types.CallbackQuery.DataCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.GameShortNameCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdDataCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdGameShortNameCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdDataCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.MessageCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.InlineMessageIdGameShortNameCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.MessageDataCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.MessageCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.MessageGameShortNameCallbackQuery::class, // dev.inmo.tgbotapi.types.CallbackQuery.MessageDataCallbackQuery::class,
dev.inmo.tgbotapi.types.CallbackQuery.UnknownCallbackQueryType::class) // dev.inmo.tgbotapi.types.CallbackQuery.MessageGameShortNameCallbackQuery::class,
result[dev.inmo.tgbotapi.types.message.abstracts.Message::class] = // dev.inmo.tgbotapi.types.CallbackQuery.UnknownCallbackQueryType::class)
setOf( // result[dev.inmo.tgbotapi.types.message.abstracts.Message::class] =
dev.inmo.tgbotapi.types.message.ChannelEventMessage::class, // setOf(
dev.inmo.tgbotapi.types.message.ChannelMediaGroupMessage::class, // dev.inmo.tgbotapi.types.message.ChannelEventMessage::class,
dev.inmo.tgbotapi.types.message.CommonGroupEventMessage::class, // dev.inmo.tgbotapi.types.message.ChannelMediaGroupMessage::class,
dev.inmo.tgbotapi.types.message.CommonMediaGroupMessage::class, // dev.inmo.tgbotapi.types.message.CommonGroupEventMessage::class,
dev.inmo.tgbotapi.types.message.CommonSupergroupEventMessage::class, // dev.inmo.tgbotapi.types.message.CommonMediaGroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupMessage::class, // dev.inmo.tgbotapi.types.message.CommonSupergroupEventMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.ChannelMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.ChannelMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.CommonGroupMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.CommonMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.CommonGroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.ContentMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.CommonMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.FromChannelGroupMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.ContentMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.GroupEventMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.FromChannelGroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.GroupMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.GroupEventMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.MediaGroupMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.GroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.PossiblyEditedMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.MediaGroupMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.PossiblyForwardedMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.PossiblyEditedMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.PossiblyPaymentMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.PossiblyForwardedMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.PrivateMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.PossiblyPaymentMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.PublicMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.PrivateMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.SignedMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.PublicMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.SupergroupEventMessage::class, // dev.inmo.tgbotapi.types.message.abstracts.SignedMessage::class,
dev.inmo.tgbotapi.types.message.abstracts.UnknownMessageType::class, // dev.inmo.tgbotapi.types.message.abstracts.SupergroupEventMessage::class,
dev.inmo.tgbotapi.types.message.content.abstracts.PossiblySentViaBotCommonMessage::class) // dev.inmo.tgbotapi.types.message.abstracts.UnknownMessageType::class,
result[dev.inmo.tgbotapi.types.actions.BotAction::class] = // dev.inmo.tgbotapi.types.message.content.abstracts.PossiblySentViaBotCommonMessage::class)
setOf(dev.inmo.tgbotapi.types.actions.FindLocationAction::class, // result[dev.inmo.tgbotapi.types.actions.BotAction::class] =
dev.inmo.tgbotapi.types.actions.RecordAudioAction::class, // setOf(dev.inmo.tgbotapi.types.actions.FindLocationAction::class,
dev.inmo.tgbotapi.types.actions.RecordVideoAction::class, // dev.inmo.tgbotapi.types.actions.RecordAudioAction::class,
dev.inmo.tgbotapi.types.actions.RecordVideoNoteAction::class, // dev.inmo.tgbotapi.types.actions.RecordVideoAction::class,
dev.inmo.tgbotapi.types.actions.TypingAction::class, // dev.inmo.tgbotapi.types.actions.RecordVideoNoteAction::class,
dev.inmo.tgbotapi.types.actions.UploadAudioAction::class, // dev.inmo.tgbotapi.types.actions.TypingAction::class,
dev.inmo.tgbotapi.types.actions.UploadDocumentAction::class, // dev.inmo.tgbotapi.types.actions.UploadAudioAction::class,
dev.inmo.tgbotapi.types.actions.UploadPhotoAction::class, // dev.inmo.tgbotapi.types.actions.UploadDocumentAction::class,
dev.inmo.tgbotapi.types.actions.UploadVideoAction::class, // dev.inmo.tgbotapi.types.actions.UploadPhotoAction::class,
dev.inmo.tgbotapi.types.actions.UploadVideoNoteAction::class) // dev.inmo.tgbotapi.types.actions.UploadVideoAction::class,
result[dev.inmo.tgbotapi.types.InlineQueries.abstracts.InlineQuery::class] = // dev.inmo.tgbotapi.types.actions.UploadVideoNoteAction::class)
setOf(dev.inmo.tgbotapi.types.InlineQueries.query.BaseInlineQuery::class, // result[dev.inmo.tgbotapi.types.InlineQueries.abstracts.InlineQuery::class] =
dev.inmo.tgbotapi.types.InlineQueries.query.LocationInlineQuery::class) // setOf(dev.inmo.tgbotapi.types.InlineQueries.query.BaseInlineQuery::class,
result[dev.inmo.tgbotapi.types.InlineQueries.abstracts.InputMessageContent::class] = // dev.inmo.tgbotapi.types.InlineQueries.query.LocationInlineQuery::class)
setOf(dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputContactMessageContent::class, // result[dev.inmo.tgbotapi.types.InlineQueries.abstracts.InputMessageContent::class] =
dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputLocationMessageContent::class, // setOf(dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputContactMessageContent::class,
dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputTextMessageContent::class, // dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputLocationMessageContent::class,
dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputVenueMessageContent::class) // dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputTextMessageContent::class,
result[dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult::class] = // dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent.InputVenueMessageContent::class)
setOf(dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultArticle::class, // result[dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult::class] =
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultContact::class, // setOf(dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultArticle::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultGame::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultContact::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultLocation::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultGame::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultStickerCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultLocation::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultVenue::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultStickerCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.DescribedInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.InlineQueryResultVenue::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.FileInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.DescribedInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.OptionallyTitledInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.FileInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.SizedInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.OptionallyTitledInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbSizedInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.SizedInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbedInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbSizedInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbedWithMimeTypeInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbedInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.TitledInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.ThumbedWithMimeTypeInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.UrlInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.TitledInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.WithInputMessageContentInlineQueryResult::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.UrlInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudio::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.WithInputMessageContentInlineQueryResult::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudioCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudio::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudioCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudioCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocument::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.audio.InlineQueryResultAudioCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocumentCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocument::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocumentCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocumentCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGif::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.document.InlineQueryResultDocumentCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGifCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGif::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGifCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGifCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4Gif::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.gif.InlineQueryResultGifCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4GifCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4Gif::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4GifCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4GifCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhoto::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.mpeg4gif.InlineQueryResultMpeg4GifCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhotoCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhoto::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhotoCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhotoCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideo::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhotoCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideoCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideo::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideoCommon::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideoCached::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoice::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.video.InlineQueryResultVideoCommon::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoiceCached::class, // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoice::class,
dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoiceCommon::class) // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoiceCached::class,
result[dev.inmo.tgbotapi.types.ChatMember.abstracts.ChatMember::class] = // dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoiceCommon::class)
setOf( // result[dev.inmo.tgbotapi.types.ChatMember.abstracts.ChatMember::class] =
dev.inmo.tgbotapi.types.ChatMember.CreatorChatMember::class, // setOf(
dev.inmo.tgbotapi.types.ChatMember.KickedChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.CreatorChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.LeftChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.KickedChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.MemberChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.LeftChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.RestrictedChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.MemberChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.abstracts.AdministratorChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.RestrictedChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.abstracts.BannedChatMember::class, // dev.inmo.tgbotapi.types.ChatMember.abstracts.AdministratorChatMember::class,
dev.inmo.tgbotapi.types.ChatMember.abstracts.SpecialRightsChatMember::class) // dev.inmo.tgbotapi.types.ChatMember.abstracts.BannedChatMember::class,
result[dev.inmo.tgbotapi.types.InputMedia.InputMedia::class] = // dev.inmo.tgbotapi.types.ChatMember.abstracts.SpecialRightsChatMember::class)
setOf(dev.inmo.tgbotapi.types.InputMedia.AudioMediaGroupMemberInputMedia::class, // result[dev.inmo.tgbotapi.types.InputMedia.InputMedia::class] =
dev.inmo.tgbotapi.types.InputMedia.DocumentMediaGroupMemberInputMedia::class, // setOf(dev.inmo.tgbotapi.types.InputMedia.AudioMediaGroupMemberInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.DuratedInputMedia::class, // dev.inmo.tgbotapi.types.InputMedia.DocumentMediaGroupMemberInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.InputMediaAnimation::class, // dev.inmo.tgbotapi.types.InputMedia.DuratedInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.InputMediaAudio::class, // dev.inmo.tgbotapi.types.InputMedia.InputMediaAnimation::class,
dev.inmo.tgbotapi.types.InputMedia.InputMediaDocument::class, // dev.inmo.tgbotapi.types.InputMedia.InputMediaAudio::class,
dev.inmo.tgbotapi.types.InputMedia.InputMediaPhoto::class, // dev.inmo.tgbotapi.types.InputMedia.InputMediaDocument::class,
dev.inmo.tgbotapi.types.InputMedia.InputMediaVideo::class, // dev.inmo.tgbotapi.types.InputMedia.InputMediaPhoto::class,
dev.inmo.tgbotapi.types.InputMedia.MediaGroupMemberInputMedia::class, // dev.inmo.tgbotapi.types.InputMedia.InputMediaVideo::class,
dev.inmo.tgbotapi.types.InputMedia.SizedInputMedia::class, // dev.inmo.tgbotapi.types.InputMedia.MediaGroupMemberInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.ThumbedInputMedia::class, // dev.inmo.tgbotapi.types.InputMedia.SizedInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.TitledInputMedia::class, // dev.inmo.tgbotapi.types.InputMedia.ThumbedInputMedia::class,
dev.inmo.tgbotapi.types.InputMedia.VisualMediaGroupMemberInputMedia::class) // dev.inmo.tgbotapi.types.InputMedia.TitledInputMedia::class,
result[dev.inmo.tgbotapi.types.update.abstracts.Update::class] = // dev.inmo.tgbotapi.types.InputMedia.VisualMediaGroupMemberInputMedia::class)
setOf(dev.inmo.tgbotapi.types.update.CallbackQueryUpdate::class, // result[dev.inmo.tgbotapi.types.update.abstracts.Update::class] =
dev.inmo.tgbotapi.types.update.ChannelPostUpdate::class, // setOf(dev.inmo.tgbotapi.types.update.CallbackQueryUpdate::class,
dev.inmo.tgbotapi.types.update.ChosenInlineResultUpdate::class, // dev.inmo.tgbotapi.types.update.ChannelPostUpdate::class,
dev.inmo.tgbotapi.types.update.EditChannelPostUpdate::class, // dev.inmo.tgbotapi.types.update.ChosenInlineResultUpdate::class,
dev.inmo.tgbotapi.types.update.EditMessageUpdate::class, // dev.inmo.tgbotapi.types.update.EditChannelPostUpdate::class,
dev.inmo.tgbotapi.types.update.InlineQueryUpdate::class, // dev.inmo.tgbotapi.types.update.EditMessageUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.ChannelPostMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.InlineQueryUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditChannelPostMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.ChannelPostMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditChannelPostMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditMessageMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.EditMessageMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MessageMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MediaGroupUpdates.SentMediaGroupUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.MessageMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.MessageUpdate::class, // dev.inmo.tgbotapi.types.update.MediaGroupUpdates.SentMediaGroupUpdate::class,
dev.inmo.tgbotapi.types.update.PollAnswerUpdate::class, // dev.inmo.tgbotapi.types.update.MessageUpdate::class,
dev.inmo.tgbotapi.types.update.PollUpdate::class, // dev.inmo.tgbotapi.types.update.PollAnswerUpdate::class,
dev.inmo.tgbotapi.types.update.PreCheckoutQueryUpdate::class, // dev.inmo.tgbotapi.types.update.PollUpdate::class,
dev.inmo.tgbotapi.types.update.ShippingQueryUpdate::class, // dev.inmo.tgbotapi.types.update.PreCheckoutQueryUpdate::class,
dev.inmo.tgbotapi.types.update.abstracts.BaseEditMessageUpdate::class, // dev.inmo.tgbotapi.types.update.ShippingQueryUpdate::class,
dev.inmo.tgbotapi.types.update.abstracts.BaseMessageUpdate::class, // dev.inmo.tgbotapi.types.update.abstracts.BaseEditMessageUpdate::class,
dev.inmo.tgbotapi.types.update.abstracts.BaseSentMessageUpdate::class, // dev.inmo.tgbotapi.types.update.abstracts.BaseMessageUpdate::class,
dev.inmo.tgbotapi.types.update.abstracts.UnknownUpdate::class) // dev.inmo.tgbotapi.types.update.abstracts.BaseSentMessageUpdate::class,
result[dev.inmo.tgbotapi.types.files.abstracts.TelegramMediaFile::class] = // dev.inmo.tgbotapi.types.update.abstracts.UnknownUpdate::class)
setOf(dev.inmo.tgbotapi.types.files.AnimationFile::class, // result[dev.inmo.tgbotapi.types.files.abstracts.TelegramMediaFile::class] =
dev.inmo.tgbotapi.types.files.AudioFile::class, // setOf(dev.inmo.tgbotapi.types.files.AnimationFile::class,
dev.inmo.tgbotapi.types.files.DocumentFile::class, // dev.inmo.tgbotapi.types.files.AudioFile::class,
dev.inmo.tgbotapi.types.files.File::class, // dev.inmo.tgbotapi.types.files.DocumentFile::class,
dev.inmo.tgbotapi.types.files.PathedFile::class, // dev.inmo.tgbotapi.types.files.File::class,
dev.inmo.tgbotapi.types.files.PhotoSize::class, // dev.inmo.tgbotapi.types.files.PathedFile::class,
dev.inmo.tgbotapi.types.files.Sticker::class, // dev.inmo.tgbotapi.types.files.PhotoSize::class,
dev.inmo.tgbotapi.types.files.VideoFile::class, // dev.inmo.tgbotapi.types.files.Sticker::class,
dev.inmo.tgbotapi.types.files.VideoNoteFile::class, // dev.inmo.tgbotapi.types.files.VideoFile::class,
dev.inmo.tgbotapi.types.files.VoiceFile::class, // dev.inmo.tgbotapi.types.files.VideoNoteFile::class,
dev.inmo.tgbotapi.types.files.abstracts.MimedMediaFile::class, // dev.inmo.tgbotapi.types.files.VoiceFile::class,
dev.inmo.tgbotapi.types.files.abstracts.PlayableMediaFile::class, // dev.inmo.tgbotapi.types.files.abstracts.MimedMediaFile::class,
dev.inmo.tgbotapi.types.files.abstracts.SizedMediaFile::class, // dev.inmo.tgbotapi.types.files.abstracts.PlayableMediaFile::class,
dev.inmo.tgbotapi.types.files.abstracts.ThumbedMediaFile::class) // dev.inmo.tgbotapi.types.files.abstracts.SizedMediaFile::class,
result[dev.inmo.tgbotapi.types.buttons.KeyboardMarkup::class] = // dev.inmo.tgbotapi.types.files.abstracts.ThumbedMediaFile::class)
setOf(dev.inmo.tgbotapi.types.buttons.ForceReply::class, // result[dev.inmo.tgbotapi.types.buttons.KeyboardMarkup::class] =
dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup::class, // setOf(dev.inmo.tgbotapi.types.buttons.ForceReply::class,
dev.inmo.tgbotapi.types.buttons.ReplyKeyboardMarkup::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup::class,
dev.inmo.tgbotapi.types.buttons.ReplyKeyboardRemove::class) // dev.inmo.tgbotapi.types.buttons.ReplyKeyboardMarkup::class,
result[dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.InlineKeyboardButton::class] = // dev.inmo.tgbotapi.types.buttons.ReplyKeyboardRemove::class)
setOf(dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackDataInlineKeyboardButton::class, // result[dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.InlineKeyboardButton::class] =
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackGameInlineKeyboardButton::class, // setOf(dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackDataInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.LoginURLInlineKeyboardButton::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackGameInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.PayInlineKeyboardButton::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.LoginURLInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryCurrentChatInlineKeyboardButton::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.PayInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryInlineKeyboardButton::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryCurrentChatInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.URLInlineKeyboardButton::class, // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryInlineKeyboardButton::class,
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.UnknownInlineKeyboardButton::class) // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.URLInlineKeyboardButton::class,
result[dev.inmo.tgbotapi.types.polls.Poll::class] = // dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.UnknownInlineKeyboardButton::class)
setOf(dev.inmo.tgbotapi.types.polls.MultipleAnswersPoll::class, // result[dev.inmo.tgbotapi.types.polls.Poll::class] =
dev.inmo.tgbotapi.types.polls.QuizPoll::class, // setOf(dev.inmo.tgbotapi.types.polls.MultipleAnswersPoll::class,
dev.inmo.tgbotapi.types.polls.RegularPoll::class, // dev.inmo.tgbotapi.types.polls.QuizPoll::class,
dev.inmo.tgbotapi.types.polls.UnknownPollType::class) // dev.inmo.tgbotapi.types.polls.RegularPoll::class,
// dev.inmo.tgbotapi.types.polls.UnknownPollType::class)
println("import dev.inmo.tgbotapi.utils.PreviewFeature") println("import dev.inmo.tgbotapi.utils.PreviewFeature")
val importsToFuns = result.keys.flatMap { val importsToFuns = result.keys.flatMap {
println("import ${it.qualifiedName}") println("import ${it.qualifiedName}")