public function newArticle(
        string $title,
        string $message_text,
        string $description = '',
        array $reply_markup = null,
        $parse_mode = 'HTML',
        $disable_web_preview = false
    ) : int {

        array_push($this->results, [
            'type' => 'article',
            'id' => (string)$this->id_result,
            'title' => $title,
            'message_text' => $message_text,
            'description' => $description,
            'parse_mode' => $parse_mode,
            'reply_markup' => $reply_markup,
            'disable_web_page_preview' => $disable_web_preview
        ]);

        if ( is_null($reply_markup) ) {
            unset( $this->results[ $this->id_result ]['reply_markup'] );
        }

        return $this->id_result++;
    }
public function newArticle(
        string $title,
        string $message_text,
        string $description = '',
        array $reply_markup = null,
        $parse_mode = 'HTML',
        $disable_web_preview = false
    ) : int {

        array_push($this->results, [
            'type' => 'article',
            'id' => (string)$this->id_result,
            'title' => $title,
            'message_text' => $message_text,
            'description' => $description,
            'parse_mode' => $parse_mode,
            'reply_markup' => $reply_markup,
            'disable_web_page_preview' => $disable_web_preview
        ]);

        if ( is_null($reply_markup) ) {
            unset( $this->results[ $this->id_result ]['reply_markup'] );
        }

        return $this->id_result++;
    }
public function newArticle ( string $ title , string $ message_text , string $ description = '' , array $ reply_markup = null , $ parse_mode = 'HTML' , $ disable_web_preview = false ) : int { array_push ( $ this -> results , [ 'type' => 'article' , 'id' => ( string ) $ this -> id_result , 'title' => $ title , 'message_text' => $ message_text , 'description' => $ description , 'parse_mode' => $ parse_mode , 'reply_markup' => $ reply_markup , 'disable_web_page_preview' => $ disable_web_preview ] ) ; if ( is_null ( $ reply_markup ) ) { unset ( $ this -> results [ $ this -> id_result ] [ 'reply_markup' ] ) ; } return $ this -> id_result ++ ; }
\brief Add a result of type Article.
\details Add a result that will be show to the user.
@param string $title Title of the result.
@param string $message_text Text of the message to be sent.
@param string $description <i>Optional</i>. Short description of the result
@param array $reply_markup Inline keyboard object.
Not JSON serialized, use getArray from InlineKeyboard class.
@param string $parse_mode <i>Optional</i>. Formattation style for the message.
@param string $disable_web_preview <i>Optional</i>. Disables link previews for
links in the sent message.
@return int Id the the article added.
\ brief Add a result of type Article . \ details Add a result that will be show to the user .