public void ProcessJoinGroupRequest(GroupJoiningRequestReceivedContext context)
 {
     if (context.FromQq == Tools.adminNumber)
     {
         _mahuaApi.AcceptGroupJoiningInvitation(context.GroupJoiningRequestId, context.ToGroup, context.FromQq);
     }
     else
     {
         _mahuaApi.RejectGroupJoiningInvitation(context.GroupJoiningRequestId, context.ToGroup, context.FromQq, "已停止加群,如有需要请联系开发者");
     }
 }
        public void ProcessJoinGroupRequest(GroupJoiningRequestReceivedContext context)
        {
            if (HotUpdateInfo.PreviousVersion)
            {
                return;
            }

            if (Config.Instance.AcceptInvitation)
            {
                _mahuaApi.AcceptGroupJoiningInvitation(context.GroupJoiningRequestId, context.ToGroup, context.FromQq);
                Messenger.SendDebugInfo($"接受了来自{context.FromQq}邀请加入群{context.ToGroup}的邀请.");
                Messenger.SendHelpdoc(context.ToGroup);
            }
        }
Esempio n. 3
0
 public void ProcessJoinGroupRequest(GroupJoiningRequestReceivedContext context)
 {
     api.AcceptGroupJoiningInvitation(context.GroupJoiningRequestId, context.ToGroup, context.FromQq);
 }