Package dev.inmo.tgbotapi.types.media

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface DuratedTelegramMedia : TelegramMedia
Link copied to clipboard
interface MediaGroupMemberTelegramMedia : TelegramMedia, TextedOutput
Link copied to clipboard
object MediaGroupMemberTelegramMediaSerializer : KSerializer<MediaGroupMemberTelegramMedia>
Link copied to clipboard
interface SizedTelegramMedia : TelegramMedia
Link copied to clipboard
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
interface ThumbedTelegramMedia : TelegramMedia
Link copied to clipboard
interface TitledTelegramMedia : TelegramMedia
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
fun TelegramMediaPhoto(file: InputFile, entities: TextSourcesList): TelegramMediaPhoto
fun TelegramMediaPhoto(    file: InputFile,     text: String? = null,     parseMode: ParseMode? = null): TelegramMediaPhoto
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
fun DocumentFile.toTelegramMediaDocument(textSources: TextSourcesList = emptyList()): TelegramMediaDocument
fun DocumentFile.toTelegramMediaDocument(text: String? = null, parseMode: ParseMode? = null): TelegramMediaDocument
Link copied to clipboard
fun PhotoSize.toTelegramMediaPhoto(textSources: TextSourcesList = emptyList()): TelegramMediaPhoto
fun PhotoSize.toTelegramMediaPhoto(text: String? = null, parseMode: ParseMode? = null): TelegramMediaPhoto