Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
/ grobot Public archive

支持钉钉和企业微信的消息机器人

License

Notifications You must be signed in to change notification settings

braumye/grobot

Repository files navigation

GROBOT

Build Status codecov Go Report Card

支持钉钉和企业微信的消息机器人

Installation

go get github.com/braumye/grobot

DingTalk Example

package main

import "github.com/braumye/grobot"

func main() {
	robot, err := grobot.New("dingtalk", "your_dingtalk_access_token")

	// 发送文本消息
	err = robot.SendTextMessage("test message")

	// 发送 Markdown 消息
	err = robot.SendMarkdownMessage("markdown title", "# Markdown Text")
}

Wechat Work Example

package main

import "github.com/braumye/grobot"

func main() {
	robot, err := grobot.New("wechatwork", "your_wechat_work_key")

	// 发送文本消息
	err = robot.SendTextMessage("test message")

	// 发送 Markdown 消息
	err = robot.SendMarkdownMessage("markdown title", "# Markdown Text")
}

About

支持钉钉和企业微信的消息机器人

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages