PEP-180: длинное сообщение в чате и обсуждении задачи принимается целиком #171

Merged
peppa-bot merged 0 commits from refs/pull/171/head into main 2026-11-16 18:18:25 +00:00
peppa-bot commented 2026-11-16 16:57:37 +00:00 (Migrated from git.telecom.quest)

A user pasted a document into «Чат с аналитиком» and got «Сообщение длиннее 8000 символов» — she had to cut it into parts.

  • Messages in a chat and comments on a task: up to 60 000 characters (MESSAGE_MAX in core; text areas too). Over that — «Текст слишком длинный — приложите его файлом» (files are there since PEP-159).
  • The analyst gets the message it answers whole; older long messages of the history are shortened to 4 000 characters.
  • Telegram refuses texts over 4 096 characters: the bot client cuts a long one at a line break (no HTML tag left open) and adds «(полностью — на сайте Peppa FACTORY)» — for sendMessage and editMessageText.
  • Test in chats.test.ts; checked on a database copy: a 26 000-character message is sent and shown whole.

🤖 Generated with Claude Code

A user pasted a document into «Чат с аналитиком» and got «Сообщение длиннее 8000 символов» — she had to cut it into parts. - Messages in a chat and comments on a task: up to 60 000 characters (`MESSAGE_MAX` in core; text areas too). Over that — «Текст слишком длинный — приложите его файлом» (files are there since PEP-159). - The analyst gets the message it answers whole; older long messages of the history are shortened to 4 000 characters. - Telegram refuses texts over 4 096 characters: the bot client cuts a long one at a line break (no HTML tag left open) and adds «(полностью — на сайте Peppa FACTORY)» — for sendMessage and editMessageText. - Test in `chats.test.ts`; checked on a database copy: a 26 000-character message is sent and shown whole. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: peppa-bot/peppa#171
No description provided.