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
20
21public:
22 typedef std::shared_ptr<MessageEntity> Ptr;
23
30
37
42 std::int32_t offset;
43
47 std::int32_t length;
48
52 std::string url;
53
58
62 std::string language;
63
69 std::string customEmojiId;
70};
71}
72
73#endif //TGBOT_MESSAGEENTITY_H
This object represents one special entity in a text message.
std::string url
Optional. For Type::TextLink 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 Type::Pre only, the programming language of the entity text.
std::string customEmojiId
Optional. For Type::CustomEmoji only, unique identifier of the custom emoji.
Type type
Type of the entity.
std::int32_t length
Length of the entity in UTF-16 code units
User::Ptr user
Optional. For Type::TextMention only, the mentioned user.
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40