We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e177b commit 2e95ee9Copy full SHA for 2e95ee9
lagrange/client/server_push/msg.py
@@ -125,12 +125,19 @@ async def msg_push_handler(client: "Client", sso: SSOPacket):
125
else:
126
attrs[k.decode()] = v.decode()
127
if pb.body.type == 1:
128
- return GroupInviteAccept(
129
- grp_id,
130
- attrs["invitor"],
131
- attrs["invitee"]
132
- )
133
- if pb.body.type == 12:
+ if "invitor" in attrs:
+ # reserve: attrs["msg_nums"]
+ return GroupInviteAccept(
+ grp_id,
+ attrs["invitor"],
+ attrs["invitee"]
134
+ )
135
+ elif "user" in attrs and "uin" in attrs:
136
+ # todo: 群代办
137
+ pass
138
+ else:
139
+ raise TypeError(f"Unhandled GrayTips with attribute: {attrs}")
140
+ elif pb.body.type == 12:
141
return GroupNudge(
142
grp_id,
143
attrs["uin_str1"],
0 commit comments