mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | image |
---|---|---|---|
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. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: 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.
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. |
optional | Bool | Optional | 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 | Yes | The URL to use for the link preview. |
Type: InputMedia
Example:
$inputMediaWebPage = ['_' => 'inputMediaWebPage', 'force_large_media' => Bool, 'force_small_media' => Bool, 'optional' => Bool, 'url' => 'string'];