src/Contracts/BaseHandler.php
public function send(Message $message)
    {
        if ($this->bot === null) {
            throw new NotCreateBotException;
        }
        $arguments = [$message];
        if (in_array(RequestType::class, class_uses($message))) {
            $arguments[] = $message->getCurlType();
        }

        return call_user_func_array([$this->bot, 'send'], $arguments);
    }
public function send(Message $message)
    {
        if ($this->bot === null) {
            throw new NotCreateBotException;
        }
        $arguments = [$message];
        if (in_array(RequestType::class, class_uses($message))) {
            $arguments[] = $message->getCurlType();
        }

        return call_user_func_array([$this->bot, 'send'], $arguments);
    }
public function send ( Message $ message ) { if ( $ this -> bot === null ) { throw new NotCreateBotException ; } $ arguments = [ $ message ] ; if ( in_array ( RequestType :: class , class_uses ( $ message ) ) ) { $ arguments [ ] = $ message -> getCurlType ( ) ; } return call_user_func_array ( [ $ this -> bot , 'send' ] , $ arguments ) ; }
Send message to api

@param Message $message

@return HandleMessageResponse|array
@throws \Casperlaitw\LaravelFbMessenger\Exceptions\NotCreateBotException
Send message to api