From f1deb931473cb6045b6469a6cf9e3e5f0ee5b06e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 2 Mar 2023 19:33:15 +0600 Subject: [PATCH] changes in InlineQuery --- CHANGELOG.md | 3 ++- .../inmo/tgbotapi/types/InlineQueries/query/InlineQuery.kt | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 }