TDLib
Loading...
Searching...
No Matches
stickerSetInfo Class Referencefinal

Inherits Object.

Description

Represents short information about a sticker set.

Public Member Functions

 stickerSetInfo ()
 stickerSetInfo (int64 id_, string const &title_, string const &name_, object_ptr< thumbnail > &&thumbnail_, object_ptr< outline > &&thumbnail_outline_, bool is_owned_, bool is_installed_, bool is_archived_, bool is_official_, object_ptr< StickerType > &&sticker_type_, bool needs_repainting_, bool is_allowed_as_chat_emoji_status_, bool is_viewed_, int32 size_, array< object_ptr< sticker > > &&covers_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

array< object_ptr< sticker > > covers_
 Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested.
int64 id_
 Identifier of the sticker set.
bool is_allowed_as_chat_emoji_status_
 True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only.
bool is_archived_
 True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously.
bool is_installed_
 True, if the sticker set has been installed by the current user.
bool is_official_
 True, if the sticker set is official.
bool is_owned_
 True, if the sticker set is owned by the current user.
bool is_viewed_
 True for already viewed trending sticker sets.
string name_
 Name of the sticker set.
bool needs_repainting_
 True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
int32 size_
 Total number of stickers in the set.
object_ptr< StickerType > sticker_type_
 Type of the stickers in the set.
object_ptr< thumbnail > thumbnail_
 Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed.
object_ptr< outline > thumbnail_outline_
 Sticker set thumbnail's outline; may be null if unknown.
string title_
 Title of the sticker set.

Static Public Attributes

static const std::int32_t ID = -1649074729
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ stickerSetInfo() [1/2]

stickerSetInfo ( )

Represents short information about a sticker set.

◆ stickerSetInfo() [2/2]

stickerSetInfo ( int64 id_,
string const & title_,
string const & name_,
object_ptr< thumbnail > && thumbnail_,
object_ptr< outline > && thumbnail_outline_,
bool is_owned_,
bool is_installed_,
bool is_archived_,
bool is_official_,
object_ptr< StickerType > && sticker_type_,
bool needs_repainting_,
bool is_allowed_as_chat_emoji_status_,
bool is_viewed_,
int32 size_,
array< object_ptr< sticker > > && covers_ )

Represents short information about a sticker set.

Parameters
[in]id_Identifier of the sticker set.
[in]title_Title of the sticker set.
[in]name_Name of the sticker set.
[in]thumbnail_Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed.
[in]thumbnail_outline_Sticker set thumbnail's outline; may be null if unknown.
[in]is_owned_True, if the sticker set is owned by the current user.
[in]is_installed_True, if the sticker set has been installed by the current user.
[in]is_archived_True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously.
[in]is_official_True, if the sticker set is official.
[in]sticker_type_Type of the stickers in the set.
[in]needs_repainting_True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only.
[in]is_allowed_as_chat_emoji_status_True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only.
[in]is_viewed_True for already viewed trending sticker sets.
[in]size_Total number of stickers in the set.
[in]covers_Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: