Skip to content

Commit 212618a

Browse files
committed
add options
1 parent 283c9cc commit 212618a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Api/Type/Keyboard/ReplyKeyboardMarkup.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ final class ReplyKeyboardMarkup implements ReplayMarkup
6161
*/
6262
public $selective = false;
6363

64-
public static function withButtons(KeyboardButton ...$buttons): self
64+
public static function withButtons(bool $resizeKeyboard, bool $oneTimeKeyboard, KeyboardButton ...$buttons): self
6565
{
66-
return new self([$buttons]);
66+
return new self([$buttons], $resizeKeyboard, $oneTimeKeyboard);
6767
}
6868

6969
/**
7070
* @param KeyboardButton[][] $keyboard
71-
* @param bool $resizeKeyboard
72-
* @param bool $oneTimeKeyboard
73-
* @param bool $selective
71+
* @param bool $resizeKeyboard
72+
* @param bool $oneTimeKeyboard
73+
* @param bool $selective
7474
*/
7575
public function __construct(array $keyboard, bool $resizeKeyboard = false, bool $oneTimeKeyboard = false, bool $selective = false)
7676
{

0 commit comments

Comments
 (0)