|
|
@@ -205,13 +205,9 @@ class BaseService
|
|
|
if (count($texts) == 0) {
|
|
|
$texts[] = $item . "\n";
|
|
|
} else if (strlen($texts[count($texts) - 1] . $item) <= 4096) {
|
|
|
- if (!empty($image)) {
|
|
|
- if (count($texts) == 1) {
|
|
|
- if (strlen($texts[count($texts) - 1] . $item) <= 1024) {
|
|
|
- $texts[count($texts) - 1] .= $item . "\n";
|
|
|
- } else {
|
|
|
- $texts[] = $item . "\n";
|
|
|
- }
|
|
|
+ if (!empty($image) && count($texts) == 1) {
|
|
|
+ if (strlen($texts[0] . $item) <= 1024) {
|
|
|
+ $texts[0] .= $item . "\n";
|
|
|
} else {
|
|
|
$texts[] = $item . "\n";
|
|
|
}
|