mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
ChosenInlineResult now is sealed
This commit is contained in:
parent
732e2a3906
commit
067e36adc6
@ -10,6 +10,7 @@
|
|||||||
* New interface `MyCommandsRequest` (also see `Bot API 5.3` below)
|
* New interface `MyCommandsRequest` (also see `Bot API 5.3` below)
|
||||||
* New extensions `TextSourcesList#make*String` for all parse modes
|
* New extensions `TextSourcesList#make*String` for all parse modes
|
||||||
* All `MessageContent` subclasses now serializable
|
* All `MessageContent` subclasses now serializable
|
||||||
|
* `ChosenInlineResult` was replaced and modified to be sealed
|
||||||
* `Behaviour Builder`:
|
* `Behaviour Builder`:
|
||||||
* ❗️ All triggers (`on*` extensions) have been modified to work in parallel by some marker by default (new parameter
|
* ❗️ All triggers (`on*` extensions) have been modified to work in parallel by some marker by default (new parameter
|
||||||
`markerFactory`, in most cases will work async for different chats)
|
`markerFactory`, in most cases will work async for different chats)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult
|
package dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.InlineQueries.abstracts.ChosenInlineResult
|
|
||||||
|
|
||||||
data class BaseChosenInlineResult(
|
data class BaseChosenInlineResult(
|
||||||
override val resultId: InlineQueryIdentifier,
|
override val resultId: InlineQueryIdentifier,
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
|
||||||
|
sealed interface ChosenInlineResult {
|
||||||
|
val resultId: InlineQueryIdentifier //chosen temporary, can be changed
|
||||||
|
val user: User
|
||||||
|
val inlineMessageId: InlineMessageIdentifier?
|
||||||
|
val query: String
|
||||||
|
}
|
@ -1,7 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult
|
package dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.InlineQueries.abstracts.ChosenInlineResult
|
|
||||||
import dev.inmo.tgbotapi.types.location.StaticLocation
|
import dev.inmo.tgbotapi.types.location.StaticLocation
|
||||||
|
|
||||||
data class LocationChosenInlineResult(
|
data class LocationChosenInlineResult(
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.types.InlineQueries.abstracts
|
package dev.inmo.tgbotapi.types.InlineQueries.abstracts
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult.ChosenInlineResult
|
||||||
|
|
||||||
interface ChosenInlineResult {
|
@Deprecated("Replaced", ReplaceWith("ChosenInlineResult", "dev.inmo.tgbotapi.types.InlineQueries.ChosenInlineResult.ChosenInlineResult"))
|
||||||
val resultId: InlineQueryIdentifier //chosen temporary, can be changed
|
typealias ChosenInlineResult = ChosenInlineResult
|
||||||
val user: User
|
|
||||||
val inlineMessageId: InlineMessageIdentifier?
|
|
||||||
val query: String
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user