Esempio n. 1
0
 /**
  * @param Video $message
  *
  * @return array
  */
 private function formatVideoForPush(Video $message)
 {
     return ['media_id' => $message->getMediaID(), 'thumb_media_id' => $message->getThumbnailID()];
 }
Esempio n. 2
0
 /**
  * Sends a video reply.
  * 
  * @param Type\Video $videoMessage
  *
  * @throws Exception\AlreadySentException
  */
 public function sendVideo(Type\Video $videoMessage)
 {
     $this->sendReply($this->buildMessage(['MsgType' => $videoMessage->getType(), ucfirst($videoMessage->getType()) => ['MediaId' => $videoMessage->getMediaID(), 'ThumbMediaId' => $videoMessage->getThumbnailID()]]));
 }