Zoom Developer Forum

How to send and receive chat messages with the Zoom meeting SDK

Updated at:
September 7, 2025
Written By:
Gerry Saporito

Question

People commonly ask on the Zoom Developer Forum:

How do I reliably send and receive chat messages with the Meeting SDK? My bot implements IMeetingChatCtrlEvent but onChatMsgNotification isn’t firing, and SendChatMsgTo returns “Incorrect usage of the feature” (SDKError 2). What’s the correct way to wire up chat callbacks and send messages (to all or privately)?

Answer

You can send and receive chat messages by:

  1. Registering your chat event listener using the SDK’s chat controller so that incoming messages and chat status changes are delivered

  2. Handling callbacks and sending on the main/UI thread — forward any received events to your main thread, and always invoke SendChatMsgTo from there. (Zoom has confirmed in forum discussions that background-thread sends/receives fail.)

  3. Building and sending the message once — set the recipient (e.g., 0 for everyone or a specific user ID), set the message type and content, then call Build() a single time and pass the result to the SendChatMsgTo method

Also these are some edge cases to be aware of:


Zoom Developer Forum Examples

Some examples of this question are:

Written By:
Gerry Saporito