seven hai 1 semana
pai
achega
36194f4b08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/BaseService.php

+ 1 - 1
app/Services/BaseService.php

@@ -138,7 +138,7 @@ class BaseService
             'chat_id' => "@{$bettingGroup}",
             'text' => $text
         ];
-        if($keyboard){
+        if(count($keyboard)>0){
             $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard],JSON_UNESCAPED_UNICODE);
         }
         self::telegram()->sendMessage($botMsg);