Sending Group Messages
E2EE group messages
For E2EE group messages, the SDK encrypts the message individually for each member using their public key (sender-side fan-out). The server relays encrypted blobs without seeing plaintext.
await client.sendGroupMessage(groupId, 'Hello team!');
// With metadata
await client.sendGroupMessage(groupId, 'Check this out', {
metadata: { type: 'link', url: 'https://example.com' }
});Cleartext group messages
For public or non-sensitive groups, send cleartext messages with no crypto overhead:
await client.sendGroupMessage(groupId, 'Public announcement', {
cleartext: true
});