Add Logout method

This commit is contained in:
netkas 2024-09-30 12:22:06 -04:00
parent 9c4e964a15
commit 67230e35ba

View file

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