Because of the “your message was held” notice, the chat system needs to make the decision before sending the message to anyone (e.g. custom bots). In order to let external systems make the hold/allow decision, it would probably need to be a new, custom, separate API designed for low latency, as it would be on the critical path for chat.