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

Inherits td::td_api::Object.

Public Member Functions

 inputSticker ()
 
 inputSticker (object_ptr< InputFile > &&sticker_, string const &emojis_, object_ptr< maskPosition > &&mask_position_, array< string > &&keywords_)
 
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< InputFilesticker_
 File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
 
string emojis_
 String with 1-20 emoji corresponding to the sticker.
 
object_ptr< maskPositionmask_position_
 Position where the mask is placed; pass null if not specified.
 
array< stringkeywords_
 List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.
 

Static Public Attributes

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

Detailed Description

A sticker to be added to a sticker set.

Constructor & Destructor Documentation

◆ inputSticker() [1/2]

td::td_api::inputSticker::inputSticker ( )

A sticker to be added to a sticker set.

◆ inputSticker() [2/2]

td::td_api::inputSticker::inputSticker ( object_ptr< InputFile > &&  sticker_,
string const &  emojis_,
object_ptr< maskPosition > &&  mask_position_,
array< string > &&  keywords_ 
)

A sticker to be added to a sticker set.

Parameters
[in]sticker_File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
[in]emojis_String with 1-20 emoji corresponding to the sticker.
[in]mask_position_Position where the mask is placed; pass null if not specified.
[in]keywords_List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::inputSticker::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: