webPageAttributeStarGiftAuction #
Contains info about a collectible gift auction » for a webPage preview of an auction » (the webPage will have a type of telegram_auction).¶
Layer 223
webPageAttributeStarGiftAuction#1c641c2 gift:StarGift end_date:int = WebPageAttribute; Parameters #
| Name | Type | Description |
|---|---|---|
| gift | StarGift | The gift linked to the auction |
| end_date | int | Date when the auction will end (UNIX timestamp) |
Type #
Related pages #
Collectible gift auctions #
New collectible gift releases are distributed through Stars auctions held over several rounds.¶
webPage #
Webpage preview¶
The type field indicates the type of the web page, which influences how the preview is rendered (i.e. which extra action button is offered, where the media is taken from, and which WebPageAttribute is present in the attributes field). It can be one of the following:¶
app- Preview of a Mini App link »: thephotois the app icon, and clients render a button that launches the Mini App ».article- Preview of a generic external article or webpage. Ifcached_pageis set, clients render an instant view button.document- Preview of an external document or file, contained in thedocumentfield.gif- Preview of an external animated GIF. Ifembed_url+embed_typeare set the GIF is rendered using an embedded player, otherwise the animation is contained in thedocumentfield.photo- Preview of an external photo, contained in thephotofield.profile- Preview of an external author or profile page; clients typically render this with a small thumbnail (forced small media).telegram_aicomposetone- Preview of an AI compose tone link », shared when previewing a custom AI composer tone ». Theattributesfield contains a webPageAttributeAiComposeTone with the custom emoji » representing the tone; clients render a button that applies the shared tone.telegram_album- Preview of a message link » pointing to a group of messages (album), rendered as a grouped media album rather than as a single-media preview. For this type the album media is not taken from the top-levelphoto/documentfields: instead, a cached_page (instant view) must be present, and clients render the items of its first pageBlockCollage or pageBlockSlideshow block. Each pageBlockPhoto/pageBlockVideo item in that block references a photo or video by ID, resolved against thephotosanddocumentsof thecached_page. The instant view itself is not offered as a button (the album media replaces it).telegram_auction- Preview of an auction link » to a collectible gift auction ». Theattributesfield contains a webPageAttributeStarGiftAuction with the auctioned gift and the auction end date; clients render a button to join the auction, or to view the results once the auction has ended.telegram_background- Preview of a wallpaper deep link » to a chat wallpaper ». The wallpaper settings (background colors, gradient rotation, pattern intensity, blur/motion, etc.) are parsed from the deep link in theurl, not from dedicated fields. Image wallpapers carry the wallpaper image in thedocumentfield. Pattern wallpapers also use thedocumentfield, withapplication/x-tgwallpatternorimage/pngas the pattern MIME type; the colors from theurlare rendered as the pattern background and tint. Solid-color and gradient wallpapers carry no media and are rendered from the colors encoded in theurl. Nophotois present. Clients render a button to apply the background.telegram_bot- Preview of a bot link », rendered like a profile preview using the bot's avatar in thephotofield.telegram_botapp- Preview of a direct Mini App link » to a named bot Mini App: thephotois the app preview, and clients render a button that opens the Mini App.telegram_call- Preview of a conference link » to a group call/conference call »; clients render a button to join the call (nophoto/documentis present).telegram_channel- Preview of a public username link » to a channel, using the channel's avatar in thephotofield; clients render a button to open/join the channel.telegram_channel_boost- Preview of a boost link » to boost a channel », using the channel avatar in thephotofield; clients render a button to boost the channel.telegram_channel_direct- Preview of a monoforum link » to the direct messages of a channel, using the channel avatar in thephotofield.telegram_channel_request- Preview of a chat invite link » to a channel that has join requests » enabled; clients render a "Request to join" button.telegram_chat- Preview of a public username link » to a basic group, using the group avatar in thephotofield; clients render a button to open/join the group.telegram_chat_request- Preview of a chat invite link » to a group that has join requests » enabled; clients render a "Request to join" button.telegram_chatlist- Preview of a chat folder link » to a shareable chat folder » (nophoto/documentis present): clients use thesite_name,titleanddescriptionfields for the preview text, no WebPageAttribute is required, and the action button opens the deep link inurlto import the folder.telegram_collection- Preview of a gift collection link » to a gift collection ». Theattributesfield contains a webPageAttributeStarGiftCollection with the collection's icon stickers; clients render a button to view the collection.telegram_community- Preview of a chat folder link » to a shareable chat folder », rendered liketelegram_chatlist.telegram_giftcode- Preview of a premium giftcode link » to a Telegram Premium gift code »; clients render a button to view/redeem the gift code (nophoto/documentis present).telegram_group_boost- Preview of a boost link » to boost a supergroup », using the supergroup avatar in thephotofield; clients render a button to boost the supergroup.telegram_livestream- Preview of a video chat/livestream link » to a live video stream », rendered as a video chat preview marked as a livestream; clients render a button to watch the stream.telegram_megagroup- Preview of a public username link » to a supergroup, using the supergroup avatar in thephotofield; clients render a button to open/join the supergroup.telegram_megagroup_request- Preview of a chat invite link » to a supergroup that has join requests » enabled; clients render a "Request to join" button.telegram_message- Preview of a message link » to a single message; clients render a button to open the message. Anycached_pageinstant view is ignored for this type.telegram_newbot- Preview of a managed bot creation request link » used to create a new bot; clients render a button to create/register the managed bot.telegram_nft- Preview of a collectible gift link » to a collectible (unique) gift ». Theattributesfield contains a webPageAttributeUniqueStarGift with the unique gift; clients render a button to view the collectible.telegram_stickerset- Preview of a stickerset link » to a sticker or custom emoji set ». Theattributesfield contains a webPageAttributeStickerSet with a few preview stickers and theemojis/text_colorflags; clients display the preview stickers and render a button to view the sticker set (or custom emoji set, if theemojisflag is set).telegram_story- Preview of a story link » to a story ». Theattributesfield contains a webPageAttributeStory with the story's peer and ID (and optionally the embedded storyItem); the preview media and caption are taken from the story, and clients render a button to view it.telegram_story_album- Preview of a story album link » to a story album »: aphoto(and optional videodocument) cover is present, and clients render a button to view the story album.telegram_theme- Preview of a theme link » to a theme ». Theattributesfield contains a webPageAttributeTheme with the theme file(s) and theme settings; clients render a button to apply the theme.telegram_user- Preview of a public username link » to a user, rendered like a profile preview using the user's avatar in thephotofield.telegram_videochat- Preview of a video chat/livestream link » to a video chat », rendered as a video chat preview.telegram_voicechat- Preview of a video chat/livestream link » to a voice chat », rendered as a (non-video) video chat preview; clients render a button to join the voice chat.video- Preview of an external video. Ifembed_url+embed_typeare set the video is rendered using an embedded player, otherwise the video is contained in thedocumentfield.