Layer 227
PhotoCachedSize
Description of an image and its content.
constructor
photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize;
Parameters
| Name | Type | Description |
|---|---|---|
| Type | string | Photo Size. type value |
| W | int | Image width |
| H | int | Image height |
| Bytes | bytes | Binary data, file content |
Returns
PhotoSizeGogram Example
// Creating PhotoCachedSize constructor obj := &tg.PhotoCachedSize{ Type: "Hello, World!", W: 42, H: 42, Bytes: []byte{0x01, 0x02, 0x03}, }