@wppconnect-team/wppconnect - v1.36.4

    Function getActiveChat

    • Return the current active chat

      Returns ChatModel

      The currenct active chat or undefined for none

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

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