- Clone the Repository:
git clone https://github.com/yourusername/telegram-bot-mlh.git cd telegram-bot-mlh
- Install Dependencies:
pip install -r requirements.txt
- Set Up Environment Variables:
- Duplicate
.env.example
and rename it to.env
:cp .env.example .env
- Edit
.env
and replaceBOT_TOKEN
with your actual Telegram bot token obtained from the BotFather.
- Duplicate
- Activate the Virtual Environment:
If you are using a virtual environment (recommended), activate it:
- On Windows:
.\venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
- Run the Bot:
python main.py
/start
- Starts the bot and greets the user.- Any other text message will be echoed back to the user.
Feel free to fork this repository, make improvements, and submit pull requests.