summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-11-16 19:56:39 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-11-16 19:56:39 +0300
commitc0ecf548e9643102ae80e44d3cff59b0ed2a539b (patch)
treee65011de5d63766d9320fedfa6a5b3f1a00330c5 /src
parent91574f7b7f28e5c7c03c2af5507d7dff4fa31fed (diff)
parent14a6f4867ec74fbacdd93e888fb13c28aa637419 (diff)
Merge pull request #7 from flode/master
Fix hide keyboard and command parsing
Diffstat (limited to 'src')
-rw-r--r--src/TgTypeParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index 141aebd..6586ec6 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -404,6 +404,7 @@ std::string TgTypeParser::parseReplyKeyboardHide(const ReplyKeyboardHide::Ptr& o
}
string result;
result += '{';
+ appendToJson(result, "hide_keyboard", object->hideKeyboard);
appendToJson(result, "selective", object->selective);
result.erase(result.length() - 1);
result += '}';
@@ -422,6 +423,7 @@ std::string TgTypeParser::parseForceReply(const ForceReply::Ptr& object) const {
}
string result;
result += '{';
+ appendToJson(result, "force_reply", object->forceReply);
appendToJson(result, "selective", object->selective);
result.erase(result.length() - 1);
result += '}';