73 static void RegSendMsgCb(
const SendMsgAckCallback& cb,
const std::string& json_extension =
"");
104 static void SendMsg(
const std::string& json_msg,
const std::string& json_extension =
"",
FileUpPrgCallback* pcb =
nullptr);
160 static bool StopSendMsg(
const std::string& client_msg_id,
const NIMMessageType& type,
const std::string& json_extension =
"");
179 static void RegReceiveCb(
const ReceiveMsgCallback& cb,
const std::string& json_extension =
"");
196 static void RegReceiveMessagesCb(
const ReceiveMsgsCallback& cb,
const std::string& json_extension =
"");
220 static std::string CreateTextMessage(
const std::string& receiver_id,
222 const std::string& client_msg_id,
223 const std::string& content,
226 int32_t sub_type = 0);
256 static std::string CreateImageMessage(
const std::string& receiver_id,
258 const std::string& client_msg_id,
260 const std::string& file_path,
263 int32_t sub_type = 0);
293 static std::string CreateFileMessage(
const std::string& receiver_id,
295 const std::string& client_msg_id,
297 const std::string& file_path,
300 int32_t sub_type = 0);
330 static std::string CreateAudioMessage(
const std::string& receiver_id,
332 const std::string& client_msg_id,
334 const std::string& file_path,
337 int32_t sub_type = 0);
367 static std::string CreateVideoMessage(
const std::string& receiver_id,
369 const std::string& client_msg_id,
371 const std::string& file_path,
374 int32_t sub_type = 0);
402 static std::string CreateLocationMessage(
const std::string& receiver_id,
404 const std::string& client_msg_id,
408 int32_t sub_type = 0);
432 static std::string CreateTipMessage(
const std::string& receiver_id,
434 const std::string& client_msg_id,
435 const std::string& tip,
438 int32_t sub_type = 0);
461 static std::string CreateBotRobotMessage(
const std::string& receiver_id,
463 const std::string& client_msg_id,
464 const std::string& content,
468 int32_t sub_type = 0);
495 static std::string CreateG2NetCallMessage(
const std::string& receiver_id,
497 const std::string& client_msg_id,
498 const std::string& msg_attach,
501 int32_t sub_type = 0);
524 static std::string CreateRetweetMessage(
const std::string& src_msg_json,
525 const std::string& client_msg_id,
527 const std::string& retweet_to_session_id,
529 int64_t timetag = 0);
537 static bool ParseIMMessage(
const std::string& json_msg,
IMMessage& msg);
553 static bool ParseFileMessageAttach(
const IMMessage& msg,
IMFile& file);
593 static void UnregTalkCb();
608 static void RegTeamNotificationFilter(
const TeamNotificationFilter& filter,
const std::string& json_extension =
"");
622 static void RegMessageFilter(
const MessageFilter& filter,
const std::string& json_extension =
"");
637 static void RegRecallMsgsCallback(
const RecallMsgsCallback& cb,
const std::string& json_extension =
"");
679 static void RecallMsg(
const IMMessage& msg,
const std::string& notify,
const RecallMsgsCallback& cb,
const std::string& json_extension =
"");
725 static void RecallMsg2(
const IMMessage& msg,
726 const std::string& notify,
727 const RecallMsgsCallback& cb,
728 const std::string& apnstext =
"",
729 const std::string& pushpayloadconst =
"",
730 const std::string& json_extension =
"");
797 static std::string GetAttachmentPathFromMsg(
const IMMessage& msg);
817 static void RegReceiveBroadcastMsgCb(
const ReceiveBroadcastMsgCallback& cb,
const std::string& json_extension =
"");
834 static void RegReceiveBroadcastMsgsCb(
const ReceiveBroadcastMsgsCallback& cb,
const std::string& json_extension =
"");
870 static void ReplyMessageWithOption(
const IMMessage& former_msg,