Rust SDK for the official [WeChat iLink Bot HTTP/JSON API](https://open.ilink.weixin.qq.com).
Supports QR-code login, long-polling message receive, text/image/file/voice messaging, and AES-128-ECB media encryption.
## Quick Start
```toml
[dependencies]
wechat_ilink_bot = "1.0"
```
```rust,no_run
use wechat_ilink_bot::{BotResult, ILinkClient};
#[tokio::main]
async fn main() -> BotResult<()> {
let client = ILinkClient::new("your_bot_token", None);
let updates = client.get_updates("").await?;
for msg in updates.msgs {
println!("from: {}", msg.from_user_id);
}
Ok(())
}
```
## Features
- **QR Login** — scan with WeChat, token auto-persisted
- **Long-polling** — receive messages in real-time
- **Send** — text, image, file, voice messages
- **Media** — upload/download with AES-128-ECB encryption
- **Error handling** — structured `BotError` enum (no `anyhow`)
## License
MIT