Crate wecom_bot

Source
Expand description

A library for communicating with WeCom Bot instances.

Example:

use wecom_bot::{WeComBot, Message, SendResp, WeComError};

fn main() -> Result<(), WeComError> {
    // create a wecom bot with webhook key
    let bot = WeComBot::builder().key("693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa").build()?;
    let _rsp: SendResp = bot.send(Message::text("hello world!").mentioned_list(vec!["1001"]))?;

    Ok(())
}

Structs§

Article
elements of wecom bot message type news.
Image
Message
SendResp
UploadResp
WeComBot
WeComBotBuilder

Enums§

MediaType
WeComError