vlw

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

README

VLW框架

主要接入名为"我的框架"的HOOK框架

待抽空补充其他接口

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*req.Client
}

func NewRequest

func NewRequest() *Client

type Framework

type Framework struct {
	BotWxId   string // 机器人微信ID
	ApiUrl    string // http api地址
	ApiToken  string // http api鉴权token
	ServePort uint   // 本地服务端口,用于接收回调
}

func New

func New(botWxId, apiUrl, apiToken string, servePort uint) *Framework

func (*Framework) AgreeFriendVerify

func (f *Framework) AgreeFriendVerify(v1, v2, scene string) error

func (*Framework) Callback

func (f *Framework) Callback(handler func(*robot.Event, robot.IFramework))

func (*Framework) GetMemePictures

func (f *Framework) GetMemePictures(msg *robot.Message) string

func (*Framework) GetObjectInfo

func (f *Framework) GetObjectInfo(wxId string) (*robot.ObjectInfo, error)

func (*Framework) InviteIntoGroup

func (f *Framework) InviteIntoGroup(groupWxId, wxId string, typ int) error

func (*Framework) SendBusinessCard

func (f *Framework) SendBusinessCard(toWxId, targetWxId string) error

func (*Framework) SendEmoji

func (f *Framework) SendEmoji(toWxId, path string) error

func (*Framework) SendFavorites

func (f *Framework) SendFavorites(toWxId, favoritesId string) error

func (*Framework) SendFile

func (f *Framework) SendFile(toWxId, path string) error

func (*Framework) SendImage

func (f *Framework) SendImage(toWxId, path string) error

func (*Framework) SendMessageRecord

func (f *Framework) SendMessageRecord(toWxId, title string, dataList []map[string]interface{}) error

func (*Framework) SendMessageRecordXML

func (f *Framework) SendMessageRecordXML(toWxId, xmlStr string) error

func (*Framework) SendMiniProgram

func (f *Framework) SendMiniProgram(toWxId, ghId, title, content, imagePath, jumpPath string) error

func (*Framework) SendMusic

func (f *Framework) SendMusic(toWxId, name, author, app, jumpUrl, musicUrl, coverUrl string) error
func (f *Framework) SendShareLink(toWxId, title, desc, imageUrl, jumpUrl string) error

func (*Framework) SendText

func (f *Framework) SendText(toWxId, text string) error

func (*Framework) SendTextAndAt

func (f *Framework) SendTextAndAt(toGroupWxId, toWxId, toWxName, text string) error

func (*Framework) SendVideo

func (f *Framework) SendVideo(toWxId, path string) error

func (*Framework) SendXML

func (f *Framework) SendXML(toWxId, xmlStr string) error

type MessageResp

type MessageResp struct {
	Code      int    `json:"Code"`
	Result    string `json:"Result"`
	ReturnStr string `json:"ReturnStr"`
	ReturnInt string `json:"ReturnInt"`
}

Jump to

Keyboard shortcuts

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