You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1146,9 +1245,11 @@ export class TelegramChannel implements Channel {
1146
1245
disable_web_page_preview: true,
1147
1246
}))as{message_id: number};
1148
1247
this.lastSent.set(sessionId,Date.now());
1248
+
this.trackSuccess();
1149
1249
returnresult.message_id;
1150
1250
}catch(e){
1151
1251
console.error(`Telegram: failed to send styled to topic ${topic.topicId}:`,this.redactError(e));
1252
+
this.trackFailure(e);
1152
1253
returnnull;
1153
1254
}
1154
1255
}
@@ -1236,6 +1337,7 @@ export class TelegramChannel implements Channel {
1236
1337
}))as{message_id: number};
1237
1338
this.lastSent.set(sessionId,Date.now());
1238
1339
this.decrementInFlight(sessionId);
1340
+
this.trackSuccess();
1239
1341
returnresult.message_id;
1240
1342
}catch{
1241
1343
// Fallback: strip HTML, send plain
@@ -1253,10 +1355,12 @@ export class TelegramChannel implements Channel {
1253
1355
}))as{message_id: number};
1254
1356
this.lastSent.set(sessionId,Date.now());
1255
1357
this.decrementInFlight(sessionId);
1358
+
this.trackSuccess();
1256
1359
returnresult.message_id;
1257
1360
}catch(e){
1258
1361
console.error(`Telegram: failed to send to topic ${topic.topicId}:`,this.redactError(e));
1259
1362
this.decrementInFlight(sessionId);
1363
+
this.trackFailure(e);
1260
1364
returnnull;
1261
1365
}
1262
1366
}
@@ -1440,9 +1544,11 @@ export class TelegramChannel implements Channel {
1440
1544
1441
1545
awaitthis.tgApi('deleteForumTopic',body);
1442
1546
this.topics.delete(sessionId);
1547
+
this.topicPersistence.save(this.topics);
1443
1548
}catch(e){
1444
1549
if(this.isIgnorableTopicDeleteError(e)){
1445
1550
this.topics.delete(sessionId);
1551
+
this.topicPersistence.save(this.topics);
1446
1552
}else{
1447
1553
console.error(`Telegram: failed to cleanup topic for session ${sessionId}:`,this.redactError(e));
1448
1554
topic.deleting=false;
@@ -1464,6 +1570,35 @@ export class TelegramChannel implements Channel {
1464
1570
}
1465
1571
1466
1572
1573
+
1574
+
// ββ Health Reporting ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1575
+
1576
+
/** Issue #3169: Report actual channel health including delivery state. */
0 commit comments