From b7feb925ab246d9dfb8946e7d7066529ffd104c7 Mon Sep 17 00:00:00 2001 From: Ali Hesari Date: Sat, 6 Oct 2018 00:50:52 +0330 Subject: [PATCH] Rename setProxyOption method to SetProxy --- src/Telegram/Api.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Telegram/Api.php b/src/Telegram/Api.php index 8140ffb..ee5ed6b 100644 --- a/src/Telegram/Api.php +++ b/src/Telegram/Api.php @@ -372,10 +372,11 @@ public static function replyKeyboard($buttons) } /** - * Proxy Options + * Set Proxy * + * @return array */ - public static function setProxyOptions() + public static function setProxy() { return [ CURLOPT_PROXY => Config::get('hostname' , '127.0.0.1'), @@ -404,7 +405,7 @@ public static function sendRequest($method = 'sendMessage', $params) curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); if(self::$proxy){ - curl_setopt_array($curl, self::setProxyOptions()); + curl_setopt_array($curl, self::setProxy()); } $curl_result = curl_exec($curl); @@ -421,4 +422,4 @@ public static function sendRequest($method = 'sendMessage', $params) return $curl_result; } -} \ No newline at end of file +}