tgbot-cpp
Loading...
Searching...
No Matches
MessageEntity.h
Go to the documentation of this file.
1#ifndef TGBOT_MESSAGEENTITY_H
2#define TGBOT_MESSAGEENTITY_H
3
4#include "tgbot/types/User.h"
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
19public:
20 typedef std::shared_ptr<MessageEntity> Ptr;
21
28
34
38 std::int32_t offset;
39
43 std::int32_t length;
44
48 std::string url;
49
54
58 std::string language;
59
64 std::string customEmojiId;
65};
66}
67
68#endif //TGBOT_MESSAGEENTITY_H
This object represents one special entity in a text message. For example, hashtags,...
std::string url
Optional. For “text_link” only, URL that will be opened after user taps on the text.
std::int32_t offset
Offset in UTF-16 code units to the start of the entity.
std::shared_ptr< MessageEntity > Ptr
Type
Enum of possible types.
std::string language
Optional. For “pre” only, the programming language of the entity text.
std::string customEmojiId
Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use Api::getCustomEmojiStic...
Type type
Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag),...
std::int32_t length
Length of the entity in UTF-16 code units.
User::Ptr user
Optional. For “text_mention” only, the mentioned user.
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:39