Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable(with = TelegramMediaSerializer::class)
interface TelegramMedia
Link copied to clipboard

Represents a general file to be sent. See https://core.telegram.org/bots/api#inputmediadocument

Link copied to clipboard
Link copied to clipboard
object TelegramMediaSerializer : KSerializer<TelegramMedia>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun TelegramMediaAnimation(file: InputFile, entities: TextSourcesList, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaAnimation
fun TelegramMediaAnimation(file: InputFile, text: String? = null, parseMode: ParseMode? = null, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaAnimation
Link copied to clipboard
fun TelegramMediaAudio(file: InputFile, entities: TextSourcesList, duration: Long? = null, performer: String? = null, title: String? = null, thumb: InputFile? = null): TelegramMediaAudio
fun TelegramMediaAudio(file: InputFile, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, performer: String? = null, title: String? = null, thumb: InputFile? = null): TelegramMediaAudio
Link copied to clipboard
fun TelegramMediaDocument(file: InputFile, entities: TextSourcesList, thumb: InputFile? = null, disableContentTypeDetection: Boolean? = null): TelegramMediaDocument
fun TelegramMediaDocument(file: InputFile, text: String? = null, parseMode: ParseMode? = null, thumb: InputFile? = null, disableContentTypeDetection: Boolean? = null): TelegramMediaDocument
Link copied to clipboard
Link copied to clipboard
fun TelegramMediaVideo(file: InputFile, entities: TextSourcesList, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaVideo
fun TelegramMediaVideo(file: InputFile, text: String? = null, parseMode: ParseMode? = null, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaVideo
Link copied to clipboard
fun AudioFile.toTelegramMediaAudio(textSources: TextSourcesList = emptyList(), title: String? = this.title): TelegramMediaAudio
fun AudioFile.toTelegramMediaAudio(text: String? = null, parseMode: ParseMode? = null, title: String? = this.title): TelegramMediaAudio
Link copied to clipboard