Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update godcmd.py 修复群聊执行管理员命令的逻辑和提示。 #1447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

befantasy
Copy link
Contributor

@befantasy befantasy commented Sep 23, 2023

itchat下,现有isadmin=true,isgroup=true的逻辑永远没法触发。

image

管理员认证使用的是私聊receiver=user_id,而群聊里receiver不等于user_id,导致管理员私聊认证后,群聊输入admin命令,无法触发isadmin true。

有时候有些管理指令是希望可以在群里执行的。

@zhayujie
Copy link
Owner

我看了下,貌似session_id 也不行

群聊里 user 和 session_id 是一样的,都不等于 admin_users里的。 估计要对私聊和群聊做个分支处理

image image

@befantasy
Copy link
Contributor Author

我这里测试是可以的呀,群聊里的session id是一个@的,和用户id一样。
不过我没开group_chat_in_one_session。没测试group_chat_in_one_session开启的情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants