mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-29 00:12:12 +00:00
/bot_dict's dump and /debug's report each cut a string at a byte boundary and appended an ellipsis, with slightly different bookkeeping (one left a byte for the ellipsis, one did not). cap_text is the version that keeps the result within the cap, with a test covering the exact-fit, truncating and multi-byte cases.