MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / FetchGroups

Method FetchGroups

client/operation.go:71–85  ·  view source on GitHub ↗

FetchGroups 获取所有已加入的群的信息

()

Source from the content-addressed store, hash-verified

69
70// FetchGroups 获取所有已加入的群的信息
71func (c *QQClient) FetchGroups() ([]*entity.Group, error) {
72 pkt, err := oidb2.BuildFetchGroupsReq()
73 if err != nil {
74 return nil, err
75 }
76 resp, err := c.sendOidbPacketAndWait(pkt)
77 if err != nil {
78 return nil, err
79 }
80 groups, err := oidb2.ParseFetchGroupsResp(resp)
81 if err != nil {
82 return nil, err
83 }
84 return groups, nil
85}
86
87// FetchGroupMember 获取对应群的群成员信息
88func (c *QQClient) FetchGroupMember(groupUin, memberUin uint32) (*entity.GroupMember, error) {

Callers 2

GetAllGroupsInfoMethod · 0.95

Calls 1

sendOidbPacketAndWaitMethod · 0.95

Tested by

no test coverage detected