mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
250 B
TypeScript
16 lines
250 B
TypeScript
import ChatBot = require('dingtalk-robot-sender');
|
|
|
|
const bot = new ChatBot({
|
|
baseUrl: 'https://oapi.dingtalk.com/robot/send',
|
|
accessToken: 'some token',
|
|
});
|
|
|
|
bot.send({
|
|
msgtype: 'text',
|
|
text: {
|
|
content: '123',
|
|
},
|
|
});
|
|
|
|
bot.text('123');
|