PhotoSize

data class PhotoSize(fileId: String, fileUniqueId: String, width: Int, height: Int, fileSize: Int?)

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

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

Photo width

height

Photo height

fileSize

Optional. File size

Constructors

PhotoSize
Link copied to clipboard
common
fun PhotoSize(fileId: String, fileUniqueId: String, width: Int, height: Int, 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
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(): Int?
copy
Link copied to clipboard
common
fun copy(fileId: String, fileUniqueId: String, width: Int, height: Int, fileSize: Int? = null): PhotoSize
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

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
Photo height
width
Link copied to clipboard
common
val width: Int
Photo width