|
|
@@ -205,7 +205,19 @@ class BaseService
|
|
|
if (count($texts) == 0) {
|
|
|
$texts[] = $item . "\n";
|
|
|
} else if (strlen($texts[count($texts) - 1] . $item) <= 4096) {
|
|
|
- $texts[count($texts) - 1] .= $item . "\n";
|
|
|
+ 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";
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ $texts[] = $item . "\n";
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ $texts[count($texts) - 1] .= $item . "\n";
|
|
|
+ }
|
|
|
} else {
|
|
|
$texts[] = $item . "\n";
|
|
|
}
|