update rm deadcode
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user