diff --git a/src/Api/Keyboard.php b/src/Api/Keyboard.php index 18ea930..5be7880 100644 --- a/src/Api/Keyboard.php +++ b/src/Api/Keyboard.php @@ -60,6 +60,7 @@ public function toArray() 'Buttons' => $this->getButtonsApiArray(), 'BgColor' => $this->getBgColor(), 'DefaultHeight' => $this->getDefaultHeight(), + 'InputFieldState' => $this->getInputFieldState(), ]; } diff --git a/src/Api/Keyboard/Button.php b/src/Api/Keyboard/Button.php index d613716..e25893c 100644 --- a/src/Api/Keyboard/Button.php +++ b/src/Api/Keyboard/Button.php @@ -95,6 +95,15 @@ class Button extends Entity */ protected $Image; + /** + * Type of scaling the bounds of an image to the bounds of the view. + * + * Avail: crop, fill, fit + * + * @var string + */ + protected $ImageScaleType; + /** * Text to be displayed on the button. Can contain some HTML tags. * @@ -160,6 +169,7 @@ public function toArray() 'ActionType' => $this->getActionType(), 'ActionBody' => $this->getActionBody(), 'Image' => $this->getImage(), + 'ImageScaleType' => $this->getImageScaleType(), 'Text' => $this->getText(), 'TextVAlign' => $this->getTextVAlign(), 'TextHAlign' => $this->getTextHAlign(), @@ -385,6 +395,30 @@ public function setImage($Image) return $this; } + /** + * Get the value of image scaling type. + * + * @return string + */ + public function getImageScaleType() + { + return $this->ImageScaleType; + } + + /** + * Set the value of image scaling type. + * + * @param string ImageScaleType + * + * @return self + */ + public function setImageScaleType($ImageScaleType) + { + $this->ImageScaleType = $ImageScaleType; + + return $this; + } + /** * Get the value of Text to be displayed on the button. Can contain some HTML tags. *