|
@@ -215,8 +215,8 @@ class BaseService
|
|
|
$texts[] = $item;
|
|
$texts[] = $item;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return $texts;
|
|
|
|
|
|
|
|
|
|
|
|
+$res = [];
|
|
|
foreach ($texts as $index => $item) {
|
|
foreach ($texts as $index => $item) {
|
|
|
$botMsg = [
|
|
$botMsg = [
|
|
|
'chat_id' => "@{$bettingGroup}",
|
|
'chat_id' => "@{$bettingGroup}",
|
|
@@ -233,16 +233,18 @@ class BaseService
|
|
|
$botMsg['photo'] = InputFile::create($image);
|
|
$botMsg['photo'] = InputFile::create($image);
|
|
|
$botMsg['caption'] = $item;
|
|
$botMsg['caption'] = $item;
|
|
|
$botMsg['protect_content'] = true;
|
|
$botMsg['protect_content'] = true;
|
|
|
- $response = self::telegram()->sendPhoto($botMsg);
|
|
|
|
|
|
|
+ $res[] = $botMsg;
|
|
|
|
|
+// $response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
} else {
|
|
|
- $response = self::telegram()->sendMessage($botMsg);
|
|
|
|
|
- }
|
|
|
|
|
- if ($isTop === true) {
|
|
|
|
|
- self::telegram()->pinChatMessage([
|
|
|
|
|
- 'chat_id' => "@{$bettingGroup}",
|
|
|
|
|
- 'message_id' => $response->get('message_id')
|
|
|
|
|
- ]);
|
|
|
|
|
|
|
+ $res[] = $botMsg;
|
|
|
|
|
+// $response = self::telegram()->sendMessage($botMsg);
|
|
|
}
|
|
}
|
|
|
|
|
+// if ($isTop === true) {
|
|
|
|
|
+// self::telegram()->pinChatMessage([
|
|
|
|
|
+// 'chat_id' => "@{$bettingGroup}",
|
|
|
|
|
+// 'message_id' => $response->get('message_id')
|
|
|
|
|
+// ]);
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|