webhook

package
v0.1.15-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Source    Source  `json:"source"`
	Target    Target  `json:"target"`
	Message   Message `json:"message"`
	Callback  bool    `json:"callback"`
	TimeStamp int64   `json:"time_stamp"`
}

type GoCqHttp

type GoCqHttp struct {
	// "Group"/"Private"
	Type string `json:"type"`
	// Group ID/ Private ID
	ID int64 `json:"id"`
}

type Message

type Message struct {
	Type     string      `json:"type"`
	Content  string      `json:"content"`
	Addition interface{} `json:"addition"`
}

type Source

type Source struct {
	// "GoCqHttp"/"Mirai"/"OneBot"/"Telegram"/"Discord"/"Slack"
	Platform string      `json:"platform"`
	Addition interface{} `json:"addition"`
}

type Target

type Target struct {
	GoCqHttp
}

Jump to

Keyboard shortcuts

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