tgbotlib/src/TgBotLib/Objects/Telegram/CallbackGame.php

31 lines
737 B
PHP
Raw Normal View History

2023-02-13 23:10:14 -05:00
<?php
2023-02-14 17:41:38 -05:00
namespace TgBotLib\Objects\Telegram;
2023-02-13 23:10:14 -05:00
use TgBotLib\Interfaces\ObjectTypeInterface;
class CallbackGame implements ObjectTypeInterface
{
// Note: A placeholder, currently holds no information. Use BotFather to set up your game.
/**
* Returns an array representation of the object.
*
* @return array
*/
public function toArray(): array
{
return [];
}
/**
* Constructs an object from an array representation.
*
* @param array $data
2023-02-16 15:27:57 -05:00
* @return CallbackGame
2023-02-13 23:10:14 -05:00
*/
2023-02-16 15:27:57 -05:00
public static function fromArray(array $data): self
2023-02-13 23:10:14 -05:00
{
return new self();
}
}