seven 1 týždeň pred
rodič
commit
36194f4b08
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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);