|
|
@@ -230,6 +230,9 @@ class BaseService
|
|
|
$botMsg['photo'] = InputFile::create($image);
|
|
|
$botMsg['caption'] = $text;
|
|
|
$botMsg['protect_content'] = true; // 防止转发
|
|
|
+ if (count($keyboard) > 0) {
|
|
|
+ $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|
|
|
+ }
|
|
|
$response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
|
foreach ($array as $key => $line) {
|