aibot 1.0.2

WeChat iLink Bot API — full async Rust implementation
Documentation

Rust SDK for the official WeChat iLink Bot HTTP/JSON API.

Supports QR-code login, long-polling message receive, text/image/file/voice messaging, and AES-128-ECB media encryption.

Quick Start

[dependencies]
aibot = "1.0"
use aibot::{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