tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::createNewStickerSet Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::createNewStickerSet:
td::td_api::Function td::TlObject

Public Types

using ReturnType = object_ptr< stickerSet >
 Typedef for the type returned by the function.
 

Public Member Functions

 createNewStickerSet ()
 
 createNewStickerSet (int53 user_id_, string const &title_, string const &name_, object_ptr< StickerType > &&sticker_type_, bool needs_repainting_, array< object_ptr< inputSticker > > &&stickers_, string const &source_)
 
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

int53 user_id_
 Sticker set owner; ignored for regular users.
 
string title_
 Sticker set title; 1-64 characters.
 
string name_
 Sticker set name. Can contain only English letters, digits and underscores. Must end with "by<bot username>" (<bot_username> is case insensitive) for bots; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically.
 
object_ptr< StickerTypesticker_type_
 Type of the stickers in the set.
 
bool needs_repainting_
 Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.
 
array< object_ptr< inputSticker > > stickers_
 List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown.
 
string source_
 Source of the sticker set; may be empty if unknown.
 

Static Public Attributes

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

Detailed Description

Creates a new sticker set. Returns the newly created sticker set.

Returns object_ptr<StickerSet>.

Definition at line 94051 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 94102 of file td_api.h.

Constructor & Destructor Documentation

◆ createNewStickerSet() [1/2]

td::td_api::createNewStickerSet::createNewStickerSet ( )

Default constructor for a function, which creates a new sticker set. Returns the newly created sticker set.

Returns object_ptr<StickerSet>.

◆ createNewStickerSet() [2/2]

td::td_api::createNewStickerSet::createNewStickerSet ( int53  user_id_,
string const &  title_,
string const &  name_,
object_ptr< StickerType > &&  sticker_type_,
bool  needs_repainting_,
array< object_ptr< inputSticker > > &&  stickers_,
string const &  source_ 
)

Creates a function, which creates a new sticker set. Returns the newly created sticker set.

Returns object_ptr<StickerSet>.

Parameters
[in]user_id_Sticker set owner; ignored for regular users.
[in]title_Sticker set title; 1-64 characters.
[in]name_Sticker set name. Can contain only English letters, digits and underscores. Must end with "by<bot username>" (<bot_username> is case insensitive) for bots; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically.
[in]sticker_type_Type of the stickers in the set.
[in]needs_repainting_Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.
[in]stickers_List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown.
[in]source_Source of the sticker set; may be empty if unknown.

Member Function Documentation

◆ store()

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

Member Data Documentation

◆ ID

const std::int32_t td::td_api::createNewStickerSet::ID = -481065727
static

Identifier uniquely determining a type of the object.

Definition at line 94099 of file td_api.h.

◆ name_

string td::td_api::createNewStickerSet::name_

Sticker set name. Can contain only English letters, digits and underscores. Must end with "by<bot username>" (<bot_username> is case insensitive) for bots; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically.

Definition at line 94066 of file td_api.h.

◆ needs_repainting_

bool td::td_api::createNewStickerSet::needs_repainting_

Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.

Definition at line 94070 of file td_api.h.

◆ source_

string td::td_api::createNewStickerSet::source_

Source of the sticker set; may be empty if unknown.

Definition at line 94074 of file td_api.h.

◆ sticker_type_

object_ptr<StickerType> td::td_api::createNewStickerSet::sticker_type_

Type of the stickers in the set.

Definition at line 94068 of file td_api.h.

◆ stickers_

array<object_ptr<inputSticker> > td::td_api::createNewStickerSet::stickers_

List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown.

Definition at line 94072 of file td_api.h.

◆ title_

string td::td_api::createNewStickerSet::title_

Sticker set title; 1-64 characters.

Definition at line 94064 of file td_api.h.

◆ user_id_

int53 td::td_api::createNewStickerSet::user_id_

Sticker set owner; ignored for regular users.

Definition at line 94062 of file td_api.h.


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