Layer 220
WebDocument
Remote document
constructor
webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;
Parameters
| Name | Type | Description |
|---|---|---|
| Url | string | Document URL |
| AccessHash | long | Access hash |
| Size | int | File size |
| MimeType | string | MIME type |
| Attributes | Vector<DocumentAttribute> | Attributes for media types |
Returns
WebDocumentGogram Example
// Creating WebDocument constructor obj := &tg.WebDocument{ Url: "...", AccessHash: int64(0), Size: 0, MimeType: "...", Attributes: []tg.DocumentAttribute{&tg.DocumentAttribute{}}, }