🐛 修复匿名管理员无法手动生成群组词云的问题

This commit is contained in:
Xtao_dada 2021-08-15 19:04:43 +08:00 committed by GitHub
parent 08edcb7c6e
commit 46c2af8125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ def rank(update, context):
try: try:
chat_member = bot.get_chat_member(chat_id, user_id) chat_member = bot.get_chat_member(chat_id, user_id)
status = chat_member["status"] status = chat_member["status"]
if user_id == 1087968824:
status = "administrator"
print("此用户在群组中身份为: {}".format(status)) print("此用户在群组中身份为: {}".format(status))
if status == "creator" or status == "administrator": if status == "creator" or status == "administrator":
print("用户权限正确") print("用户权限正确")