StarGiftCollection
- class pyrogram.raw.types.StarGiftCollection
Represents a star gift collection ».
Constructor of
StarGiftCollection.- Details:
Layer:
223ID:
9D6B13B0
- Parameters:
collection_id (
int32-bit) – The ID of the collection.title (
str) – Title of the collection.gifts_count (
int32-bit) – Number of gifts in the collection.hash (
int64-bit) – Field to use instead of collection_id when generating the hash to pass to payments.getStarGiftCollections.icon (
Document, optional) – Optional icon for the collection, taken from the first gift in the collection.
- Functions:
This object can be returned by 2 functions.
Create a star gift collection ».
Add or remove gifts from a star gift collection », or rename the collection.
TL Schema
starGiftCollection#9d6b13b0
flags:#
collection_id:int
title:string
icon:flags.0?Document
gifts_count:int
hash:long
= StarGiftCollection
Parameter Tree
StarGiftCollection
├── collection_id →
int├── title →
string├── icon →
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│ │ │ └── type →
string│ │ ├──
PhotoSize│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── size →
int│ │ ├──
PhotoCachedSize│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── bytes →
bytes│ │ ├──
PhotoStrippedSize│ │ │ ├── type →
string│ │ │ └── bytes →
bytes│ │ ├──
PhotoSizeProgressive│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ └── sizes →
Vector < int >│ │ └──
PhotoPathSize│ │ ├── type →
string│ │ └── bytes →
bytes│ ├── video_thumbs →
Vector < VideoSize > (optional)│ │ ├──
VideoSize│ │ │ ├── type →
string│ │ │ ├── w →
int│ │ │ ├── h →
int│ │ │ ├── size →
int│ │ │ └── video_start_ts →
double (optional)│ │ ├──
VideoSizeEmojiMarkup│ │ │ ├── emoji_id →
long│ │ │ └── background_colors →
Vector < int >│ │ └──
VideoSizeStickerMarkup│ │ ├── stickerset →
InputStickerSet│ │ │ ├──
InputStickerSetEmpty│ │ │ ├──
InputStickerSetID│ │ │ ├──
InputStickerSetShortName│ │ │ ├──
InputStickerSetAnimatedEmoji│ │ │ ├──
InputStickerSetDice│ │ │ ├──
InputStickerSetAnimatedEmojiAnimations│ │ │ ├──
InputStickerSetPremiumGifts│ │ │ ├──
InputStickerSetEmojiGenericAnimations│ │ │ ├──
InputStickerSetEmojiDefaultStatuses│ │ │ ├──
InputStickerSetEmojiDefaultTopicIcons│ │ │ └──
InputStickerSetTonGifts│ │ ├── sticker_id →
long│ │ └── background_colors →
Vector < int >│ ├── dc_id →
int│ └── attributes →
Vector < DocumentAttribute >│ │ ├── w →
int│ │ └── h →
int│ ├──
DocumentAttributeSticker│ │ ├── mask →
true (optional)│ │ ├── alt →
string│ │ ├── stickerset →
InputStickerSet│ │ │ ├──
InputStickerSetEmpty│ │ │ ├──
InputStickerSetID│ │ │ ├──
InputStickerSetShortName│ │ │ ├──
InputStickerSetAnimatedEmoji│ │ │ ├──
InputStickerSetDice│ │ │ ├──
InputStickerSetAnimatedEmojiAnimations│ │ │ ├──
InputStickerSetPremiumGifts│ │ │ ├──
InputStickerSetEmojiGenericAnimations│ │ │ ├──
InputStickerSetEmojiDefaultStatuses│ │ │ ├──
InputStickerSetEmojiDefaultTopicIcons│ │ │ └──
InputStickerSetTonGifts│ │ └── mask_coords →
MaskCoords (optional)│ │ └──
MaskCoords│ ├──
DocumentAttributeVideo│ │ ├── round_message →
true (optional)│ │ ├── supports_streaming →
true (optional)│ │ ├── nosound →
true (optional)│ │ ├── duration →
double│ │ ├── w →
int│ │ ├── h →
int│ │ ├── preload_prefix_size →
int (optional)│ │ ├── video_start_ts →
double (optional)│ │ └── video_codec →
string (optional)│ ├──
DocumentAttributeAudio│ │ ├── voice →
true (optional)│ │ ├── duration →
int│ │ ├── title →
string (optional)│ │ ├── performer →
string (optional)│ │ └── waveform →
bytes (optional)│ │ └── file_name →
string│ ├── free →
true (optional)│ ├── text_color →
true (optional)│ ├── alt →
string│ └── stickerset →
InputStickerSet│ ├──
InputStickerSetEmpty│ ├──
InputStickerSetID│ ├──
InputStickerSetShortName│ ├──
InputStickerSetDice│ └──
InputStickerSetTonGifts├── gifts_count →
int└── hash →
longExample
StarGiftCollection(
collection_id=0,
title="text",
gifts_count=0,
hash=0,
)