lukefx / hubot-telegram

Hubot adapter for Telegram
MIT License
160 stars 42 forks source link

Edited message #50

Closed lukefx closed 8 years ago

lukefx commented 8 years ago

There is a new edited_message inside the update payload that could block all the new messages.

https://core.telegram.org/bots/api#getting-updates

message = update.message || update.edited_message
@robot.logger.info "Receiving message_id: " + message.message_id

This resolve the issue in my case.

joaquinnunez commented 8 years ago

this worked for me as well, with the only consideration that those edited message are going to be read twice

arcturial commented 8 years ago

Are edited messages something the adapter should process, or just ignore?

come-maiz commented 8 years ago

Worked here too. For now I patched my bot to use this branch. Thank you.

lukefx commented 8 years ago

@arcturial We don't do a release from ages...It's ok for you if we merged latests bugfix and release a new version?

arcturial commented 8 years ago

Yeah go for it.