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