docs

# TelegramMediaFile

interface TelegramMediaFile
Content copied to clipboard

Declare common part of media files in Telegram. Note: it is not representation of JVM `File` type

## Properties

fileId
Link copied to clipboard
abstract val fileId : FileId
Content copied to clipboard
fileSize
Link copied to clipboard
abstract val fileSize : Long ?
Content copied to clipboard
fileUniqueId
Link copied to clipboard
abstract val fileUniqueId : FileUniqueId
Content copied to clipboard

## Inheritors

AnimationFile
Link copied to clipboard
AudioFile
Link copied to clipboard
DocumentFile
Link copied to clipboard
File
Link copied to clipboard
MimedMediaFile
Link copied to clipboard
PassportFile
Link copied to clipboard
PathedFile
Link copied to clipboard
PlayableMediaFile
Link copied to clipboard
SizedMediaFile
Link copied to clipboard
Sticker
Link copied to clipboard
ThumbedMediaFile
Link copied to clipboard
VideoFile
Link copied to clipboard
VideoNoteFile
Link copied to clipboard
VoiceFile
Link copied to clipboard

## Extensions

asAnimatedSticker
Link copied to clipboard
inline fun TelegramMediaFile . asAnimatedSticker (): AnimatedSticker ?
Content copied to clipboard
asAnimationFile
Link copied to clipboard
inline fun TelegramMediaFile . asAnimationFile (): AnimationFile ?
Content copied to clipboard
asAudioFile
Link copied to clipboard
inline fun TelegramMediaFile . asAudioFile (): AudioFile ?
Content copied to clipboard
asDocumentFile
Link copied to clipboard
inline fun TelegramMediaFile . asDocumentFile (): DocumentFile
Content copied to clipboard
inline fun TelegramMediaFile . asDocumentFile (): DocumentFile ?
Content copied to clipboard
asFile
Link copied to clipboard
inline fun TelegramMediaFile . asFile (): File ?
Content copied to clipboard
asMimedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . asMimedMediaFile (): MimedMediaFile ?
Content copied to clipboard
asPathedFile
Link copied to clipboard
inline fun TelegramMediaFile . asPathedFile (): PathedFile ?
Content copied to clipboard
asPhotoSize
Link copied to clipboard
inline fun TelegramMediaFile . asPhotoSize (): PhotoSize ?
Content copied to clipboard
asPlayableMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . asPlayableMediaFile (): PlayableMediaFile ?
Content copied to clipboard
asSimpleSticker
Link copied to clipboard
inline fun TelegramMediaFile . asSimpleSticker (): SimpleSticker ?
Content copied to clipboard
asSizedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . asSizedMediaFile (): SizedMediaFile ?
Content copied to clipboard
asSticker
Link copied to clipboard
inline fun TelegramMediaFile . asSticker (): Sticker ?
Content copied to clipboard
asThumbedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . asThumbedMediaFile (): ThumbedMediaFile ?
Content copied to clipboard
asVideoFile
Link copied to clipboard
inline fun TelegramMediaFile . asVideoFile (): VideoFile ?
Content copied to clipboard
asVideoNoteFile
Link copied to clipboard
inline fun TelegramMediaFile . asVideoNoteFile (): VideoNoteFile ?
Content copied to clipboard
asVideoSticker
Link copied to clipboard
inline fun TelegramMediaFile . asVideoSticker (): VideoSticker ?
Content copied to clipboard
asVoiceFile
Link copied to clipboard
inline fun TelegramMediaFile . asVoiceFile (): VoiceFile ?
Content copied to clipboard
requireAnimatedSticker
Link copied to clipboard
inline fun TelegramMediaFile . requireAnimatedSticker (): AnimatedSticker
Content copied to clipboard
requireAnimationFile
Link copied to clipboard
inline fun TelegramMediaFile . requireAnimationFile (): AnimationFile
Content copied to clipboard
requireAudioFile
Link copied to clipboard
inline fun TelegramMediaFile . requireAudioFile (): AudioFile
Content copied to clipboard
requireDocumentFile
Link copied to clipboard
inline fun TelegramMediaFile . requireDocumentFile (): DocumentFile
Content copied to clipboard
requireFile
Link copied to clipboard
inline fun TelegramMediaFile . requireFile (): File
Content copied to clipboard
requireMimedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . requireMimedMediaFile (): MimedMediaFile
Content copied to clipboard
requirePathedFile
Link copied to clipboard
inline fun TelegramMediaFile . requirePathedFile (): PathedFile
Content copied to clipboard
requirePhotoSize
Link copied to clipboard
inline fun TelegramMediaFile . requirePhotoSize (): PhotoSize
Content copied to clipboard
requirePlayableMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . requirePlayableMediaFile (): PlayableMediaFile
Content copied to clipboard
requireSimpleSticker
Link copied to clipboard
inline fun TelegramMediaFile . requireSimpleSticker (): SimpleSticker
Content copied to clipboard
requireSizedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . requireSizedMediaFile (): SizedMediaFile
Content copied to clipboard
requireSticker
Link copied to clipboard
inline fun TelegramMediaFile . requireSticker (): Sticker
Content copied to clipboard
requireThumbedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile . requireThumbedMediaFile (): ThumbedMediaFile
Content copied to clipboard
requireVideoFile
Link copied to clipboard
inline fun TelegramMediaFile . requireVideoFile (): VideoFile
Content copied to clipboard
requireVideoNoteFile
Link copied to clipboard
inline fun TelegramMediaFile . requireVideoNoteFile (): VideoNoteFile
Content copied to clipboard
requireVideoSticker
Link copied to clipboard
inline fun TelegramMediaFile . requireVideoSticker (): VideoSticker
Content copied to clipboard
requireVoiceFile
Link copied to clipboard
inline fun TelegramMediaFile . requireVoiceFile (): VoiceFile
Content copied to clipboard
whenAnimatedSticker
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenAnimatedSticker (block: ( AnimatedSticker ) -> T ): T ?
Content copied to clipboard
whenAnimationFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenAnimationFile (block: ( AnimationFile ) -> T ): T ?
Content copied to clipboard
whenAudioFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenAudioFile (block: ( AudioFile ) -> T ): T ?
Content copied to clipboard
whenDocumentFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenDocumentFile (block: ( DocumentFile ) -> T ): T ?
Content copied to clipboard
whenFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenFile (block: ( File ) -> T ): T ?
Content copied to clipboard
whenMimedMediaFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenMimedMediaFile (block: ( MimedMediaFile ) -> T ): T ?
Content copied to clipboard
whenPathedFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenPathedFile (block: ( PathedFile ) -> T ): T ?
Content copied to clipboard
whenPhotoSize
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenPhotoSize (block: ( PhotoSize ) -> T ): T ?
Content copied to clipboard
whenPlayableMediaFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenPlayableMediaFile (block: ( PlayableMediaFile ) -> T ): T ?
Content copied to clipboard
whenSimpleSticker
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenSimpleSticker (block: ( SimpleSticker ) -> T ): T ?
Content copied to clipboard
whenSizedMediaFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenSizedMediaFile (block: ( SizedMediaFile ) -> T ): T ?
Content copied to clipboard
whenSticker
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenSticker (block: ( Sticker ) -> T ): T ?
Content copied to clipboard
whenThumbedMediaFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenThumbedMediaFile (block: ( ThumbedMediaFile ) -> T ): T ?
Content copied to clipboard
whenVideoFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenVideoFile (block: ( VideoFile ) -> T ): T ?
Content copied to clipboard
whenVideoNoteFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenVideoNoteFile (block: ( VideoNoteFile ) -> T ): T ?
Content copied to clipboard
whenVideoSticker
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenVideoSticker (block: ( VideoSticker ) -> T ): T ?
Content copied to clipboard
whenVoiceFile
Link copied to clipboard
inline fun < T > TelegramMediaFile . whenVoiceFile (block: ( VoiceFile ) -> T ): T ?
Content copied to clipboard