79 static void RegSendMsgCb(
const SendMsgAckCallback& cb,
const std::string& json_extension =
"");
110 static void SendMsg(
const std::string& json_msg,
const std::string& json_extension =
"",
FileUpPrgCallback* pcb =
nullptr);
166 static bool StopSendMsg(
const std::string& client_msg_id,
const NIMMessageType& type,
const std::string& json_extension =
"");
185 static void RegReceiveCb(
const ReceiveMsgCallback& cb,
const std::string& json_extension =
"");
202 static void RegReceiveMessagesCb(
const ReceiveMsgsCallback& cb,
const std::string& json_extension =
"");
213 static void RegMessageChangedCb(
const MessageChangedCallback& cb,
const std::string& json_extension =
"");
237 static std::string CreateTextMessage(
const std::string& receiver_id,
239 const std::string& client_msg_id,
240 const std::string& content,
243 int32_t sub_type = 0);
273 static std::string CreateImageMessage(
const std::string& receiver_id,
275 const std::string& client_msg_id,
277 const std::string& file_path,
280 int32_t sub_type = 0);
310 static std::string CreateFileMessage(
const std::string& receiver_id,
312 const std::string& client_msg_id,
314 const std::string& file_path,
317 int32_t sub_type = 0);
347 static std::string CreateAudioMessage(
const std::string& receiver_id,
349 const std::string& client_msg_id,
351 const std::string& file_path,
354 int32_t sub_type = 0);
384 static std::string CreateVideoMessage(
const std::string& receiver_id,
386 const std::string& client_msg_id,
388 const std::string& file_path,
391 int32_t sub_type = 0);
419 static std::string CreateLocationMessage(
const std::string& receiver_id,
421 const std::string& client_msg_id,
425 int32_t sub_type = 0);
449 static std::string CreateTipMessage(
const std::string& receiver_id,
451 const std::string& client_msg_id,
452 const std::string& tip,
455 int32_t sub_type = 0);
478 static std::string CreateBotRobotMessage(
const std::string& receiver_id,
480 const std::string& client_msg_id,
481 const std::string& content,
485 int32_t sub_type = 0);
512 static std::string CreateG2NetCallMessage(
const std::string& receiver_id,
514 const std::string& client_msg_id,
515 const std::string& msg_attach,
518 int32_t sub_type = 0);
541 static std::string CreateRetweetMessage(
const std::string& src_msg_json,
542 const std::string& client_msg_id,
544 const std::string& retweet_to_session_id,
546 int64_t timetag = 0);
554 static bool ParseIMMessage(
const std::string& json_msg,
IMMessage& msg);
570 static bool ParseFileMessageAttach(
const IMMessage& msg,
IMFile& file);
610 static void UnregTalkCb();
625 static void RegTeamNotificationFilter(
const TeamNotificationFilter& filter,
const std::string& json_extension =
"");
639 static void RegMessageFilter(
const MessageFilter& filter,
const std::string& json_extension =
"");
654 static void RegRecallMsgsCallback(
const RecallMsgsCallback& cb,
const std::string& json_extension =
"");
696 static void RecallMsg(
const IMMessage& msg,
const std::string& notify,
const RecallMsgsCallback& cb,
const std::string& json_extension =
"");
742 static void RecallMsg2(
const IMMessage& msg,
743 const std::string& notify,
745 const std::string& apnstext =
"",
746 const std::string& pushpayloadconst =
"",
747 const std::string& json_extension =
"");
814 static std::string GetAttachmentPathFromMsg(
const IMMessage& msg);
887 static void ReplyMessageWithOption(
const IMMessage& former_msg,