Categorygithub.com/codeskyblue/dingrobot
repositorypackage
0.0.0-20171214074958-18a295f1ddd8
Repository: https://github.com/codeskyblue/dingrobot.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

dingrobot

DingTake Robot API

Prepare DingTalk robot access_token, See my article https://testerhome.com/topics/11217 if you dont know how to get it.

Usage

import "github.com/codeskyblue/dingrobot"

func main(){
    robot := dingrobot.New("xxxxx-access_token-*****")
    // send text message
    robot.Text("Hi")
    // send markdown message
    robot.Markdown("**Hi**")
    // send link
    robot.Link("Google", "Google homepage", "https://www.google.com.hk")

    // At someone
    robot.At("13811223344").Text("test at someone")

    // At all
    robot.AtAll(true).Text("test at all message")
}

TODO

  • FeedCard
  • ActionCard
  • ImageUpload

LICENSE

MIT