Client API Reference#
This page summarizes core low-level client APIs available in Waton.
WAClient#
Constructor:
WAClient(storage, ws_url=None, **config_overrides)
Core methods:
connect()disconnect()send_node(node)query(node, timeout=None)send_ping()
Callbacks (settable async callables):
on_connection_update(event)on_message(node)on_event(event_dict)on_disconnected(exc)
MessagesAPI#
Common outbound methods:
send_text/send_image/send_document/send_locationsend_audio/send_video/send_sticker/send_contactsend_reaction/send_delete/send_editsend_poll_creation/send_poll_vote/send_event_responsesend_ephemeral_settingsend_receipt/send_receipts_batch/read_messages
GroupsAPI#
metadata/fetch helpers
group create/update operations
participants and approval request operations
invite code and join helpers
leave group
ChatsAPI#
profile and presence helpers
blocklist/privacy read + selected privacy updates
chat modify actions (archive/pin/mute/read variations)
PresenceAPI#
send_presencesend_availablesend_unavailablesend_composingsend_paused
Support status guidance#
APIs listed here are implemented in current codebase.
Some areas are intentionally low-level and may require careful error handling.
Use focused tests when integrating advanced features.
Next steps#
Event payload categories: Event Model
Config tuning: Configuration Reference