Closed Turael closed 8 years ago
Hi, you should increment offset parameter. See https://github.com/pengrad/java-telegram-bot-api/issues/30
ah thanks for that fast response - ok it works now :) Now i understand your Testclass
For other readers: Telegram Bot API tells you about the offset too
Hey everyone,
I test a bit with that api in combination with Spring and I may found a bug or something? I have a Scheduled Bean with a fixedRate by 500ms - so every 500ms spring is calling that method. The rest of that method is like your example but if i write to the bot a bit faster then I get 2 messages with the same messageId... (see picture)
` GetUpdatesResponse updatesResponse = bot.execute(new GetUpdates().limit(0).offset(0).timeout(0)); List updates = updatesResponse.updates();
` Picture Terminaloutput and picture are not the same - it can reproduce...
Terminaloutput: