忘调用了

This commit is contained in:
2023-09-10 22:46:10 +08:00
parent 885f803d95
commit f3ccb4ebc5
+2 -1
View File
@@ -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)