irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3.03k stars 670 forks source link

TelegramSDKException in GuzzleHttpClient.php line 114: #397

Closed jobs2008 closed 1 year ago

jobs2008 commented 7 years ago

im beginer in laravel

i have problem in run this code

` use Telegram\Bot\Laravel\Facades\Telegram;

Route::get('/', function () { $updates = Telegram::getUpdates(); dd($updates); }); `

error code : TelegramSDKException in GuzzleHttpClient.php line 114: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) please help me step by step

jonnywilliamson commented 7 years ago

Did you create your own SSL cert to test this with?

Did you follow these instructions?

https://core.telegram.org/bots/api#setwebhook https://core.telegram.org/bots/self-signed

omankopyor commented 7 years ago

i have same problem like that. maybe this can solve your problem go to "\vendor\irazasyed\telegram-bot-sdk\src\HttpClients" and open "GuzzleHttpClient.php" edit $this->client = $client ?: new Client(); in my file line 49 to $this->client = $client ?: new Client(['verify' => false ]); this can solve my guzzle error because access https telegram.

NabiKAZ commented 3 years ago

You don't should any change files of core framework.

Fore resolve this problem: