rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

update.getPollAnswer() returns null #1193

Closed HouZzzz closed 5 months ago

HouZzzz commented 1 year ago

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

Alpha2J commented 7 months ago

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

migueltercero commented 7 months ago

Same here. I can´t read answers.

spring boot 3.1.8 telegrambots 6.9.7.1 and 6.9.7.0

rubenlagus commented 7 months ago

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?