Layer 220
InputBotInlineMessageMediaWebPage
Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.
constructor
inputBotInlineMessageMediaWebPage#bddcc510 flags:# invert_media:flags.3?true force_large_media:flags.4?true force_small_media:flags.5?true optional:flags.6?true message:string entities:flags.1?Vector<MessageEntity> url:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| InvertMedia | flags.3?true | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
| ForceLargeMedia | flags.4?true | If set, specifies that a large media preview should be used. |
| ForceSmallMedia | flags.5?true | If set, specifies that a small media preview should be used. |
| Optional | flags.6?true | 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). |
| Message | string | The message, can be empty. |
| Entities | Vector<MessageEntity> | Message entities for styled text |
| Url | string | The URL to use for the link preview. |
| ReplyMarkup | flags.2?ReplyMarkup | Inline keyboard |
Returns
InputBotInlineMessageGogram Example
// Creating InputBotInlineMessageMediaWebPage constructor obj := &tg.InputBotInlineMessageMediaWebPage{ Message: "...", Url: "...", // Optional fields: // InvertMedia: true, // ForceLargeMedia: true, // ForceSmallMedia: true, // Optional: true, // ... more optional fields }