wecom

package
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendToWecomBot

func SendToWecomBot(botURL string, m *Msg) (string, error)

func SendToWecomBotAsMarkdown

func SendToWecomBotAsMarkdown(botURL string, marked string) error

func SendToWecomBotAsText

func SendToWecomBotAsText(botURL string, text string) error

Types

type Markdown

type Markdown struct {
	Content string `json:"content"`
}

type Msg

type Msg struct {
	MsgType  string    `json:"msgtype"`
	Markdown *Markdown `json:"markdown,omitempty"`
	Text     *Text     `json:"text,omitempty"`
}

type Text

type Text struct {
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL