Added \TgBotLib\Objects > WriteAccessAllowed

This commit is contained in:
Netkas 2023-02-12 21:47:42 -05:00
parent 6ee9f48940
commit 1fb63fc89a

View file

@ -0,0 +1,32 @@
<?php
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.
/**
* Returns an array representation of the object
*
* @return array
*/
public function toArray(): array
{
return [];
}
/**
* Convert object from an array representation
*
* @param array $data
* @return ObjectTypeInterface
*/
public static function fromArray(array $data): ObjectTypeInterface
{
return new self();
}
}