Minor Correction

This commit is contained in:
netkas 2024-10-06 18:50:26 -04:00
parent 220100c4b5
commit 5703ce9987
5 changed files with 163 additions and 163 deletions

View file

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