seven 1 settimana fa
parent
commit
36194f4b08
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);