Documentation ¶
Index ¶
- func ParseMessage(r *Robot, msg []byte) int
- type H
- type Message
- type Robot
- func (r *Robot) Get(url string) ([]byte, error)
- func (r *Robot) GetCookie(requesturl, cookieName string) (value string)
- func (r *Robot) GetTimestamp() string
- func (r *Robot) GetToken(t string) string
- func (r *Robot) OnCheckLogin(fun func(*Robot) bool)
- func (r *Robot) OnLogin(fun func(*Robot))
- func (r *Robot) OnMessage(fun func(*Robot, *Message))
- func (r *Robot) OnQRChange(fun func(*Robot, []byte))
- func (r *Robot) Post(url string, param H) ([]byte, error)
- func (r *Robot) Request(method, posturl string, param H) ([]byte, error)
- func (r *Robot) Run()
- func (r *Robot) SendToBuddy(toUin int, message string) error
- func (r *Robot) SendToDiscuss(toUin int, message string) error
- func (r *Robot) SendToGroup(toUin int, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMessage ¶
Types ¶
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
func (*Robot) GetTimestamp ¶
func (*Robot) OnCheckLogin ¶
func (*Robot) OnQRChange ¶
Click to show internal directories.
Click to hide internal directories.