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.
type tg.InputMediaWebPage struct { /* ... */ }
Implements InputMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ForceLargeMedia | bool | — | If set, specifies that a large media preview should be used. |
ForceSmallMedia | bool | — | If set, specifies that a small media preview should be used. |
Optional | bool | — | 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
inputMediaWebPage#c21b8849