Updated ForceReply
This commit is contained in:
parent
e12979d7af
commit
ce22cb4b0a
1 changed files with 6 additions and 22 deletions
|
@ -7,20 +7,9 @@
|
|||
|
||||
class ForceReply implements ObjectTypeInterface
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $force_reply;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
private $inline_field_placeholder;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $selective;
|
||||
private bool $force_reply;
|
||||
private ?string $inline_field_placeholder;
|
||||
private bool $selective;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @return array
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function toArray(): array
|
||||
{
|
||||
|
@ -69,12 +56,9 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* Constructs an object from an array representation
|
||||
*
|
||||
* @param array $data
|
||||
* @return ForceReply
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function fromArray(array $data): self
|
||||
public static function fromArray(?array $data): ?ForceReply
|
||||
{
|
||||
$object = new self();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue