deleteMessage

suspend fun deleteMessage(messageId: String): String

Delete a message by its ID.

Users can delete their own messages in a DM conversation.

Return

The hex-encoded ID of the deletion message.

Parameters

messageId

The hex-encoded ID of the message to delete.

Throws

if deletion fails (e.g., message not found, not authorized, already deleted).