defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
697 stars 118 forks source link

SELF-SIGNED CERTIFICATE ISSUE #437

Closed Asekir closed 1 year ago

Asekir commented 1 year ago

Hi, I'm working with telegraph and I need some clarifications. After I created the bot I associated it with telegram bot through the token, after I associated the chat and at the end I wanted associate a webhook at the bot; here I had some issues. When I launched the command php artisan telegraph:set-webhook I saw this error image I tried to change the SSL certificate but I had the same issue; I set correctly the APP_URL in the env file with a https link. I solved the issue disabling the CURLOPT_SSL_VERIFYPEER option in the class CurlFactory.php in this way image I supposed the SELF-SIGNED CERTIFICATE error is given when the firewall and the telegram server exchange their certificates; is it correct? Is it possibile write in the guide a page about the communication? Thank you for your attention

fabio-ivona commented 1 year ago

Hi, I think this issue is not tied to Telegraph itself, you should refer to curl documentation