LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
Sticker.cc
Go to the documentation of this file.
1 #include "Telegram/Sticker.h"
2 
3 Telegram::Sticker::Sticker(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->thumb = new PhotoSize(json["thumb"]);
9  this->emoji = json["emoji"].asString();
10  this->file_size = json["file_size"].asInt64();
11 }
PhotoSize * thumb
Definition: Sticker.h:19
std::string emoji
Definition: Sticker.h:20
Json::Int64 file_size
Definition: Sticker.h:21
Json::Int64 height
Definition: Sticker.h:18
Sticker(Json::Value)
Definition: Sticker.cc:3
std::string file_id
Definition: Sticker.h:16
Json::Int64 width
Definition: Sticker.h:17