wochat

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 9 Imported by: 0

README

wochat (Work Wechat)

Feature

  • NewWoChat(token string)
  • UseToken(token string)
  • SendText(text string)
  • SendMarkdown(body string)
  • SetDebug(debug bool)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type WoChat added in v0.2.0

type WoChat struct {
	// contains filtered or unexported fields
}

WoChat

func NewWoChat added in v0.2.0

func NewWoChat(token string) *WoChat

NewWoChat returns a roboter that can send messages.

func (*WoChat) SendMarkdown added in v0.2.0

func (r *WoChat) SendMarkdown(body string) error

func (*WoChat) SendText added in v0.2.0

func (r *WoChat) SendText(text string) error

func (*WoChat) SetDebug added in v0.2.0

func (r *WoChat) SetDebug(debug bool) *WoChat

func (*WoChat) UseHost added in v0.2.0

func (r *WoChat) UseHost(url string) notice.Noticer

Deprecated

func (*WoChat) UseSecret added in v0.2.0

func (r *WoChat) UseSecret(secret string) notice.Noticer

Deprecated

func (*WoChat) UseToken added in v0.2.0

func (r *WoChat) UseToken(token string) notice.Noticer

Jump to

Keyboard shortcuts

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