Telegram Bot - HTTP Client issue #6256
Replies: 1 comment
-
Posted at 2019-06-28 by Ollie Can you get a 200 response using a tool like Postman or Insomnia with the same endpoint? That's the first thing I'd check. That error suggests host is not found. Also, but without knowing, I'd also check whether http is supported by Telegram. I would expect an API like that to use https (in which case you have a problem on ESP8266). Posted at 2019-06-28 by Crash Hi. Yes. I already made some requests with postman. http and https work in postman without any issues on the same endpoint. Why there is a problem with http on esp8266? Edit:
Now I'm sure that is isn't an issue with telegram bot. Edit2:
This works fine. I got the whole html page... Posted at 2019-06-28 by Ollie I think ESP8226 build does not support Posted at 2019-06-28 by Crash
Seems to work fine. Latest result:
The "301 Moved Permanently" should be a real result of telegram. Why it didn't work in espruino. No issues on browser or on postman. Posted at 2019-06-28 by Crash Request with curl results in the same. No problem on espruino. Telegram didn't support http. Only https. Thank you - My fault :) Why espruino didn't support https on esp8266? Posted at 2019-06-28 by Ollie Ok, glad sorted. Re https, there's not enough memory on the device for the certificate management. You can use official Espruino Wifi board, and I think also supported on ESP32. Posted at 2019-06-28 by Ollie There's also this proxy which may work for you. http://httptohttps.mrtimcakes.com/ by espruino forum member @MrTimcakes Posted at 2019-06-30 by Crash That page does not seem to work anymore. Works great. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-06-28 by Crash
Hi guys,
i try to send a messages from the ESP8266-01 by using the espruino firmware.
The wifi connection is established successfully.
Response of the error case:
After that I try to send a message via GET or POST to the telegram bot.
Unfortunately I always get error messages. I am not sure if the requests arrive at telegram at all.
Can someone give me a hint?
I have already found a module in the internet. But that also do not work.
http://wiki.amperka.ru/js:telegram
Edit: If I just open the url in the browser the request will send and the telegram bot has the message.
Beta Was this translation helpful? Give feedback.
All reactions