• For set privacy who can you see your last seen, profile pic, or status

    Parameters

    • attrs: {
          dhash?: any;
          name: "status" | "last" | "profile";
          users?: {
              action: "add" | "remove";
              wid: WAJS.whatsapp.Wid;
          }[];
          value: "contacts" | "all" | "contact_blacklist" | "none";
      }
      • Optional dhash?: any
      • name: "status" | "last" | "profile"
      • Optional users?: {
            action: "add" | "remove";
            wid: WAJS.whatsapp.Wid;
        }[]
      • value: "contacts" | "all" | "contact_blacklist" | "none"
    • Optional disallowedList: WAJS.whatsapp.Wid[]

    Returns Promise<void>

  • set privacy for who has permission to add a group

    Parameters

    • attrs: {
          dhash?: any;
          name: "groupadd";
          users?: {
              action: "add" | "remove";
              wid: WAJS.whatsapp.Wid;
          }[];
          value: "contacts" | "all" | "contact_blacklist";
      }
      • Optional dhash?: any
      • name: "groupadd"
      • Optional users?: {
            action: "add" | "remove";
            wid: WAJS.whatsapp.Wid;
        }[]
      • value: "contacts" | "all" | "contact_blacklist"
    • Optional disallowedList: WAJS.whatsapp.Wid[]

    Returns Promise<void>

  • For set privacy who can you see your last online

    Parameters

    • attrs: {
          name: "online";
          value: "all" | "match_last_seen";
      }
      • name: "online"
      • value: "all" | "match_last_seen"

    Returns Promise<void>

  • For set privacy who can you see your read receipts

    Parameters

    • attrs: {
          name: "readreceipts";
          value: "all" | "none";
      }
      • name: "readreceipts"
      • value: "all" | "none"

    Returns Promise<void>