# EOH.Robot **Repository Path**: LeifRong/EOH.Robot ## Basic Information - **Project Name**: EOH.Robot - **Description**: 企业微信、钉钉、WeLink机器人对接SDK - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-02-21 - **Last Updated**: 2024-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: 企业微信, 钉钉, welink, 机器人, Robot ## README # EOH.Robot #### 介绍 企业微信、钉钉、WeLink机器人对接SDK
注:WeLink只支持文本消息 #### 使用说明 ```cs var robot = new RobotService(); //WeLink robot.Send("https://open.welink.huaweicloud.com/api/werobot/v1/webhook/send?token=*******&channel=standard", new WeLinkMessageAgrs { content = new WeLinkMessageAgrs.Content { text = "测试消息" }, timeStamp = DateTime.Now.ToLong(), uuid = Guid.NewGuid().ToString("N"), isAt = false, IsAtAll = true, }); //企业微信 robot.Send("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=*******", new WeiXinMessageAgrs { msgtype = "text", text = new WeiXinMessageAgrs.Text { content = "测试消息", mentioned_list = new List { "@all" }, } }); //钉钉 robot.Send("https://oapi.dingtalk.com/robot/send?access_token=*******", new DingTalkMessageAgrs { msgtype = "text", text = new DingTalkMessageAgrs.Text { content = "测试消息", }, at = new DingTalkMessageAgrs.At { isAtAll = true } }); ``` ##### 贡献 欢迎贡献代码、报告问题和提供建议!请在 Gitee/GitHub 项目中提交 Issue 或 Pull Request。 ##### 许可 本项目基于 MIT 许可进行分发和使用。详细信息请查阅 LICENSE 文件。 ##### 作者 作者:荣少
邮箱:ligengrong@hotmail.com
QQ群:7405133 ##### 🏅开源地址 [![Gitee](https://shields.io/badge/Gitee-https://gitee.com/LeifRong/EOH.Robot-green?logo=gitee&style=flat&logoColor=red)](https://gitee.com/LeifRong/EOH.Robot)
### 🧧 赞赏作者 你的赞赏就是我前进的动力🏃, 如果EOH.Robot给你带来了不少便利, 那就请作者喝杯咖啡☕吧。 ![](https://gitee.com/LeifRong/EOH.Sms/raw/master/img/pay.jpg)