1 #include <jsoncpp/json/json.h> 10 inline_query_id(move(inline_query_id)), results(move(results))
14 answerInlineQuery::answerInlineQuery(
string inline_query_id) :
16 inline_query_id(move(inline_query_id))
24 for(
int i=0;i<
results.size();i++){
25 std::cout <<
"DEBUG:: RESULT" << std::endl;
26 Outgoing[
"results"][i] =
results[i]->toJson();
57 this->
results.push_back(move(IQR));
std::optional< bool > is_personal
const std::optional< std::string > & getNext_offset() const
void setIs_personal(const std::optional< bool > &is_personal)
const std::optional< int > & getCache_time() const
std::optional< std::string > switch_pm_text
std::string inline_query_id
answerInlineQuery(std::string inline_query_id, std::vector< std::shared_ptr< InlineQueryResult >> results)
const std::string & getInline_query_id() const
const std::optional< std::string > & getSwitch_pm_text() const
std::optional< std::int32_t > cache_time
std::optional< std::string > next_offset
void setNext_offset(const std::optional< std::string > &next_offset)
const std::optional< std::string > & getSwitch_pm_parameter() const
std::vector< std::shared_ptr< InlineQueryResult > > results
Json::Value toJson(T Obj)
void setSwitch_pm_text(const std::optional< std::string > &switch_pm_text)
const std::optional< bool > & getIs_personal() const
void addInlineQueryResult(std::shared_ptr< InlineQueryResult > IQR)
std::optional< std::string > switch_pm_parameter
void setSwitch_pm_parameter(const std::optional< std::string > &switch_pm_parameter)
void setCache_time(const std::optional< std::int32_t > &cache_time)