@wppconnect/wa-js - v3.19.3
    Preparing search index...

    Function getBuildConstants

    • Get the WhatsApp Web build constants Retrieves the internal WAWebBuildConstants module from WhatsApp source

      Returns BuildConstants | null

      Object containing version constants or null if not available

      • VERSION_STR: Full version string (e.g., "2.3000.1234567")
      • VERSION_BASE: Base version (e.g., "2.3000.1234567")
      • VERSION_PRIMARY: Primary version number
      • VERSION_SECONDARY: Secondary version number
      • VERSION_TERTIARY: Tertiary version number
      • WINDOWS_BUILD: Windows build number (if applicable)
      • And other build-related constants
      const buildConstants = WPP.conn.getBuildConstants();
      console.log('Version:', buildConstants.VERSION_STR);
      console.log('Base Version:', buildConstants.VERSION_BASE);
      console.log('Windows Build:', buildConstants.WINDOWS_BUILD);