• 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";
      }
      • Optionaldhash?: any
      • name: "status" | "last" | "profile"
      • Optionalusers?: {
            action: "add" | "remove";
            wid: WAJS.whatsapp.Wid;
        }[]
      • value:
            | "contacts"
            | "all"
            | "contact_blacklist"
            | "none"
    • OptionaldisallowedList: 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";
      }
      • Optionaldhash?: any
      • name: "groupadd"
      • Optionalusers?: {
            action: "add" | "remove";
            wid: WAJS.whatsapp.Wid;
        }[]
      • value: "contacts" | "all" | "contact_blacklist"
    • OptionaldisallowedList: 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>