Layer 220
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:
StorageFilePartial
Part of a bigger file.
StorageFileUnknown
Unknown type.
StorageFileJpeg
JPEG image. MIME type: image/jpeg.
StorageFilePng
PNG image. MIME type: image/png.
StorageFileGif
GIF image. MIME type: image/gif.
StorageFileMov
Quicktime video. MIME type: video/quicktime.
StorageFilePdf
PDF document image. MIME type: application/pdf.
StorageFileMp3
Mp 3 audio. MIME type: audio/mpeg.
StorageFileWebp
WEBP image. MIME type: image/webp.
StorageFileMp4
MPEG-4 video. MIME type: video/mp 4.
Gogram Example
// storage.FileType is an interface type // You can use any of the following constructors: var _ tg.StorageFileType = &tg.StorageFilePartial{} var _ tg.StorageFileType = &tg.StorageFileUnknown{} var _ tg.StorageFileType = &tg.StorageFileJpeg{} var _ tg.StorageFileType = &tg.StorageFilePng{} var _ tg.StorageFileType = &tg.StorageFileGif{} // ... and 5 more constructors