Title: telegram-bot plugin bug
Last modified: September 1, 2016

---

# telegram-bot plugin bug

 *  Resolved [multipiano01](https://wordpress.org/support/users/multipiano01/)
 * (@multipiano01)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/)
 * After update setting got this message on the top:
 * `Warning: file_get_contents(https://api.telegram.org/bot<my_telegram_token>/setWebhook?
   url=http://<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://wordpress.org/plugins/telegram-bot/](https://wordpress.org/plugins/telegram-bot/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/#post-7707319)
 * 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=http://<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](https://wordpress.org/support/users/multipiano01/)
 * (@multipiano01)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/#post-7707323)
 * Thanks a lot Marco. It was my fault not setting `https` in general settings panel
   of WP configuration.
 *  Thread Starter [multipiano01](https://wordpress.org/support/users/multipiano01/)
 * (@multipiano01)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/#post-7707324)
 * [RESOLVED]
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/#post-7707325)
 * Thank you for the reply!
 * __
    If you like the plugin, please [rate](https://wordpress.org/support/view/plugin-reviews/telegram-bot)
   it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘telegram-bot plugin bug’ is closed to new replies.

 * ![](https://ps.w.org/telegram-bot/assets/icon-256x256.png?rev=2981438)
 * [Telegram Bot & Channel](https://wordpress.org/plugins/telegram-bot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/telegram-bot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/telegram-bot/)
 * [Active Topics](https://wordpress.org/support/plugin/telegram-bot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/telegram-bot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/telegram-bot/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/telegram-bot-plugin-bug/#post-7707325)
 * Status: resolved