From f3ccb4ebc52eef0a70490a25fca6b8adba5fe64f Mon Sep 17 00:00:00 2001 From: laoxong Date: Sun, 10 Sep 2023 22:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=98=E8=B0=83=E7=94=A8=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 5b35476..60430a0 100755 --- a/main.py +++ b/main.py @@ -199,7 +199,7 @@ def uploadfile(caption,filename, mimetype, id): logging.info(f"上传成功") return rjson -def getinfo(): +def getuserinfo(): for id in bots: channel_info = bot.get_chat(id) data = requests.post(bots[id][0]+'/api/i', timeout=10,data={"i": bots[id][1]}).json() @@ -363,6 +363,7 @@ Finally run tg polling ''' try: + getuserinfo() bot.polling(interval=5) except KeyboardInterrupt: exit(0)