diff --git a/src/Wechat/Work/Message/MessageInterface.php b/src/Wechat/Work/Message/MessageInterface.php index b0366b3..e056312 100644 --- a/src/Wechat/Work/Message/MessageInterface.php +++ b/src/Wechat/Work/Message/MessageInterface.php @@ -67,6 +67,7 @@ abstract class MessageInterface $this->type => $this->attr, ]); break; + case self::TYPE_FILE: case self::TYPE_IMAGE: $params = array_merge($params, [ $this->type => [ diff --git a/src/Wechat/Work/Message/TextFileMessage.php b/src/Wechat/Work/Message/TextFileMessage.php new file mode 100644 index 0000000..be20507 --- /dev/null +++ b/src/Wechat/Work/Message/TextFileMessage.php @@ -0,0 +1,16 @@ +type = self::TYPE_FILE; + $this->attr['media_id'] = $content; + } + +} \ No newline at end of file