Welcome to the Telegram Bot project developed for the AccioINTERN internship program. This project aims to create a simple Telegram bot using Python and the python-telegram-bot library.
This Telegram bot is designed to greet users when they message it and handle basic commands. It also includes functionality to store user preferences such as name and language in a SQLite database.
- Greeting: The bot welcomes users when they start a conversation.
- Command Handling: It gracefully handles unknown commands with a default response.
- Database Integration: User preferences (e.g., name, language) are stored in an SQLite database.
- Basic understanding of Python programming language.
- No prior experience with the Telegram Bot API is required.
-
Clone the repository:
git clone https://github.com/AccioINTERN/Example-Repository.git cd Example-Repository
-
Install dependencies: Make sure you have Python installed. Install required libraries using pip:
pip install python-telegram-bot
-
Configuration:
- Obtain a Telegram Bot API token from BotFather on Telegram.
- Replace
"your_telegram_bot_token"
inbot.py
with your actual token.
-
Database Setup:
- The bot uses SQLite for database operations. No additional setup is required for basic usage.
Run the bot script bot.py
:
python bot.py
Contributions are welcome! Please refer to the CONTRIBUTING.md file for guidelines.
Thank you to AccioINTERN for providing this internship opportunity!