Versions in this module Expand all Collapse all v0 v0.1.5 Jun 6, 2020 Changes in this version + type AuthResponse struct + Code int + Session string + type Bot struct + Client *Client + MessageChan chan InEvent + QQ int64 + Session string + func (bot *Bot) FetchMessage() error + func (bot *Bot) FriendList() ([]*Friend, error) + func (bot *Bot) GetGroupConfig(group int64) (*GroupConfig, error) + func (bot *Bot) GetGroupMemberInfo(group, member int64) (*GroupMemberInfo, error) + func (bot *Bot) GroupList() ([]*Group, error) + func (bot *Bot) InitChannel(size int, t time.Duration) + func (bot *Bot) Kick(group int64, member int64, msg string) error + func (bot *Bot) MemberList(group int64) ([]*GroupMember, error) + func (bot *Bot) MessageFromID(id int64) (*InEvent, error) + func (bot *Bot) Mute(group int64, member int64, second int64) error + func (bot *Bot) MuteAll(group int64) error + func (bot *Bot) Recall(target int64) error + func (bot *Bot) RefreshFriendList() ([]*Friend, error) + func (bot *Bot) RefreshGroupList() ([]*Group, error) + func (bot *Bot) Release() error + func (bot *Bot) SendFriendMessage(target, quote int64, msg []Message) (int64, error) + func (bot *Bot) SendGroupMessage(target, quote int64, msg []Message) (int64, error) + func (bot *Bot) SendImageMessage(target int64, targetType string, urls []string) ([]string, error) + func (bot *Bot) SetGroupConfig(config GroupConfig, group int64) error + func (bot *Bot) SetGroupMemberInfo(info *GroupMemberInfo, group, member int64) error + func (bot *Bot) UnmuteAll(group int64) error + type Client struct + Address string + Bots map[int64]*Bot + HTTPClient http.Client + func NewMiraiClient(address, authKey string) (client *Client) + func (client *Client) Auth() (session string, err error) + func (client *Client) GetManagers(qq int64) (*[]int64, error) + func (client *Client) GetSessionConfig(session string) (*SessionConfig, error) + func (client *Client) ReleaseAllSession() + func (client *Client) SendCommand(commandName string, args []string) string + func (client *Client) SetSessionConfig(config *SessionConfig) error + func (client *Client) Verify(qq int64) (*Bot, error) + type CommonCall struct + SessionKey string + type Friend struct + ID int64 + NickName string + Remark string + type Group struct + ID int64 + Name string + Permission string + type GroupConfig struct + AllowMemberInvite bool + Announcement string + AnonymousChat bool + AutoApprove bool + ConfessTalk bool + Name string + type GroupMember struct + Group Group + ID int64 + MemberName string + Permission string + type GroupMemberInfo struct + Name string + SpecialTitle string + type InEvent struct + AuthorID int64 + Current interface{} + DurationSeconds int64 + Group Group + IsByBot bool + Member GroupMember + MessageChain []Message + MessageID int64 + Operator interface{} + OperatorFriend int64 + OperatorGroup GroupMember + Origin interface{} + QQ int64 + Sender interface{} + SenderFriend Friend + SenderGroup GroupMember + Time int64 + Type string + func (e *InEvent) OperatorDetail() error + func (e *InEvent) SenderDetail() error + type InEventAll struct + Code int64 + Data []InEvent + ErrorMessage string + type Message struct + Content string + Display string + FaceID int64 + GroupID int64 + ID int64 + ImageID string + JSON string + Name string + Origin []Message + Path string + SenderID int64 + Target int64 + Text string + Time int64 + Type string + URL string + XML string + type MessageCall struct + MessageChain []Message + Target int64 + type Response struct + Code int + MessageID int64 + Msg string + type SessionConfig struct + CacheSize int64 + EnableWebsocket bool + SessionKey string