If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. https://www.example.com/. Since nobody else knows your bot‘s token, you can be pretty sure it’s us.
\param $url String HTTPS url to send updates to. Use an empty string to remove webhook integration
\param $certificate InputFile Upload your public key certificate so that the root certificate in use can be checked
\return the JSON Telegram's reply
public setWebhook ( $url, $certificate = "" ) |