InputFile

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

Common type for all files in Telegram Bot API which can be sent via requests like dev.inmo.tgbotapi.requests.send.media.SendDocument. You may use methods like MPPFile.asMultipartFile when you want to send files from your file system, but you should remember about restrictions[https://core.telegram.org/bots/api#sending-files] 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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val fileId: String

Inheritors

Link copied to clipboard
Link copied to clipboard