Skip to content

xiaoxuan6/notify

Repository files navigation

消息通知

目前仅支持钉钉群自定义机器人、企业微信群自定义机器人、飞书群自定义机器人、一封传话、息知、pushplus 和 Server 酱消息通知

Installation

go get github.com/xiaoxuan6/notify/v3

Usage

config := utils.LoadConfig("./env.yml")

robot := notify.NewPhprm(config)
robot.Send("hello phprm", "这是测试内容")

env.yml 文件在项目根目录,内容如下

dinging:
  access_token:
  secret:
wechat:
  key:
feishu:
  access_token:
  secret:
server:
  webhook:
  secret:
  channel: 9
push_plus:
  token:
phprm:
  token: "xxx"
zhixi:
  token: "xxx"

test

go test robot_test.go

About

推送通知 sdk(企业微信群机器人、钉钉群机器人、飞书群机器人、pushplus、Server 酱、一封传话)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages