src/ApiClient.php
public function send($text, ChannelInterface $channel)
    {
        $message = $this->getMessageBuilder()
                        ->setText($text)
                        ->setChannel($channel)
                        ->create();

        return $this->postMessage($message);
    }
public function send($text, ChannelInterface $channel)
    {
        $message = $this->getMessageBuilder()
                        ->setText($text)
                        ->setChannel($channel)
                        ->create();

        return $this->postMessage($message);
    }
public function send ( $ text , ChannelInterface $ channel ) { $ message = $ this -> getMessageBuilder ( ) -> setText ( $ text ) -> setChannel ( $ channel ) -> create ( ) ; return $ this -> postMessage ( $ message ) ; }
Sends a regular text message to a given channel.

@param  string                          $text    The message text.
@param  ChannelInterface                $channel The channel to send the message to.
@return \React\Promise\PromiseInterface
Sends a regular text message to a given channel .