mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #1991] TelegramBotHandler: API returns error when long message is split with only whitespace #857
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MacDada on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1991
Monolog 3.9.
When I split long messages and the split happens exactly at the ending part of the message, which happens to contain only whitespace, Telegram API returns error 400:
That's because the last (from split) message is just
"\n\n".