Skip to main content

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.

type tg.InputBotInlineMessageMediaWebPage struct { /* ... */ }

Implements InputBotInlineMessage.

Fields​

NameTypeRequiredDescription
InvertMediabool—If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
ForceLargeMediabool—If set, specifies that a large media preview should be used.
ForceSmallMediabool—If set, specifies that a small media preview should be used.
Optionalbool—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).
MessagestringyesThe message, can be empty.
Entities[]MessageEntityClass—Message entities for styled text
URLstringyesThe URL to use for the link preview.
ReplyMarkupReplyMarkupClass—Inline keyboard

References​