This commit is contained in:
InsanusMokrassar 2023-03-02 20:33:49 +06:00
parent f1deb93147
commit f616a02f7c
3 changed files with 5 additions and 3 deletions

View File

@ -3,10 +3,11 @@ package dev.inmo.tgbotapi.types.InlineQueries.query
import dev.inmo.tgbotapi.types.InlineQueryIdentifier import dev.inmo.tgbotapi.types.InlineQueryIdentifier
import dev.inmo.tgbotapi.types.chat.User import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.chat.ChatType import dev.inmo.tgbotapi.types.chat.ChatType
import dev.inmo.tgbotapi.types.chat.CommonUser
data class BaseInlineQuery( data class BaseInlineQuery(
override val id: InlineQueryIdentifier, override val id: InlineQueryIdentifier,
override val from: User, override val from: CommonUser,
override val query: String, override val query: String,
override val offset: String, override val offset: String,
override val chatType: ChatType? override val chatType: ChatType?

View File

@ -3,11 +3,12 @@ package dev.inmo.tgbotapi.types.InlineQueries.query
import dev.inmo.tgbotapi.types.InlineQueryIdentifier import dev.inmo.tgbotapi.types.InlineQueryIdentifier
import dev.inmo.tgbotapi.types.chat.User import dev.inmo.tgbotapi.types.chat.User
import dev.inmo.tgbotapi.types.chat.ChatType import dev.inmo.tgbotapi.types.chat.ChatType
import dev.inmo.tgbotapi.types.chat.CommonUser
import dev.inmo.tgbotapi.types.location.Location import dev.inmo.tgbotapi.types.location.Location
data class LocationInlineQuery( data class LocationInlineQuery(
override val id: InlineQueryIdentifier, override val id: InlineQueryIdentifier,
override val from: User, override val from: CommonUser,
override val query: String, override val query: String,
override val offset: String, override val offset: String,
override val chatType: ChatType?, override val chatType: ChatType?,

View File

@ -12,7 +12,7 @@ internal data class RawInlineQuery(
@SerialName(idField) @SerialName(idField)
val id: InlineQueryIdentifier, val id: InlineQueryIdentifier,
@SerialName(fromField) @SerialName(fromField)
val from: User, val from: CommonUser,
@SerialName(queryField) @SerialName(queryField)
val query: String, val query: String,
@SerialName(offsetField) @SerialName(offsetField)