Apparently, Telegram may send an update containing an empty array on the entities parameter. Telebot currently doesn't check the array's length and will throw an exception when this is the case.
I have added a very simple check to the parameter in order to not make the entire bot crash.
Apparently, Telegram may send an update containing an empty array on the
entities
parameter. Telebot currently doesn't check the array's length and will throw an exception when this is the case.I have added a very simple check to the parameter in order to not make the entire bot crash.