Add Close method

This commit is contained in:
netkas 2024-09-30 12:22:02 -04:00
parent 1720455918
commit 9c4e964a15

View file

@ -0,0 +1,18 @@
<?php
namespace TgBotLib\Methods;
use TgBotLib\Abstracts\Method;
use TgBotLib\Bot;
use TgBotLib\Enums\Methods;
class Close extends Method
{
/**
* @inheritDoc
*/
public static function execute(Bot $bot, array $parameters = []): bool
{
return (bool) self::executeCurl(self::buildPost($bot, Methods::CLOSE->value));
}
}