Closed itsTyrion closed 5 years ago
Ideas how it can be properly handled? Additional ErrorListener as a 2nd lambda param? Still not sure how to skip or mark this update as processed.
maybe. or print the stacktrace. or make the 2nd parameter optional and just print it by default^^
New behavior:
Will release with next major version, but you can always try master snapshot with jitpack https://jitpack.io/#pengrad/java-telegram-bot-api/master-SNAPSHOT
Code that throws an exception in the update listener, in my case
msg.newChatMembers().length
without checking makes the api jump into theonFailure
block without throwing an exception or printing a stack trace, leading to an infinite update loop.How to reproduce?
update.message().newChatMembers().length
without a null check onnewChatMembers()
and send a text or voice message