mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 11:38:45 +00:00
add cached Sticker InlineQueryResult
This commit is contained in:
parent
849e21bf15
commit
ef127b85dc
@ -98,6 +98,8 @@ const val voiceDurationField = "voice_duration"
|
|||||||
const val documentUrlField = "document_url"
|
const val documentUrlField = "document_url"
|
||||||
const val documentFileIdField = "document_file_id"
|
const val documentFileIdField = "document_file_id"
|
||||||
|
|
||||||
|
const val stickerFileIdField = "sticker_file_id"
|
||||||
|
|
||||||
const val gameShortNameField = "game_short_name"
|
const val gameShortNameField = "game_short_name"
|
||||||
|
|
||||||
const val thumbUrlField = "thumb_url"
|
const val thumbUrlField = "thumb_url"
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.github.insanusmokrassar.TelegramBotAPI.types.InlineQueries.InlineQueryResult
|
||||||
|
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.InlineQueries.abstracts.InputMessageContent
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ParseMode.ParseMode
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.InlineQueries.InlineQueryResult.abstracts.*
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoice
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.InlineQueries.InlineQueryResult.abstracts.results.voice.InlineQueryResultVoiceCached
|
||||||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ParseMode.parseModeField
|
||||||
|
import kotlinx.serialization.Optional
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
|
||||||
|
data class InlineQueryResultStickerCached(
|
||||||
|
@SerialName(idField)
|
||||||
|
override val id: String,
|
||||||
|
@SerialName(stickerFileIdField)
|
||||||
|
override val fileId: FileId,
|
||||||
|
@SerialName(replyMarkupField)
|
||||||
|
@Optional
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
@SerialName(inputMessageContentField)
|
||||||
|
@Optional
|
||||||
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
|
) : InlineQueryResult, WithInputMessageContentInlineQueryResult, WithFileIdInlineQueryResult {
|
||||||
|
override val type: String = "sticker"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user