CasaJasmina / TelegramBot-Library

Host a Telegram Bot on your Arduino, and interact with it from your favourite chat application
GNU Lesser General Public License v2.1
134 stars 53 forks source link

Make use of "limit" parameter in the getUpdates api call #14

Closed witnessmenow closed 7 years ago

witnessmenow commented 8 years ago

getUpdates returns a single message, but as no limit is passed to Telegram, Telegram can return up to 100 messages in the response back.

If getUpdates is only going to return a single message, then a limit of 1 should be passed to Telegram to reduce the amount of data that Telegram returns to only what the library will use.

Relevant Api docs here

Apologies again that I can not submit a pull request as I do not have a compatible board