A Python Telegram bot that helps you with fake news with power of Google Gemini Pro LLM and Google search.
- Install Python 3.10 or higher
- Create a virtual environment with
python -m venv venv(recommended)- Activate the virtual environment with
venv\Scripts\activate.bat(Windows) orsource venv/bin/activate(Linux)
- Activate the virtual environment with
- Install the requirements with
pip install -r requirements.txt - Set the environment variables specified below. We have provided a
.env.examplefile for you to fill in. Rename it to.envafter filling in the values. - Run the bot with
python3 main.py - Start using the telegram bot.
- Install Docker
- Set the environment variables specified below. We have provided a
.env.examplefile for you to fill in. Rename it to.envafter filling in the values. - Run the image with
docker run --env-file .env ghcr.io/fakenewsai/fakenewsbot:latest
- Start using the telegram bot.
- Update the FakeNewsBot image with
docker pull ghcr.io/fakenewsai/fakenewsbot:latest
.env.example contains the environment variables that need to be set. Rename it to .env after filling in the values.
GEMINI_KEY: The API key for Google Gemini Pro LLM.GOOGLE_SEARCH_KEY: The API key for Google Search.GOOGLE_CSE_ID: The CSE ID for Google Search.TELEGRAM_BOT_TOKEN: The token for the Telegram bot.
In the portal obtaining GOOGLE_CSE_ID, you can filter the search by whitelist or blacklist websites. You can also set region.
- Fork this repository.
- Create a new branch with
git checkout -b <branch-name> - Make your changes.
- Commit your changes with
git commit -m "<commit-message>" - Push your changes with
git push origin <branch-name> - Create a pull request.
- Wait for the pull request to be reviewed and merged.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.
- Langchain.
- Google Gemini Pro LLM.
- Google Search.
- Telegram.
This is a Telegram bot that helps you with fake news with power of Google Gemini Pro LLM and Google search.
This bot uses Google Gemini Pro LLM and Google search to find the truth about a news article.