Skip to content

jumoshen/ding_bot

Repository files navigation

ding_bot

Build Status

Send message to dingding`s group chat by golang

install

example

  • we can get the usage for ding_bot`s message sender at bot_test.go
accessToken := "xxxx"
secret := "xxxx"
dt := New(accessToken, WithSecret(secret))

// text类型
textContent := "我就是我, 是不一样的烟火"
atMobiles := SendWithAtMobiles([]string{"15210123291"})
if err := dt.RobotSendText(textContent, atMobiles); err != nil {
log.Fatal(err)
}
log.Println(dt)

Documents

About

Send message to dingding`s group chat on golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages