Send a message
messages.send(strchat_id, MessageSendParams**kwargs) -> MessageSendResponse
POST/v1/chats/{chatID}/messages
Send a text message to a specific chat. Supports replying to existing messages. Returns a pending message ID.
Send a message
import os
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
)
response = client.messages.send(
chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
print(response.pending_message_id){
"chatID": "!signal_adamvy:local-signal.localhost",
"pendingMessageID": "m1694783291234567"
}Returns Examples
{
"chatID": "!signal_adamvy:local-signal.localhost",
"pendingMessageID": "m1694783291234567"
}