Skip to main content

messageMediaWebPage

Preview of webpage

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

Implements MessageMedia.

Fields

NameTypeRequiredDescription
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 webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.
WebpageWebPageClassyesWebpage preview

References