Layer 220
constructor
inputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMedia;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
ForceLargeMedia flags.0?true If set, specifies that a large media preview should be used.
ForceSmallMedia flags.1?true If set, specifies that a small media preview should be used.
Optional flags.2?true If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead).
Url string The URL to use for the link preview.

Returns

InputMedia

Gogram Example

// Creating InputMediaWebPage constructor
obj := &tg.InputMediaWebPage{
    Url: "...",

    // Optional fields:
    // ForceLargeMedia: true,
    // ForceSmallMedia: true,
    // Optional: true,
}