2023-02-12 21:39:33 -05:00
|
|
|
<?php
|
|
|
|
|
2024-10-02 00:18:12 -04:00
|
|
|
namespace TgBotLib\Objects;
|
2023-02-12 21:39:33 -05:00
|
|
|
|
|
|
|
use TgBotLib\Interfaces\ObjectTypeInterface;
|
|
|
|
|
|
|
|
class GeneralForumTopicHidden implements ObjectTypeInterface
|
|
|
|
{
|
|
|
|
// Note: This object represents a service message about General forum topic hidden in the chat.
|
|
|
|
// Currently, holds no information.
|
|
|
|
|
|
|
|
/**
|
2024-10-04 21:16:48 -04:00
|
|
|
* @inheritDoc
|
2023-02-12 21:39:33 -05:00
|
|
|
*/
|
|
|
|
public function toArray(): array
|
|
|
|
{
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2024-10-04 21:16:48 -04:00
|
|
|
* @inheritDoc
|
2023-02-12 21:39:33 -05:00
|
|
|
*/
|
2024-10-04 21:16:48 -04:00
|
|
|
public static function fromArray(?array $data): ?GeneralForumTopicHidden
|
2023-02-12 21:39:33 -05:00
|
|
|
{
|
2024-10-04 21:16:48 -04:00
|
|
|
if($data === null)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2023-02-12 21:39:33 -05:00
|
|
|
return new self();
|
|
|
|
}
|
|
|
|
}
|