I am trying to set up a telegram in the manner described here - https://core.telegram.org/bots/api#setwebhook .
I tried almost everything to use my own self-signed certificate, but so far have not been able to get the telegram to call the URL that I passed, even when it returns OK
{"ok":true,"result":true,"description":"Webhook was set"}
- I can successfully use other methods, and all of them work fine.
- I used CPanel and openssl to create the certificate and tried both of them.
- I used both a simple html form to call the
setWebhook method and a PHP curl script - I tried to pass the URL and IP address of my site.
- I tested the URL of the web host I missed several times and tried different simple scripts to trace any call with them.
- I also checked all the issues here, like mine, but no one was resolved.
Is there something I haven't tried about?
PS: buying a verified certificate is not an option for me, I have already tried some free ssl providers, such as startssl (which they did not accept my domain, since it ends in .ir no reasonable reason, but should not be here, right?).
source share