Package dev.inmo.tgbotapi.requests.abstracts

Types

FileId
Link copied to clipboard

Contains file id or file url

common
data class FileId(fileId: String) : InputFile
InputFile
Link copied to clipboard
common
sealed class InputFile
MultipartFile
Link copied to clipboard

Contains info about file for sending

common
data class MultipartFile(file: StorageFile, mimeType: String, filename: String) : InputFile
MultipartRequest
Link copied to clipboard
common
interface MultipartRequest<T : Any> : Request<T>
Request
Link copied to clipboard
common
interface Request<T : Any>
SimpleRequest
Link copied to clipboard
common
interface SimpleRequest<T : Any> : Request<T>

Functions

toInputFile
Link copied to clipboard
fun File.toInputFile(): MultipartFile
fun String.toInputFile(): FileId
fun String.toInputFile(): FileId