Skip to main content

storage.FileType

This is a boxed type (a TL class): the Go interface tg.StorageFileTypeClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.StorageFileGif: // storage.fileGif
case *tg.StorageFileJpeg: // storage.fileJpeg
case *tg.StorageFileMov: // storage.fileMov
case *tg.StorageFileMp3: // storage.fileMp3
case *tg.StorageFileMp4: // storage.fileMp4
case *tg.StorageFilePartial: // storage.filePartial
case *tg.StorageFilePdf: // storage.filePdf
case *tg.StorageFilePng: // storage.filePng
case *tg.StorageFileUnknown: // storage.fileUnknown
case *tg.StorageFileWebp: // storage.fileWebp
}

Constructors

ConstructorTL name
StorageFileGifstorage.fileGif
StorageFileJpegstorage.fileJpeg
StorageFileMovstorage.fileMov
StorageFileMp3storage.fileMp3
StorageFileMp4storage.fileMp4
StorageFilePartialstorage.filePartial
StorageFilePdfstorage.filePdf
StorageFilePngstorage.filePng
StorageFileUnknownstorage.fileUnknown
StorageFileWebpstorage.fileWebp

References