Files
QtTelegramBot/types/reply/replykeyboardhide.h
Moritz Sternemann 3663fd38ce Initial commit
2015-12-29 16:44:16 +01:00

31 lines
614 B
C++

#ifndef REPLYKEYBOARDHIDE
#define REPLYKEYBOARDHIDE
#include "genericreply.h"
namespace Telegram {
class ReplyKeyboardHide : public GenericReply
{
public:
ReplyKeyboardHide(bool selective = false)
: GenericReply(selective),
hideKeyboard(true) {}
/**
* Requests clients to hide the custom keyboard
*/
const bool hideKeyboard;
virtual QString serialize() const {
QJsonObject o = QJsonObject();
o.insert("hide_keyboard", hideKeyboard);
o.insert("selective", selective);
return serializeJson(o);
}
};
}
#endif // REPLYKEYBOARDHIDE