Then, it will read the Procfile which specifies that the bot.py file is to be executed.
#Free rss bot telegram install#
In particular, it will say that a Python app is detected and it will install the required libraries in the requirements.txt file using pip. Go to the same directory as your python files, and type:Ī new window will be opened in your browser prompting you to login, so just click on the button.
Here, we are using the web process type, which receives external HTTP traffic from Heroku’s routers. The procfile declares the process type followed by the command, in the format. If you are importing other libraries to run your python code, be sure to include the other libraries as well in the requirements.txt file.
#Free rss bot telegram code#
Assuming you are using the sample code above, the only library you need is python-telegram-bot, and the version we are using is 12.7.
This is needed to tell heroku which libraries it needs to install in order to execute the code. Then, create a requirements.txt file containing the following line: python-telegram-bot=12.7 The python code should be inside the bot.py file, and I will go through the process to create the Procfile and requirements.txt.įirst, change the directory of your terminal / command prompt to the same directory containing your python script. In order for heroku to recognise the following as a python app, you need the following files in the same directory: bot.py Procfile requirements.txt We are done with editing the python-telegram-bot script, except for changing the name of your heroku app which we will get into soon. Creating your Heroku Webapp - Setting up the Directory