This is a Horiv natural language assistant Telegram bot that has long-term memory ability and its own SDK for custom functionalities.
You can provide custom functions to it for your needs.
- Create a new bot on Telegram and get the token.
- Create a new OpenAI account and get the API key.
- Ensure you have Go installed on your system.
- Clone this repository and navigate into the project directory.
- Create a new file named
.env
in the root directory of the project and add the following content:
TELEGRAM_TOKEN=<YOUR_TELEGRAM_BOT_TOKEN>
OPENAI_TOKEN=<YOUR_OPENAI_API_KEY>
go run main.go
The bot starts listening for Telegram updates and interacts with the OpenAI API to process and respond to messages. It logs its activities and errors for monitoring and debugging purposes.