summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea Giove <andreagiove@outlook.com>2016-03-29 21:24:29 +0200
committerAndrea Giove <andreagiove@outlook.com>2016-03-29 21:24:29 +0200
commit184f0ae9b304a56e044394a96e4ccc45200840c4 (patch)
tree58b821d7423278e8d3461eda9718edcc6386008d /include
parentde33e2e08049c3698920789f769b7f361414f4b0 (diff)
Added constructors
Diffstat (limited to 'include')
-rw-r--r--include/tgbot/types/InlineQueryResult.h4
-rw-r--r--include/tgbot/types/InlineQueryResultArticle.h3
-rw-r--r--include/tgbot/types/InlineQueryResultGif.h2
-rw-r--r--include/tgbot/types/InlineQueryResultMpeg4Gif.h2
-rw-r--r--include/tgbot/types/InlineQueryResultPhoto.h2
-rw-r--r--include/tgbot/types/InlineQueryResultVideo.h3
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;
};
/**