tgbot-cpp
Loading...
Searching...
No Matches
Sticker.h
Go to the documentation of this file.
1#ifndef TGBOT_STICKER_H
2#define TGBOT_STICKER_H
3
5#include "tgbot/types/File.h"
7
8#include <cstdint>
9#include <memory>
10#include <string>
11
12namespace TgBot {
13
19class Sticker {
20
21public:
22 typedef std::shared_ptr<Sticker> Ptr;
23
27 enum class Type {
29 };
30
34 std::string fileId;
35
40 std::string fileUniqueId;
41
47
51 std::int32_t width;
52
56 std::int32_t height;
57
62
66 bool isVideo;
67
72
76 std::string emoji;
77
81 std::string setName;
82
87
92
96 std::string customEmojiId;
97
101 bool needsRepainting = true;
102
106 std::int32_t fileSize;
107};
108}
109
110#endif //TGBOT_STICKER_H
std::shared_ptr< File > Ptr
Definition File.h:23
std::shared_ptr< MaskPosition > Ptr
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
This object represents a sticker.
Definition Sticker.h:19
Type type
Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is i...
Definition Sticker.h:46
bool needsRepainting
Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegr...
Definition Sticker.h:101
PhotoSize::Ptr thumbnail
Optional. Sticker thumbnail in the .WEBP or .JPG format.
Definition Sticker.h:71
std::int32_t fileSize
Optional. File size in bytes.
Definition Sticker.h:106
MaskPosition::Ptr maskPosition
Optional. For mask stickers, the position where the mask should be placed.
Definition Sticker.h:91
std::int32_t width
Sticker width.
Definition Sticker.h:51
std::shared_ptr< Sticker > Ptr
Definition Sticker.h:22
bool isVideo
True, if the sticker is a video sticker.
Definition Sticker.h:66
std::int32_t height
Sticker height.
Definition Sticker.h:56
Type
Enum of possible types of a sticker.
Definition Sticker.h:27
File::Ptr premiumAnimation
Optional. For premium regular stickers, premium animation for the sticker.
Definition Sticker.h:86
std::string emoji
Optional. Emoji associated with the sticker.
Definition Sticker.h:76
bool isAnimated
True, if the sticker is animated.
Definition Sticker.h:61
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Sticker.h:40
std::string setName
Optional. Name of the sticker set to which the sticker belongs.
Definition Sticker.h:81
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Sticker.h:34
std::string customEmojiId
Optional. For custom emoji stickers, unique identifier of the custom emoji.
Definition Sticker.h:96
Definition Api.h:40