public function getArray(bool $clean_keyboard = true) : array
    {
        if (empty($this->inline_keyboard)) {
            throw new BotException("Inline keyboard is empty");
        }

        // Create a new array to put the buttons
        $reply_markup = ['inline_keyboard' => $this->inline_keyboard];

        if ($clean_keyboard) {
            $this->clearKeyboard();
        }

        return $reply_markup;
    }
public function getArray(bool $clean_keyboard = true) : array
    {
        if (empty($this->inline_keyboard)) {
            throw new BotException("Inline keyboard is empty");
        }

        // Create a new array to put the buttons
        $reply_markup = ['inline_keyboard' => $this->inline_keyboard];

        if ($clean_keyboard) {
            $this->clearKeyboard();
        }

        return $reply_markup;
    }
public function getArray ( bool $ clean_keyboard = true ) : array { if ( empty ( $ this -> inline_keyboard ) ) { throw new BotException ( "Inline keyboard is empty" ) ; } // Create a new array to put the buttons $ reply_markup = [ 'inline_keyboard' => $ this -> inline_keyboard ] ; if ( $ clean_keyboard ) { $ this -> clearKeyboard ( ) ; } return $ reply_markup ; }
\brief Get the array containing the buttons.
\details Use this method when adding keyboard to inline query results.
@param bool $clean_keyboard If it's true, it'll clean the inline keyboard.
@return array An array containing the buttons.
\ brief Get the array containing the buttons . \ details Use this method when adding keyboard to inline query results .