I am most familiar with Python and I am using it for the complete work.
The Telegram bot is written using a async-based library (telethon).
I should have also explained this in the post that when the user asks the bot to run the script, I do a `thread.start()`