1 | <?php |
||
9 | class InlineQueryResults { |
||
10 | |||
11 | /** |
||
12 | * \addtogroup InlineQueryResults InlineQueryResults |
||
13 | * \brief Handle and store results before sending them to an answerInlineQuery api call. |
||
14 | * @{ |
||
15 | */ |
||
16 | |||
17 | /** \brief Array of the results stored */ |
||
18 | private $results; |
||
19 | |||
20 | /** \brief Count the result so we can assign them an unique id */ |
||
21 | private $id_article; |
||
22 | |||
23 | /** |
||
24 | * \constructor Create an InlineQueryResult object. */ |
||
25 | public function __construct() { |
||
33 | |||
34 | /** |
||
35 | * \brief Add a result of type article article. |
||
36 | * \details Add a result that will be show to the user. |
||
37 | * @param $title Title of the result. |
||
38 | * @param $message_text Text of the message to be sent. |
||
39 | * @param $description <i>Optional</i>. Short description of the result |
||
40 | * @param $reply_markup Inline keyboard object (Not JSON serialized, use getArray from InlineKeyboard class). |
||
41 | * @param $parse_mode <i>Optional</i>. Formattation of the message. |
||
42 | * @param $disable_web_preview <i>Optional</i>. Disables link previews for links in the sent message |
||
43 | * @return Id the the article added |
||
44 | */ |
||
45 | public function newArticle($title, $message_text, $description = '', array $reply_markup = null, $parse_mode = 'HTML', $disable_web_preview = false) { |
||
61 | |||
62 | /** |
||
63 | * \brief Get all results created. |
||
64 | * @return JSON-serialized string containing the results. |
||
|
|||
65 | */ |
||
66 | public function getResults() { |
||
77 | } |
||
78 | |||
80 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.