public function button($text, $url, $columns = 2)
    {
        $this->buttons[] = compact('text', 'url');

        $replyMarkup['inline_keyboard'] = array_chunk($this->buttons, $columns);
        $this->payload['reply_markup'] = json_encode($replyMarkup);

        return $this;
    }
public function button($text, $url, $columns = 2)
    {
        $this->buttons[] = compact('text', 'url');

        $replyMarkup['inline_keyboard'] = array_chunk($this->buttons, $columns);
        $this->payload['reply_markup'] = json_encode($replyMarkup);

        return $this;
    }
public function button ( $ text , $ url , $ columns = 2 ) { $ this -> buttons [ ] = compact ( 'text' , 'url' ) ; $ replyMarkup [ 'inline_keyboard' ] = array_chunk ( $ this -> buttons , $ columns ) ; $ this -> payload [ 'reply_markup' ] = json_encode ( $ replyMarkup ) ; return $ this ; }
Add an inline button.

@param string $text
@param string $url
@param int   $columns

@return $this
Add an inline button .