seven 1 nedēļu atpakaļ
vecāks
revīzija
6ec8cde490
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/Services/BaseService.php

+ 1 - 0
app/Services/BaseService.php

@@ -148,6 +148,7 @@ class BaseService
         if(!empty($image)){
             $botMsg['photo'] = InputFile::create($image);
             $botMsg['caption'] = $text;
+            $botMsg['protect_content'] = true;  // 防止转发
             self::telegram()->sendPhoto($botMsg);
         }else{
             self::telegram()->sendMessage($botMsg);