1.0.6 • Published 1 year ago

wecombot v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

企业微信机器人 SDK

install

npm i wecombot

usage

const Wecombot = require('wecombot')
// 1. use origin webhook url
const wecombot = new Wecombot({webhook: 'bot webhook url'})
// 2. use key (UUID 4 format)
const wecombot = new Wecombot({key: 'bot key'})
// 3. use env value 
// WECOMBOT_WEBHOOK_URL=origin-webhook-url
const wecombot = new Wecombot()

wecombot.send('msg test')

wecombot.sendImage({
    base64: 'image content base64',
    md5: 'image file md5'
})

options

/**
 * @removePreset boolean 移除预置的时间头信息
 * @toAll boolean @所有人
 */
1.0.6

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

3 years ago