消息接口功能

外部向茶余群组发送消息需要遵循http协议,"GroupId"、"Token"为头部必备字段, Token为该群组的认证码,该接口当前仅支持文字消息,body不宜过大。

协议格式如下:

POST /sendGroupMsg HTTP/1.1 GroupId:10002083 Token:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJncm91cF9pZCI6IjEwMDAyMDgzIiwiaWF0IjoxNjU4OTcxOTU2LCJpc3MiOiJjaGF5dSJ9.Du-QGhCM6v6HW602di2PMBKZnNwmCeXHryLa2Vx0JUE Content-Length:89
Connection:keep-alive
Host:hichayuapi.com:12100
DNT:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71
Content-Type:text/plain
Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
{"Type":0, "Content":"{\"text\": \"待发送的消息!\",\"subject\": 0, \"name\":\"发送者名称\"}"}