Skip to main content

messageMediaWebPage

Preview of webpage

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

Implements MessageMedia.

Fields​

NameTypeRequiredDescription
ForceLargeMediabool—If set, specifies that a large media preview should be used.
ForceSmallMediabool—If set, specifies that a small media preview should be used.
Manualbool—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.
Safebool—If 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​