From 46c2af81250c49f3495f124ba036db5a89268734 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sun, 15 Aug 2021 19:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=8C=BF?= =?UTF-8?q?=E5=90=8D=E7=AE=A1=E7=90=86=E5=91=98=E6=97=A0=E6=B3=95=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E7=94=9F=E6=88=90=E7=BE=A4=E7=BB=84=E8=AF=8D=E4=BA=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/func.py b/func.py index ad5baed..feb8998 100644 --- a/func.py +++ b/func.py @@ -62,6 +62,8 @@ def rank(update, context): try: chat_member = bot.get_chat_member(chat_id, user_id) status = chat_member["status"] + if user_id == 1087968824: + status = "administrator" print("此用户在群组中身份为: {}".format(status)) if status == "creator" or status == "administrator": print("用户权限正确")