An open API service indexing awesome lists of open source software.

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.

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.