Layer 228
constructor
inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = InputWebDocument;

Parameters

Name Type Description
Url string Remote document URL to be downloaded using the appropriate method
Size int Remote file size
MimeType string Mime type
Attributes Vector<DocumentAttribute> Attributes for media types

Gogram Example

// Creating InputWebDocumentObj constructor
obj := &tg.InputWebDocumentObj{
    Url: "https://example.com",
    Size: 42,
    MimeType: "application/octet-stream",
    Attributes: []tg.DocumentAttribute{&tg.DocumentAttributeAnimated{}},
}