DEV Community

Discussion on: Sending messages with Telegram bot

 
karataev profile image
Eugene Karataev

Oh, I think I figured out the difference in results between Postman and browser requests.
Telegram servers are blocked here in Russia, that's why Postman requests fail. But in the browser I use VPN extension and the request resolves as expected.
Thanks for your help 😉

Thread Thread
 
rizkyrajitha profile image
Rajitha Gunathilake

wow , that's some serious debugging.
for me the results came after i added the bot to the group and then i send some messages to the group. so there is some data to show.

Thread Thread
 
karataev profile image
Eugene Karataev

Yeah, but in normal situation even if you don't add the bot to the group and send request https://api.telegram.org/bot<token>/getUpdates, you'll get an emtpy response like {"ok":true,"result":[]}.
In the case of access restriction on a government level, there is no response in Postman at all.
no response

Thread Thread
 
rizkyrajitha profile image
Rajitha Gunathilake

thanks 👍