ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

Check if update actually contains entities #83

Closed dadadani closed 1 year ago

dadadani commented 1 year ago

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.

ba0f3 commented 1 year ago

thank you!