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.
15 lines
331 B
15 lines
331 B
9 years ago
|
#include "MessageEntity.h"
|
||
|
|
||
|
Telegram::MessageEntity::MessageEntity(Json::Value json) {
|
||
|
|
||
|
this->type = json["type"].asString();
|
||
|
this->offset = json["offset"].asUInt64();
|
||
|
this->length = json["length"].asUInt64();
|
||
|
this->url = json["url"].asString();
|
||
|
}
|
||
|
|
||
|
std::string Telegram::MessageEntity::getType() {
|
||
|
|
||
|
return(this->type);
|
||
|
}
|