@Serializable(with = InputFileSerializer::class)
sealed class InputFile

Common type for all files in Telegram Bot API which can be sent via requests like You may use methods like MPPFile.asMultipartFile when you want to send files from your file system, but you should remember about restrictions[] in Telegram for bots. In case you wish to send file by its url, use FileId and pass your url as FileId.fileId

See also



Link copied to clipboard
object Companion


Link copied to clipboard
abstract val fileId: String