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
| Constructor | TL name |
|---|---|
StorageFileGif | storage.fileGif |
StorageFileJpeg | storage.fileJpeg |
StorageFileMov | storage.fileMov |
StorageFileMp3 | storage.fileMp3 |
StorageFileMp4 | storage.fileMp4 |
StorageFilePartial | storage.filePartial |
StorageFilePdf | storage.filePdf |
StorageFilePng | storage.filePng |
StorageFileUnknown | storage.fileUnknown |
StorageFileWebp | storage.fileWebp |