From d04d2b019ea23d13ccf39d105ad60249903a2fca Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 7 Oct 2024 13:04:02 -0400 Subject: [PATCH] Minor correction --- src/TgBotLib/Abstracts/Method.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/TgBotLib/Abstracts/Method.php b/src/TgBotLib/Abstracts/Method.php index 790f587..f10ca66 100644 --- a/src/TgBotLib/Abstracts/Method.php +++ b/src/TgBotLib/Abstracts/Method.php @@ -75,7 +75,6 @@ protected static function buildUpload(Bot $bot, string $method, string $file_param, string $file_path, array $parameters): CurlHandle { $curl = curl_init(sprintf('%s/%s?%s', $bot->getEndpoint(), $method, http_build_query($parameters))); - curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: multipart/form-data']); @@ -89,7 +88,6 @@ protected static function buildMultiUpload(Bot $bot, string $method, array $files, array $parameters): CurlHandle { $curl = curl_init(sprintf('%s/%s?%s', $bot->getEndpoint(), $method, http_build_query($parameters))); - curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: multipart/form-data']);