Create a single/group chat (mode='create') or start a direct chat from merged user data (mode='start').
Parameters
account_id: str
Account to create or start the chat on.
Whether invite-based DM creation is allowed when required by the platform. Used for mode='start'.
message_text: Optional[str]
Optional first message content if the platform requires it to create the chat.
Required when mode='create'. User IDs to include in the new chat.
title: Optional[str]
Optional title for group chats when mode='create'; ignored for single chats on most platforms.
Returns
Create or start a chat
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop()
chat = client.chats.create(
account_id="accountID",
)
print(chat.chat_id){
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com",
"status": "existing"
}Returns Examples
{
"chatID": "!NCdzlIaMjZUmvmvyHU:beeper.com",
"status": "existing"
}