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

    Function getMigrationState

    • Get comprehensive migration state information for debugging and monitoring

      This function aggregates various LID (Linked Identity) migration-related information to help understand the current state of the account's migration from the legacy @c.us addressing system to the newer

      Returns MigrationState

      Object containing all available migration state information

      system.

      const state = WPP.conn.getMigrationState();
      console.log('Account migrated:', state.isLidMigrated);
      console.log('Current LID:', state.currentLid);
      console.log('Should have LID:', state.shouldHaveAccountLid);