SendGroupMsg static method

void SendGroupMsg(
  1. int id,
  2. String msg
)

发送消息给群组

Implementation

static void SendGroupMsg(int id,String msg) async {
 Log.i(tag, "SendGroupMsg id: $id msg: $msg");
 if (checkIsOnline()) {
   if(checkHasGroup(id)) {
     PlatformMethodInvokeHandler.invokeMethod("SendGroupMsg", [id.toString(), msg]);
     if(!msg.toLowerCase().startsWith("sos")) {
       SendChat(id, msg, 1, 1001);
     }
   }
 }
}