Add Close method
This commit is contained in:
parent
1720455918
commit
9c4e964a15
1 changed files with 18 additions and 0 deletions
18
src/TgBotLib/Methods/Close.php
Normal file
18
src/TgBotLib/Methods/Close.php
Normal 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));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue