tgbotlib/src/TgBotLib/Objects/WriteAccessAllowed.php

32 lines
735 B
PHP
Raw Normal View History

<?php
2024-10-02 00:18:12 -04:00
namespace TgBotLib\Objects;
use TgBotLib\Interfaces\ObjectTypeInterface;
class WriteAccessAllowed implements ObjectTypeInterface
{
// Note: This object represents a service message about a user allowing a bot added to the attachment menu to
// write messages. Currently, holds no information.
/**
2024-10-06 16:09:27 -04:00
* @inheritDoc
*/
public function toArray(): array
{
return [];
}
/**
2024-10-06 16:09:27 -04:00
* @inheritDoc
*/
2024-10-06 16:09:27 -04:00
public static function fromArray(?array $data): ?WriteAccessAllowed
{
2024-10-06 16:09:27 -04:00
if($data === null)
{
return null;
}
return new self();
}
}