Commit 16f205e
fix(telegram): post stale/missed as new messages instead of editing bubble
Previously TelegramStaleCheckWork edited the existing bubble in-place for
stale and missed transitions. This meant the last valid reading was overwritten
and chat history gave no indication of when or how many gaps occurred.
Now stale and missed alerts are posted as new Telegram messages (sendMessage).
The original bubble retains the last reading, and each stale/missed event
appears as a distinct, timestamped message in the chat timeline — making it
easy to glance back and see if and when readings were interrupted.
The messageId guard is kept so alerts only fire when an active session exists.
State (lastSentAtMs, lastMessageId) is left intact on success so readings
resuming after the refresh window naturally start a fresh bubble.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a1f77b0 commit 16f205e
1 file changed
Lines changed: 10 additions & 11 deletions
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | | - | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
0 commit comments