Updated ReplyKeyboardRemove
This commit is contained in:
parent
f254735b46
commit
d10e2f7dfc
1 changed files with 11 additions and 17 deletions
|
@ -7,15 +7,8 @@
|
||||||
|
|
||||||
class ReplyKeyboardRemove implements ObjectTypeInterface
|
class ReplyKeyboardRemove implements ObjectTypeInterface
|
||||||
{
|
{
|
||||||
/**
|
private bool $remove_keyboard;
|
||||||
* @var bool
|
private bool $selective;
|
||||||
*/
|
|
||||||
private $remove_keyboard;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $selective;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want
|
* Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want
|
||||||
|
@ -44,9 +37,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array representation of the object
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
|
@ -57,16 +48,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs object from an array representation
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @param array $data
|
|
||||||
* @return ReplyKeyboardRemove
|
|
||||||
*/
|
*/
|
||||||
public static function fromArray(array $data): self
|
public static function fromArray(?array $data): ?ReplyKeyboardRemove
|
||||||
{
|
{
|
||||||
|
if($data === null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$object = new self();
|
$object = new self();
|
||||||
$object->remove_keyboard = $data['remove_keyboard'] ?? false;
|
$object->remove_keyboard = $data['remove_keyboard'] ?? false;
|
||||||
$object->selective = $data['selective'] ?? false;
|
$object->selective = $data['selective'] ?? false;
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue