The Telegram News AI Bot is an intelligent bot that fetches and delivers the latest news to users on Telegram. It leverages Gemini AI to process NLP queries and provide interactive news updates based on user queries (topics & keywords). This project is built using AIOgram, FastAPI and other python libraries!
It uses NewsAPI to fetch recent news data!
- Recent news articles
- NLP Prompt with AI
- Quick & Personalized Updates
- Concise, readable chunks of news
- Easy Interface with Telegram
There are two ways to use the Telegram News AI Bot:
-
Live Deployed Bot:
- Interact with the live bot on Telegram: TeleNewsPy🕊️
- Simply start the bot and follow the prompts to receive news updates.
-
Local Installation:
- Follow the installation instructions below to set up and run the bot on your local machine.
- Python 3.8+
- pip (Python package installer)
git clone https://github.com/DarkDk123/News_AI_BOT.git
cd News_AI_BOT
pip install -r "requirements.txt"
Create a
.env
file in the root directory and add the necessary environment variables. Refer to theenv_example
file for guidance.
python "TelegramBot/main.py" # Command should be the same!
Once the server is running, the bot will deliver articles to the configured Telegram chat. You can interact with the bot using the Telegram app to make NLP queries and receive interactive news updates based on your queries.
We welcome contributions! Follow these steps:
-
Fork the repository and clone your fork locally:
git clone https://github.com/your-username/News_AI_BOT.git cd News_AI_BOT
-
Set up the project:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -r requirements.txt
-
Set up pre-commit hooks:
pip install pre-commit pre-commit install # Checks code quality & other formatting.
-
Create a branch:
git checkout -b feature-branch
-
Ensure code quality:
- Format:
ruff format --check .
- Lint:
ruff check .
- Format:
-
Make your changes, then commit and push:
git commit -m "Describe your changes" git push origin feature-branch
-
Open a pull request on GitHub.
For any questions or feedback, please open an issue on GitHub or contact the project maintainers.
This project is licensed under the GPL 3.0 License. See the LICENSE
file for more details.