for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Helper;
use TgBotApi\BotApiBase\Exception\NormalizationException;
use TgBotApi\BotApiBase\Exception\ResponseException;
use TgBotApi\BotApiBase\Method\UploadStickerFileMethod;
use TgBotApi\BotApiBase\Type\FileType;
/**
* Trait UploadMethodTrait.
*/
trait UploadMethodTrait
{
* @param $method
* @param $type
*
* @throws ResponseException
* @throws NormalizationException
* @return mixed
abstract public function call($method, $type = null);
* @param UploadStickerFileMethod $method
* @return FileType
public function uploadStickerFile(UploadStickerFileMethod $method): FileType
return $this->call($method, FileType::class);
}