I have a telegram bot with over 60k users. And broadcasting a message to all those users takes more than 15 hours to complete. But my bot is running on GitHub workflows. And the bot gets restarted every 6 hours. So if I have a broadcast in progress, it stops after the restart. So I need a way to save the progress of the the broadcast process at the time of the restart and after the restart the bot checks for any incompleted broadcast processes and resume the process from where it was stopped?
Database that I use: Mongo db
API Framework: Pyrogram