Class WeComOutboundClient

java.lang.Object
io.agentscope.extensions.channel.wecom.WeComOutboundClient

public final class WeComOutboundClient extends Object
WeCom outbound HTTP client. Wraps /cgi-bin/message/send (DM) and /cgi-bin/appchat/send (app group chat). The first text content of each Msg is sent.

For text content that contains markdown control characters we send msgtype=markdown; otherwise plain text. (Heuristic only — callers that explicitly want markdown should already use markdown syntax in their content.)

  • Constructor Details

  • Method Details

    • send

      public reactor.core.publisher.Mono<Void> send(io.agentscope.harness.agent.gateway.channel.OutboundAddress address, List<io.agentscope.core.message.Msg> messages)
      Sends each msg to the resolved peer. The address's to field has the form "channelId:peerKey" where peerKey is "DIRECT:userid" or "GROUP:chatid".