Skip to main content

webPage

Webpage preview

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

Implements WebPage.

Fields

NameTypeRequiredDescription
HasLargeMediaboolWhether the size of the media in the preview can be changed.
VideoCoverPhotoboolRepresents a custom video cover.
IDint64yesPreview ID
URLstringyesURL of previewed webpage
DisplayURLstringyesWebpage URL to be displayed to the user
HashintyesHash used for caching, for more info click here
TypestringType of the web page. One of the following: - app- article- document- gif- photo- profile- telegram_album- telegram_auction- telegram_background- telegram_bot- telegram_botapp- telegram_call- telegram_channel- telegram_channel_boost- telegram_channel_direct- telegram_channel_request- telegram_chat- telegram_chat_request- telegram_chatlist- telegram_collection- telegram_community- telegram_giftcode- telegram_group_boost- telegram_livestream- telegram_megagroup- telegram_megagroup_request- telegram_message- telegram_newbot- telegram_nft- telegram_stickerset- telegram_story- telegram_story_album- telegram_theme- telegram_user- telegram_videochat- telegram_voicechat- video
SiteNamestringShort name of the site (e.g., Google Docs, App Store)
TitlestringTitle of the content
DescriptionstringContent description
PhotoPhotoClassImage representing the content
EmbedURLstringURL to show in the embedded preview
EmbedTypestringMIME type of the embedded preview, (e.g., text/html or video/mp4)
EmbedWidthintWidth of the embedded preview
EmbedHeightintHeight of the embedded preview
DurationintDuration of the content, in seconds
AuthorstringAuthor of the content
DocumentDocumentClassPreview of the content as a media file
CachedPagePagePage contents in instant view format
Attributes[]WebPageAttributeClassWebpage attributes

References