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