|
|
@@ -323,7 +323,7 @@ class Config extends Controller
|
|
|
request()->validate([
|
|
|
'chatId' => ['required', 'string', 'min:1'],
|
|
|
'video' => ['required', 'url'],
|
|
|
- 'video_caption' => ['nullable', 'string'],
|
|
|
+ 'text' => ['nullable', 'string'],
|
|
|
'isSend' => ['nullable', 'boolean'],
|
|
|
'isTop' => ['nullable', 'boolean'],
|
|
|
]);
|
|
|
@@ -348,7 +348,6 @@ class Config extends Controller
|
|
|
$isTop = request()->input('isTop', false);
|
|
|
|
|
|
$video = request()->input('video');
|
|
|
- $video_caption = request()->input('video_caption');
|
|
|
ConfigModel::where('field', 'channel_message')
|
|
|
->update([
|
|
|
'val' => json_encode([
|
|
|
@@ -356,7 +355,6 @@ class Config extends Controller
|
|
|
'chatId' => $chatId,
|
|
|
'image' => $image,
|
|
|
'video' => $video,
|
|
|
- 'video_caption' => $video_caption,
|
|
|
'text' => $text,
|
|
|
'button' => $button
|
|
|
])
|
|
|
@@ -390,7 +388,7 @@ class Config extends Controller
|
|
|
break;
|
|
|
case 'video':
|
|
|
$msg['video'] = InputFile::create($config['video']);
|
|
|
- $msg['caption'] = $config['video_caption'];
|
|
|
+ $msg['caption'] = $config['text'];
|
|
|
$response = $telegram->sendVideo($msg);
|
|
|
break;
|
|
|
case 'text':
|