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

This object describes a sticker to be added to a sticker set. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputSticker>

Public Attributes

std::string sticker { }
 The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new file using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »
std::string format { }
 Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.
std::vector< std::string > emojiList { }
 List of 1-20 emoji associated with the sticker.
std::shared_ptr< MaskPositionmaskPosition { }
 Optional. Position where the mask should be placed on faces. For “mask” stickers only.
std::optional< std::vector< std::string > > keywords { }
 Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.

Detailed Description

This object describes a sticker to be added to a sticker set.

Definition at line 7978 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::InputSticker::Ptr = std::shared_ptr<InputSticker>

Definition at line 7979 of file Types.h.

Member Data Documentation

◆ emojiList

std::vector<std::string> TgBot::InputSticker::emojiList { }

List of 1-20 emoji associated with the sticker.

Definition at line 7999 of file Types.h.

◆ format

std::string TgBot::InputSticker::format { }

Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video.

Definition at line 7994 of file Types.h.

◆ keywords

std::optional<std::vector<std::string> > TgBot::InputSticker::keywords { }

Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.

Definition at line 8010 of file Types.h.

◆ maskPosition

std::shared_ptr<MaskPosition> TgBot::InputSticker::maskPosition { }

Optional. Position where the mask should be placed on faces. For “mask” stickers only.

Definition at line 8004 of file Types.h.

◆ sticker

std::string TgBot::InputSticker::sticker { }

The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new file using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »

Definition at line 7988 of file Types.h.


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