This is a simple Telegram bot implemented using Python and the python-telegram-bot
library.
- Responds to
/start
command with a greeting message. - Responds to
/help
command with usage instructions. - Echoes any text message sent to it.
-
Clone the repository.
git clone https://github.com/coderooz/simple-python-telegram-bot.git cd simple-python-telegram-bot
-
Create a virtual environment and activate it.
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies.
pip install -r requirements.txt
-
Replace
YOUR_TOKEN
inbot.py
with your bot's API token. -
Run the bot.
python bot.py
Start the bot and send /start
, /help
, or any text message to see the responses.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.
Created by Ranit Saha. Feel free to contact me for any questions or suggestions.