• Return the current active chat

    Returns whatsapp | undefined

    The currenct active chat or undefined for none

    Example

    // Get active chat
    const chat = WPP.chat.getActiveChat();

    WPP.chat.sendTextMessage(chat.id, 'Hi');