diff options
author | Andrea Giove <andreagiove@outlook.com> | 2016-03-29 21:24:29 +0200 |
---|---|---|
committer | Andrea Giove <andreagiove@outlook.com> | 2016-03-29 21:24:29 +0200 |
commit | 184f0ae9b304a56e044394a96e4ccc45200840c4 (patch) | |
tree | 58b821d7423278e8d3461eda9718edcc6386008d /include | |
parent | de33e2e08049c3698920789f769b7f361414f4b0 (diff) |
Added constructors
Diffstat (limited to 'include')
-rw-r--r-- | include/tgbot/types/InlineQueryResult.h | 4 | ||||
-rw-r--r-- | include/tgbot/types/InlineQueryResultArticle.h | 3 | ||||
-rw-r--r-- | include/tgbot/types/InlineQueryResultGif.h | 2 | ||||
-rw-r--r-- | include/tgbot/types/InlineQueryResultMpeg4Gif.h | 2 | ||||
-rw-r--r-- | include/tgbot/types/InlineQueryResultPhoto.h | 2 | ||||
-rw-r--r-- | include/tgbot/types/InlineQueryResultVideo.h | 3 |
6 files changed, 16 insertions, 0 deletions
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<InlineQueryResult> 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; }; /** |