@microsoft/agents-hosting-extensions-teams
Version:
Microsoft 365 Agents SDK for JavaScript. Teams extensions
32 lines (31 loc) • 1.16 kB
TypeScript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Class representing read receipt information.
*/
export declare class ReadReceiptInfo {
/**
* The ID of the last read message.
*/
lastReadMessageId: string;
/**
* Creates an instance of ReadReceiptInfo.
* @param {string} [lastReadMessageId=''] - The ID of the last read message.
*/
constructor(lastReadMessageId?: string);
/**
* Checks if a message has been read.
* @param {string} compareMessageId - The ID of the message to compare.
* @param {string} lastReadMessageId - The ID of the last read message.
* @returns {boolean} True if the message has been read, false otherwise.
*/
static isMessageRead(compareMessageId: string, lastReadMessageId: string): boolean;
/**
* Checks if a message has been read using the instance's last read message ID.
* @param {string} compareMessageId - The ID of the message to compare.
* @returns {boolean} True if the message has been read, false otherwise.
*/
isMessageRead(compareMessageId: string): boolean;
}