Updated SentWebAppMessage
This commit is contained in:
parent
f5dc29804c
commit
1d11ef3b2a
1 changed files with 4 additions and 12 deletions
|
@ -9,10 +9,7 @@
|
||||||
|
|
||||||
class SentWebAppMessage implements ObjectTypeInterface
|
class SentWebAppMessage implements ObjectTypeInterface
|
||||||
{
|
{
|
||||||
/**
|
private ?string $inline_message_id;
|
||||||
* @var string|null
|
|
||||||
*/
|
|
||||||
private $inline_message_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string|null
|
* @return string|null
|
||||||
|
@ -23,11 +20,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array representation of the object
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @return null[]|string[]
|
|
||||||
*/
|
*/
|
||||||
public function toArray(): array
|
public function toArray(): ?array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'inline_message_id' => $this->inline_message_id,
|
'inline_message_id' => $this->inline_message_id,
|
||||||
|
@ -35,10 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs object from an array representation
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @param array|null $data
|
|
||||||
* @return SentWebAppMessage|null
|
|
||||||
*/
|
*/
|
||||||
public static function fromArray(?array $data): ?SentWebAppMessage
|
public static function fromArray(?array $data): ?SentWebAppMessage
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue