This project is a DingTalk API SDK written in Rust, providing convenient tools for sending messages via DingTalk robots (Webhook and Enterprise Bots). It leverages asynchronous programming using Tokio, offering straightforward and efficient interaction with DingTalk services.
Features
- Async Support: Built using Tokio for efficient asynchronous communication.
- Webhook Robot: Supports various message types such as Text, Link, Markdown, ActionCard, and FeedCard.
- Enterprise Robot: Send messages to groups and individuals using DingTalk Enterprise API.
- Automatic Signature: Automatically generates signatures for secured Webhook interactions.
- Comprehensive Error Handling: Robust error reporting with clear error types and messages.
Supported Message Types
Webhook Robot
- Text Messages
- Link Messages
- Markdown Messages
- ActionCard Messages (Single and Multi-Button)
- FeedCard Messages
Enterprise Robot
- Group Messages
- Private (OTO) Messages
- Automatic message reply handling based on message context
Installation
Add the following to your Cargo.toml:
[]
= "1"
Quick Example
Webhook Robot
use DingTalkRobot;
async
Enterprise Robot
use EnterpriseDingTalkRobot;
async
License
This project is licensed under the MIT License.