Layer 227
StorageFileType
Abstract type representing one of 10 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.StorageFileType interface.
Use any of the following constructors:
StorageFileGif
GIF image. MIME type: image/gif.
StorageFileJpeg
JPEG image. MIME type: image/jpeg.
StorageFileMov
Quicktime video. MIME type: video/quicktime.
StorageFileMp3
Mp 3 audio. MIME type: audio/mpeg.
StorageFileMp4
MPEG-4 video. MIME type: video/mp 4.
StorageFilePartial
Part of a bigger file.
StorageFilePdf
PDF document image. MIME type: application/pdf.
StorageFilePng
PNG image. MIME type: image/png.
StorageFileUnknown
Unknown type.
StorageFileWebp
WEBP image. MIME type: image/webp.
Gogram Example
// storage.FileType is an interface type // You can use any of the following constructors: var _ tg.StorageFileType = &tg.StorageFileGif{} var _ tg.StorageFileType = &tg.StorageFileJpeg{} var _ tg.StorageFileType = &tg.StorageFileMov{} var _ tg.StorageFileType = &tg.StorageFileMp3{} var _ tg.StorageFileType = &tg.StorageFileMp4{} // ... and 5 more constructors