for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace unreal4u\TelegramAPI\Telegram\Methods;
use Psr\Log\LoggerInterface;
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
use unreal4u\TelegramAPI\InternalFunctionality\TelegramResponse;
use unreal4u\TelegramAPI\Telegram\Types\User;
/**
* A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in
* form of a User object.
*
* Objects defined as-is july 2016
* @see https://core.telegram.org/bots/api#getme
*/
class GetMe extends TelegramMethods
{
public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
return new User($data->getResult(), $logger);
}
public function getMandatoryFields(): array
return [];