openChat
Open a chat.
Parameters
The identifier of a chat to open.
timeout?: number
TTL of update differences for unpolled chats in seconds. Defaults to a value specified by Telegram.
Result
void
Syntax
// Required parameters only.
await client.openChat(chatId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.openChat(chatId, { timeout });