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\ForwardMethod;
use TgBotApi\BotApiBase\Method\Interfaces\ForwardMethodAliasInterface;
use TgBotApi\BotApiBase\Type\MessageType;
/**
* Trait ForwardMethodTrait.
*/
trait ForwardMethodTrait
{
* @param ForwardMethodAliasInterface $method
*
* @throws ResponseException
* @return MessageType
abstract public function forward(ForwardMethodAliasInterface $method): MessageType;
* @param ForwardMethod $method
public function forwardMessage(ForwardMethod $method): MessageType
return $this->forward($method);
}