diff --git a/CHANGELOG.md b/CHANGELOG.md index 637a774544..9f6f1d5279 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## 6.0.3 * `Core`: - * `User` in `CallbackQuery` now is `CommonUser` as well as `from` + * `User` in `CallbackQuery` now is `CommonUser` as well as in `from` + * `User` in `InlineQuery` now is `CommonUser` as well as in `from` * `BehaviourBuilder`: * Fixes in `DeepLink` triggers and waiters diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/query/InlineQuery.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/query/InlineQuery.kt index da90c82f88..8caafa8835 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/query/InlineQuery.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/query/InlineQuery.kt @@ -3,10 +3,16 @@ package dev.inmo.tgbotapi.types.InlineQueries.query import dev.inmo.tgbotapi.abstracts.FromUser import dev.inmo.tgbotapi.types.InlineQueryIdentifier import dev.inmo.tgbotapi.types.chat.ChatType +import dev.inmo.tgbotapi.types.chat.CommonUser +import dev.inmo.tgbotapi.types.chat.User sealed interface InlineQuery : FromUser { val id: InlineQueryIdentifier val query: String val offset: String val chatType: ChatType? + + override val from: CommonUser + override val user: CommonUser + get() = from }