• Resolved multipiano01

    (@multipiano01)


    After update setting got this message on the top:

    Warning: file_get_contents(https://api.telegram.org/bot<my_telegram_token>/setWebhook?url=https://<my_website>/?<apicode>=1): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in <wp_server_path_to>/plugins/telegram-bot/settings-panel.php on line 15

    I think problem is related to the “http” and not “https” url to register for webhook. My website has the ssl certificate and nicely run with https url everywhere.

    https://www.ads-software.com/plugins/telegram-bot/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marco Milesi

    (@milmor)

    Hi,
    do you have a self-signed certificate? Does your website completely run on https (this means that “settings -> general” urls are both https)?

    If this doesn’t help, please open the https://api.telegram.org/bot<my_telegram_token>/setWebhook?url=https://<my_website>/?<apicode>=1 link in your browser to check the return error.

    You need https, so try with https too. Please note that navigate to that url really sets your webhook!

    Thread Starter multipiano01

    (@multipiano01)

    Thanks a lot Marco. It was my fault not setting https in general settings panel of WP configuration.

    Thread Starter multipiano01

    (@multipiano01)

    [RESOLVED]

    Plugin Author Marco Milesi

    (@milmor)

    Thank you for the reply!

    __
    If you like the plugin, please rate it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘telegram-bot plugin bug’ is closed to new replies.