5 #ifndef YATBCPP_MESSAGEENTITY_H 6 #define YATBCPP_MESSAGEENTITY_H 20 void setUrl(
const std::optional<std::string> &
url);
24 const std::string &
getType()
const;
30 const std::optional<std::string> &
getUrl()
const;
32 const std::optional<User> &
getUser()
const;
38 std::optional<std::string>
url;
45 #endif //YATBCPP_MESSAGEENTITY_H
std::int32_t getOffset() const
const std::optional< std::string > & getUrl() const
const std::optional< User > & getUser() const
MessageEntity(std::string type, std::int32_t offset, std::int32_t length)
std::optional< std::string > url
void setUrl(const std::optional< std::string > &url)
void setUser(const std::optional< User > &user)
std::optional< User > user
const std::string & getType() const
std::int32_t getLength() const