update rm deadcode

This commit is contained in:
baodev0
2026-09-27 11:42:40 +07:00
parent 82a71244ca
commit 3af59bd9c5
129 changed files with 5194 additions and 2698 deletions
+2 -3
View File
@@ -35,7 +35,7 @@ class Telegram
try {
$url = "https://api.telegram.org/bot$this->token/sendMessage?parse_mode=html&chat_id=$this->group&text=" . urlencode($message);
$response = Http::withoutVerifying()->get($url);
$response = Http::get($url);
// Log response để debug
Log::channel('Custom')->info('Telegram sendMessage URL: ' . $url);
@@ -234,8 +234,7 @@ class Telegram
'contents' => $caption,
];
}
$response = Http::withoutVerifying()
->attach('photo', fopen($fullPath, 'r'), basename($fullPath))
$response = Http::attach('photo', fopen($fullPath, 'r'), basename($fullPath))
->post("https://api.telegram.org/bot{$this->token}/sendPhoto", [
'chat_id' => $this->group,
'caption' => $caption,