v 0.0.2 -> 0.1.0

This commit is contained in:
2019-12-20 23:13:35 +08:00
parent cf5a00e911
commit 198839c0f2
3 changed files with 48 additions and 5 deletions

View File

@@ -5,15 +5,19 @@ DingTalk util
钉钉机器人 Rust SDK
```rust
pub fn main() {
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
let dt = DingTalk::new("<token>", "");
dt.send_text("Hello world!").ok();
dt.send_text("Hello world!")?;
Ok(())
}
```
#### Changelog
* v0.1.0
* Add `DingTalk::send_link(...)`, send link message
* v0.0.3
* Add `DingTalkMessage` , can set at_all, at_mobiles now