wuyi 2 сар өмнө
parent
commit
9ca5c67f9d

+ 2 - 0
src/services/tg-msg-send.service.ts

@@ -203,6 +203,8 @@ export class TgMsgSendService {
       if (client.connected) {
         await client.disconnect()
         this.app.log.info('TelegramClient 已断开连接')
+        await client.destroy()
+        this.app.log.info('TelegramClient 已销毁')
       }
     } catch (error) {
       const errorMessage = this.extractErrorMessage(error)