sendMessage() public method

Send a message.
public sendMessage ( Message $message ) : void
$message Message
return void
Example #1
0
 /**
  * Send the message
  *
  * @param string $text The text to send
  * @return void
  */
 public function send($text = null)
 {
     if ($text) {
         $this->setText($text);
     }
     $this->client->sendMessage($this);
 }
 /**
  * Send a message
  *
  * @param \Maknz\Slack\Message $message
  * @return void 
  * @static 
  */
 public static function sendMessage($message)
 {
     \Maknz\Slack\Client::sendMessage($message);
 }