TDLib
Loading...
Searching...
No Matches
td::td_api::animatedEmoji Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 animatedEmoji ()
 
 animatedEmoji (object_ptr< sticker > &&sticker_, int32 sticker_width_, int32 sticker_height_, int32 fitzpatrick_type_, object_ptr< file > &&sound_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

object_ptr< stickersticker_
 Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs.
 
int32 sticker_width_
 Expected width of the sticker, which can be used if the sticker is null.
 
int32 sticker_height_
 Expected height of the sticker, which can be used if the sticker is null.
 
int32 fitzpatrick_type_
 Emoji modifier fitzpatrick type; 0-6; 0 if none.
 
object_ptr< filesound_
 File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container.
 

Static Public Attributes

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

Detailed Description

Describes an animated or custom representation of an emoji.

Constructor & Destructor Documentation

◆ animatedEmoji() [1/2]

td::td_api::animatedEmoji::animatedEmoji ( )

Describes an animated or custom representation of an emoji.

◆ animatedEmoji() [2/2]

td::td_api::animatedEmoji::animatedEmoji ( object_ptr< sticker > &&  sticker_,
int32  sticker_width_,
int32  sticker_height_,
int32  fitzpatrick_type_,
object_ptr< file > &&  sound_ 
)

Describes an animated or custom representation of an emoji.

Parameters
[in]sticker_Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs.
[in]sticker_width_Expected width of the sticker, which can be used if the sticker is null.
[in]sticker_height_Expected height of the sticker, which can be used if the sticker is null.
[in]fitzpatrick_type_Emoji modifier fitzpatrick type; 0-6; 0 if none.
[in]sound_File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::animatedEmoji::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::animatedEmoji::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 td::TlObject.


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