|
|
@@ -203,11 +203,11 @@ class BaseService
|
|
|
$texts = [];
|
|
|
foreach ($array as $item) {
|
|
|
if (count($texts) == 0) {
|
|
|
- $texts[] = $item;
|
|
|
+ $texts[] = $item . "\n";
|
|
|
} else if (strlen($texts[count($texts) - 1] . $item) <= 4096) {
|
|
|
- $texts[count($texts) - 1] .= $item."\n";
|
|
|
+ $texts[count($texts) - 1] .= $item . "\n";
|
|
|
} else {
|
|
|
- $texts[] = $item."\n";
|
|
|
+ $texts[] = $item . "\n";
|
|
|
}
|
|
|
}
|
|
|
foreach ($texts as $index => $item) {
|
|
|
@@ -227,7 +227,7 @@ class BaseService
|
|
|
$botMsg['protect_content'] = true; // 防止转发
|
|
|
$response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
|
- $response = self::telegram()->sendMessage($botMsg);
|
|
|
+ $response = self::telegram()->sendMessage($botMsg);
|
|
|
}
|
|
|
|
|
|
if ($index == 0 && $isTop === true) {
|