import { ErrorUnion, OkUnion } from '../outputs'; /** * Informs TDLib that the message content has been opened (e.g., the user has opened * a photo, video, document, location or venue, or has listened to an audio file or * voice note message). An updateMessageContentOpened update will be generated if something * has changed * @param {Object} params * @param {number} [params.chatId] - Chat identifier of the message * @param {number} [params.messageId] - Identifier of the message with the opened * content * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type OpenMessageContentMethod = (params: OpenMessageContentParams, state?: Record) => Promise; export interface OpenMessageContentParams { /** Chat identifier of the message */ chatId?: number; /** Identifier of the message with the opened content */ messageId?: number; }