changed structure of bot.py from infinite loop to cron job, storing last seen id in a text file latest_id