Skip to content

Repository files navigation

rose-notify

Webhook-based message notification service


Support

  • DingTalk
  • FeiShu
  • WoChat (企业微信)
  • Bark
  • Chanify
  • PushDeer
  • Slack
  • 息知
  • Telegram
  • Discord
methoddefault hostcustom hostneed token/keysupport secretsupport textsupport titlesupport markdowndetails
DingTalkREADME
FeiShu❌(Text、Link)README
WoChatREADME
BarkREADME
ChanifyREADME
PushDeerREADME
息知README
SlackREADME
TelegramREADME

How to use

single support

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("你好")
}

Multiple support

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)
}
}

About

Webhook-based message notification service (基于webhook的消息通知服务)

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages