Skip to content
Download Beeper

Delete a message

messages.delete(strmessage_id, MessageDeleteParams**kwargs)
DELETE/v1/chats/{chatID}/messages/{messageID}

Delete a message by final message ID. Pending message IDs are not accepted because messages cannot be deleted while sending.

ParametersExpand Collapse
chat_id: str

Chat ID. Input routes also accept the local chat ID from this Beeper Desktop installation when available.

message_id: str

Message ID.

for_everyone: Optional[bool]

True to request deletion for everyone when the network supports it; false to delete only for the authenticated user when supported.

Delete 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
)
client.messages.delete(
    message_id="1343993",
    chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
Returns Examples