Skip to content

deichrenner/PersonalPrivateAIAssistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Private Telegram AI Assistant

This is the code repository which accompanies the article "How I built a personal Telegram AI Assistant in an Afternoon" on medium. Find the article here.

Run the Bot

Clone the project

  git clone https://github.com/deichrenner/PersonalPrivateAIAssistant.git

Create a virtual environment

  python3 -m venv .venv

Activate the virtual environment

  source .venv/bin/activate

Install dependencies

  pip install -r requirements.txt

Install ollama

  curl https://ollama.ai/install.sh | sh 
  ollama serve

Get the Telegram API token from the @BotFather and the API hash from the Telegram online center (see medium article for details) and add it to the .env file.

Start the Telegram bot

  python bot.py

Environment Variables

To run this project, you will need to add the required environment variables to the .env file. Copy the contents of the .env.example file and add the required API keys and tokens.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages