replyMessage abstract method

Future<ZIMMessageSentResult> replyMessage(
  1. ZIMMessage message,
  2. ZIMMessage toOriginalMessage,
  3. ZIMMessageSendConfig config,
  4. ZIMMessageSendNotification? notification,
)

Supported versions: 2.17.0 and above.

Detailed description: This method can be used to send reply messages in single chat and group chat.

Business scenario: When you need to send reply message to the target user and target group chat after logging in, send it through this interface.

Call timing: It can be called after login.

Usage limit: The interval between sending messages should be greater than 100ms. Available after login, unavailable after logout.

Related callback: onReceivePeerMessage, onReceiveGroupMessage.

Related APIs: queryHistoryMessage, sendMessage, sendMediaMessage.

Implementation

Future<ZIMMessageSentResult> replyMessage(
    ZIMMessage message,
    ZIMMessage toOriginalMessage,
    ZIMMessageSendConfig config,
    ZIMMessageSendNotification? notification);