import { ErrorUnion, OkUnion } from '../outputs'; /** * Informs TDLib that the chat is opened by the user. Many useful activities depend * on the chat being opened or closed (e.g., in supergroups and channels all updates * are received only for opened chats) * @param {Object} params * @param {number} [params.chatId] - Chat identifier * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type OpenChatMethod = (params: OpenChatParams, state?: Record) => Promise; export interface OpenChatParams { /** Chat identifier */ chatId?: number; }