PhotoSize

@Serializable
data class PhotoSize(val fileId: String, val fileUniqueId: String, val width: Int, val height: Int, val fileSize: Int? = null)

This object represents one size of a photo or a file / sticker thumbnail.

Api reference

Constructors

Link copied to clipboard
constructor(fileId: String, fileUniqueId: String, width: Int, height: Int, fileSize: Int? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
val fileSize: Int? = null

Optional. File size in bytes

Link copied to clipboard

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.

Link copied to clipboard
val height: Int

Photo height

Link copied to clipboard
val width: Int

Photo width