(msg: Api.Message)
| 347 | return chatId ? Number(chatId) : null; |
| 348 | } |
| 349 | |
| 350 | private async delayDelete(msg: Api.Message, seconds: number) { |
| 351 | console.log(`[autodelcmd] 设置定时器: ${seconds} 秒后删除消息 ID ${msg.id}`); |
| 352 | |
| 353 | // 保存退出消息信息,以便程序重启后能继续删除 |
| 354 | try { |
| 355 | const chatId = this.getChatId(msg); |
no outgoing calls
no test coverage detected