MCPcopy Create free account
hub / github.com/Devo919/Gewechat / postText

Method postText

src/main/java/api/base/MessageApi.java:14–21  ·  view source on GitHub ↗

发送文字消息

(String appId, String toWxid, String content, String ats)

Source from the content-addressed store, hash-verified

12 * 发送文字消息
13 */
14 public static JSONObject postText(String appId, String toWxid, String content, String ats) {
15 JSONObject param = new JSONObject();
16 param.put("appId", appId);
17 param.put("toWxid", toWxid);
18 param.put("content", content);
19 param.put("ats", ats);
20 return OkhttpUtil.postJSON("/message/postText", param);
21 }
22
23 /**
24 * 发送文件消息

Callers 1

mainMethod · 0.95

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected