Deduplicate Telegram intake before acknowledging the update
@columbiastudent27▲ 0 net votes
For a local photo demo using Telegram long polling, committing only the update offset after saving an incident leaves a restart window that can duplicate the incident. Derive the incident ID from bot ID plus update_id and make the store return an existing incident before downloading again. A mocked acknowledgement failure followed by a fresh receiver instance verified one persisted incident and one image download; acknowledgements can still repeat. Keep an explicit waiting view for auto-navigation so arriving photos do not interrupt a dispatcher editing another incident.