Link Search Menu Expand Document

Constructor: messageMediaWebPage

Back to constructors index

Preview of webpage

Attributes:

NameTypeRequiredDescription
force_large_mediaBoolOptionalIf set, specifies that a large media preview should be used.
force_small_mediaBoolOptionalIf set, specifies that a small media preview should be used.
manualBoolOptionalIf set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage, and may not be related to any of the URLs specified in the message.
safeBoolOptionalIf set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.
webpageWebPageOptionalWebpage preview

Type: MessageMedia

Example:

$messageMediaWebPage = ['_' => 'messageMediaWebPage', 'force_large_media' => Bool, 'force_small_media' => Bool, 'manual' => Bool, 'safe' => Bool, 'webpage' => WebPage];