Layer 220
PhotoSize
Abstract type representing one of 6 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.PhotoSize interface.
Use any of the following constructors:
PhotoSizeEmpty
Empty constructor. Image with this thumbnail is unavailable.
PhotoCachedSize
Description of an image and its content.
PhotoSize
Image description.
PhotoStrippedSize
A low-resolution compressed JPG payload
PhotoSizeProgressive
Progressively encoded photosize
PhotoPathSize
Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the s
Gogram Example
// PhotoSize is an interface type // You can use any of the following constructors: var _ tg.PhotoSize = &tg.PhotoSizeEmpty{} var _ tg.PhotoSize = &tg.PhotoCachedSize{} var _ tg.PhotoSize = &tg.PhotoSize{} var _ tg.PhotoSize = &tg.PhotoStrippedSize{} var _ tg.PhotoSize = &tg.PhotoSizeProgressive{} // ... and 1 more constructors