alvarogzp / telegram-bot-framework

Python Telegram bot API framework
GNU Affero General Public License v3.0
18 stars 3 forks source link

Fix pole gap bug #23

Open alvarogzp opened 8 years ago

alvarogzp commented 8 years ago

From code comment:

            # FIXME this does not work as expected
            # FIXME it only resets the current chat status,
            # FIXME and only if this action is executed (eg. it is is a normal message)
alvarogzp commented 8 years ago

The correct solution could be to implement a serie of actions to perform on GapDetectorAction when it detects a gap, and one of them would be to remove pole last_message state from every chat.

alvarogzp commented 8 years ago

This bug will only manifest if production server is off fore more than a day, causing it to lose messages and make the next message in every chat a pole.