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