Pular para o conteúdo principal

Documentation Index

Fetch the complete documentation index at: https://zapo.to/llms.txt

Use this file to discover all available pages before exploring further.

Perfil

O client.profile (WaProfileCoordinator) lê e grava campos de perfil da sua conta e os consulta para terceiros.

Foto de perfil

import { readFile } from 'node:fs/promises'

// Ler a foto de alguém (ou a sua)
const pic = await client.profile.getProfilePicture(jid)

// Definir a sua
await client.profile.setProfilePicture(await readFile('./avatar.jpg'))

// Removê-la
await client.profile.deleteProfilePicture()

Recado / texto de status

const about = await client.profile.getStatus(jid)
await client.profile.setStatus('Available')

Consultas em lote

const profiles = await client.profile.getProfiles([jidA, jidB])
const usernames = await client.profile.getUsernames([jidA, jidB])
const modes = await client.profile.getDisappearingMode([jidA, jidB])

Nomes de usuário

const mine = await client.profile.getOwnUsername()
const available = await client.profile.checkUsernameAvailability('myhandle')

await client.profile.setUsername({ username: 'myhandle' })
await client.profile.deleteUsername()

Privacidade

O client.privacy (WaPrivacyCoordinator) controla as categorias de privacidade e a lista de bloqueios.

Configurações de privacidade

const settings = await client.privacy.getPrivacySettings()

// Atualizar uma única configuração
await client.privacy.setPrivacySetting('last', 'contacts')
Os nomes e valores das configurações vêm das constantes WA_PRIVACY_* (last, online, profile, status, readreceipts, groupadd, …). Veja a referência de JID e constantes.

Lista de bloqueios

const { jids } = await client.privacy.getBlocklist()

await client.privacy.blockUser(jid)
await client.privacy.unblockUser(jid)

Listas de exceção

Para configurações escopadas a uma lista específica de contatos (por exemplo, “compartilhar com todos, exceto…”):
const result = await client.privacy.getDisallowedList(category)

Business

O client.business (WaBusinessCoordinator) lê perfis business e nomes verificados, e gerencia o seu próprio perfil business.
// Ler perfis business (em lote)
const profiles = await client.business.getBusinessProfile([jidA, jidB])

// Consultas de nome verificado
const name = await client.business.getVerifiedName(jid)
const names = await client.business.getVerifiedNames([jidA, jidB])

// Editar seu próprio perfil business
await client.business.editBusinessProfile({ /* WaEditBusinessProfileInput */ })

// Foto de capa
await client.business.updateCoverPhoto(mediaSource)
await client.business.deleteCoverPhoto(coverId)

Configurações de chat

As configurações por chat — silenciar, fixar, arquivar, lido, lock, favoritar, limpar, excluir — ficam em client.chat e sincronizam entre seus dispositivos. Elas têm um guia próprio:

Gerenciando chats

Silencie, fixe, arquive, marque como lido, trave, favorite mensagens, limpe e exclua chats.
Last modified on May 27, 2026