Message
abstract class Message implements DingTalkMessage
Class Message
Properties
protected string | $type | 消息类型 | |
protected array | $atMobiles | 被@人的手机号(在content里添加@人的手机号) | |
protected bool | $isAll | 是否@所有人 | |
protected array | $message | 最终消息结构体 |
Methods
setAtMobiles(array $at)
设置需要at的人,默认只有Text和Markdown支持
string
toJson()
最终输出的结构体JSON
string
formatContent(string $content)
格式化消息体