Files
Sillyv2/core/common/sender.go
T
cdle 2f38b8393e x
2023-07-06 09:22:52 +08:00

60 lines
1.3 KiB
Go

package common
type Sender interface {
GetUserID() string
GetChatID() string
GetBotID() string
GetImType() string
GetMessageID() string
RecallMessage(...interface{})
GetUserName() string
GetChatName() string
IsReply() bool
GetReplyUserID() int
GetReplyMessageID() int
GetRawMessage() interface{}
SetMatch([]string)
SetParams([]string)
SetAllMatch([][]string)
GetMatch() []string
GetAllMatch() [][]string
Get(interface{}) string
GetContent() string
SetContent(string)
SetFsps(fsps *FakerSenderParams)
IsAdmin() bool
IsMedia() bool
Reply(...interface{}) (string, error)
Push(map[string]string) (string, error)
Delete() error
Finish()
Continue()
IsContinue() bool
ClearContinue()
Await(Sender, func(Sender) interface{}, ...interface{}) interface{}
Copy() Sender
GroupKick(uid string, reject_add_request bool) error
GroupUnkick(uid string) error
GroupBan(uid string, duration int) error
GroupUnban(uid string) error
AtLast()
UAtLast()
IsAtLast() bool
MessagesToSend() string
Stop()
SetMark(interface{})
GetMark() interface{}
SetExpandMessageInfo(map[string]interface{})
GetExpandMessageInfo() map[string]interface{}
SetVar(string, interface{})
GetVar(string) interface{}
SetLevel(int)
GetLevel() int
}
type FakerSenderParams struct {
Content string
UserID string
ChatID string
}