New Telegram bot return almost empty JSON to API

boardrider picture boardrider · May 9, 2017 · Viewed 7.9k times · Source

I want to create a Telegram bot, so I followed the instructions and got:

Done! Congratulations on your new bot. You will find it at t.me/RonGuruBot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API: 318659684:AAFdR9YE4DEwg1NQitSIuifPotoA-3f6cUw

However, when I enter the following URL into Chrome:

https://api.telegram.org/bot318659684:AAFdR9YE4DEwg1NQitSIuifPotoA-3f6cUw/getUpdates

The returned JSON is:

{"ok":true,"result":[]}

And the documentation led me to believe that there should be more in the JSON reply.

  • Should there be more?
  • What should I change to get a correct JSON reply?

Answer

user13401572 picture user13401572 · Apr 24, 2020

I think the issue is about initiating first updates to the bot via Desktop app. When I sent a message to bot from my mobile app, I started to receive updates.