StarGift

class pyrogram.raw.base.StarGift

Represents a star gift, see here » for more info.

Constructors:

This base type has 2 constructors available.

StarGift

Represents a star gift, see here » for more info.

StarGiftUnique

Represents a collectible star gift, see here » for more info.

TL Schema

starGift#313a9547
flags:#
limited:flags.0?true
sold_out:flags.1?true
birthday:flags.2?true
require_premium:flags.7?true
limited_per_user:flags.8?true
peer_color_available:flags.10?true
auction:flags.11?true
id:long
sticker:Document
stars:long
availability_remains:flags.0?int
availability_total:flags.0?int
availability_resale:flags.4?long
convert_stars:long
first_sale_date:flags.1?int
last_sale_date:flags.1?int
upgrade_stars:flags.3?long
resell_min_stars:flags.4?long
title:flags.5?string
released_by:flags.6?Peer
per_user_total:flags.8?int
per_user_remains:flags.8?int
locked_until_date:flags.9?int
auction_slug:flags.11?string
gifts_per_round:flags.11?int
auction_start_date:flags.11?int
upgrade_variants:flags.12?int
background:flags.13?StarGiftBackground

= StarGift

Parameter Tree

StarGift
├── limitedtrue (optional)
├── sold_outtrue (optional)
├── birthdaytrue (optional)
├── require_premiumtrue (optional)
├── limited_per_usertrue (optional)
├── peer_color_availabletrue (optional)
├── auctiontrue (optional)
├── idlong
├── stickerDocument
│ ├── DocumentEmpty
│ │ └── idlong
│ └── Document
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── mime_typestring
│ ├── sizelong
│ ├── thumbsVector < PhotoSize > (optional)
│ │ ├── PhotoSizeEmpty
│ │ │ └── typestring
│ │ ├── PhotoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizeint
│ │ ├── PhotoCachedSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── bytesbytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── typestring
│ │ │ └── bytesbytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ └── sizesVector < int >
│ │ └── PhotoPathSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── video_thumbsVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── typestring
│ │ │ ├── wint
│ │ │ ├── hint
│ │ │ ├── sizeint
│ │ │ └── video_start_tsdouble (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_idlong
│ │ │ └── background_colorsVector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_idlong
│ │ └── background_colorsVector < int >
│ ├── dc_idint
│ └── attributesVector < DocumentAttribute >
│ │ ├── wint
│ │ └── hint
│ │ ├── masktrue (optional)
│ │ ├── altstring
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── mask_coordsMaskCoords (optional)
│ │ └── MaskCoords
│ │ ├── round_messagetrue (optional)
│ │ ├── supports_streamingtrue (optional)
│ │ ├── nosoundtrue (optional)
│ │ ├── durationdouble
│ │ ├── wint
│ │ ├── hint
│ │ ├── preload_prefix_sizeint (optional)
│ │ ├── video_start_tsdouble (optional)
│ │ └── video_codecstring (optional)
│ │ ├── voicetrue (optional)
│ │ ├── durationint
│ │ ├── titlestring (optional)
│ │ ├── performerstring (optional)
│ │ └── waveformbytes (optional)
│ │ └── file_namestring
│ ├── freetrue (optional)
│ ├── text_colortrue (optional)
│ ├── altstring
│ └── stickersetInputStickerSet
│ ├── InputStickerSetEmpty
│ ├── InputStickerSetID
│ ├── InputStickerSetDice
├── starslong
├── availability_remainsint (optional)
├── availability_totalint (optional)
├── availability_resalelong (optional)
├── convert_starslong
├── first_sale_dateint (optional)
├── last_sale_dateint (optional)
├── upgrade_starslong (optional)
├── resell_min_starslong (optional)
├── titlestring (optional)
├── released_byPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── per_user_totalint (optional)
├── per_user_remainsint (optional)
├── locked_until_dateint (optional)
├── auction_slugstring (optional)
├── gifts_per_roundint (optional)
├── auction_start_dateint (optional)
├── upgrade_variantsint (optional)
└── backgroundStarGiftBackground (optional)
├── center_colorint
├── edge_colorint
└── text_colorint

Example

StarGift(
    limited=None,
    sold_out=None,
    birthday=None,
    require_premium=None,
    limited_per_user=None,
    peer_color_available=None,
    auction=None,
    id=0,
    sticker=DocumentEmpty(id=0),
    stars=0,
    availability_remains=0,
    availability_total=0,
    availability_resale=0,
    convert_stars=0,
    first_sale_date=0,
    last_sale_date=0,
    upgrade_stars=0,
    resell_min_stars=0,
    title="text",
    released_by=PeerUser(user_id=0),
    per_user_total=0,
    per_user_remains=0,
    locked_until_date=0,
    auction_slug="text",
    gifts_per_round=0,
    auction_start_date=0,
    upgrade_variants=0,
    background=StarGiftBackground(
        center_color=0,
        edge_color=0,
        text_color=0
    ),
)