A demo for Dingtalk Robot by Node.js to send messages to the chat group.
This program requires Node.js and request
module.
npm i
Note: request
module has been deprecated and I am going to turn the depenency to got
module.
After installing the dependency, you can use the program as following:
- Select the way of sending messages via a Dingtalk Robot. There are four ways (by now):
text
: send a text message.markdown
: send a markdown message.link
: send a link message. (For more, see the Dingtalk Robot API). Just open the folder with the name that is the same as the way and openserver.js
.
- Modify the definition of the variables.
- Run the program using
node server.js
.