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