Documentation ¶
Index ¶
- Constants
- Variables
- func GenRandomDevice()
- func NewUinFilterPrivate(uin int64) func(*message.PrivateMessage) bool
- type ClientDisconnectedEvent
- type ClientProtocol
- type Coordinate
- type CurrentTalkative
- type DeviceInfo
- type DeviceInfoFile
- type FriendInfo
- type FriendListResponse
- type FriendMessageRecalledEvent
- type FriendPokeNotifyEvent
- type GroupFile
- type GroupFileSystem
- 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
- type GroupHonorInfo
- type GroupInfo
- func (g *GroupInfo) AdministratorOrOwner() bool
- func (g *GroupInfo) FindMember(uin int64) *GroupMemberInfo
- func (g *GroupInfo) MuteAll(mute bool)
- 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
- type GroupLeaveEvent
- type GroupMemberInfo
- 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
- type GroupMuteEvent
- type GroupPokeNotifyEvent
- type GroupRedBagLuckyKingNotifyEvent
- type GroupSystemMessages
- type HonorMemberInfo
- type HonorType
- type INotifyEvent
- type LogEvent
- type LoginError
- type LoginResponse
- type MemberCardUpdatedEvent
- type MemberHonorChangedNotifyEvent
- type MemberJoinGroupEvent
- type MemberLeaveGroupEvent
- type MemberPermission
- type MemberPermissionChangedEvent
- type NewFriendEvent
- type NewFriendRequest
- type OcrResponse
- type OfflineFileEvent
- type QQClient
- func (c *QQClient) Debug(msg string, args ...interface{})
- func (c *QQClient) Disconnect()
- 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) 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) GetGroupSystemMessages() (*GroupSystemMessages, error)
- 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) Trace(msg string, args ...interface{})
- func (c *QQClient) Translate(src, dst, text string) (string, error)
- func (c *QQClient) UploadGroupImage(groupCode int64, img []byte) (*message.GroupImageElement, error)
- func (c *QQClient) UploadGroupPtt(groupCode int64, voice []byte) (*message.GroupVoiceElement, error)
- func (c *QQClient) UploadPrivateImage(target int64, img []byte) (*message.FriendImageElement, error)
- func (c *QQClient) UploadPrivatePtt(target int64, voice []byte) (*message.PrivateVoiceElement, error)
- func (c *QQClient) Warning(msg string, args ...interface{})
- type RichClientInfo
- type ServerUpdatedEvent
- type Statistics
- type SummaryCardInfo
- type TextDetection
- type UserJoinGroupRequest
- type Version
- type VipInfo
Constants ¶
View Source
const ( NeedCaptcha LoginError = 1 OtherLoginError LoginError = 3 UnsafeDeviceError LoginError = 4 SMSNeededError LoginError = 5 TooManySMSRequestError LoginError = 6 SMSOrVerifyNeededError LoginError = 7 SliderNeededError LoginError = 8 UnknownLoginError LoginError = -1 Owner MemberPermission = iota Administrator Member AndroidPhone ClientProtocol = 1 IPad ClientProtocol = 2 AndroidWatch ClientProtocol = 3 MacOS ClientProtocol = 4 )
Variables ¶
View Source
var ( ErrAlreadyOnline = errors.New("already online") ErrMemberNotFound = errors.New("member not found") ErrNotExists = errors.New("not exists") )
View Source
var EmptyBytes = []byte{}
View Source
var NumberRange = "0123456789"
View Source
var SystemDeviceInfo = &DeviceInfo{ Display: []byte("MIRAI.123456.001"), Product: []byte("mirai"), Device: []byte("mirai"), Board: []byte("mirai"), Brand: []byte("mamoe"), Model: []byte("mirai"), Bootloader: []byte("unknown"), FingerPrint: []byte("mamoe/mirai/mirai:10/MIRAI.200122.001/1234567:user/release-keys"), BootId: []byte("cb886ae2-00b6-4d68-a230-787f111d12c7"), ProcVersion: []byte("Linux version 3.0.31-cb886ae2 (android-build@xxx.xxx.xxx.xxx.com)"), BaseBand: []byte{}, SimInfo: []byte("T-Mobile"), OSType: []byte("android"), MacAddress: []byte("00:50:56:C0:00:08"), IpAddress: []byte{10, 0, 1, 3}, WifiBSSID: []byte("00:50:56:C0:00:08"), WifiSSID: []byte("<unknown ssid>"), IMEI: "468356291846738", AndroidId: []byte("MIRAI.123456.001"), APN: []byte("wifi"), Protocol: IPad, Version: &Version{ Incremental: []byte("5891938"), Release: []byte("10"), CodeName: []byte("REL"), Sdk: 29, }, }
default
Functions ¶
func GenRandomDevice ¶
func GenRandomDevice()
func NewUinFilterPrivate ¶
func NewUinFilterPrivate(uin int64) func(*message.PrivateMessage) bool
Types ¶
type ClientDisconnectedEvent ¶
type ClientDisconnectedEvent struct {
Message string
}
type ClientProtocol ¶
type ClientProtocol int
type Coordinate ¶
type CurrentTalkative ¶
type DeviceInfo ¶
type DeviceInfo struct { Display []byte Product []byte Device []byte Board []byte Brand []byte Model []byte Bootloader []byte FingerPrint []byte BootId []byte ProcVersion []byte BaseBand []byte SimInfo []byte OSType []byte MacAddress []byte IpAddress []byte WifiBSSID []byte WifiSSID []byte IMSIMd5 []byte IMEI string AndroidId []byte APN []byte Guid []byte TgtgtKey []byte Protocol ClientProtocol Version *Version }
func (*DeviceInfo) GenDeviceInfoData ¶
func (info *DeviceInfo) GenDeviceInfoData() []byte
func (*DeviceInfo) GenNewGuid ¶
func (info *DeviceInfo) GenNewGuid()
func (*DeviceInfo) GenNewTgtgtKey ¶
func (info *DeviceInfo) GenNewTgtgtKey()
func (*DeviceInfo) ReadJson ¶
func (info *DeviceInfo) ReadJson(d []byte) error
func (*DeviceInfo) ToJson ¶
func (info *DeviceInfo) ToJson() []byte
type DeviceInfoFile ¶
type DeviceInfoFile struct { Display string `json:"display"` Product string `json:"product"` Device string `json:"device"` Board string `json:"board"` Model string `json:"model"` FingerPrint string `json:"finger_print"` BootId string `json:"boot_id"` ProcVersion string `json:"proc_version"` Protocol int `json:"protocol"` // 0: Pad 1: Phone 2: Watch IMEI string `json:"imei"` }
type FriendListResponse ¶
type FriendListResponse struct { TotalCount int32 List []*FriendInfo }
type FriendPokeNotifyEvent ¶
FriendPokeNotifyEvent 好友戳一戳提示事件
func (*FriendPokeNotifyEvent) Content ¶
func (e *FriendPokeNotifyEvent) Content() string
func (*FriendPokeNotifyEvent) From ¶
func (e *FriendPokeNotifyEvent) From() int64
type GroupFile ¶
type GroupFile struct { GroupCode int64 `json:"group_id"` FileId string `json:"file_id"` FileName string `json:"file_name"` BusId int32 `json:"busid"` FileSize int64 `json:"file_size"` UploadTime int64 `json:"upload_time"` DeadTime int64 `json:"dead_time"` ModifyTime int64 `json:"modify_time"` DownloadTimes int64 `json:"download_times"` Uploader int64 `json:"uploader"` UploaderName string `json:"uploader_name"` }
type GroupFileSystem ¶
type GroupFileSystem struct { FileCount uint32 `json:"file_count"` LimitCount uint32 `json:"limit_count"` UsedSpace uint64 `json:"used_space"` TotalSpace uint64 `json:"total_space"` GroupCode int64 `json:"group_id"` // contains filtered or unexported fields }
func (*GroupFileSystem) DeleteFile ¶
func (fs *GroupFileSystem) DeleteFile(parentFolderId, fileId string, busId int32) string
DeleteFile 删除群文件,需要管理权限. 返回错误, 空为删除成功
func (*GroupFileSystem) GetDownloadUrl ¶
func (fs *GroupFileSystem) GetDownloadUrl(file *GroupFile) string
func (*GroupFileSystem) GetFilesByFolder ¶
func (fs *GroupFileSystem) GetFilesByFolder(folderId string) ([]*GroupFile, []*GroupFolder, error)
func (*GroupFileSystem) Root ¶
func (fs *GroupFileSystem) Root() ([]*GroupFile, []*GroupFolder, error)
type GroupFolder ¶
type GroupHonorInfo ¶
type GroupHonorInfo struct { GroupCode string `json:"gc"` Uin string `json:"uin"` Type HonorType `json:"type"` TalkativeList []HonorMemberInfo `json:"talkativeList"` CurrentTalkative CurrentTalkative `json:"currentTalkative"` ActorList []HonorMemberInfo `json:"actorList"` LegendList []HonorMemberInfo `json:"legendList"` StrongNewbieList []HonorMemberInfo `json:"strongnewbieList"` EmotionList []HonorMemberInfo `json:"emotionList"` }
type GroupInfo ¶
type GroupInfo struct { Uin int64 Code int64 Name string Memo string OwnerUin int64 MemberCount uint16 MaxMemberCount uint16 Members []*GroupMemberInfo // contains filtered or unexported fields }
func (*GroupInfo) AdministratorOrOwner ¶
func (*GroupInfo) FindMember ¶
func (g *GroupInfo) FindMember(uin int64) *GroupMemberInfo
func (*GroupInfo) SelfPermission ¶
func (g *GroupInfo) SelfPermission() MemberPermission
func (*GroupInfo) UpdateGroupHeadPortrait ¶
func (*GroupInfo) UpdateMemo ¶
func (*GroupInfo) UpdateName ¶
type GroupInvitedRequest ¶
type GroupInvitedRequest struct { RequestId int64 `json:"request_id"` InvitorUin int64 `json:"invitor_uin"` InvitorNick string `json:"invitor_nick"` GroupCode int64 `json:"group_id"` GroupName string `json:"group_name"` Checked bool `json:"checked"` Actor int64 `json:"actor"` // contains filtered or unexported fields }
func (*GroupInvitedRequest) Accept ¶
func (r *GroupInvitedRequest) Accept()
func (*GroupInvitedRequest) Reject ¶
func (r *GroupInvitedRequest) Reject(block bool, reason string)
type GroupLeaveEvent ¶
type GroupLeaveEvent struct { Group *GroupInfo Operator *GroupMemberInfo }
type GroupMemberInfo ¶
type GroupMemberInfo struct { Group *GroupInfo Uin int64 Gender byte Nickname string CardName string Level uint16 JoinTime int64 LastSpeakTime int64 SpecialTitle string SpecialTitleExpireTime int64 Permission MemberPermission }
func (*GroupMemberInfo) DisplayName ¶
func (m *GroupMemberInfo) DisplayName() string
func (*GroupMemberInfo) EditCard ¶
func (m *GroupMemberInfo) EditCard(card string)
func (*GroupMemberInfo) EditSpecialTitle ¶
func (m *GroupMemberInfo) EditSpecialTitle(title string)
func (*GroupMemberInfo) Kick ¶
func (m *GroupMemberInfo) Kick(msg string, block bool)
func (*GroupMemberInfo) Manageable ¶
func (m *GroupMemberInfo) Manageable() bool
func (*GroupMemberInfo) Mute ¶
func (m *GroupMemberInfo) Mute(time uint32)
func (*GroupMemberInfo) Poke ¶
func (m *GroupMemberInfo) Poke()
func (*GroupMemberInfo) SetAdmin ¶
func (m *GroupMemberInfo) SetAdmin(flag bool)
type GroupMuteEvent ¶
type GroupPokeNotifyEvent ¶
GroupPokeNotifyEvent 群内戳一戳提示事件
func (*GroupPokeNotifyEvent) Content ¶
func (e *GroupPokeNotifyEvent) Content() string
func (*GroupPokeNotifyEvent) From ¶
func (e *GroupPokeNotifyEvent) From() int64
type GroupRedBagLuckyKingNotifyEvent ¶
GroupRedBagLuckyKingNotifyEvent 群内抢红包运气王提示事件
func (*GroupRedBagLuckyKingNotifyEvent) Content ¶
func (e *GroupRedBagLuckyKingNotifyEvent) Content() string
func (*GroupRedBagLuckyKingNotifyEvent) From ¶
func (e *GroupRedBagLuckyKingNotifyEvent) From() int64
type GroupSystemMessages ¶
type GroupSystemMessages struct { InvitedRequests []*GroupInvitedRequest `json:"invited_requests"` JoinRequests []*UserJoinGroupRequest `json:"join_requests"` }
type HonorMemberInfo ¶
type INotifyEvent ¶
type LoginError ¶
type LoginError int
type LoginResponse ¶
type MemberCardUpdatedEvent ¶
type MemberCardUpdatedEvent struct { Group *GroupInfo OldCard string Member *GroupMemberInfo }
type MemberHonorChangedNotifyEvent ¶
MemberHonorChangedNotifyEvent 群成员荣誉变更提示事件
func (*MemberHonorChangedNotifyEvent) Content ¶
func (e *MemberHonorChangedNotifyEvent) Content() string
func (*MemberHonorChangedNotifyEvent) From ¶
func (e *MemberHonorChangedNotifyEvent) From() int64
type MemberJoinGroupEvent ¶
type MemberJoinGroupEvent struct { Group *GroupInfo Member *GroupMemberInfo }
type MemberLeaveGroupEvent ¶
type MemberLeaveGroupEvent struct { Group *GroupInfo Member *GroupMemberInfo Operator *GroupMemberInfo }
type MemberPermission ¶
type MemberPermission int
type MemberPermissionChangedEvent ¶
type MemberPermissionChangedEvent struct { Group *GroupInfo Member *GroupMemberInfo OldPermission MemberPermission NewPermission MemberPermission }
type NewFriendEvent ¶
type NewFriendEvent struct {
Friend *FriendInfo
}
type NewFriendRequest ¶
type NewFriendRequest struct { RequestId int64 Message string RequesterUin int64 RequesterNick string // contains filtered or unexported fields }
func (*NewFriendRequest) Accept ¶
func (r *NewFriendRequest) Accept()
func (*NewFriendRequest) Reject ¶
func (r *NewFriendRequest) Reject()
type OcrResponse ¶
type OcrResponse struct { Texts []*TextDetection `json:"texts"` Language string `json:"language"` }
type OfflineFileEvent ¶
type QQClient ¶
type QQClient struct { Uin int64 PasswordMd5 [16]byte AllowSlider bool Nickname string Age uint16 Gender uint16 FriendList []*FriendInfo GroupList []*GroupInfo Online bool NetLooping bool SequenceId int32 OutGoingPacketSessionId []byte RandomKey []byte Conn net.Conn ConnectTime time.Time // contains filtered or unexported fields }
func NewClientMd5 ¶
func (*QQClient) Disconnect ¶
func (c *QQClient) Disconnect()
func (*QQClient) FindFriend ¶
func (c *QQClient) FindFriend(uin int64) *FriendInfo
func (*QQClient) FindGroupByUin ¶
func (*QQClient) GetForwardMessage ¶
func (c *QQClient) GetForwardMessage(resId string) *message.ForwardMessage
func (*QQClient) GetFriendList ¶
func (c *QQClient) GetFriendList() (*FriendListResponse, error)
GetFriendList request friend list
func (*QQClient) GetGroupFileSystem ¶
func (c *QQClient) GetGroupFileSystem(groupCode int64) (fs *GroupFileSystem, err error)
func (*QQClient) GetGroupFileUrl ¶
func (*QQClient) GetGroupHonorInfo ¶
func (c *QQClient) GetGroupHonorInfo(groupCode int64, honorType HonorType) (*GroupHonorInfo, error)
func (*QQClient) GetGroupInfo ¶
func (*QQClient) GetGroupList ¶
func (*QQClient) GetGroupMembers ¶
func (c *QQClient) GetGroupMembers(group *GroupInfo) ([]*GroupMemberInfo, error)
func (*QQClient) GetGroupSystemMessages ¶
func (c *QQClient) GetGroupSystemMessages() (*GroupSystemMessages, error)
func (*QQClient) GetShortVideoUrl ¶
func (*QQClient) GetStatistics ¶
func (c *QQClient) GetStatistics() *Statistics
func (*QQClient) GetSummaryInfo ¶
func (c *QQClient) GetSummaryInfo(target int64) (*SummaryCardInfo, error)
func (*QQClient) GetWordSegmentation ¶
func (*QQClient) ImageOcr ¶
func (c *QQClient) ImageOcr(img interface{}) (*OcrResponse, error)
func (*QQClient) Login ¶
func (c *QQClient) Login() (*LoginResponse, error)
Login send login request
func (*QQClient) OnDisconnected ¶
func (c *QQClient) OnDisconnected(f func(*QQClient, *ClientDisconnectedEvent))
func (*QQClient) OnFriendMessageRecalled ¶
func (c *QQClient) OnFriendMessageRecalled(f func(*QQClient, *FriendMessageRecalledEvent))
func (*QQClient) OnFriendNotify ¶
func (c *QQClient) OnFriendNotify(f func(*QQClient, INotifyEvent))
func (*QQClient) OnGroupInvited ¶
func (c *QQClient) OnGroupInvited(f func(*QQClient, *GroupInvitedRequest))
func (*QQClient) OnGroupMemberCardUpdated ¶
func (c *QQClient) OnGroupMemberCardUpdated(f func(*QQClient, *MemberCardUpdatedEvent))
func (*QQClient) OnGroupMemberJoined ¶
func (c *QQClient) OnGroupMemberJoined(f func(*QQClient, *MemberJoinGroupEvent))
func (*QQClient) OnGroupMemberLeaved ¶
func (c *QQClient) OnGroupMemberLeaved(f func(*QQClient, *MemberLeaveGroupEvent))
func (*QQClient) OnGroupMemberPermissionChanged ¶
func (c *QQClient) OnGroupMemberPermissionChanged(f func(*QQClient, *MemberPermissionChangedEvent))
func (*QQClient) OnGroupMessage ¶
func (c *QQClient) OnGroupMessage(f func(*QQClient, *message.GroupMessage))
func (*QQClient) OnGroupMessageRecalled ¶
func (c *QQClient) OnGroupMessageRecalled(f func(*QQClient, *GroupMessageRecalledEvent))
func (*QQClient) OnGroupMuted ¶
func (c *QQClient) OnGroupMuted(f func(*QQClient, *GroupMuteEvent))
func (*QQClient) OnGroupNotify ¶
func (c *QQClient) OnGroupNotify(f func(*QQClient, INotifyEvent))
func (*QQClient) OnJoinGroup ¶
func (*QQClient) OnLeaveGroup ¶
func (c *QQClient) OnLeaveGroup(f func(*QQClient, *GroupLeaveEvent))
func (*QQClient) OnNewFriendAdded ¶
func (c *QQClient) OnNewFriendAdded(f func(*QQClient, *NewFriendEvent))
func (*QQClient) OnNewFriendRequest ¶
func (c *QQClient) OnNewFriendRequest(f func(*QQClient, *NewFriendRequest))
func (*QQClient) OnPrivateMessage ¶
func (c *QQClient) OnPrivateMessage(f func(*QQClient, *message.PrivateMessage))
func (*QQClient) OnPrivateMessageF ¶
func (c *QQClient) OnPrivateMessageF(filter func(*message.PrivateMessage) bool, f func(*QQClient, *message.PrivateMessage))
func (*QQClient) OnReceivedOfflineFile ¶
func (c *QQClient) OnReceivedOfflineFile(f func(*QQClient, *OfflineFileEvent))
func (*QQClient) OnServerUpdated ¶
func (c *QQClient) OnServerUpdated(f func(*QQClient, *ServerUpdatedEvent) bool)
func (*QQClient) OnTempMessage ¶
func (c *QQClient) OnTempMessage(f func(*QQClient, *message.TempMessage))
func (*QQClient) OnUserWantJoinGroup ¶
func (c *QQClient) OnUserWantJoinGroup(f func(*QQClient, *UserJoinGroupRequest))
func (*QQClient) QueryFriendImage ¶
func (*QQClient) QueryGroupImage ¶
func (*QQClient) RecallGroupMessage ¶
func (*QQClient) RecallPrivateMessage ¶
func (*QQClient) ReloadFriendList ¶
ReloadFriendList refresh QQClient.FriendList field via GetFriendList()
func (*QQClient) ReloadGroupList ¶
func (*QQClient) RequestSMS ¶
func (*QQClient) SendFriendPoke ¶
func (*QQClient) SendFriendRichMessage ¶
func (c *QQClient) SendFriendRichMessage(target, appId int64, appType, msgStyle uint32, client RichClientInfo, msg *message.RichMessage)
func (*QQClient) SendGroupForwardMessage ¶
func (c *QQClient) SendGroupForwardMessage(groupCode int64, m *message.ForwardMessage) *message.GroupMessage
func (*QQClient) SendGroupGift ¶
func (*QQClient) SendGroupMessage ¶
func (c *QQClient) SendGroupMessage(groupCode int64, m *message.SendingMessage, f ...bool) *message.GroupMessage
func (*QQClient) SendGroupRichMessage ¶
func (c *QQClient) SendGroupRichMessage(target, appId int64, appType, msgStyle uint32, client RichClientInfo, msg *message.RichMessage) (*message.GroupMessage, error)
func (*QQClient) SendPrivateMessage ¶
func (c *QQClient) SendPrivateMessage(target int64, m *message.SendingMessage) *message.PrivateMessage
func (*QQClient) SendTempMessage ¶
func (c *QQClient) SendTempMessage(groupCode, target int64, m *message.SendingMessage) *message.TempMessage
func (*QQClient) SetCustomServer ¶
func (*QQClient) SolveFriendRequest ¶
func (c *QQClient) SolveFriendRequest(req *NewFriendRequest, accept bool)
func (*QQClient) SolveGroupJoinRequest ¶
func (*QQClient) SubmitCaptcha ¶
func (c *QQClient) SubmitCaptcha(result string, sign []byte) (*LoginResponse, error)
SubmitCaptcha send captcha to server
func (*QQClient) UploadGroupImage ¶
func (*QQClient) UploadGroupPtt ¶
func (c *QQClient) UploadGroupPtt(groupCode int64, voice []byte) (*message.GroupVoiceElement, error)
UploadGroupPtt 将语音数据使用群语音通道上传到服务器, 返回 message.GroupVoiceElement 可直接发送
func (*QQClient) UploadPrivateImage ¶
func (*QQClient) UploadPrivatePtt ¶
func (c *QQClient) UploadPrivatePtt(target int64, voice []byte) (*message.PrivateVoiceElement, error)
UploadPrivatePtt 将语音数据使用好友语音通道上传到服务器, 返回 message.PrivateVoiceElement 可直接发送
type RichClientInfo ¶
type ServerUpdatedEvent ¶
type ServerUpdatedEvent struct {
Servers []jce.SsoServerInfo
}
type Statistics ¶
type Statistics struct { PacketReceived uint64 `json:"packet_received"` PacketSent uint64 `json:"packet_sent"` PacketLost uint32 `json:"packet_lost"` MessageReceived uint64 `json:"message_received"` MessageSent uint64 `json:"message_sent"` DisconnectTimes uint32 `json:"disconnect_times"` LostTimes uint32 `json:"lost_times"` // contains filtered or unexported fields }
type SummaryCardInfo ¶
type TextDetection ¶
type TextDetection struct { Text string `json:"text"` Confidence int32 `json:"confidence"` Coordinates []*Coordinate `json:"coordinates"` }
type UserJoinGroupRequest ¶
type UserJoinGroupRequest struct { RequestId int64 `json:"request_id"` Message string `json:"message"` RequesterUin int64 `json:"requester_uin"` RequesterNick string `json:"requester_nick"` GroupCode int64 `json:"group_id"` GroupName string `json:"group_name"` Checked bool `json:"checked"` Actor int64 `json:"actor"` // contains filtered or unexported fields }
func (*UserJoinGroupRequest) Accept ¶
func (r *UserJoinGroupRequest) Accept()
func (*UserJoinGroupRequest) Reject ¶
func (r *UserJoinGroupRequest) Reject(block bool, reason string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.