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.
14 lines
340 B
14 lines
340 B
#include "Telegram/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);
|
|
}
|
|
|