Sticker

data class Sticker(fileId: String, fileUniqueId: String, width: Int, height: Int, isAnimated: Boolean, thumb: PhotoSize?, emoji: String?, setName: String?, maskPosition: MaskPosition?, fileSize: Int?)

This object represents a sticker.

Parameters

fileId

Identifier for this file, which can be used to download or reuse the file

fileUniqueId

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

width

Sticker width

height

Sticker height

isAnimated

True, if the sticker is animated

thumb

Optional. Sticker thumbnail in the .WEBP or .JPG format

emoji

Optional. Emoji associated with the sticker

setName

Optional. Name of the sticker set to which the sticker belongs

maskPosition

Optional. For mask stickers, the position where the mask should be placed

fileSize

Optional. File size

Constructors

Sticker
Link copied to clipboard
common
fun Sticker(fileId: String, fileUniqueId: String, width: Int, height: Int, isAnimated: Boolean, thumb: PhotoSize? = null, emoji: String? = null, setName: String? = null, maskPosition: MaskPosition? = null, fileSize: Int? = null)
Identifier for this file, which can be used to download or reuse the file

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): Int?
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): Int
component4
Link copied to clipboard
common
operator fun component4(): Int
component5
Link copied to clipboard
common
operator fun component5(): Boolean
component6
Link copied to clipboard
common
operator fun component6(): PhotoSize?
component7
Link copied to clipboard
common
operator fun component7(): String?
component8
Link copied to clipboard
common
operator fun component8(): String?
component9
Link copied to clipboard
common
operator fun component9(): MaskPosition?
copy
Link copied to clipboard
common
fun copy(fileId: String, fileUniqueId: String, width: Int, height: Int, isAnimated: Boolean, thumb: PhotoSize? = null, emoji: String? = null, setName: String? = null, maskPosition: MaskPosition? = null, fileSize: Int? = null): Sticker
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

emoji
Link copied to clipboard
common
val emoji: String? = null
Optional.
fileId
Link copied to clipboard
common
val fileId: String
Identifier for this file, which can be used to download or reuse the file
fileSize
Link copied to clipboard
common
val fileSize: Int? = null
Optional.
fileUniqueId
Link copied to clipboard
common
val fileUniqueId: String
Unique identifier for this file, which is supposed to be the same over time and for different bots.
height
Link copied to clipboard
common
val height: Int
Sticker height
isAnimated
Link copied to clipboard
common
val isAnimated: Boolean
True, if the sticker is animated
maskPosition
Link copied to clipboard
common
val maskPosition: MaskPosition? = null
Optional.
setName
Link copied to clipboard
common
val setName: String? = null
Optional.
thumb
Link copied to clipboard
common
val thumb: PhotoSize? = null
Optional.
width
Link copied to clipboard
common
val width: Int
Sticker width