Commit 189ebbf
authored
Stop truncating long Telegram replies in format_response (#172)
format_response() truncated any text over MAX_MSG_LEN and appended a
"... (truncated)" marker. But send() already splits outgoing text into
MAX_MSG_LEN-sized chunks delivered as sequential messages, so truncating
first permanently dropped the tail of long replies.
Return the text unchanged and let send() handle chunking.1 parent b70d1ef commit 189ebbf
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
577 | 581 | | |
578 | 582 | | |
579 | 583 | | |
| |||
0 commit comments