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