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
My version of spring-kafka is 2.2.11 and also I had this error.
I got this error because I had configurated two consumers in the same kafta topic with diferent configuration. One of them had ConsumerFactory
I solved the error changing the configuration of one Consumer because was wrong.
Simply you check the consumers of the topic