This repository was archived by the owner on Oct 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Lagrange.Core/Internal/Context/Logic/Implementation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,13 +71,16 @@ public override async Task Incoming(ProtocolEvent e)
7171 var chain = push . Chain ;
7272
7373 // Intercept group invitation
74- if ( chain . Count == 1 && chain [ 0 ] is LightAppEntity { AppName : "com.tencent.qun.invite" } app )
74+ if ( chain . Count == 1 && chain [ 0 ] is LightAppEntity
75+ {
76+ AppName : "com.tencent.qun.invite" or "com.tencent.tuwen.lua"
77+ } app )
7578 {
7679 using var document = JsonDocument . Parse ( app . Payload ) ;
7780 var root = document . RootElement ;
7881
7982 string url = root . GetProperty ( "meta" ) . GetProperty ( "news" ) . GetProperty ( "jumpUrl" ) . GetString ( )
80- ?? throw new Exception ( "sb tx! Is this 'com.tencent.qun.invite'?" ) ;
83+ ?? throw new Exception ( "sb tx! Is this 'com.tencent.qun.invite' or 'com.tencent.tuwen.lua' ?" ) ;
8184 var query = HttpUtility . ParseQueryString ( new Uri ( url ) . Query ) ;
8285 uint groupUin = uint . Parse ( query [ "groupcode" ]
8386 ?? throw new Exception ( "sb tx! Is this '/group/invite_join'?" ) ) ;
You can’t perform that action at this time.
0 commit comments