Updated ForceReply

This commit is contained in:
netkas 2024-10-04 21:11:26 -04:00
parent e12979d7af
commit ce22cb4b0a

View file

@ -7,20 +7,9 @@
class ForceReply implements ObjectTypeInterface class ForceReply implements ObjectTypeInterface
{ {
/** private bool $force_reply;
* @var bool private ?string $inline_field_placeholder;
*/ private bool $selective;
private $force_reply;
/**
* @var string|null
*/
private $inline_field_placeholder;
/**
* @var bool
*/
private $selective;
/** /**
* Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' * Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
@ -55,9 +44,7 @@
} }
/** /**
* Returns an array representation of the object * @inheritDoc
*
* @return array
*/ */
public function toArray(): array public function toArray(): array
{ {
@ -69,12 +56,9 @@
} }
/** /**
* Constructs an object from an array representation * @inheritDoc
*
* @param array $data
* @return ForceReply
*/ */
public static function fromArray(array $data): self public static function fromArray(?array $data): ?ForceReply
{ {
$object = new self(); $object = new self();