Skip to main content

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

NameTypeRequiredDescription
InvertMediaboolIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
ForceLargeMediaboolIf set, specifies that a large media preview should be used.
ForceSmallMediaboolIf set, specifies that a small media preview should be used.
ManualboolIf 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.
SafeboolIf set, the link can be opened directly without user confirmation.
MessagestringyesThe message, can be empty.
Entities[]MessageEntityClassMessage entities for styled text
URLstringyesThe URL to use for the link preview.
ReplyMarkupReplyMarkupClassReply markup for sending bot buttons

References