|
|
@@ -271,10 +271,14 @@ class BaseService
|
|
|
$botMsg['photo'] = InputFile::create($image);
|
|
|
$botMsg['caption'] = $item;
|
|
|
$botMsg['protect_content'] = true;
|
|
|
+
|
|
|
$res[] = $botMsg;
|
|
|
$response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
|
- $res[] = $botMsg;
|
|
|
+ if (str_contains($botMsg['text'], '</pre>')){
|
|
|
+ $botMsg['parse_mode'] = 'HTML';
|
|
|
+ }
|
|
|
+ $res[] = $botMsg;
|
|
|
$response = self::telegram()->sendMessage($botMsg);
|
|
|
}
|
|
|
if ($isTop === true) {
|