/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.

Primary LanguagePythonMIT LicenseMIT

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.

    git clone https://github.com/coderooz/simple-python-telegram-bot.git
    cd simple-python-telegram-bot
  2. Create a virtual environment and activate it.

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies.

    pip install -r requirements.txt
  4. Replace YOUR_TOKEN in bot.py with your bot's API token.

  5. Run the bot.

    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 file for details.

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.

Contact

Created by Ranit Saha. Feel free to contact me for any questions or suggestions.