StarGiftAttributeModel

class pyrogram.raw.types.StarGiftAttributeModel

The model of a collectible gift ».

Constructor of StarGiftAttribute.

Details:
  • Layer: 223

  • ID: 565251E2

Parameters:
  • name (str) – Name of the model

  • document (Document) – The sticker representing the upgraded gift

  • rarity (StarGiftAttributeRarity)

  • crafted (bool, optional)

TL Schema

starGiftAttributeModel#565251e2
flags:#
crafted:flags.0?true
name:string
document:Document
rarity:StarGiftAttributeRarity

= StarGiftAttribute

Parameter Tree

StarGiftAttributeModel
├── craftedtrue (optional)
├── namestring
├── documentDocument
│ ├── 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
└── rarityStarGiftAttributeRarity

Example

StarGiftAttributeModel(
    name="text",
    document=DocumentEmpty(id=0),
    rarity=StarGiftAttributeRarity(permille=0),
)