StorageFile

data class StorageFile(fileName: String, inputSource: () -> Input)

Contains info about file, which potentially can be sent to telegram system.

See also

dev.inmo.tgbotapi.utils.StorageFileInfo

Parameters

fileName

Filename

inputSource

Lambda which able to allocate Input for uploading/manipulating data

Constructors

Link copied to clipboard
fun StorageFile(fileName: String, inputSource: () -> Input)

Functions

Link copied to clipboard
fun generateCustomName(): String

This methods is required for random generation of name for keeping warranties about unique file name

Properties

Link copied to clipboard
val fileName: String
Link copied to clipboard
val input: Input

Extensions

Link copied to clipboard
inline fun StorageFile.asMultipartFile(): MultipartFile