| Crates.io | whatsmeow-sys |
| lib.rs | whatsmeow-sys |
| version | 0.1.4 |
| created_at | 2025-12-28 18:15:28.484432+00 |
| updated_at | 2025-12-29 00:17:28.895337+00 |
| description | Raw FFI bindings to the WhatsApp Go bridge DLL for whatsmeow |
| homepage | |
| repository | https://github.com/sabry-awad97/whatsmeow-rs |
| max_upload_size | |
| id | 2009231 |
| size | 29,052 |
Raw FFI bindings to the WhatsApp Go bridge via WhatsMeow.
⚠️ Low-level crate - Use
whatsmeowfor the safe, idiomatic API.
// Create client with custom device name
wm_client_new(db_path, device_name) -> ClientHandle
// Connection
wm_client_connect(handle) -> WmResult
wm_client_disconnect(handle) -> WmResult
wm_client_destroy(handle)
// Events
wm_poll_event(handle, buf, buf_len) -> c_int
// Messaging
wm_send_message(handle, jid, text) -> WmResult
wm_send_image(handle, jid, data, data_len, mime_type, caption) -> WmResult
| Code | Constant | Meaning |
|---|---|---|
| 0 | WM_OK |
Success |
| -1 | WM_ERR_INIT |
Initialization failed |
| -2 | WM_ERR_CONNECT |
Connection failed |
| -3 | WM_ERR_DISCONNECTED |
Client disconnected |
| -4 | WM_ERR_INVALID_HANDLE |
Invalid handle |
| -5 | WM_ERR_BUFFER_TOO_SMALL |
Buffer too small |
MIT