MessengersWhatsApp

WhatsApp: Limits and waits

Understand WhatsApp request limits, send guards and cooldowns before automating work.

Know which waits are normal, how to change the pace, and when to try again after a refusal. wa keeps every profile under a pace (requests to WhatsApp per minute) and a send limit (messages in any hour), and lets one command at a time hold the device's one connection.

WhatsApp bans accounts that send in bulk or write to strangers. These limits keep a script or an agent far from that.

On this page:

  1. One connection per device
  2. The pace
  3. Writes
  4. No bulk reads

One connection per device

Only one wa command at a time may connect a profile. serve, watch, the MCP server while it holds a connection, and every one-shot write take the device's lock first. Another command for the same profile is refused at once, and the error names the holder:

this WhatsApp login is in use by serve (pid 4242)

This is not a wait: wa does not queue the second command. Stop the holder, or wait for it to finish, and run the command again. serve is the exception: while it runs, a send, an edit or a reaction for the same profile runs inside serve, on its connection, and is not refused. On Windows it is refused. Reads answer from the local store and never connect, so they work beside it (one connection per device).

The pace

Every request wa makes for a profile — from a command, wa personal mcp serve or wa personal serve — takes a turn in one pace for that profile: 20 requests a minute, of which 10 may go at once. The turns are kept under the state folder, so two terminals line up behind each other instead of each going at full speed. Different profiles have their own pace each.

A command that has to wait more than 5 seconds for its turn says so on stderr. A turn more than 5 minutes away is refused at once with exit code 8 (rate_limited).

Change the pace in the config file, or for one shell with an environment variable:

{ "defaults": { "requests_per_minute": 30 } }
WA_REQUESTS_PER_MINUTE=30 wa personal messages send 100000000000001@lid "on my way"

0 turns the pace off. Do that only for a profile you can afford to have limited.

Writes

  • 30 sends an hour per profile by default (sends_per_hour), counted across processes. One more is refused with exit code 8; wa personal sends list shows what was sent.
  • A recipient list, when it is on, refuses a send to any other chat with exit code 7 (permissions).
  • A banned or restricted account holds every write with exit code 5, reactions and read receipts too: until the ban ends, when WhatsApp says when (the error names the time), otherwise until it is lifted, by wa personal doctor --online connecting again or by wa personal flood clear; see the phone. Reads from the local store still work.
  • When WhatsApp asks the account to slow down, every write is held for 15 minutes (exit code 8, then 5 while the hold lasts). Reads go on without sending read receipts. wa personal flood clear lifts a hold once you know it is over.
  • A poll has 2 to 12 answers, each with its own text; it counts as a send.
  • A pin counts as a send: WhatsApp tells the chat's members about every one. An unpin does not count, but a hold stops it too.
  • A send that may or may not have arrived (exit code 14) is never repeated by wa. Check wa personal sends list and the chat before you send again (how wa behaves in scripts).

No bulk reads

WhatsApp keeps no history on its servers, so wa has no history download to pace. The phone pushes your recent history once, right after linking, and serve keeps receiving after that (the local store). Every read and search answers from the local store and sends WhatsApp nothing. Older messages can only be asked of the phone, 50 at a time and 5 to 10 seconds apart, by messages sync <chat>, within the pace (how).