brew install python
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python bot.py
Go to BotFather, send a /newbot
command, give it any name ending with bot
and you'll get a token. Put that in bot.py
before running. Here's a detailed document containing step-by-step instructions to get your own bot working locally: SETUP