Skip to main content

@wildix/xbees-conversations-client > MarkReadCommand

MarkReadCommand class

Marks all messages in the specified channel as read by the user. This operation requires the channel to be accessible to the user.

Signature:

export declare class MarkReadCommand extends MarkReadCommand_base 

Extends: MarkReadCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ConversationsClient, MarkReadCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, MarkReadCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // MarkReadInput
channelId: "STRING_VALUE", // required
userId: "STRING_VALUE",
};
const command = new MarkReadCommand(input);
const response = await client.send(command);
// {};