# Simple Telegram Bot Example
This repository contains a simple example of a Telegram bot using the `python-telegram-bot` library in Python.
## Prerequisites
- `python-telegram-bot` library
You can install the required library using the following command:
```bash
pip install python-telegram-bot
This Telegram bot responds to user messages with a predefined message. It includes the following functionality:
- Responding to the
/start
command with a welcome message. - Echoing back any other text messages sent by users.
- Create a new bot on Telegram using the BotFather and obtain the bot token.
- Replace
'YOUR_BOT_TOKEN'
in the code (telegram_bot.py
) with your actual bot token.
-
Run the script using a Python interpreter:
python telegram_bot.py
-
Start a conversation with the bot on Telegram.
-
Use the
/start
command to receive a welcome message. -
Send any other text message to receive an echo response.
You can customize and extend the bot's functionality according to your requirements. Refer to the python-telegram-bot
documentation for more advanced features and options.
Shivansh-Jain-github