diff --git a/src/Api/Keyboard/Button.php b/src/Api/Keyboard/Button.php index 6692b24..d613716 100644 --- a/src/Api/Keyboard/Button.php +++ b/src/Api/Keyboard/Button.php @@ -138,6 +138,13 @@ class Button extends Entity */ protected $TextSize; + /** + * Option for enable/disable display text on open-url action + * + * @var bool + */ + protected $Silent; + /** * {@inheritDoc} */ @@ -158,6 +165,7 @@ public function toArray() 'TextHAlign' => $this->getTextHAlign(), 'TextOpacity' => $this->getTextOpacity(), 'TextSize' => $this->getTextSize(), + 'Silent' => $this->isSilent(), ]; } @@ -496,4 +504,24 @@ public function setTextSize($TextSize) return $this; } + + /** + * @return bool + */ + public function isSilent() + { + return (bool) $this->Silent; + } + + /** + * @param bool $Silent + * + * @return self + */ + public function setSilent($Silent) + { + $this->Silent = $Silent; + + return $this; + } }