Exemple #1
0
 /**
  * @param Text $message
  *
  * @return array
  */
 private function formatTextForPush(Text $message)
 {
     return ['content' => $message->getContent()];
 }
Exemple #2
0
 /**
  * Sends a text reply.
  * 
  * @param Type\Text $message
  *
  * @throws Exception\AlreadySentException
  */
 public function sendText(Type\Text $message)
 {
     $this->sendReply($this->buildMessage(['MsgType' => $message->getType(), 'Content' => $message->getContent()]));
 }