|
@@ -216,14 +216,15 @@ class BaseService
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-$res = [];
|
|
|
|
|
|
|
+ $res = [];
|
|
|
foreach ($texts as $index => $item) {
|
|
foreach ($texts as $index => $item) {
|
|
|
$botMsg = [
|
|
$botMsg = [
|
|
|
'chat_id' => "@{$bettingGroup}",
|
|
'chat_id' => "@{$bettingGroup}",
|
|
|
'text' => $item,
|
|
'text' => $item,
|
|
|
];
|
|
];
|
|
|
- if ($index == 0) {
|
|
|
|
|
- self::telegram()->sendMessage($botMsg);
|
|
|
|
|
|
|
+ if ($index > 0) {
|
|
|
|
|
+ $res[] = $botMsg;
|
|
|
|
|
+// self::telegram()->sendMessage($botMsg);
|
|
|
} else {
|
|
} else {
|
|
|
if (count($keyboard) > 0) {
|
|
if (count($keyboard) > 0) {
|
|
|
$botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|
|
$botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|