@@ -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)