List of all members | Public Fields | Public Instance Methods | Static Public Attributes
sticker Class Referencefinal

Inherits Object.

Description

Describes a sticker.

Public Fields

int64 set_id_
 The identifier of the sticker set to which the sticker belongs; 0 if none.
 
int32 width_
 Sticker width; as defined by the sender.
 
int32 height_
 Sticker height; as defined by the sender.
 
string emoji_
 Emoji corresponding to the sticker.
 
bool is_animated_
 True, if the sticker is an animated sticker in TGS format.
 
bool is_mask_
 True, if the sticker is a mask.
 
object_ptr< maskPositionmask_position_
 Position where the mask is placed; may be null.
 
array< object_ptr< closedVectorPath > > outline_
 Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.
 
object_ptr< thumbnailthumbnail_
 Sticker thumbnail in WEBP or JPEG format; may be null.
 
object_ptr< filesticker_
 File containing the sticker.
 

Public Instance Methods

 sticker ()
 
 sticker (int64 set_id_, int32 width_, int32 height_, string const &emoji_, bool is_animated_, bool is_mask_, object_ptr< maskPosition > &&mask_position_, array< object_ptr< closedVectorPath >> &&outline_, object_ptr< thumbnail > &&thumbnail_, object_ptr< file > &&sticker_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ sticker() [1/2]

sticker ( )

Describes a sticker.

◆ sticker() [2/2]

sticker ( int64  set_id_,
int32  width_,
int32  height_,
string const &  emoji_,
bool  is_animated_,
bool  is_mask_,
object_ptr< maskPosition > &&  mask_position_,
array< object_ptr< closedVectorPath >> &&  outline_,
object_ptr< thumbnail > &&  thumbnail_,
object_ptr< file > &&  sticker_ 
)

Describes a sticker.

Parameters
[in]set_id_The identifier of the sticker set to which the sticker belongs; 0 if none.
[in]width_Sticker width; as defined by the sender.
[in]height_Sticker height; as defined by the sender.
[in]emoji_Emoji corresponding to the sticker.
[in]is_animated_True, if the sticker is an animated sticker in TGS format.
[in]is_mask_True, if the sticker is a mask.
[in]mask_position_Position where the mask is placed; may be null.
[in]outline_Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.
[in]thumbnail_Sticker thumbnail in WEBP or JPEG format; may be null.
[in]sticker_File containing the sticker.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ 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: