Package dev.inmo.tgbotapi.requests.abstracts

Types

FileId
Link copied to clipboard
common
data class FileId(fileId: String) : InputFile
Contains file id or file url
InputFile
Link copied to clipboard
common
sealed class InputFile
InputFileSerializer
Link copied to clipboard
common
object InputFileSerializer : KSerializer<InputFile>
MultipartFile
Link copied to clipboard
common
data class MultipartFile(file: StorageFile, filename: String) : InputFile
Contains info about file for sending
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

asMultipartFile
Link copied to clipboard
common
inline fun StorageFile.asMultipartFile(): MultipartFile
inline suspend fun ByteReadChannelAllocator.asMultipartFile(fileName: String): MultipartFile
inline suspend fun ByteReadChannel.asMultipartFile(fileName: String): MultipartFile
toInputFile
Link copied to clipboard
fun File.toInputFile(): MultipartFile
fun String.toInputFile(): FileId