English فارسی

Every part of Bale, in one async client.

bale xyz is a complete Python client for the Bale messenger (بله). User sessions, bot tokens, voice calls, and typed access to all 683 internal RPCs — rebuilt at import time from the official web protocol, with no generated boilerplate to maintain.

683 RPCs typed 30/30 Meet methods Python 3.10+ MIT zero code-gen
683RPC methods
52services
5,520typed fields
30Meet calls
73tests

Why this library

Most Bale clients either stop at the Bot API or hard-code a handful of endpoints. bale xyz takes the third path: it reconstructs the entire protocol description from the public web bundle, then builds real protobuf messages at runtime. That means every RPC — even the obscure ones like bale.kifpool.v1.Kifpool — produces a proper typed request, and a new Bale release only requires regenerating one index file.

How it fits together

Five layers, each usable on its own:

LayerWhat it gives youModule
Protocol683 request + 683 response protobuf types, built at import from index.jsondynamic.py, proto/
TransportMultiplexed WebSocket with request indices; gRPC-web for auth and uploadstransports/
RPCcall(service, method, payload) → parsed response messagerpc.py
Client74 high-level methods: messages, media, chats, callsclient.py
FrameworkEvents, filters, dispatcher, FSM — Telethon and Pyrogram stylesevents.py, filters.py, fsm.py

What is verified, and what is not

Read this before you trust the library with an important account.

The protocol, transports, encoders and conference payloads are verified against a real browser capture (a .har file) and a live handshake. But no end-to-end login with a real account was performed during development. The first thing you should run with your own credentials is await client.start() followed by {" "} await client.create_meet_link().

AreaStatusEvidence
Protobuf encodingverifiedByte-identical to captured frames for GenerateCallLink, GetWssURL, JoinGroupCall, SetLinkTitle
WebSocket handshake metadataverifiedAll 12 key_values match the browser exactly
Auth flowlive handshakeReached Bale's servers; returned a real transactionHash and code 4401
gRPC-web transportlive handshakeReal transactionHash received over HTTP/2
Bot APIlive 401Request reaches tapi.bale.ai and is rejected with the expected auth error
Full logged-in sessionuntestedNeeds your credentials

Full limitations →

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