Minor Correction
This commit is contained in:
parent
220100c4b5
commit
5703ce9987
5 changed files with 163 additions and 163 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue