From 184f0ae9b304a56e044394a96e4ccc45200840c4 Mon Sep 17 00:00:00 2001 From: Andrea Giove Date: Tue, 29 Mar 2016 21:24:29 +0200 Subject: Added constructors --- include/tgbot/types/InlineQueryResult.h | 4 ++++ include/tgbot/types/InlineQueryResultArticle.h | 3 +++ include/tgbot/types/InlineQueryResultGif.h | 2 ++ include/tgbot/types/InlineQueryResultMpeg4Gif.h | 2 ++ include/tgbot/types/InlineQueryResultPhoto.h | 2 ++ include/tgbot/types/InlineQueryResultVideo.h | 3 +++ 6 files changed, 16 insertions(+) (limited to 'include') diff --git a/include/tgbot/types/InlineQueryResult.h b/include/tgbot/types/InlineQueryResult.h index b8309dc..d3eb968 100644 --- a/include/tgbot/types/InlineQueryResult.h +++ b/include/tgbot/types/InlineQueryResult.h @@ -18,6 +18,10 @@ class InlineQueryResult { public: typedef std::shared_ptr Ptr; + InlineQueryResult() { + this->disableWebPagePreview = false; + } + virtual ~InlineQueryResult() { } /** diff --git a/include/tgbot/types/InlineQueryResultArticle.h b/include/tgbot/types/InlineQueryResultArticle.h index 484ee30..c903255 100644 --- a/include/tgbot/types/InlineQueryResultArticle.h +++ b/include/tgbot/types/InlineQueryResultArticle.h @@ -24,6 +24,9 @@ public: InlineQueryResultArticle() { this->type = TYPE; + this->hideUrl = false; + this->thumbHeight = 0; + this->thumbWidth = 0; } /** diff --git a/include/tgbot/types/InlineQueryResultGif.h b/include/tgbot/types/InlineQueryResultGif.h index ef82f29..8892f56 100644 --- a/include/tgbot/types/InlineQueryResultGif.h +++ b/include/tgbot/types/InlineQueryResultGif.h @@ -24,6 +24,8 @@ public: InlineQueryResultGif() { this->type = TYPE; + this->gifWidth = 0; + this->gifHeight = 0; } /** diff --git a/include/tgbot/types/InlineQueryResultMpeg4Gif.h b/include/tgbot/types/InlineQueryResultMpeg4Gif.h index 9807e51..0ba80aa 100644 --- a/include/tgbot/types/InlineQueryResultMpeg4Gif.h +++ b/include/tgbot/types/InlineQueryResultMpeg4Gif.h @@ -19,6 +19,8 @@ public: InlineQueryResultMpeg4Gif() { this->type = TYPE; + this->mpeg4Width = 0; + this->mpeg4Height = 0; } /** diff --git a/include/tgbot/types/InlineQueryResultPhoto.h b/include/tgbot/types/InlineQueryResultPhoto.h index 63491f8..1c333f6 100644 --- a/include/tgbot/types/InlineQueryResultPhoto.h +++ b/include/tgbot/types/InlineQueryResultPhoto.h @@ -24,6 +24,8 @@ public: InlineQueryResultPhoto() { this->type = TYPE; + this->photoWidth = 0; + this->photoHeight = 0; } /** diff --git a/include/tgbot/types/InlineQueryResultVideo.h b/include/tgbot/types/InlineQueryResultVideo.h index 0062d36..6449c6d 100644 --- a/include/tgbot/types/InlineQueryResultVideo.h +++ b/include/tgbot/types/InlineQueryResultVideo.h @@ -19,6 +19,9 @@ public: InlineQueryResultVideo() { this->type = TYPE; + this->videoWidth = 0; + this->videoHeight = 0; + this->videoDuration = 0; }; /** -- cgit v1.2.3