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