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

    Function getMyUserId

    • Return the current logged user ID without device id

      Returns Wid | undefined

      const wid = WPP.conn.getMyUserId();
      console.log(wid.toString()); // Output: 123@c.us