File

fun File(fileId: String, fileUniqueId: String, fileSize: Int? = null, filePath: String? = null)

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.

fileSize

Optional. File size, if known

filePath

Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.