//[docs](../../index.md)/[dev.inmo.tgbotapi.types.files](index.md) # Package dev.inmo.tgbotapi.types.files ## Types | Name | Summary | |---|---| | [AnimationFile](-animation-file/index.md)| [common]
Content
data class [AnimationFile](-animation-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **width**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **height**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **duration**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **thumb**: [PhotoSize](-photo-size/index.md)?, **fileName**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **mimeType**: [MimeType](../dev.inmo.tgbotapi.utils/-mime-type/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [MimedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-mimed-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md), [PlayableMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-playable-media-file/index.md), [CustomNamedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-custom-named-media-file/index.md), [SizedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-sized-media-file/index.md)


| | [AudioFile](-audio-file/index.md)| [common]
Content
data class [AudioFile](-audio-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **duration**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **performer**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **title**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **fileName**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **mimeType**: [MimeType](../dev.inmo.tgbotapi.utils/-mime-type/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **thumb**: [PhotoSize](-photo-size/index.md)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [CustomNamedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-custom-named-media-file/index.md), [MimedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-mimed-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md), [PlayableMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-playable-media-file/index.md), [TitledMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-titled-media-file/index.md), [Performerable](../dev.inmo.tgbotapi.CommonAbstracts/-performerable/index.md)


| | [DocumentFile](-document-file/index.md)| [common]
Content
data class [DocumentFile](-document-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **thumb**: [PhotoSize](-photo-size/index.md)?, **mimeType**: [MimeType](../dev.inmo.tgbotapi.utils/-mime-type/index.md)?, **fileName**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [MimedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-mimed-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md), [CustomNamedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-custom-named-media-file/index.md)


| | [File](-file/index.md)| [common]
Content
data class [File](-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md)


| | [PathedFile](-pathed-file/index.md)| [common]
Content
data class [PathedFile](-pathed-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **filePath**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md)


| | [Photo](index.md#%5Bdev.inmo.tgbotapi.types.files%2FPhoto%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)| [common]
Content
typealias [Photo](index.md#%5Bdev.inmo.tgbotapi.types.files%2FPhoto%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081) = [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[PhotoSize](-photo-size/index.md)>


| | [PhotoSize](-photo-size/index.md)| [common]
Content
data class [PhotoSize](-photo-size/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **width**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **height**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [SizedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-sized-media-file/index.md)


| | [Sticker](-sticker/index.md)| [common]
Content
data class [Sticker](-sticker/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **width**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **height**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **thumb**: [PhotoSize](-photo-size/index.md)?, **emoji**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **stickerSetName**: [StickerSetName](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FStickerSetName%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)?, **isAnimated**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), **maskPosition**: [MaskPosition](../dev.inmo.tgbotapi.types.stickers/-mask-position/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [SizedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-sized-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md)


| | [VideoFile](-video-file/index.md)| [common]
Content
data class [VideoFile](-video-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **width**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **height**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **duration**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **thumb**: [PhotoSize](-photo-size/index.md)?, **fileName**: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?, **mimeType**: [MimeType](../dev.inmo.tgbotapi.utils/-mime-type/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [CustomNamedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-custom-named-media-file/index.md), [MimedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-mimed-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md), [PlayableMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-playable-media-file/index.md), [SizedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-sized-media-file/index.md)


| | [VideoNoteFile](-video-note-file/index.md)| [common]
Content
data class [VideoNoteFile](-video-note-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **width**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **duration**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **thumb**: [PhotoSize](-photo-size/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [ThumbedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-thumbed-media-file/index.md), [PlayableMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-playable-media-file/index.md), [SizedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-sized-media-file/index.md)


| | [VoiceFile](-voice-file/index.md)| [common]
Content
data class [VoiceFile](-voice-file/index.md)(**fileId**: [FileId](../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.md), **fileUniqueId**: [FileUniqueId](../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FFileUniqueId%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **duration**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?, **mimeType**: [MimeType](../dev.inmo.tgbotapi.utils/-mime-type/index.md)?, **fileSize**: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)?) : [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md), [MimedMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-mimed-media-file/index.md), [PlayableMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-playable-media-file/index.md)


| ## Functions | Name | Summary | |---|---| | [asAudioFile](as-audio-file.md)| [common]
Content
fun [VoiceFile](-voice-file/index.md).[asAudioFile](as-audio-file.md)(performer: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, title: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, fileName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null): [AudioFile](-audio-file/index.md)


| | [asBytes](as-bytes.md)| [jvm]
Content
fun [PathedFile](-pathed-file/index.md#%5Bdev.inmo.tgbotapi.types.files%2FPathedFile%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[asBytes](as-bytes.md)(telegramAPIUrlsKeeper: [TelegramAPIUrlsKeeper](../dev.inmo.tgbotapi.utils/-telegram-a-p-i-urls-keeper/index.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)


| | [asDocumentFile](as-document-file.md)| [common]
Content
inline fun [TelegramMediaFile](../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.md).[asDocumentFile](as-document-file.md)(): [DocumentFile](-document-file/index.md)


| | [asFile](as-file.md)| [jvm]
Content
fun [PathedFile](-pathed-file/index.md#%5Bdev.inmo.tgbotapi.types.files%2FPathedFile%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[asFile](as-file.md)(telegramAPIUrlsKeeper: [TelegramAPIUrlsKeeper](../dev.inmo.tgbotapi.utils/-telegram-a-p-i-urls-keeper/index.md), dest: [File](https://docs.oracle.com/javase/8/docs/api/java/io/File.html) = File.createTempFile(this.fileUniqueId, this.filename), defaultBufferSize: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = DEFAULT_BUFFER_SIZE): [File](https://docs.oracle.com/javase/8/docs/api/java/io/File.html)


| | [asStream](as-stream.md)| [jvm]
Content
fun [PathedFile](-pathed-file/index.md#%5Bdev.inmo.tgbotapi.types.files%2FPathedFile%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[asStream](as-stream.md)(telegramAPIUrlsKeeper: [TelegramAPIUrlsKeeper](../dev.inmo.tgbotapi.utils/-telegram-a-p-i-urls-keeper/index.md)): [InputStream](https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html)


| | [asVoiceFile](as-voice-file.md)| [common]
Content
fun [AudioFile](-audio-file/index.md).[asVoiceFile](as-voice-file.md)(): [VoiceFile](-voice-file/index.md)


| | [biggest](biggest.md)| [common]
Content
fun [Photo](index.md#%5Bdev.inmo.tgbotapi.types.files%2FPhoto%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081).[biggest](biggest.md)(): [PhotoSize](-photo-size/index.md)?


| | [fullUrl](full-url.md)| [common]
Content
fun [PathedFile](-pathed-file/index.md).[fullUrl](full-url.md)(keeper: [TelegramAPIUrlsKeeper](../dev.inmo.tgbotapi.utils/-telegram-a-p-i-urls-keeper/index.md)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)


| | [resolveFileURL](resolve-file-u-r-l.md)| [common]
Content
fun [TelegramAPIUrlsKeeper](../dev.inmo.tgbotapi.utils/-telegram-a-p-i-urls-keeper/index.md).[resolveFileURL](resolve-file-u-r-l.md)(file: [PathedFile](-pathed-file/index.md)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)


| | [toInputMediaVideo](to-input-media-video.md)| [common]
Content
inline fun [VideoFile](-video-file/index.md).[toInputMediaVideo](to-input-media-video.md)(textSources: [TextSourcesList](../dev.inmo.tgbotapi.CommonAbstracts/index.md#%5Bdev.inmo.tgbotapi.CommonAbstracts%2FTextSourcesList%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)): [InputMediaVideo](../dev.inmo.tgbotapi.types.InputMedia/-input-media-video/index.md)
inline fun [VideoFile](-video-file/index.md).[toInputMediaVideo](to-input-media-video.md)(caption: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, parseMode: [ParseMode](../dev.inmo.tgbotapi.types.ParseMode/-parse-mode/index.md)? = null): [InputMediaVideo](../dev.inmo.tgbotapi.types.InputMedia/-input-media-video/index.md)


| ## Properties | Name | Summary | |---|---| | [filename](filename.md)| [common] val [PathedFile](-pathed-file/index.md).[filename](filename.md): [FileName](../dev.inmo.tgbotapi.utils/index.md#%5Bdev.inmo.tgbotapi.utils%2FFileName%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)
|