Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions src/Types/ReplyKeyboardMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class ReplyKeyboardMarkup extends BaseType
'keyboard' => true,
'one_time_keyboard' => true,
'resize_keyboard' => true,
'selective' => true
'selective' => true,
"input_field_placeholder" => true
];

/**
Expand Down Expand Up @@ -65,12 +66,20 @@ class ReplyKeyboardMarkup extends BaseType
*/
protected $selective;

public function __construct($keyboard, $oneTimeKeyboard = null, $resizeKeyboard = null, $selective = null)
/**
* Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
*
* @var string
*/
protected $inputFieldPlaceholder;

public function __construct($keyboard, $oneTimeKeyboard = null, $resizeKeyboard = null, $selective = null, $inputFieldPlaceholder = null)
{
$this->keyboard = $keyboard;
$this->oneTimeKeyboard = $oneTimeKeyboard;
$this->resizeKeyboard = $resizeKeyboard;
$this->selective = $selective;
$this->inputFieldPlaceholder = $inputFieldPlaceholder;
}

/**
Expand Down Expand Up @@ -136,4 +145,20 @@ public function setSelective($selective)
{
$this->selective = $selective;
}

/**
* @return string
*/
public function getInputFieldPlaceholder()
{
return $this->inputFieldPlaceholder;
}

/**
* @param string $inputFieldPlaceholder
*/
public function setInputFieldPlaceholder($inputFieldPlaceholder)
{
$this->inputFieldPlaceholder = $inputFieldPlaceholder;
}
}