From b0fc0506a9b85d4bb2c2c3279c88e812fff35552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Mon, 23 May 2016 13:10:51 +0200 Subject: [PATCH 1/2] Added emoji --- include/Telegram/Sticker.h | 1 + src/Sticker.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/include/Telegram/Sticker.h b/include/Telegram/Sticker.h index 9098bde..040ecc7 100644 --- a/include/Telegram/Sticker.h +++ b/include/Telegram/Sticker.h @@ -17,6 +17,7 @@ namespace Telegram { Json::Int64 width; Json::Int64 height; PhotoSize *thumb; + std::string emoji; Json::Int64 file_size; }; } diff --git a/src/Sticker.cc b/src/Sticker.cc index 5bb08f5..5d1c251 100644 --- a/src/Sticker.cc +++ b/src/Sticker.cc @@ -6,5 +6,6 @@ Telegram::Sticker::Sticker(Json::Value json) { this->width = json["width"].asInt64(); this->height = json["height"].asInt64(); this->thumb = new PhotoSize(json["thumb"]); + this->emoji = json["emoji"].asString(); this->file_size = json["file_size"].asInt64(); } From c207ee8b254e7fffa66d70695b51334f75930cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Mon, 23 May 2016 13:11:05 +0200 Subject: [PATCH 2/2] Fixed include error --- src/TelegramBot.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TelegramBot.cc b/src/TelegramBot.cc index efb862f..eb8a8c7 100644 --- a/src/TelegramBot.cc +++ b/src/TelegramBot.cc @@ -7,9 +7,9 @@ #include #include -#include "Telegram/http_build_query.h" -#include "Telegram/json_encode.h" -#include "Telegram/std.h" +#include "http_build_query.h" +#include "json_encode.h" +#include "std.h" #include "Telegram/Message.h" #include "Telegram/MessageEntity.h"