Files
Sillyv2/im/im.go
T
2021-08-31 20:52:35 +08:00

30 lines
525 B
Go

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
}