diff --git a/bot.php b/bot.php index 5100d83..9c876ae 100644 --- a/bot.php +++ b/bot.php @@ -115,7 +115,7 @@ foreach ($articles as $article) { $limit = 500 - strlen($link_telegram) - strlen($title) - 20; $description = "$title\n\n".ellipse($description, $limit); $description_mastodon = $description."\nСсылка на статью и голосование за рейтинг: $link_mastodon"; - $description_telegram = $description."\n$link_telegram\nСсылка на статью и голосование за рейтинг: $link_mastodon"; + $description_telegram = $description.PHP_EOL.$link_mastodon; if (!$config['DRY_RUN']) { if ($config['TELEGRAM'] === true) {