tgbot-cpp
Loading...
Searching...
No Matches
TgBot::CreateNewStickerSetArgs Struct Reference

Arguments for Api::createNewStickerSet. More...

#include <Types.h>

Public Attributes

std::int64_t userId { }
 User identifier of created sticker set owner.
std::string name { }
 Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.
std::string title { }
 Sticker set title, 1-64 characters.
std::vector< std::shared_ptr< InputSticker > > stickers { }
 A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.
Sticker::Type stickerType = Sticker::Type::Regular
 Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
bool needsRepainting = false
 Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only.
std::vector< InputFileAttachment > attachments = { }
 Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument as attach://<name> and use the same name in InputFileAttachment.

Detailed Description

Arguments for Api::createNewStickerSet.

Definition at line 15145 of file Types.h.

Member Data Documentation

◆ attachments

std::vector<InputFileAttachment> TgBot::CreateNewStickerSetArgs::attachments = { }

Files uploaded as named multipart parts. Reference each file from a composite Telegram API argument as attach://<name> and use the same name in InputFileAttachment.

Definition at line 15190 of file Types.h.

◆ name

std::string TgBot::CreateNewStickerSetArgs::name { }

Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.

Definition at line 15158 of file Types.h.

◆ needsRepainting

bool TgBot::CreateNewStickerSetArgs::needsRepainting = false

Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only.

Definition at line 15183 of file Types.h.

◆ stickers

std::vector<std::shared_ptr<InputSticker> > TgBot::CreateNewStickerSetArgs::stickers { }

A JSON-serialized list of 1-50 initial stickers to be added to the sticker set.

Definition at line 15169 of file Types.h.

◆ stickerType

Sticker::Type TgBot::CreateNewStickerSetArgs::stickerType = Sticker::Type::Regular

Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.

Definition at line 15175 of file Types.h.

◆ title

std::string TgBot::CreateNewStickerSetArgs::title { }

Sticker set title, 1-64 characters.

Definition at line 15163 of file Types.h.

◆ userId

std::int64_t TgBot::CreateNewStickerSetArgs::userId { }

User identifier of created sticker set owner.

Definition at line 15149 of file Types.h.


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