Skip to content

MapMaths/Dingtalk-Robot-Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dingtalk-Robot-Node

A demo for Dingtalk Robot by Node.js to send messages to the chat group.

Prerequisite

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.

Usage

After installing the dependency, you can use the program as following:

  1. 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 open server.js.
  2. Modify the definition of the variables.
  3. Run the program using node server.js.