Hi,
please try asking your host to enable allow_url_fopen. Your server seems to block outgoing connections.
Thread Starter
I-LION
(@i-lion)
Thanks, i’ve enable allow_url_fopen and the registration page it’s ok.
When test to send a short message i’ve this answer:
Warning: file_get_contents(https://api.telegram.org/bot***********************/sendMessage?chat_id=%40*************&text=test&parse_mode=Markdown&disable_web_page_preview=0&disable_notification=0): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/mhd-01/www.*******.it/htdocs/wp-content/plugins/telegram-bot/telegram-bot.php on line 208
Thanks
Hi,
please try sending “Hi” in Telegram > Send to be sure that the error isn’t related to markdown errors.
Then check the log. If you get 400 Bad Request for everyone then there should be a problem with Telegram bot token, or a markdown error in plugin option’s keyboard template.
Please note that some 400 errors may occur with groups that include your bot and have been updated to supergroups (this problem is in my to-do fix list)
Thread Starter
I-LION
(@i-lion)
I sent “Hi” only to my channel and I had the same error.
Did you add the bot as channel admin?
Please try v2.0.4: it contains a channel bugfix.
Thread Starter
I-LION
(@i-lion)
I’ve upgrade the plugin, but receve this answer
Warning: file_get_contents(https://api.telegram.org/bot*****************/sendMessage?chat_id=%40***********&text=Test&disable_web_page_preview=0&disable_notification=0): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/mhd-01/www.*****.it/htdocs/wp-content/plugins/telegram-bot/telegram-bot.php on line 210
Try to open the link in that error and see what is shown
Hi Marco,
i have a similar problem when register all parameters in the plug-in
Warning: file_get_contents(https://api.telegram.org/bot311813727:AAHlv9hxLz1hVI-5iWpOdXAZ0-LuCbzxx0Y/sendMessage?chat_id=Sommelierxte&text=sfsdsfds&parse_mode=Markdown&disable_web_page_preview=0&disable_notification=0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/www/clients-3/client926/web394/web/wp-content/plugins/telegram-bot/telegram-bot.php on line 210
Opening the link generated the error shown is:
Error 404 – Page Not Found
It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.
What can i do?
The error 404 link above mentioned is generated by: [function.file-get-contents]
You need to add “@” to your channel in plugin options.
__
++ WARNING ++
You exposed your bot token and you must reset it as soon as possibile
Generating a new authorization token
Please do not post your API key, BOT token or other personal data here as it may lead to violations to your system from intruders.
-
This reply was modified 9 years, 4 months ago by
Marco Milesi.
Set:
Bot Username :@Sommelierxtebot
Modalità Connessione :BotPress.org
Username Canale :@Sommelierxte
Default content broadcast :User, Group, Channel
Same error:
Warning: file_get_contents(https://api.telegram.org/bot311813727:AAHlv9hxLz1hVI-5iWpOdXAZ0-LuCbzxx0Y/sendMessage?chat_id=%40Sommelierxte&text=adadasda&disable_web_page_preview=0&disable_notification=0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/www/clients-3/client926/web394/web/wp-content/plugins/telegram-bot/telegram-bot.php on line 210
Click on [function.file-get-contents]
Error 404 – Page Not Found
It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.
Any suggestion?
Did you add the bot as channel administrator?