Create telegram bot tutorial11/10/2023 Here, I will be calling it simply venv: virtualenv -p python3 venv Inside your directory, create a Python 3 virtual environment. ![]() Now, install virtualenv via Python’s package manager, to create a virtual environment for your bot and thus keep things neatly organized: pip install virtualenv If for some reason you don’t have Python 3 on your system, install it via your distro’s package manager or, if on Windows, via the official website.ĭepending on your setup, Python 3 might be simply called py or python, and the package installer might be pip3, so be sure to adjust the commands accordingly.Ĭreate a directory for your bot and enter it: mkdir my_first_bot ![]() Requirements and dependenciesīefore you start, be sure to have python3 and its package installer pip ready to go in whatever platform you are using. This guide was updated on March 20th, 2021, tweaking details to support Python 3.9.2 and python-telegram-bot 13.4.1. ![]() If you are already familiar with Python 3 and its virtualenv, simply create a venv, install python-telegram-bot via pip, do pip freeze > requirements.txt, and skip to section 1. This tutorial will be using the python-telegram-bot wrapper and Heroku to host it 24/7. Hey! This is a step-by-step guide on creating a Telegram Bot in a couple minutes!
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |