InlineQueryResultCachedSticker

data class InlineQueryResultCachedSticker(id: String, stickerFileId: String, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, type: String) : InlineQueryResult

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker. Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.

Parameters

id

Unique identifier for this result, 1-64 bytes

stickerFileId

A valid file identifier of the sticker

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the sticker

type

Type of the result, must be sticker

Constructors

InlineQueryResultCachedSticker
Link copied to clipboard
common
fun InlineQueryResultCachedSticker(id: String, stickerFileId: String, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)
Unique identifier for this result, 1-64 bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): InlineKeyboardMarkup?
component4
Link copied to clipboard
common
operator fun component4(): InputMessageContent?
component5
Link copied to clipboard
common
operator fun component5(): String
copy
Link copied to clipboard
common
fun copy(id: String, stickerFileId: String, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String): InlineQueryResultCachedSticker
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
stickerFileId
Link copied to clipboard
common
val stickerFileId: String
A valid file identifier of the sticker
type
Link copied to clipboard
common
val type: String
Type of the result, must be sticker