InputFile

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

Properties

fileId
Link copied to clipboard
common
abstract val fileId: String

Inheritors

FileId
Link copied to clipboard
MultipartFile
Link copied to clipboard