WebPageAttribute

class pyrogram.raw.base.WebPageAttribute

Webpage attributes

Constructors:

This base type has 7 constructors available.

WebPageAttributeAiComposeTone

Telegram API type.

WebPageAttributeStarGiftAuction

{schema}

WebPageAttributeStarGiftCollection

Contains info about a gift collection » for a webPage preview of a gift collection » (the webPage will have a type of telegram_collection).

WebPageAttributeStickerSet

Contains info about a stickerset », for a webPage preview of a stickerset deep link » (the webPage will have a type of telegram_stickerset).

WebPageAttributeStory

Webpage preview of a Telegram story

WebPageAttributeTheme

Page theme

WebPageAttributeUniqueStarGift

Contains info about collectible gift » for a webPage preview of a collectible gift » (the webPage will have a type of telegram_nft).

TL Schema


Parameter Tree

WebPageAttribute
│ ├── documents → Vector < Document > (optional)
│ │ ├── DocumentEmpty
│ │ │ └── id → long
│ │ └── Document
│ │ ├── id → long
│ │ ├── access_hash → long
│ │ ├── file_reference → bytes
│ │ ├── date → int
│ │ ├── mime_type → string
│ │ ├── size → long
│ │ ├── thumbs → Vector < PhotoSize > (optional)
│ │ │ ├── PhotoSizeEmpty
│ │ │ ├── PhotoSize
│ │ │ ├── PhotoCachedSize
│ │ │ ├── PhotoStrippedSize
│ │ │ ├── PhotoSizeProgressive
│ │ │ └── PhotoPathSize
│ │ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ │ ├── VideoSize
│ │ │ ├── VideoSizeEmojiMarkup
│ │ │ └── VideoSizeStickerMarkup
│ │ ├── dc_id → int
│ │ └── attributes → Vector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ └── settings → ThemeSettings (optional)
│ └── ThemeSettings
│ ├── message_colors_animated → true (optional)
│ ├── base_theme → BaseTheme
│ │ ├── BaseThemeClassic
│ │ ├── BaseThemeDay
│ │ ├── BaseThemeNight
│ │ ├── BaseThemeTinted
│ │ └── BaseThemeArctic
│ ├── accent_color → int
│ ├── outbox_accent_color → int (optional)
│ ├── message_colors → Vector < int > (optional)
│ └── wallpaper → WallPaper (optional)
│ ├── WallPaper
│ └── WallPaperNoFile
│ ├── peer → Peer
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── id → int
│ └── story → StoryItem (optional)
│ ├── StoryItemDeleted
│ │ └── id → int
│ ├── StoryItemSkipped
│ │ ├── close_friends → true (optional)
│ │ ├── live → true (optional)
│ │ ├── id → int
│ │ ├── date → int
│ │ └── expire_date → int
│ └── StoryItem
│ ├── pinned → true (optional)
│ ├── public → true (optional)
│ ├── close_friends → true (optional)
│ ├── min → true (optional)
│ ├── noforwards → true (optional)
│ ├── edited → true (optional)
│ ├── contacts → true (optional)
│ ├── selected_contacts → true (optional)
│ ├── out → true (optional)
│ ├── id → int
│ ├── date → int
│ ├── from_id → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── fwd_from → StoryFwdHeader (optional)
│ │ └── StoryFwdHeader
│ ├── expire_date → int
│ ├── caption → string (optional)
│ ├── entities → Vector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ ├── MessageEntityMention
│ │ ├── MessageEntityHashtag
│ │ ├── MessageEntityBotCommand
│ │ ├── MessageEntityUrl
│ │ ├── MessageEntityEmail
│ │ ├── MessageEntityBold
│ │ ├── MessageEntityItalic
│ │ ├── MessageEntityCode
│ │ ├── MessageEntityPre
│ │ ├── MessageEntityTextUrl
│ │ ├── MessageEntityMentionName
│ │ ├── MessageEntityPhone
│ │ ├── MessageEntityCashtag
│ │ ├── MessageEntityUnderline
│ │ ├── MessageEntityStrike
│ │ ├── MessageEntityBankCard
│ │ ├── MessageEntitySpoiler
│ │ ├── MessageEntityCustomEmoji
│ │ ├── MessageEntityBlockquote
│ │ ├── MessageEntityFormattedDate
│ │ ├── MessageEntityDiffInsert
│ │ ├── MessageEntityDiffReplace
│ │ └── MessageEntityDiffDelete
│ ├── media → MessageMedia
│ │ ├── MessageMediaEmpty
│ │ ├── MessageMediaPhoto
│ │ ├── MessageMediaGeo
│ │ ├── MessageMediaContact
│ │ ├── MessageMediaUnsupported
│ │ ├── MessageMediaDocument
│ │ ├── MessageMediaWebPage
│ │ ├── MessageMediaVenue
│ │ ├── MessageMediaGame
│ │ ├── MessageMediaInvoice
│ │ ├── MessageMediaGeoLive
│ │ ├── MessageMediaPoll
│ │ ├── MessageMediaDice
│ │ ├── MessageMediaStory
│ │ ├── MessageMediaGiveaway
│ │ ├── MessageMediaGiveawayResults
│ │ ├── MessageMediaPaidMedia
│ │ ├── MessageMediaToDo
│ │ └── MessageMediaVideoStream
│ ├── media_areas → Vector < MediaArea > (optional)
│ │ ├── MediaAreaVenue
│ │ ├── InputMediaAreaVenue
│ │ ├── MediaAreaGeoPoint
│ │ ├── MediaAreaSuggestedReaction
│ │ ├── MediaAreaChannelPost
│ │ ├── InputMediaAreaChannelPost
│ │ ├── MediaAreaUrl
│ │ ├── MediaAreaWeather
│ │ └── MediaAreaStarGift
│ ├── privacy → Vector < PrivacyRule > (optional)
│ │ ├── PrivacyValueAllowContacts
│ │ ├── PrivacyValueAllowAll
│ │ ├── PrivacyValueAllowUsers
│ │ ├── PrivacyValueDisallowAll
│ │ ├── PrivacyValueDisallowUsers
│ │ ├── PrivacyValueAllowPremium
│ │ ├── PrivacyValueAllowBots
│ │ └── PrivacyValueDisallowBots
│ ├── views → StoryViews (optional)
│ │ └── StoryViews
│ ├── sent_reaction → Reaction (optional)
│ │ ├── ReactionEmpty
│ │ ├── ReactionEmoji
│ │ ├── ReactionCustomEmoji
│ │ └── ReactionPaid
│ ├── albums → Vector < int > (optional)
│ └── music → Document (optional)
│ ├── DocumentEmpty
│ └── Document
│ ├── emojis → true (optional)
│ ├── text_color → true (optional)
│ └── stickers → Vector < Document >
│ ├── DocumentEmpty
│ │ └── id → long
│ └── Document
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── mime_type → string
│ ├── size → long
│ ├── thumbs → Vector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ ├── dc_id → int
│ └── attributes → Vector < DocumentAttribute >
│ └── gift → StarGift
│ ├── StarGift
│ │ ├── limited → true (optional)
│ │ ├── sold_out → true (optional)
│ │ ├── birthday → true (optional)
│ │ ├── require_premium → true (optional)
│ │ ├── limited_per_user → true (optional)
│ │ ├── peer_color_available → true (optional)
│ │ ├── auction → true (optional)
│ │ ├── id → long
│ │ ├── sticker → Document
│ │ │ ├── DocumentEmpty
│ │ │ └── Document
│ │ ├── stars → long
│ │ ├── availability_remains → int (optional)
│ │ ├── availability_total → int (optional)
│ │ ├── availability_resale → long (optional)
│ │ ├── convert_stars → long
│ │ ├── first_sale_date → int (optional)
│ │ ├── last_sale_date → int (optional)
│ │ ├── upgrade_stars → long (optional)
│ │ ├── resell_min_stars → long (optional)
│ │ ├── title → string (optional)
│ │ ├── released_by → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── per_user_total → int (optional)
│ │ ├── per_user_remains → int (optional)
│ │ ├── locked_until_date → int (optional)
│ │ ├── auction_slug → string (optional)
│ │ ├── gifts_per_round → int (optional)
│ │ ├── auction_start_date → int (optional)
│ │ ├── upgrade_variants → int (optional)
│ │ └── background → StarGiftBackground (optional)
│ │ └── StarGiftBackground
│ └── StarGiftUnique
│ ├── require_premium → true (optional)
│ ├── resale_ton_only → true (optional)
│ ├── theme_available → true (optional)
│ ├── burned → true (optional)
│ ├── crafted → true (optional)
│ ├── id → long
│ ├── gift_id → long
│ ├── title → string
│ ├── slug → string
│ ├── num → int
│ ├── owner_id → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── owner_name → string (optional)
│ ├── owner_address → string (optional)
│ ├── attributes → Vector < StarGiftAttribute >
│ │ ├── StarGiftAttributeModel
│ │ ├── StarGiftAttributePattern
│ │ ├── StarGiftAttributeBackdrop
│ ├── availability_issued → int
│ ├── availability_total → int
│ ├── gift_address → string (optional)
│ ├── resell_amount → Vector < StarsAmount > (optional)
│ │ ├── StarsAmount
│ │ └── StarsTonAmount
│ ├── released_by → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── value_amount → long (optional)
│ ├── value_currency → string (optional)
│ ├── value_usd_amount → long (optional)
│ ├── theme_peer → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── peer_color → PeerColor (optional)
│ │ ├── PeerColor
│ │ ├── PeerColorCollectible
│ │ └── InputPeerColorCollectible
│ ├── host_id → Peer (optional)
│ │ ├── PeerUser
│ │ ├── PeerChat
│ │ └── PeerChannel
│ ├── offer_min_stars → int (optional)
│ └── craft_chance_permille → int (optional)
│ └── icons → Vector < Document >
│ ├── DocumentEmpty
│ │ └── id → long
│ └── Document
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── mime_type → string
│ ├── size → long
│ ├── thumbs → Vector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_thumbs → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ ├── dc_id → int
│ └── attributes → Vector < DocumentAttribute >
│ ├── gift → StarGift
│ │ ├── StarGift
│ │ │ ├── limited → true (optional)
│ │ │ ├── sold_out → true (optional)
│ │ │ ├── birthday → true (optional)
│ │ │ ├── require_premium → true (optional)
│ │ │ ├── limited_per_user → true (optional)
│ │ │ ├── peer_color_available → true (optional)
│ │ │ ├── auction → true (optional)
│ │ │ ├── id → long
│ │ │ ├── sticker → Document
│ │ │ │ ├── DocumentEmpty
│ │ │ │ └── Document
│ │ │ ├── stars → long
│ │ │ ├── availability_remains → int (optional)
│ │ │ ├── availability_total → int (optional)
│ │ │ ├── availability_resale → long (optional)
│ │ │ ├── convert_stars → long
│ │ │ ├── first_sale_date → int (optional)
│ │ │ ├── last_sale_date → int (optional)
│ │ │ ├── upgrade_stars → long (optional)
│ │ │ ├── resell_min_stars → long (optional)
│ │ │ ├── title → string (optional)
│ │ │ ├── released_by → Peer (optional)
│ │ │ │ ├── PeerUser
│ │ │ │ ├── PeerChat
│ │ │ │ └── PeerChannel
│ │ │ ├── per_user_total → int (optional)
│ │ │ ├── per_user_remains → int (optional)
│ │ │ ├── locked_until_date → int (optional)
│ │ │ ├── auction_slug → string (optional)
│ │ │ ├── gifts_per_round → int (optional)
│ │ │ ├── auction_start_date → int (optional)
│ │ │ ├── upgrade_variants → int (optional)
│ │ │ └── background → StarGiftBackground (optional)
│ │ │ └── StarGiftBackground
│ │ └── StarGiftUnique
│ │ ├── require_premium → true (optional)
│ │ ├── resale_ton_only → true (optional)
│ │ ├── theme_available → true (optional)
│ │ ├── burned → true (optional)
│ │ ├── crafted → true (optional)
│ │ ├── id → long
│ │ ├── gift_id → long
│ │ ├── title → string
│ │ ├── slug → string
│ │ ├── num → int
│ │ ├── owner_id → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── owner_name → string (optional)
│ │ ├── owner_address → string (optional)
│ │ ├── attributes → Vector < StarGiftAttribute >
│ │ │ ├── StarGiftAttributeModel
│ │ │ ├── StarGiftAttributePattern
│ │ │ ├── StarGiftAttributeBackdrop
│ │ │ └── StarGiftAttributeOriginalDetails
│ │ ├── availability_issued → int
│ │ ├── availability_total → int
│ │ ├── gift_address → string (optional)
│ │ ├── resell_amount → Vector < StarsAmount > (optional)
│ │ │ ├── StarsAmount
│ │ │ └── StarsTonAmount
│ │ ├── released_by → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── value_amount → long (optional)
│ │ ├── value_currency → string (optional)
│ │ ├── value_usd_amount → long (optional)
│ │ ├── theme_peer → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── peer_color → PeerColor (optional)
│ │ │ ├── PeerColor
│ │ │ ├── PeerColorCollectible
│ │ │ └── InputPeerColorCollectible
│ │ ├── host_id → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── offer_min_stars → int (optional)
│ │ └── craft_chance_permille → int (optional)
│ └── end_date → int
└── emoji_id → long

Example