tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::StickerSet Struct Reference

This object represents a sticker set. https://core.telegram.org/bots/api#stickerset. More...

#include <StickerSet.hpp>

Public Member Functions

 StickerSet ()=default
 
 StickerSet (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string name
 Sticker set name. More...
 
std::string title
 Sticker set title. More...
 
Sticker::Type type {}
 Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji” More...
 
bool isAnimated {}
 True, if the sticker set contains animated stickers More...
 
bool isVideo {}
 True, if the sticker set contains video stickers More...
 
std::vector< Ptr< Sticker > > stickers
 List of all set stickers. More...
 
Ptr< PhotoSizethumbnail
 Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format. More...
 

Detailed Description

This object represents a sticker set. https://core.telegram.org/bots/api#stickerset.

Definition at line 9 of file StickerSet.hpp.

Constructor & Destructor Documentation

◆ StickerSet() [1/2]

tgbotxx::StickerSet::StickerSet ( )
default

◆ StickerSet() [2/2]

tgbotxx::StickerSet::StickerSet ( const nl::json &  json)
inlineexplicit

Definition at line 11 of file StickerSet.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::StickerSet::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 51 of file StickerSet.hpp.

◆ toJson()

nl::json tgbotxx::StickerSet::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 38 of file StickerSet.hpp.

Member Data Documentation

◆ isAnimated

bool tgbotxx::StickerSet::isAnimated {}

True, if the sticker set contains animated stickers

Definition at line 25 of file StickerSet.hpp.

◆ isVideo

bool tgbotxx::StickerSet::isVideo {}

True, if the sticker set contains video stickers

Definition at line 28 of file StickerSet.hpp.

◆ name

std::string tgbotxx::StickerSet::name

Sticker set name.

Definition at line 16 of file StickerSet.hpp.

◆ stickers

std::vector<Ptr<Sticker> > tgbotxx::StickerSet::stickers

List of all set stickers.

Definition at line 31 of file StickerSet.hpp.

◆ thumbnail

Ptr<PhotoSize> tgbotxx::StickerSet::thumbnail

Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format.

Definition at line 34 of file StickerSet.hpp.

◆ title

std::string tgbotxx::StickerSet::title

Sticker set title.

Definition at line 19 of file StickerSet.hpp.

◆ type

Sticker::Type tgbotxx::StickerSet::type {}

Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”

Definition at line 22 of file StickerSet.hpp.


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