Telegram bot issue, requires terminal to run the setup file

So i have made telegram bot using webhook
scenario on local for running the bot
first time setup (setup.py)
I need to run the file for the first time and requires terminal for adding values to input
next
the main file is bot.py which will be running always
How can i achieve this on render?

Hi,

Bots are best deployed to us using a Background Worker - these run persistently in the background and don’t expose any web server however, these service types aren’t available with a free instance type.

Service builds don’t have any interactivity, so you may have to add the commands as part of your Build Command. You’ll need to configure your app to be configured to run/setup unattended.

Alan

When I run the setup.py, I receive an OTP on my email, which I need to enter. From this, a unique code will be generated, which I am writing in settings.json.
This code is required to run bot.py.

how can i achieve this on render?