telegram api constructor · layer 229 · #c21b8849

inputMediaWebPage

Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.

definition

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

parameters

nametypedescription
flags#Flags, see TL conditional fields
force_large_mediaflags.0?trueIf set, specifies that a large media preview should be used.
force_small_mediaflags.1?trueIf set, specifies that a small media preview should be used.
optionalflags.2?trueIf 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).
urlstringThe URL to use for the link preview.

type

InputMedia · 19 other constructors

history

present in layers 166–229

idlayers
#c21b8849166–229