bearychat

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 10 Imported by: 1

README

brarychat已经停止运营

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Title  string              `json:"title,omitempty"`
	Text   string              `json:"text,omitempty"`
	Color  string              `json:"color,omitempty"`
	Images []map[string]string `json:"images,omitempty"`
}

type Request

type Request struct {
	Token       string `json:"token,omitempty"`
	TimeStamp   int64  `json:"ts,omitempty"`
	Text        string `json:"text,omitempty"`
	TriggerWord string `json:"trigger_word,omitempty"`
	Subdomain   string `json:"subdomain,omitempty"`
	ChannelName string `json:"channel_name,omitempty"`
	UserName    string `json:"user_name,omitempty"`
}

消息传入请求

type Res

type Res struct {
	Code    int `json:"code,omitempty"`
	Request int `json:"request,omitempty"`
}

type Response

type Response struct {
	Text         string       `json:"text"`
	Notification string       `json:"notification,omitempty"`
	Markdown     bool         `json:"markdown,omitempty"`
	Channel      string       `json:"channel,omitempty"`
	User         string       `json:"user,omitempty"`
	Attachments  []Attachment `json:"attachments,omitempty"`
}

发送消息

Jump to

Keyboard shortcuts

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