https://github.com/coderooz/simple-python-telegram-bot
This project creates a basic Telegram bot using Python and the python-telegram-bot library. The bot will respond to simple commands and messages.
https://github.com/coderooz/simple-python-telegram-bot
pythonbot telegram telegrambot
Last synced: 9 months ago
JSON representation
This project creates a basic Telegram bot using Python and the python-telegram-bot library. The bot will respond to simple commands and messages.
- Host: GitHub
- URL: https://github.com/coderooz/simple-python-telegram-bot
- Owner: coderooz
- License: mit
- Created: 2024-07-21T03:25:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-21T03:27:18.000Z (over 1 year ago)
- Last Synced: 2025-02-04T14:36:15.119Z (11 months ago)
- Topics: pythonbot, telegram, telegrambot
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Simple Telegram Bot
This is a simple Telegram bot implemented using Python and the `python-telegram-bot` library.
## Features
- Responds to `/start` command with a greeting message.
- Responds to `/help` command with usage instructions.
- Echoes any text message sent to it.
## Setup
1. Clone the repository.
```bash
git clone https://github.com/coderooz/simple-python-telegram-bot.git
cd simple-python-telegram-bot
```
2. Create a virtual environment and activate it.
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. Install the required dependencies.
```bash
pip install -r requirements.txt
```
4. Replace `YOUR_TOKEN` in `bot.py` with your bot's API token.
5. Run the bot.
```bash
python bot.py
```
## Usage
Start the bot and send `/start`, `/help`, or any text message to see the responses.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines.
## Contact
Created by [Ranit Saha](https://github.com/coderooz). Feel free to contact me for any questions or suggestions.