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