Repository navigation
Commit 1fa10d3
committed
fix: reject tgApi promise on Telegram ok:false responses
tgApi always resolved regardless of Telegram's ok field, so the
Markdown retry fallback in reply() never fired on API errors like
parse failures — only on network errors. Now rejects on ok:false,
enabling the plain-text retry path.
Addresses cv review feedback on #617.1 parent 8143bfd commit 1fa10d3
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments