public function sendMessage($message)
    {
        if ($payload = $this->getJsonPayload($message)) {
            $response = $this->getHttpClient()
                ->post($this->getWebhook(), [
                    'headers' => ['Content-Type' => 'application/json'],
                    'body' => $payload,
                ]);

            return 200 === $response->getStatusCode();
        }

        return false;
    }
public function sendMessage($message)
    {
        if ($payload = $this->getJsonPayload($message)) {
            $response = $this->getHttpClient()
                ->post($this->getWebhook(), [
                    'headers' => ['Content-Type' => 'application/json'],
                    'body' => $payload,
                ]);

            return 200 === $response->getStatusCode();
        }

        return false;
    }
public function sendMessage ( $ message ) { if ( $ payload = $ this -> getJsonPayload ( $ message ) ) { $ response = $ this -> getHttpClient ( ) -> post ( $ this -> getWebhook ( ) , [ 'headers' => [ 'Content-Type' => 'application/json' ] , 'body' => $ payload , ] ) ; return 200 === $ response -> getStatusCode ( ) ; } return false ; }
Send message to the BearyChat.

@param  mixed $message  A JSON string, or any arrayable object.
@return bool
Send message to the BearyChat .