Documentation ¶
Index ¶
- func JsonEscape(s string) string
- type CQ
- type Message
- func (m Message) At() string
- func (m Message) CardImage() string
- func (m Message) Contact() string
- func (m Message) Dice() string
- func (m Message) Face() string
- func (m Message) Gift() string
- func (m Message) Json() string
- func (m Message) Location() string
- func (m Message) Music() string
- func (m Message) NewImage() string
- func (m Message) Poke() string
- func (m Message) Record() string
- func (m Message) Reply() string
- func (m Message) Rps() string
- func (m Message) Shake() string
- func (m Message) Share() string
- func (m Message) Tts() string
- func (m Message) Video() string
- func (m Message) Xml() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { Message string `json:"message"` Id int `json:"id"` Magic int `json:"magic"` //发送语音时可选,表示是否变声 QQ int `json:"qq"` Fle string `json:"fle"` //文件路径或下载链接 Type string `json:"type"` //图片是否为闪照 闪照为flash,秀图为show 发送音乐时 qq表示qq音乐,163表示网易云音乐,custom表示自定义分享 Url string `json:"url"` //网络url Cache int `json:"cache"` //只在通过网络 URL 发送时有效,表示是否使用已缓存的文件,默认 1 Proxy int `json:"proxy"` //只在通过网络 URL 发送时有效,表示是否通过代理下载文件(需通过环境变量或配置文件配置代理),默认 1 TimeOut int `json:"time_out"` //只在通过网络 URL 发送时有效,单位秒,表示下载网络文件的超时时间,默认不超时 C int `json:"c"` //下载时使用的线程数 Audio string `json:"audio"` //分享音乐时音乐Url Lat float32 `json:"lat"` //纬度 Lon float32 `json:"lon"` //经度 Text string `json:"text"` //回复的消息 Time int64 `json:"time"` //自定义回复消息时的时间戳 Cover string `json:"cover"` //发送短视频时的封面消息 Resid int `json:"resid"` //0为走小程序通道,其他为富文本通道 Title string `json:"title"` //标题 Content string `json:"content"` //内容 Image string `json:"image"` //图片链接,可选 }
详情参考:
https://github.com/howmanybots/onebot/blob/master/v11/specs/message/segment.md#qq-%E8%A1%A8%E6%83%85 https://github.com/Mrs4s/go-cqhttp/blob/master/docs/cqhttp.md#%E5%9B%BE%E7%89%87
Click to show internal directories.
Click to hide internal directories.