Versions in this module Expand all Collapse all v1 v1.1.0 Jan 14, 2021 v1.0.2 Jan 14, 2021 Changes in this version + const Administrator + const AndroidPhone + const AndroidWatch + const IPad + const MacOS + const Member + const NeedCaptcha + const OtherLoginError + const Owner + const SMSNeededError + const SMSOrVerifyNeededError + const SliderNeededError + const TooManySMSRequestError + const UnknownLoginError + const UnsafeDeviceError + var EmptyBytes = []byte + var ErrAlreadyOnline = errors.New("already online") + var ErrMemberNotFound = errors.New("member not found") + var ErrNotExists = errors.New("not exists") + var NumberRange = "0123456789" + func NewUinFilterPrivate(uin int64) func(*message.PrivateMessage) bool + type AtAllRemainInfo struct + CanAtAll bool + RemainAtAllCountForGroup uint32 + RemainAtAllCountForUin uint32 + type ClientDisconnectedEvent struct + Message string + type ClientProtocol int + type Coordinate struct + X int32 + Y int32 + type CurrentTalkative struct + Avatar string + DayCount int32 + Name string + Uin int64 + type DeviceInfo struct + APN []byte + AndroidId []byte + BaseBand []byte + Board []byte + BootId []byte + Bootloader []byte + Brand []byte + Device []byte + Display []byte + FingerPrint []byte + Guid []byte + IMEI string + IMSIMd5 []byte + IpAddress []byte + MacAddress []byte + Model []byte + OSType []byte + ProcVersion []byte + Product []byte + Protocol ClientProtocol + SimInfo []byte + TgtgtKey []byte + Version *Version + WifiBSSID []byte + WifiSSID []byte + func GenRandomDevice(p ClientProtocol) *DeviceInfo + func (info *DeviceInfo) GenDeviceInfoData() []byte + func (info *DeviceInfo) GenNewGuid() + func (info *DeviceInfo) GenNewTgtgtKey() + func (info *DeviceInfo) Init() + func (info *DeviceInfo) ReadJson(d []byte) error + func (info *DeviceInfo) ToJson() []byte + type DeviceInfoFile struct + Board string + BootId string + Device string + Display string + FingerPrint string + IMEI string + Model string + ProcVersion string + Product string + Protocol int + type FriendInfo struct + FaceId int16 + Nickname string + Remark string + Uin int64 + type FriendListResponse struct + List []*FriendInfo + TotalCount int32 + type FriendMessageRecalledEvent struct + FriendUin int64 + MessageId int32 + Time int64 + type FriendPokeNotifyEvent struct + Receiver int64 + Sender int64 + func (e *FriendPokeNotifyEvent) Content() string + func (e *FriendPokeNotifyEvent) From() int64 + type GroupFile struct + BusId int32 + DeadTime int64 + DownloadTimes int64 + FileId string + FileName string + FileSize int64 + GroupCode int64 + ModifyTime int64 + UploadTime int64 + Uploader int64 + UploaderName string + type GroupFileSystem struct + FileCount uint32 + GroupCode int64 + LimitCount uint32 + TotalSpace uint64 + UsedSpace uint64 + func (fs *GroupFileSystem) DeleteFile(parentFolderId, fileId string, busId int32) string + func (fs *GroupFileSystem) GetDownloadUrl(file *GroupFile) string + func (fs *GroupFileSystem) GetFilesByFolder(folderId string) ([]*GroupFile, []*GroupFolder, error) + func (fs *GroupFileSystem) Root() ([]*GroupFile, []*GroupFolder, error) + type GroupFolder struct + CreateTime int64 + Creator int64 + CreatorName string + FolderId string + FolderName string + GroupCode int64 + TotalFileCount uint32 + type GroupHonorInfo struct + ActorList []HonorMemberInfo + CurrentTalkative CurrentTalkative + EmotionList []HonorMemberInfo + GroupCode string + LegendList []HonorMemberInfo + StrongNewbieList []HonorMemberInfo + TalkativeList []HonorMemberInfo + Type HonorType + Uin string + type GroupInfo struct + Code int64 + MaxMemberCount uint16 + MemberCount uint16 + Members []*GroupMemberInfo + Memo string + Name string + OwnerUin int64 + Uin int64 + func (g *GroupInfo) AdministratorOrOwner() bool + func (g *GroupInfo) FindMember(uin int64) *GroupMemberInfo + func (g *GroupInfo) FindMemberWithoutLock(uin int64) *GroupMemberInfo + func (g *GroupInfo) MuteAll(mute bool) + func (g *GroupInfo) MuteAnonymous(id, nick string, seconds int32) error + func (g *GroupInfo) Quit() + func (g *GroupInfo) Read(f func(*GroupInfo) interface{}) interface{} + func (g *GroupInfo) SelfPermission() MemberPermission + func (g *GroupInfo) Update(f func(*GroupInfo)) + func (g *GroupInfo) UpdateGroupHeadPortrait(img []byte) + func (g *GroupInfo) UpdateMemo(newMemo string) + func (g *GroupInfo) UpdateName(newName string) + type GroupInvitedRequest struct + Actor int64 + Checked bool + GroupCode int64 + GroupName string + InvitorNick string + InvitorUin int64 + RequestId int64 + func (r *GroupInvitedRequest) Accept() + func (r *GroupInvitedRequest) Reject(block bool, reason string) + type GroupLeaveEvent struct + Group *GroupInfo + Operator *GroupMemberInfo + type GroupMemberInfo struct + CardName string + Gender byte + Group *GroupInfo + JoinTime int64 + LastSpeakTime int64 + Level uint16 + Nickname string + Permission MemberPermission + SpecialTitle string + SpecialTitleExpireTime int64 + Uin int64 + func (m *GroupMemberInfo) CardChangable() bool + func (m *GroupMemberInfo) DisplayName() string + func (m *GroupMemberInfo) EditCard(card string) + func (m *GroupMemberInfo) EditSpecialTitle(title string) + func (m *GroupMemberInfo) Kick(msg string, block bool) + func (m *GroupMemberInfo) Manageable() bool + func (m *GroupMemberInfo) Mute(time uint32) + func (m *GroupMemberInfo) Poke() + func (m *GroupMemberInfo) SetAdmin(flag bool) + type GroupMessageRecalledEvent struct + AuthorUin int64 + GroupCode int64 + MessageId int32 + OperatorUin int64 + Time int32 + type GroupMuteEvent struct + GroupCode int64 + OperatorUin int64 + TargetUin int64 + Time int32 + type GroupPokeNotifyEvent struct + GroupCode int64 + Receiver int64 + Sender int64 + func (e *GroupPokeNotifyEvent) Content() string + func (e *GroupPokeNotifyEvent) From() int64 + type GroupRedBagLuckyKingNotifyEvent struct + GroupCode int64 + LuckyKing int64 + Sender int64 + func (e *GroupRedBagLuckyKingNotifyEvent) Content() string + func (e *GroupRedBagLuckyKingNotifyEvent) From() int64 + type GroupSystemMessages struct + InvitedRequests []*GroupInvitedRequest + JoinRequests []*UserJoinGroupRequest + type HandlerMap struct + func (m *HandlerMap) Delete(key uint16) + func (m *HandlerMap) Load(key uint16) (value func(i interface{}, err error), ok bool) + func (m *HandlerMap) LoadAndDelete(key uint16) (value func(i interface{}, err error), loaded bool) + func (m *HandlerMap) LoadOrStore(key uint16, value func(i interface{}, err error)) (actual func(i interface{}, err error), loaded bool) + func (m *HandlerMap) Range(f func(key uint16, value func(i interface{}, err error)) bool) + func (m *HandlerMap) Store(key uint16, value func(i interface{}, err error)) + type HonorMemberInfo struct + Avatar string + Desc string + Name string + Uin int64 + type HonorType int + const Emotion + const Legend + const Performer + const StrongNewbie + const Talkative + type INotifyEvent interface + Content func() string + From func() int64 + type LogEvent struct + Message string + Type string + type LoginError int + type LoginResponse struct + CaptchaImage []byte + CaptchaSign []byte + Error LoginError + ErrorMessage string + SMSPhone string + Success bool + VerifyUrl string + type MemberCardUpdatedEvent struct + Group *GroupInfo + Member *GroupMemberInfo + OldCard string + type MemberHonorChangedNotifyEvent struct + GroupCode int64 + Honor HonorType + Nick string + Uin int64 + func (e *MemberHonorChangedNotifyEvent) Content() string + func (e *MemberHonorChangedNotifyEvent) From() int64 + type MemberJoinGroupEvent struct + Group *GroupInfo + Member *GroupMemberInfo + type MemberLeaveGroupEvent struct + Group *GroupInfo + Member *GroupMemberInfo + Operator *GroupMemberInfo + type MemberPermission int + type MemberPermissionChangedEvent struct + Group *GroupInfo + Member *GroupMemberInfo + NewPermission MemberPermission + OldPermission MemberPermission + type NewFriendEvent struct + Friend *FriendInfo + type NewFriendRequest struct + Message string + RequestId int64 + RequesterNick string + RequesterUin int64 + func (r *NewFriendRequest) Accept() + func (r *NewFriendRequest) Reject() + type OcrResponse struct + Language string + Texts []*TextDetection + type OfflineFileEvent struct + DownloadUrl string + FileName string + FileSize int64 + Sender int64 + type QQClient struct + Age uint16 + AllowSlider bool + Conn net.Conn + ConnectTime time.Time + DeviceInfo *DeviceInfo + FriendList []*FriendInfo + Gender uint16 + GroupList []*GroupInfo + NetLooping bool + Nickname string + Online bool + OutGoingPacketSessionId []byte + PasswordMd5 [16]byte + RandomKey []byte + SequenceId int32 + Uin int64 + func NewClient(uin int64, password string, info *DeviceInfo) *QQClient + func NewClientMd5(uin int64, passwordMd5 [16]byte, info *DeviceInfo) *QQClient + func (c *QQClient) Debug(msg string, args ...interface{}) + func (c *QQClient) Disconnect() + func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement + func (c *QQClient) Error(msg string, args ...interface{}) + func (c *QQClient) FindFriend(uin int64) *FriendInfo + func (c *QQClient) FindGroup(code int64) *GroupInfo + func (c *QQClient) FindGroupByUin(uin int64) *GroupInfo + func (c *QQClient) GetAtAllRemain(groupCode int64) (*AtAllRemainInfo, error) + func (c *QQClient) GetForwardMessage(resId string) *message.ForwardMessage + func (c *QQClient) GetFriendList() (*FriendListResponse, error) + func (c *QQClient) GetGroupFileSystem(groupCode int64) (fs *GroupFileSystem, err error) + func (c *QQClient) GetGroupFileUrl(groupCode int64, fileId string, busId int32) string + func (c *QQClient) GetGroupHonorInfo(groupCode int64, honorType HonorType) (*GroupHonorInfo, error) + func (c *QQClient) GetGroupInfo(groupCode int64) (*GroupInfo, error) + func (c *QQClient) GetGroupList() ([]*GroupInfo, error) + func (c *QQClient) GetGroupMembers(group *GroupInfo) ([]*GroupMemberInfo, error) + func (c *QQClient) GetGroupMessages(groupCode, beginSeq, endSeq int64) ([]*message.GroupMessage, error) + func (c *QQClient) GetGroupSystemMessages() (*GroupSystemMessages, error) + func (c *QQClient) GetQzoneKeys() QzoneKeys + func (c *QQClient) GetShortVideoUrl(uuid, md5 []byte) string + func (c *QQClient) GetStatistics() *Statistics + func (c *QQClient) GetSummaryInfo(target int64) (*SummaryCardInfo, error) + func (c *QQClient) GetTts(text string) ([]byte, error) + func (c *QQClient) GetVipInfo(target int64) (*VipInfo, error) + func (c *QQClient) GetWordSegmentation(text string) ([]string, error) + func (c *QQClient) ImageOcr(img interface{}) (*OcrResponse, error) + func (c *QQClient) Info(msg string, args ...interface{}) + func (c *QQClient) Login() (*LoginResponse, error) + func (c *QQClient) OnDisconnected(f func(*QQClient, *ClientDisconnectedEvent)) + func (c *QQClient) OnFriendMessageRecalled(f func(*QQClient, *FriendMessageRecalledEvent)) + func (c *QQClient) OnFriendNotify(f func(*QQClient, INotifyEvent)) + func (c *QQClient) OnGroupInvited(f func(*QQClient, *GroupInvitedRequest)) + func (c *QQClient) OnGroupMemberCardUpdated(f func(*QQClient, *MemberCardUpdatedEvent)) + func (c *QQClient) OnGroupMemberJoined(f func(*QQClient, *MemberJoinGroupEvent)) + func (c *QQClient) OnGroupMemberLeaved(f func(*QQClient, *MemberLeaveGroupEvent)) + func (c *QQClient) OnGroupMemberPermissionChanged(f func(*QQClient, *MemberPermissionChangedEvent)) + func (c *QQClient) OnGroupMessage(f func(*QQClient, *message.GroupMessage)) + func (c *QQClient) OnGroupMessageRecalled(f func(*QQClient, *GroupMessageRecalledEvent)) + func (c *QQClient) OnGroupMuted(f func(*QQClient, *GroupMuteEvent)) + func (c *QQClient) OnGroupNotify(f func(*QQClient, INotifyEvent)) + func (c *QQClient) OnJoinGroup(f func(*QQClient, *GroupInfo)) + func (c *QQClient) OnLeaveGroup(f func(*QQClient, *GroupLeaveEvent)) + func (c *QQClient) OnLog(f func(*QQClient, *LogEvent)) + func (c *QQClient) OnNewFriendAdded(f func(*QQClient, *NewFriendEvent)) + func (c *QQClient) OnNewFriendRequest(f func(*QQClient, *NewFriendRequest)) + func (c *QQClient) OnPrivateMessage(f func(*QQClient, *message.PrivateMessage)) + func (c *QQClient) OnPrivateMessageF(filter func(*message.PrivateMessage) bool, ...) + func (c *QQClient) OnReceivedOfflineFile(f func(*QQClient, *OfflineFileEvent)) + func (c *QQClient) OnServerUpdated(f func(*QQClient, *ServerUpdatedEvent) bool) + func (c *QQClient) OnTempMessage(f func(*QQClient, *message.TempMessage)) + func (c *QQClient) OnUserWantJoinGroup(f func(*QQClient, *UserJoinGroupRequest)) + func (c *QQClient) QueryFriendImage(target int64, hash []byte, size int32) (*message.FriendImageElement, error) + func (c *QQClient) QueryGroupImage(groupCode int64, hash []byte, size int32) (*message.GroupImageElement, error) + func (c *QQClient) RecallGroupMessage(groupCode int64, msgId, msgInternalId int32) error + func (c *QQClient) RecallPrivateMessage(uin, ts int64, msgId, msgInternalId int32) error + func (c *QQClient) ReloadFriendList() error + func (c *QQClient) ReloadGroupList() error + func (c *QQClient) RequestSMS() bool + func (c *QQClient) SendFriendPoke(target int64) + func (c *QQClient) SendFriendRichMessage(target, appId int64, appType, msgStyle uint32, client RichClientInfo, ...) + func (c *QQClient) SendGroupForwardMessage(groupCode int64, m *message.ForwardMessage) *message.GroupMessage + func (c *QQClient) SendGroupGift(groupCode, uin uint64, gift message.GroupGift) + func (c *QQClient) SendGroupMessage(groupCode int64, m *message.SendingMessage, f ...bool) *message.GroupMessage + func (c *QQClient) SendGroupRichMessage(target, appId int64, appType, msgStyle uint32, client RichClientInfo, ...) (*message.GroupMessage, error) + func (c *QQClient) SendPrivateMessage(target int64, m *message.SendingMessage) *message.PrivateMessage + func (c *QQClient) SendTempMessage(groupCode, target int64, m *message.SendingMessage) *message.TempMessage + func (c *QQClient) SetCustomServer(servers []*net.TCPAddr) + func (c *QQClient) SolveFriendRequest(req *NewFriendRequest, accept bool) + func (c *QQClient) SolveGroupJoinRequest(i interface{}, accept, block bool, reason string) + func (c *QQClient) SubmitCaptcha(result string, sign []byte) (*LoginResponse, error) + func (c *QQClient) SubmitSMS(code string) (*LoginResponse, error) + func (c *QQClient) SubmitTicket(ticket string) (*LoginResponse, error) + func (c *QQClient) Trace(msg string, args ...interface{}) + func (c *QQClient) Translate(src, dst, text string) (string, error) + func (c *QQClient) UploadGroupForwardMessage(groupCode int64, m *message.ForwardMessage) *message.ForwardElement + func (c *QQClient) UploadGroupImage(groupCode int64, img io.ReadSeeker) (*message.GroupImageElement, error) + func (c *QQClient) UploadGroupImageByFile(groupCode int64, path string) (*message.GroupImageElement, error) + func (c *QQClient) UploadGroupPtt(groupCode int64, voice io.ReadSeeker) (*message.GroupVoiceElement, error) + func (c *QQClient) UploadPrivateImage(target int64, img io.ReadSeeker) (*message.FriendImageElement, error) + func (c *QQClient) UploadPrivatePtt(target int64, voice []byte) (*message.PrivateVoiceElement, error) + func (c *QQClient) Warning(msg string, args ...interface{}) + type QzoneKeys struct + Pskeys map[string]string + Sid string + Skey string + Superkey string + Uin int64 + type RichClientInfo struct + PackageName string + Platform uint32 + SdkVersion string + Signature string + type ServerUpdatedEvent struct + Servers []jce.SsoServerInfo + type Statistics struct + DisconnectTimes uint32 + LostTimes uint32 + MessageReceived uint64 + MessageSent uint64 + PacketLost uint32 + PacketReceived uint64 + PacketSent uint64 + type SummaryCardInfo struct + Age uint8 + City string + Level int32 + LoginDays int64 + Mobile string + Nickname string + Sex byte + Sign string + Uin int64 + type TextDetection struct + Confidence int32 + Coordinates []*Coordinate + Text string + type UserJoinGroupRequest struct + Actor int64 + Checked bool + GroupCode int64 + GroupName string + Message string + RequestId int64 + RequesterNick string + RequesterUin int64 + func (r *UserJoinGroupRequest) Accept() + func (r *UserJoinGroupRequest) Reject(block bool, reason string) + type Version struct + CodeName []byte + Incremental []byte + Release []byte + Sdk uint32 + type VipInfo struct + Level int + LevelSpeed float64 + Name string + Uin int64 + VipGrowthSpeed int + VipGrowthTotal int + VipLevel string