mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update tgclient.py
This commit is contained in:
@@ -99,7 +99,7 @@ while True:
|
||||
|
||||
client = TelegramClient('mdioks', cfg['bot']['api_id'], cfg['bot']['api_hash'])
|
||||
|
||||
async def plugins_run():
|
||||
async def plugins_run_task():
|
||||
plist = getStartExtCfgByTag('client')
|
||||
for p in plist:
|
||||
try:
|
||||
@@ -110,6 +110,11 @@ async def plugins_run():
|
||||
writeLog(mw.getTracebackInfo())
|
||||
writeLog('----- client error end -------')
|
||||
|
||||
async def plugins_run():
|
||||
while True:
|
||||
await plugins_run_task()
|
||||
time.sleep(1)
|
||||
|
||||
async def main(loop):
|
||||
await client.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user