Cppgram
1.0.0
Easy and modern C++14 Telegram Bot API wrapper
|
Create articles to send as inlineQuery result. More...
#include <inline_query_result.hpp>
Public Member Functions | |
InlineQueryResult () | |
InlineQueryResult constructor. More... | |
short | newArticle (const std::string &title, const std::string &message_text, const Json::Value &reply_markup=Json::Value(), const std::string &description="", const EParseMode parse_mode=static_cast< EParseMode >(1), const bool disable_web_page_preview=true) |
Add a new article to the results. More... | |
const Json::Value & | getResults () const |
Get results to send in answerInlineQuery. More... | |
Create articles to send as inlineQuery result.
Helper class to create articles and pass the results to answerInlineQuery
InlineQueryResult constructor.
const Json::Value& getResults | ( | ) | const |
Get results to send in answerInlineQuery.
short newArticle | ( | const std::string & | title, |
const std::string & | message_text, | ||
const Json::Value & | reply_markup = Json::Value() , |
||
const std::string & | description = "" , |
||
const EParseMode | parse_mode = static_cast< EParseMode >(1) , |
||
const bool | disable_web_page_preview = true |
||
) |
Add a new article to the results.
title | Title of the result |
message_text | Text of the message to be sent, 1-4096 characters |
reply_markup | Optional. Inline keyboard attached to the message |
description | Optional. Short description of the result |
parse_mode | Optional. Formatting option |
disable_web_page_preview | Optional. Disables link previews for links in the sent message |