Skip to content

Send chat messages

The function sendMessage sends a message in chat, passing live id, name of message sender and the text content.

import { Metalives } from "metalives-sdk"
import dotenv from 'dotenv'

dotenv.config();

const client = new Metalives(process.env.SDK_TOKEN);

client.chat.sendMessage(liveId, messageSender, messageTextContent);