Animation

data class Animation(fileId: String, fileUniqueId: String, width: Int, height: Int, duration: Int, thumb: PhotoSize?, fileName: String?, mimeType: String?, fileSize: Int?)

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

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

Video width as defined by sender

height

Video height as defined by sender

duration

Duration of the video in seconds as defined by sender

thumb

Optional. Animation thumbnail as defined by sender

fileName

Optional. Original animation filename as defined by sender

mimeType

Optional. MIME type of the file as defined by sender

fileSize

Optional. File size

Constructors

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

duration
Link copied to clipboard
common
val duration: Int
Duration of the video in seconds as defined by sender
fileId
Link copied to clipboard
common
val fileId: String
Identifier for this file, which can be used to download or reuse the file
fileName
Link copied to clipboard
common
val fileName: String? = null
Optional.
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
Video height as defined by sender
mimeType
Link copied to clipboard
common
val mimeType: String? = null
Optional.
thumb
Link copied to clipboard
common
val thumb: PhotoSize? = null
Optional.
width
Link copied to clipboard
common
val width: Int
Video width as defined by sender