Modified from hellobot.php
- Update the
config.php
- If
DEBUG
istrue
, it will write some debug information toDEBUG_FILE_NAME
. Please assign write privileges to theapache2
user. - Set up the webhook. If use self-signed certificate, please set it
by other means (e.g.
curl -i -X POST -H "Content-Type: multipart/form-data" -F "certificate=@PUBLIC_KEY.pem" -F "url=https://MY_DOMAIN.COM/pollbot.php" https://api.telegram.org/BOT_TOKEN/setWebhook
) - Run