Create a single or group chat on a specific account using participant IDs and optional title.
Parameters
account_id: str
Account to create the chat on.
User IDs to include in the new chat.
message_text: Optional[str]
Optional first message content if the platform requires it to create the chat.
title: Optional[str]
Optional title for group chats; ignored for single chats on most platforms.
Returns
Create a chat
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
chat = client.chats.create(
account_id="accountID",
participant_ids=["string"],
type="single",
)
print(chat.chat_id)
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com"
}Returns Examples
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com"
}