Skip to content
  • Auto
  • Light
  • Dark
Download Beeper

Send

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 the sent message ID.

ParametersExpand Collapse
chat_id: str

Unique identifier of the chat.

reply_to_message_id: Optional[str]

Provide a message ID to send this as a reply to an existing message

text: Optional[str]

Text content of the message you want to send. You may use markdown.

ReturnsExpand Collapse
class MessageSendResponse:
chat_id: str

Unique identifier of the chat.

pending_message_id: str

Pending message ID

Send a message
from beeper_desktop_api import BeeperDesktop

client = BeeperDesktop(
    access_token="My Access Token",
)
response = client.messages.send(
    chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
print(response)
{
  "success": true,
  "error": "error",
  "chatID": "!signal_adamvy:local-signal.localhost",
  "pendingMessageID": "m1694783291234567"
}
Returns Examples
{
  "success": true,
  "error": "error",
  "chatID": "!signal_adamvy:local-signal.localhost",
  "pendingMessageID": "m1694783291234567"
}