I am making a telegram bomb using webhook in php. The problem is that the webhook is not configured correctly and idk, whatβs the matter. my setwebhook code:
$ch = curl_init(API_URL); try { $cert = new \CURLFile(SSL_KEY); apiRequest('setWebhook', array('url' => WEBHOOK_URL , 'certificate' => $cert)); echo "webhook set"; } catch (Exception $e) { echo "error"; }
php ssl telegram telegram-bot
Alexander Vorontsov
source share