Send a message
client.messages.send(stringchatID, MessageSendParams { attachment, replyToMessageID, text } body?, RequestOptionsoptions?): MessageSendResponse { chatID, pendingMessageID }
POST/v1/chats/{chatID}/messages
Send a text message to a specific chat. Supports replying to existing messages. Returns a pending message ID.
Parameters
chatID: string
Unique identifier of the chat.
Returns
Send a message
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop();
const response = await client.messages.send('!NCdzlIaMjZUmvmvyHU:beeper.com');
console.log(response.pendingMessageID);{
"chatID": "!signal_adamvy:local-signal.localhost",
"pendingMessageID": "m1694783291234567"
}Returns Examples
{
"chatID": "!signal_adamvy:local-signal.localhost",
"pendingMessageID": "m1694783291234567"
}