//[docs](../../index.md)/[dev.inmo.tgbotapi.types.files](index.md)/[asFile](as-file.md) # asFile [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)