Skip to content

Commit

Permalink
钉钉机器人webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Dec 5, 2023
1 parent d80cb71 commit 356b233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dingding/dingding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ func TestNew钉钉机器人(t *testing.T) {
secret := os.Getenv("DINGDING_SECRET")
bot := New钉钉机器人(token, secret)

bot.E发送文本消息("hello world")
bot.E发送markdown消息("# hello world")
bot.E发送链接消息("# hello world", "标题", "https://www.baidu.com", "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png")
bot.E整体跳转消息类型("标题", "内容", "https://www.baidu.com")
bot.E发送文本消息("hello world", 3, "")
bot.E发送markdown消息("# hello world", "标题", 3, "")
//bot.E发送链接消息("# hello world", "标题", "https://www.baidu.com", "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png")
//bot.E整体跳转消息类型("标题", "内容", "https://www.baidu.com")

}

0 comments on commit 356b233

Please sign in to comment.