seven 1 month ago
parent
commit
b0f65b43c0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Services/BaseService.php

+ 3 - 2
app/Services/BaseService.php

@@ -147,9 +147,10 @@ class BaseService
         }
         if(!empty($image)){
             $botMsg['photo'] = InputFile::create($image);
-            $botMsg['caption'] = $text;
+            self::telegram()->sendPhoto($botMsg);
+        }else{
+            self::telegram()->sendMessage($botMsg);
         }
-        self::telegram()->sendMessage($botMsg);
     }
 
     /**