Package dev. inmo. tgbotapi. types. files
Types
Animation File
Link copied to clipboard
data class AnimationFile(fileId: FileId, fileUniqueId: FileUniqueId, width: Int, height: Int, duration: Long?, thumb: PhotoSize?, fileName: String?, mimeType: MimeType?, fileSize: Long?) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, CustomNamedMediaFile, SizedMediaFile
Content copied to clipboard
Audio File
Link copied to clipboard
data class AudioFile(fileId: FileId, fileUniqueId: FileUniqueId, duration: Long?, performer: String?, title: String?, fileName: String?, mimeType: MimeType?, fileSize: Long?, thumb: PhotoSize?) : TelegramMediaFile, CustomNamedMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, TitledMediaFile, Performerable
Content copied to clipboard
Document File
Link copied to clipboard
data class DocumentFile(fileId: FileId, fileUniqueId: FileUniqueId, fileSize: Long?, thumb: PhotoSize?, mimeType: MimeType?, fileName: String?) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, CustomNamedMediaFile
Content copied to clipboard
File
Link copied to clipboard
data class File(fileId: FileId, fileUniqueId: FileUniqueId, fileSize: Long?) : TelegramMediaFile
Content copied to clipboard
Pathed File
Link copied to clipboard
data class PathedFile(fileId: FileId, fileUniqueId: FileUniqueId, filePath: String, fileSize: Long?) : TelegramMediaFile
Content copied to clipboard
Photo Serializer
Link copied to clipboard
Photo Size
Link copied to clipboard
data class PhotoSize(fileId: FileId, fileUniqueId: FileUniqueId, fileSize: Long?, width: Int, height: Int) : SizedMediaFile
Content copied to clipboard
Sticker
Link copied to clipboard
data class Sticker(fileId: FileId, fileUniqueId: FileUniqueId, width: Int, height: Int, thumb: PhotoSize?, emoji: String?, stickerSetName: StickerSetName?, isAnimated: Boolean, maskPosition: MaskPosition?, fileSize: Long?) : TelegramMediaFile, SizedMediaFile, ThumbedMediaFile
Content copied to clipboard
Video File
Link copied to clipboard
data class VideoFile(fileId: FileId, fileUniqueId: FileUniqueId, width: Int, height: Int, duration: Long?, thumb: PhotoSize?, fileName: String?, mimeType: MimeType?, fileSize: Long?) : TelegramMediaFile, CustomNamedMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile
Content copied to clipboard
Video Note File
Link copied to clipboard
data class VideoNoteFile(fileId: FileId, fileUniqueId: FileUniqueId, width: Int, duration: Long?, thumb: PhotoSize?, fileSize: Long?) : TelegramMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile
Content copied to clipboard
Voice File
Link copied to clipboard
data class VoiceFile(fileId: FileId, fileUniqueId: FileUniqueId, duration: Long?, mimeType: MimeType?, fileSize: Long?) : TelegramMediaFile, MimedMediaFile, PlayableMediaFile
Content copied to clipboard
Functions
as Audio File
Link copied to clipboard
as Document File
Link copied to clipboard
as Stream
Link copied to clipboard
fun PathedFile.asStream(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper): InputStream
Content copied to clipboard
as Voice File
Link copied to clipboard
full Url
Link copied to clipboard
resolve File URL
Link copied to clipboard
to Input Media Video
Link copied to clipboard
inline fun VideoFile.toInputMediaVideo(textSources: TextSourcesList): InputMediaVideo
Content copied to clipboard
inline fun VideoFile.toInputMediaVideo(text: String? = null, parseMode: ParseMode? = null): InputMediaVideo
Content copied to clipboard