Ken il y a 1 semaine
Parent
commit
28e49d32df
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/Services/BaseService.php

+ 3 - 1
app/Services/BaseService.php

@@ -207,8 +207,10 @@ class BaseService
         foreach ($texts as $index => $item) {
             $botMsg = [
                 'chat_id' => "@{$bettingGroup}",
-                'text' => $item
+                'text' => $item,
+                'index'=>$index
             ];
+
             if ($index == 0 && count($keyboard) > 0) {
                 $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
             }