You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
421 B

9 years ago
#ifndef _TG_MESSAGEENTITY_H_
#define _TG_MESSAGEENTITY_H_
#include <string>
#include <json/json.h>
#include <vector>
namespace Telegram {
class MessageEntity {
public:
MessageEntity(Json::Value);
std::string getType();
private:
std::string type;
Json::Int64 offset;
Json::Int64 length;
std::string url;
};
typedef std::vector<Telegram::MessageEntity*> TMessageEntities;
}
#endif