fix: 修复重试次数设置无效的bug

This commit is contained in:
xiaojunnuo
2025-06-13 00:25:08 +08:00
parent c937583a50
commit e2099ac9ca
6 changed files with 17 additions and 17 deletions
@@ -59,7 +59,8 @@ export class TelegramNotification extends BaseNotification {
skipSslVerify: boolean;
replaceText(text: string) {
return text.replaceAll('.', '\\.').replaceAll('*', '\\*');
// .*()<> 等都需要用\\进行替换
return text.replace(/[\\.*()<>]/g, '\\$&');
}
async send(body: NotificationBody) {
if (!this.botToken || !this.chatId) {