Why it matters
Privileged actions should re-check that the caller is still a member or admin.
Practical steps
- Cache membership only with a short TTL
- Re-check on sensitive mutations
- Handle left and kicked statuses
- Do not trust client-provided status fields alone
- Fail closed when Telegram returns errors
Watch out for
- Copy-pasting outdated snippets for telegram getchatmember without re-reading current official docs.
- Shipping telegram getchatmember to production without a staging rehearsal and a documented rollback.