Skip to content

Interface: ChatApi ​

Reading chats.

Properties ​

readActive ​

readonly readActive: () => Promise<ActiveChat | null>

The open chat, or null when none is open. Needs chat:read-active.

Returns ​

Promise<ActiveChat | null>


readUnreadSummary ​

readonly readUnreadSummary: () => Promise<readonly UnreadChat[]>

Every chat with unread messages. Needs chat:read-unread-summary.

Returns ​

Promise<readonly UnreadChat[]>

Released under the MIT License. Development supported by Ensita. YapYap is unofficial and not affiliated with WhatsApp or Meta.