Ken 1 hafta önce
ebeveyn
işleme
78ba28b117
1 değiştirilmiş dosya ile 2 ekleme ve 5 silme
  1. 2 5
      app/Services/BaseService.php

+ 2 - 5
app/Services/BaseService.php

@@ -224,8 +224,6 @@ class BaseService
         if (count($keyboard) > 0) {
             $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
         }
-
-
         if (!empty($image)) {
             $botMsg['photo'] = InputFile::create($image);
             $botMsg['caption'] = $item;
@@ -244,11 +242,10 @@ class BaseService
 
         foreach ($texts as $index => $item) {
             if ($index == 0) continue;
-            $botMsg = [
+            self::telegram()->sendMessage([
                 'chat_id' => "@{$bettingGroup}",
                 'text' => $item,
-            ];
-            self::telegram()->sendMessage($botMsg);
+            ]);
         }
     }