In my Spring Boot/Kafka application before the library update, I used the following class org.telegram.telegrambots.api.objects.Update in order to post messages
I have also faced this issue, however solutions above did not work for me. What did the trick, though, was configuring kafka consumer factory as follows: