

You can install venv to your host Python by running this command in your terminal: pip install virtualenv Since Python 3.3, a subset of it has been integrated into the standard library under the venv module. Virtualenv is a tool to set up your Python environments.

“A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system” As a result, you will need to isolate your Python development environment for that particular project. But in complex software development projects, like building a Python library, an API, or a software development kit, often you will be working with multiple files, multiple packages, and dependencies. This works fine for simple Python scripting projects. When developing software with Python, a basic approach is to install Python on your machine, install all your required libraries via the terminal, write all your code in a single.py file and run your Python program in the terminal. After entering those, you’ll get your bot access TOKEN. Type: /newbotand it’ll then ask you for your name and username. Then open the Telegram app, search for and start a chat. In the process, you will also be asked to enter some details about the application you plan to develop. You need a phone number and Telegram installed on your device to be able to receive a confirmation code. To do so, head over to and follow the steps to obtain your api_id and api_hash. Step 1: Pre-Setupīefore we start with the actual code, you need to register as a developer for the Telegram API. In this article, we are learning how to develop a Telegram Bot using Python and Telethon library.
