ChatThemeUniqueGift

class pyrogram.raw.types.ChatThemeUniqueGift

A chat theme based on a collectible gift ».

Constructor of ChatTheme.

Details:
  • Layer: 227

  • ID: 3458F9C8

Parameters:
  • gift (StarGift) – The owned collectible gift on which this theme is based, as a starGiftUnique constructor.

  • theme_settings (List of ThemeSettings) – Theme settings.

TL Schema

chatThemeUniqueGift#3458f9c8
gift:StarGift
theme_settings:Vector<ThemeSettings>

= ChatTheme

Parameter Tree

ChatThemeUniqueGift
├── 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
│ │ │ │ └── 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
│ │ │ ├── DocumentAttributeHasStickers
│ │ │ └── DocumentAttributeCustomEmoji
│ │ ├── 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
│ │ │ │ └── user_id → long
│ │ │ ├── PeerChat
│ │ │ │ └── chat_id → long
│ │ │ └── PeerChannel
│ │ │ └── channel_id → long
│ │ ├── 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
│ │ ├── center_color → int
│ │ ├── edge_color → int
│ │ └── text_color → int
│ └── 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
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── owner_name → string (optional)
│ ├── owner_address → string (optional)
│ ├── attributes → Vector < StarGiftAttribute >
│ │ ├── StarGiftAttributeModel
│ │ │ ├── crafted → true (optional)
│ │ │ ├── name → string
│ │ │ ├── document → Document
│ │ │ │ ├── DocumentEmpty
│ │ │ │ └── Document
│ │ │ └── rarity → StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarityUncommon
│ │ │ ├── StarGiftAttributeRarityRare
│ │ │ ├── StarGiftAttributeRarityEpic
│ │ │ └── StarGiftAttributeRarityLegendary
│ │ ├── StarGiftAttributePattern
│ │ │ ├── name → string
│ │ │ ├── document → Document
│ │ │ │ ├── DocumentEmpty
│ │ │ │ └── Document
│ │ │ └── rarity → StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarityUncommon
│ │ │ ├── StarGiftAttributeRarityRare
│ │ │ ├── StarGiftAttributeRarityEpic
│ │ │ └── StarGiftAttributeRarityLegendary
│ │ ├── StarGiftAttributeBackdrop
│ │ │ ├── name → string
│ │ │ ├── backdrop_id → int
│ │ │ ├── center_color → int
│ │ │ ├── edge_color → int
│ │ │ ├── pattern_color → int
│ │ │ ├── text_color → int
│ │ │ └── rarity → StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarity
│ │ │ ├── StarGiftAttributeRarityUncommon
│ │ │ ├── StarGiftAttributeRarityRare
│ │ │ ├── StarGiftAttributeRarityEpic
│ │ │ └── StarGiftAttributeRarityLegendary
│ │ ├── sender_id → Peer (optional)
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── recipient_id → Peer
│ │ │ ├── PeerUser
│ │ │ ├── PeerChat
│ │ │ └── PeerChannel
│ │ ├── date → int
│ │ └── message → TextWithEntities (optional)
│ │ └── TextWithEntities
│ ├── availability_issued → int
│ ├── availability_total → int
│ ├── gift_address → string (optional)
│ ├── resell_amount → Vector < StarsAmount > (optional)
│ │ ├── StarsAmount
│ │ │ ├── amount → long
│ │ │ └── nanos → int
│ │ └── StarsTonAmount
│ │ └── amount → long
│ ├── released_by → Peer (optional)
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── value_amount → long (optional)
│ ├── value_currency → string (optional)
│ ├── value_usd_amount → long (optional)
│ ├── theme_peer → Peer (optional)
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── peer_color → PeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── color → int (optional)
│ │ │ └── background_emoji_id → long (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_id → long
│ │ │ ├── gift_emoji_id → long
│ │ │ ├── background_emoji_id → long
│ │ │ ├── accent_color → int
│ │ │ ├── colors → Vector < int >
│ │ │ ├── dark_accent_color → int (optional)
│ │ │ └── dark_colors → Vector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_id → long
│ ├── host_id → Peer (optional)
│ │ ├── PeerUser
│ │ │ └── user_id → long
│ │ ├── PeerChat
│ │ │ └── chat_id → long
│ │ └── PeerChannel
│ │ └── channel_id → long
│ ├── offer_min_stars → int (optional)
│ └── craft_chance_permille → int (optional)
└── theme_settings → Vector < ThemeSettings >
└── 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
│ ├── id → long
│ ├── creator → true (optional)
│ ├── default → true (optional)
│ ├── pattern → true (optional)
│ ├── dark → true (optional)
│ ├── access_hash → long
│ ├── slug → string
│ ├── document → Document
│ │ ├── DocumentEmpty
│ │ └── Document
│ └── settings → WallPaperSettings (optional)
│ └── WallPaperSettings
└── WallPaperNoFile
├── id → long
├── default → true (optional)
├── dark → true (optional)
└── settings → WallPaperSettings (optional)

Example

ChatThemeUniqueGift(
    gift=StarGift(
        id=0,
        sticker=DocumentEmpty(id=0),
        stars=0,
        convert_stars=0
    ),
    theme_settings=[
            ThemeSettings(
                base_theme=BaseThemeClassic(),
                accent_color=0
            )
        ],
)