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

Inherits Object.

Description

A sticker to be added to a sticker set.

Public Fields

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://yangx.top/tgcore/animated_stickers#technical-requirements for technical requirements.
 
object_ptr< StickerFormatformat_
 Format of the sticker.
 
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.
 

Public Instance Methods

 inputSticker ()
 
 inputSticker (object_ptr< InputFile > &&sticker_, object_ptr< StickerFormat > &&format_, string const &emojis_, object_ptr< maskPosition > &&mask_position_, array< string > &&keywords_)
 
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 = 1589392402
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ inputSticker() [1/2]

A sticker to be added to a sticker set.

◆ inputSticker() [2/2]

inputSticker ( object_ptr< InputFile > &&  sticker_,
object_ptr< StickerFormat > &&  format_,
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://yangx.top/tgcore/animated_stickers#technical-requirements for technical requirements.
[in]format_Format of the sticker.
[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.

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