depoio / node-telegram-bot

Client wrapper for Telegram Bot API (Under heavy development)
MIT License
136 stars 30 forks source link

fix type message undefined error(temporary solution...) #71

Closed Cojad closed 8 years ago

Cojad commented 8 years ago

https://core.telegram.org/bots/api#update when receiving getUpdates from telegram it will reply in one of optional field below: message,edited_message,inline_query,chosen_inline_result,callback_query So far this lib only support message and do not expect other type field. This quick patch will fix crash issue when it receive field other than message.

But add support for other type of update field still needed. This is just a quick fix for not crashing the lib.