LibTgBotPP
Main Page
Namespaces
Classes
Files
File List
File Members
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
}
Telegram::Document::file_size
Json::Int64 file_size
Definition:
Document.h:20
Document.h
Telegram::PhotoSize
Definition:
PhotoSize.h:9
Telegram::Document::thumb
PhotoSize * thumb
Definition:
Document.h:17
Telegram::Document::file_id
std::string file_id
Definition:
Document.h:16
Telegram::Document::file_name
std::string file_name
Definition:
Document.h:18
Telegram::Document::Document
Document(Json::Value)
Definition:
Document.cc:3
Telegram::Document::mime_type
std::string mime_type
Definition:
Document.h:19
src
Document.cc
Generated on Sun Jun 4 2017 13:31:53 for LibTgBotPP by
1.8.6