Webhook-based message notification service
- DingTalk
- FeiShu
- WoChat (企业微信)
- Bark
- Chanify
- PushDeer
- Slack
- 息知
- Telegram
- Discord
| method | default host | custom host | need token/key | support secret | support text | support title | support markdown | details |
|---|---|---|---|---|---|---|---|---|
| DingTalk | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | README |
| FeiShu | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌(Text、Link) | README |
| WoChat | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | README |
| Bark | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | README |
| Chanify | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | README |
| PushDeer | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | README |
| 息知 | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | README |
| Slack | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | README |
| Telegram | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | README |
funcmain() {
// initializationbot:=NewDingTalk("token")
// Chain call to set secretbot.SetDebug(true).UseSecret("secret")
// Call the generic methoderr:=bot.SendText("Hello World!")
// call unique methoderr:=bot.SendTextAt("hello", []string{}, true)
// Use the new token to call the general methoderr:=bot.UseToken("another token").SendText("你好")
}funcmain() {
// use dingtalk :n:=dingtalk.NewDingTalk("token").UseSecret("secret")
// or use bark :n:=bark.NewBark("token").SetDebug(true).SetAutoCopy(true)
// or use slack : n:=slack.NewSlack("token")
ner:=NewNotify(n)
iferr:=ner.SendNotify("Hello World!"); err!=nil {
t.Log(err)
}
}