diff options
author | Florian Scheibner <flo.de@hotmail.de> | 2015-11-16 14:56:02 +0100 |
---|---|---|
committer | Florian Scheibner <flo.de@hotmail.de> | 2015-11-16 14:56:02 +0100 |
commit | 0f15affd95df70c74b8d9b29eb857146152d162e (patch) | |
tree | 56407b8168ee53b1aa02746740f7c4ab77fc7134 /src/TgTypeParser.cpp | |
parent | 2f857ce94ae9fe80bb0d0bd96aa40e262a24f30a (diff) |
Fix hide_keyboard and force_reply Messages
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 2 |
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 += '}'; |