This commit is contained in:
cdle
2021-08-31 20:52:35 +08:00
parent 6cd0c63fc3
commit 4ed9cdb8e8
11 changed files with 716 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package im
type Sender interface {
GetUserID() int
GetChatID() int
GetImType() string
GetMessageID() int
GetUsername() string
IsReply() bool
GetReplySenderUserID() int
GetRawMessage() interface{}
SetMatch([]string)
SetAllMatch([][]string)
GetMatch() []string
GetAllMatch() [][]string
Get(...int) string
GetContent() string
IsAdmin() bool
IsMedia() bool
Reply(interface{}) error
}
type Config struct {
Type string
Masters []int
Groups []int
Token string
CustomConfig string
}