English فارسی

Limitations

The honest list. Read this before relying on the library for anything that matters.

Not tested with a real account

The authenticated paths are verified by construction, not by a live session.

Development had no access to a logged-in account. What was proven: the WebSocket handshake reaches Bale and returns code 4401 for a bad token, gRPC-web returns a real transactionHash, and the Bot API returns a real 401. What was not proven: a full login, an actual message being delivered, or two clients in a live call.

First things to run with your own credentials:

client = Client("256049633:eyJ…")
await client.start()                        # 1. login works
print(await client.get_me())                # 2. identity
await client.send_message("me", "test")     # 3. delivery
print(await client.create_meet_link())      # 4. meetings
print(await client.get_ongoing_calls())     # 5. calls

Wrapper coverage

LayerCountStatus
Protocol RPCs683complete
Client-level methods84partial
Meet methods30 / 30complete
Messagingcore onlypartial
Groups (50 RPCs)4 wrappedpartial
Stories, polls, wallet, bank, ads0 wrappedraw RPC only

Missing wrappers are not missing capability — client.call(...) reaches all 683.

Protocol drift

The index is pinned to web build 5.5.1. When Bale changes an endpoint, calls start failing with UNIMPLEMENTED or INVALID_ARGUMENT. Regenerate with scripts/build_protocol_index.py.

Media

  • Joining a room needs LiveKit. join_conference without connect=True performs metadata RPCs only.
  • No audio processing helpers. The library gives you a room object; capture, mixing and codecs are yours.
  • Video is opt-in but only lightly tested. Voice is the default for a reason.
  • Recording and streaming are RPCs, not local capture. They ask Bale's infrastructure to do the work.

Uploads

  • The three-step flow is exposed, not hidden. There is no single "send file" RPC in Bale.
  • Media dimensions are the caller's responsibility; the library substitutes 1 so the variant survives encoding, which is not the same as correct.
  • Encrypted chats (nasimEncryptedMessage) are not handled — that needs the client-side key exchange.

Browser session extraction

  • Chromium must be closed, or the profile copied, because the cookie database is locked.
  • macOS Keychain-encrypted cookies are not decrypted.
  • Firefox container tabs are treated as the default container.

Operational notes

AreaReality
Update deliveryIn-memory queue; if the process dies, unprocessed updates are lost
FSM storageMemoryStorage by default — not shared across workers
ReconnectNo automatic backoff loop; catch TransportError and reconnect yourself
Rate limitsRespect FloodWait.seconds; there is no client-side throttle
ThreadingAsync only. One client per event loop.
Unofficial client.

Not affiliated with or endorsed by Bale. Using it may conflict with Bale's terms of service, and automated accounts can be restricted. Test with an account you can afford to lose.

bale xyz 1.0.0 · MIT licensed · unofficial client © 2026 bale xyz contributors