Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable(with = TelegramMediaSerializer::class)
sealed interface TelegramFreeMedia : TelegramMedia
Link copied to clipboard
@Serializable(with = TelegramMediaSerializer::class)
sealed 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
object TelegramMediaSerializer : KSerializer<TelegramMedia>
Link copied to clipboard
@Serializable(with = TelegramMediaSerializer::class)
sealed interface TelegramPaidMedia : TelegramMedia
Link copied to clipboard
@Serializable
data class TelegramPaidMediaPhoto(val file: InputFile) : VisualTelegramPaidMedia
Link copied to clipboard
@Serializable
data class TelegramPaidMediaVideo(val file: InputFile, val thumb: InputFile? = null, val width: Int? = null, val height: Int? = null, val duration: Long? = null, val supportsStreaming: Boolean = false) : VisualTelegramPaidMedia, SizedTelegramMedia, DuratedTelegramMedia, ThumbedTelegramMedia
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun TelegramMediaAnimation(file: InputFile, entities: TextSourcesList, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaAnimation
fun TelegramMediaAnimation(file: InputFile, text: String? = null, parseMode: ParseMode? = null, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false, 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
fun TelegramMediaPhoto(file: InputFile, entities: TextSourcesList, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false): TelegramMediaPhoto
fun TelegramMediaPhoto(file: InputFile, text: String? = null, parseMode: ParseMode? = null, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false): TelegramMediaPhoto
Link copied to clipboard
fun TelegramMediaVideo(file: InputFile, entities: TextSourcesList, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false, width: Int? = null, height: Int? = null, duration: Long? = null, thumb: InputFile? = null): TelegramMediaVideo
fun TelegramMediaVideo(file: InputFile, text: String? = null, parseMode: ParseMode? = null, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false, 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
fun PhotoSize.toTelegramMediaPhoto(textSources: TextSourcesList = emptyList(), spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false): TelegramMediaPhoto
fun PhotoSize.toTelegramMediaPhoto(text: String? = null, parseMode: ParseMode? = null, spoilered: Boolean = false, showCaptionAboveMedia: Boolean = false): TelegramMediaPhoto