Documentation
¶
Index ¶
- type Bot
- func (b *Bot) CallApi(action string, param interface{}) gjson.Result
- func (b *Bot) Do(i interface{})
- func (b *Bot) GetResponse(echo string) ([]byte, error)
- func (b *Bot) GetSelfId() int64
- func (b *Bot) SendGroupMsg(groupID int64, message interface{}) int32
- func (b *Bot) SendPrivateMsg(userID int64, message interface{}) int32
- type Driver
- func (d *Driver) AddWebHook(selfID int64, postHost string, postPort int)
- func (d *Driver) GetBot(i int64) interface{}
- func (d *Driver) GetBots() map[int64]interface{}
- func (d *Driver) GetEvent() chan []byte
- func (d *Driver) OnConnect(f func(selfId int64, host string, clientRole string))
- func (d *Driver) OnDisConnect(f func(selfId int64))
- func (d *Driver) Run()
- func (d *Driver) SetConfig(config map[string]interface{})
- func (d *Driver) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.