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