1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-26 18:16:24 +01:00

TelegramBotHandler: three dots replacement… (#1993)

`…` instead of `...` makes the truncation part of the message 2 characters shorter, allowing for a bit longer actual message xd
This commit is contained in:
Dawid Nowak
2025-10-23 21:21:29 +02:00
committed by GitHub
parent 24816d98c6
commit 846f30698a

View File

@@ -287,7 +287,7 @@ class TelegramBotHandler extends AbstractProcessingHandler
*/
private function handleMessageLength(string $message): array
{
$truncatedMarker = ' (...truncated)';
$truncatedMarker = ' (truncated)';
if (!$this->splitLongMessages && \strlen($message) > self::MAX_MESSAGE_LENGTH) {
return [Utils::substr($message, 0, self::MAX_MESSAGE_LENGTH - \strlen($truncatedMarker)) . $truncatedMarker];
}