1. Obtain the group information list
The Group ID is also obtained when the preceding 58 commands obtain the QQ number of a friend. Now, this ID is used to obtain the real group number and group information.
Command: 30
Send:
1030196367; 30; 0; 4b2b432f; 72; xxxxxx; 0;
The fifth parameter is subcommand 72. The sixth parameter is the ID of the specified group, which is obtained by the 58 command. The seventh parameter is the starting point of group information. The first parameter is 0, and the first parameter is not obtained, this value is later specified by the returned value.
Server return:
1030196367; 30; 0; 72; group ID; real group number; 1; 0; group master QQ number; webqq protocol analysis; announcement; introduction; 0; 1030196367; xxxxxx; 10; 0; 0; 3; xxxxxx; 20; 0; 1; 3; xxxxxx; 10; 0; 1; 3;
The fourth is subcommand 72; the fifth is the group ID sent; when the seventh number is 1, the sixth is the corresponding group number, the eighth is meaningless, and the ninth is the group master QQ number, the tenth is the group name, 11th is the group announcement, 12th is the group introduction, and the first is the group member information. If the number of 18th is a QQ number, each of the four data items is a member information. Otherwise, each five data items is a member information. In the member information, the first is the member's QQ number, the second is the member's online status, and the fourth is the administrator's logo. 1 indicates that the member is the administrator (note that the group owner is not the Administrator ); the other one or two are meaningless.
2. Get group member nicknames
Command 0126
Send:
1030196367; 0126; 0; 4b2b432f; 0; 1; xxxxxx;
The fifth is fixed to 0; The sixth is the number of group members to be obtained; the seventh is the QQ number of the corresponding group members.
Return Value:
1030196367; 0126; 0; 0; xxxxxx; 168; member nickname; 0;
The fourth is the number of Members without information. For example, if the QQ number of ten members is sent, the number is 2, indicating that the information contains only information of eight members, but the difference is 2; the fifth is the member's QQ number, the sixth is the Avatar number, the seventh is the member's nickname, and the eighth member's VIP level.
Author: yjh4866
Source Address: http://blog.csdn.net/yjh4866