botInlineMessageMediaWebPage
Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.
type tg.BotInlineMessageMediaWebPage struct { /* ... */ }
Implements BotInlineMessage.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
InvertMedia | bool | — | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
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. |
Manual | bool | — | 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 | — | If set, the link can be opened directly without user confirmation. |
Message | string | yes | The message, can be empty. |
Entities | []MessageEntityClass | — | Message entities for styled text |
URL | string | yes | The URL to use for the link preview. |
ReplyMarkup | ReplyMarkupClass | — | Reply markup for sending bot buttons |
References
- Official documentation
- Generated Go reference
- TL definition:
botInlineMessageMediaWebPage#809ad9a6