LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
PhotoSize.cc
Go to the documentation of this file.
1 #include "Telegram/PhotoSize.h"
2 
3 Telegram::PhotoSize::PhotoSize(Json::Value json) {
4 
5  this->file_id = json["file_id"].asString();
6  this->width = json["width"].asInt64();
7  this->height = json["height"].asInt64();
8  this->file_size = json["file_size"].asInt64();
9 }
Json::Int64 width
Definition: PhotoSize.h:15
Json::Int64 height
Definition: PhotoSize.h:16
std::string file_id
Definition: PhotoSize.h:14
Json::Int64 file_size
Definition: PhotoSize.h:17
PhotoSize(Json::Value)
Definition: PhotoSize.cc:3