TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

update.getPollAnswer() returns null

Open HouZzzz opened this issue 2 years ago • 3 comments

Description of the bug getPollAnswer method returns null value, but request from telegramAPI shows the poll answer

To Reproduce Steps to reproduce the behavior:

  1. Send not anonymous poll with allowed multiple answers.
  2. vote for any option (one or many, doesn't matter)
  3. see the null value from update.getPollAnswer()

Screenshots request for updates from telegram api image

result in java when doing same action image

Project dependencies where can be conflict spring boot v2.7.1 hibernate v5.4.21 jackson databind v2.11.3 telegrambots v6.5.0

HouZzzz avatar Feb 26 '23 08:02 HouZzzz

I've encountered this issue as well, and I believe it's a bug caused by multithreading problems.

Alpha2J avatar Jan 30 '24 07:01 Alpha2J

Same here. I can´t read answers.

spring boot 3.1.8 telegrambots 6.9.7.1 and 6.9.7.0

migueltercero avatar Feb 17 '24 16:02 migueltercero

I've added a test here to validate this case and data is properly generated.

Do you have a quick test where this potential bug manifest?

rubenlagus avatar Feb 17 '24 16:02 rubenlagus