mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.4 KiB
1.4 KiB
title | description | nav_exclude | image |
---|---|---|---|
messageMediaWebPage | Preview of webpage | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: messageMediaWebPage
Preview of webpage
Attributes:
Name | Type | Required | Description |
---|---|---|---|
force_large_media | Bool | Optional | If set, specifies that a large media preview should be used. |
force_small_media | Bool | Optional | If set, specifies that a small media preview should be used. |
manual | Bool | Optional | If 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. |
safe | Bool | Optional | If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened. |
webpage | WebPage | Optional | Webpage preview |
Type: MessageMedia
Example:
$messageMediaWebPage = ['_' => 'messageMediaWebPage', 'force_large_media' => Bool, 'force_small_media' => Bool, 'manual' => Bool, 'safe' => Bool, 'webpage' => WebPage];