Layer 224
DocumentObj
Document
constructor
document#8fd4c4d8 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:long thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | long | Document ID |
| AccessHash | long | Check sum, dependent on document ID |
| FileReference | bytes | File reference |
| Date | int | Creation date |
| MimeType | string | MIME type |
| Size | long | Size |
| Thumbs | Vector<PhotoSize> | Thumbnails |
| VideoThumbs | Vector<VideoSize> | Video thumbnails |
| DcId | int | DC ID |
| Attributes | Vector<DocumentAttribute> | Attributes |
Returns
DocumentGogram Example
// Creating DocumentObj constructor obj := &tg.DocumentObj{ Id: int64(1234567890), AccessHash: int64(1234567890), FileReference: []byte{0x01, 0x02, 0x03}, Date: 42, MimeType: "Hello, World!", Size: int64(1234567890), // ... more required fields // Optional fields: // Thumbs: []tg.PhotoSize{&tg.PhotoSize{}}, // VideoThumbs: []tg.VideoSize{&tg.VideoSize{}}, }